Jump to content

bryant

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Sory for late posting . I'm a bit busy at work. You mean the log?
  2. Okay, i'll try to run install-aml.sh Thank you 😊
  3. Previously, I knew Armbian from YouTube and downloaded it from the link given in the description. I hope the version I'm using now (Armbian_23.02.0-trunk_Aml-s9xx-box_kinetic_edge_6.0.12_xfce_desktop) can be installed on eMMC, because it's more stable and faster
  4. Armbian_21.08.1_Amlogic-GXL_focal_current_5.10.60_desktop.img I followed a tutorial from youtube. If you need the .sh file, I'll attach it. #!/bin/sh echo "Start script create MBR and filesystem" hasdrives=$(lsblk | grep -oE '(mmcblk[0-9])' | sort | uniq) if [ "$hasdrives" = "" ] then echo "UNABLE TO FIND ANY EMMC OR SD DRIVES ON THIS SYSTEM!!! " exit 1 fi avail=$(lsblk | grep -oE '(mmcblk[0-9]|sda[0-9])' | sort | uniq) if [ "$avail" = "" ] then echo "UNABLE TO FIND ANY DRIVES ON THIS SYSTEM!!!" exit 1 fi runfrom=$(lsblk | grep /$ | grep -oE '(mmcblk[0-9]|sda[0-9])') if [ "$runfrom" = "" ] then echo " UNABLE TO FIND ROOT OF THE RUNNING SYSTEM!!! " exit 1 fi emmc=$(echo $avail | sed "s/$runfrom//" | sed "s/sd[a-z][0-9]//g" | sed "s/ //g") if [ "$emmc" = "" ] then echo " UNABLE TO FIND YOUR EMMC DRIVE OR YOU ALREADY RUN FROM EMMC!!!" exit 1 fi if [ "$runfrom" = "$avail" ] then echo " YOU ARE RUNNING ALREADY FROM EMMC!!! " exit 1 fi if [ $runfrom = $emmc ] then echo " YOU ARE RUNNING ALREADY FROM EMMC!!! " exit 1 fi if [ "$(echo $emmc | grep mmcblk)" = "" ] then echo " YOU DO NOT APPEAR TO HAVE AN EMMC DRIVE!!! " exit 1 fi DEV_EMMC="/dev/$emmc" echo $DEV_EMMC echo "Start backup u-boot default" 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 956M parted -s "${DEV_EMMC}" mkpart primary ext4 957M 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 sync echo "Done" echo "Start copy system for eMMC." mkdir -p /ddbr chmod 777 /ddbr PART_BOOT="${DEV_EMMC}p1" PART_ROOT="${DEV_EMMC}p2" DIR_INSTALL="/ddbr/install" if [ -d $DIR_INSTALL ] ; then rm -rf $DIR_INSTALL fi mkdir -p $DIR_INSTALL if grep -q $PART_BOOT /proc/mounts ; then echo "Unmounting BOOT partiton." umount -f $PART_BOOT fi echo -n "Formatting BOOT partition..." mkfs.vfat -n "BOOT_EMMC" $PART_BOOT echo "done." mount -o rw $PART_BOOT $DIR_INSTALL echo -n "Cppying BOOT..." cp -r /boot/* $DIR_INSTALL && sync echo "done." echo -n "Edit init config..." sed -e "s/ROOTFS/ROOT_EMMC/g" \ -i "$DIR_INSTALL/extlinux/extlinux.conf" echo "done." rm $DIR_INSTALL/s9* rm $DIR_INSTALL/aml* if [ -f /boot/u-boot.ext ] ; then mv -f $DIR_INSTALL/u-boot.ext $DIR_INSTALL/u-boot.emmc sed -e "s/u-boot.ext/u-boot.emmc/g" \ -i "$DIR_INSTALL/boot.ini" echo "done." sync fi umount $DIR_INSTALL if grep -q $PART_ROOT /proc/mounts ; then echo "Unmounting ROOT partiton." umount -f $PART_ROOT fi echo "Formatting ROOT partition..." mke2fs -F -q -t ext4 -L ROOT_EMMC -m 0 $PART_ROOT e2fsck -n $PART_ROOT echo "done." echo "Copying ROOTFS." mount -o rw $PART_ROOT $DIR_INSTALL cd / echo "Copy BIN" tar -cf - bin | (cd $DIR_INSTALL; tar -xpf -) #echo "Copy BOOT" #mkdir -p $DIR_INSTALL/boot #tar -cf - boot | (cd $DIR_INSTALL; tar -xpf -) echo "Create DEV" mkdir -p $DIR_INSTALL/dev #tar -cf - dev | (cd $DIR_INSTALL; tar -xpf -) echo "Copy ETC" tar -cf - etc | (cd $DIR_INSTALL; tar -xpf -) echo "Copy HOME" tar -cf - home | (cd $DIR_INSTALL; tar -xpf -) echo "Copy LIB" tar -cf - lib | (cd $DIR_INSTALL; tar -xpf -) echo "Create MEDIA" mkdir -p $DIR_INSTALL/media #tar -cf - media | (cd $DIR_INSTALL; tar -xpf -) echo "Create MNT" mkdir -p $DIR_INSTALL/mnt #tar -cf - mnt | (cd $DIR_INSTALL; tar -xpf -) echo "Copy OPT" tar -cf - opt | (cd $DIR_INSTALL; tar -xpf -) echo "Create PROC" mkdir -p $DIR_INSTALL/proc echo "Copy ROOT" tar -cf - root | (cd $DIR_INSTALL; tar -xpf -) echo "Create RUN" mkdir -p $DIR_INSTALL/run echo "Copy SBIN" tar -cf - sbin | (cd $DIR_INSTALL; tar -xpf -) echo "Copy SELINUX" tar -cf - selinux | (cd $DIR_INSTALL; tar -xpf -) echo "Copy SRV" tar -cf - srv | (cd $DIR_INSTALL; tar -xpf -) echo "Create SYS" mkdir -p $DIR_INSTALL/sys echo "Create TMP" mkdir -p $DIR_INSTALL/tmp echo "Copy USR" tar -cf - usr | (cd $DIR_INSTALL; tar -xpf -) echo "Copy VAR" tar -cf - var | (cd $DIR_INSTALL; tar -xpf -) sync echo "Copy fstab" rm $DIR_INSTALL/etc/fstab cp -a /root/fstab $DIR_INSTALL/etc/fstab rm $DIR_INSTALL/root/install*.sh rm $DIR_INSTALL/root/fstab cd / sync umount $DIR_INSTALL echo "*******************************************" echo "Complete copy OS to eMMC " echo "*******************************************" Thank you 😊
  5. Hi, my previous Armbian (21.08.1 focal 5.10.60 desktop) was successfully installed to emmc. (install_aml_gxl_emmc.sh) After I tried the latest firmware (Armbian_23.02.0-trunk_Aml-s9xx-box_kinetic_edge_6.0.12_xfce_desktop), I felt a big change in speed. The problem is, I've tried several times to move it to emmc and it always fails to boot. (install-aml.sh) Any suggestions I need to look into before running the script again? Thank you
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines