Jump to content

Recommended Posts

Posted

There are two install emmc files in armbian amlogic verison by balbes150.  install-aml.sh and install-aml-s905-emmc.sh.

What's the difference between these? If install armbian to a S912 TVbox emmc, which one should be choosed?

Posted

Can you please post the content of both the files?

I am not sure so it will be better to read the content and understand what it is trying to do,

 

AFAIK I have been using the latest iteration of the install script which includes support for RGB YUV for aml devices which have green screen issue.

 

 

Posted

diff -u  install-aml.sh install-aml-s905-emmc.sh | colordiff
--- install-aml.sh      2020-07-23 10:47:15.088753970 +0000
+++ install-aml-s905-emmc.sh    2020-07-23 10:47:15.096757969 +0000
@@ -47,19 +47,12 @@
 echo $DEV_EMMC

 echo "Start backup u-boot default"
+dd if="${DEV_EMMC}" of=/root/u-boot-default-aml-s905.img bs=1M count=4

-dd if="${DEV_EMMC}" of=/root/u-boot-default-aml.img bs=1M count=4
-
-echo "Start create MBR and partittion"
-
-parted -s "${DEV_EMMC}" mklabel msdos
-parted -s "${DEV_EMMC}" mkpart primary fat32 700M 1212M
-parted -s "${DEV_EMMC}" mkpart primary ext4 1213M 100%
-
-echo "Start restore u-boot"
-
-dd if=/root/u-boot-default-aml.img of="${DEV_EMMC}" conv=fsync bs=1 count=442
-dd if=/root/u-boot-default-aml.img of="${DEV_EMMC}" conv=fsync bs=512 skip=1 seek=1
+if [ -f /root/u-boot/u-boot-s905/u-boot.img ] ; then
+    echo "Start install u-boot to eMMC"
+    dd if=/root/u-boot/u-boot-s905/u-boot.img of="${DEV_EMMC}"
+fi

 sync

@@ -98,16 +91,10 @@
  -i "$DIR_INSTALL/uEnv.txt"
 echo "done."

-rm $DIR_INSTALL/s9*
+#rm $DIR_INSTALL/s9*
 rm $DIR_INSTALL/aml*
 rm $DIR_INSTALL/boot.ini
-mv -f $DIR_INSTALL/boot-emmc.scr $DIR_INSTALL/boot.scr
-
-if [ -f /boot/u-boot.ext ] ; then
-    mv -f $DIR_INSTALL/u-boot.sd $DIR_INSTALL/u-boot.emmc
-    mv -f $DIR_INSTALL/boot-emmc.ini $DIR_INSTALL/boot.ini
-    sync
-fi
+#mv -f $DIR_INSTALL/s905_emmc_autoscript $DIR_INSTALL/s905_autoscript

 umount $DIR_INSTALL

  • Werner locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines