Skip to content

Commit abeab00

Browse files
committed
.
1 parent 6aee49c commit abeab00

10 files changed

Lines changed: 28 additions & 33 deletions

File tree

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ make_image() {
8787
mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 -n "S905 autoscript" -d mnt/boot/s905_autoscript.cmd mnt/boot/s905_autoscript 2>/dev/null
8888
mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 -n "eMMC autoscript" -d mnt/boot/emmc_autoscript.cmd mnt/boot/emmc_autoscript 2>/dev/null
8989
mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 -n "AML autoscript" -d mnt/boot/aml_autoscript.txt mnt/boot/aml_autoscript 2>/dev/null
90-
mkimage -n "uInitrd Image" -A arm64 -O linux -T ramdisk -C none -d mnt/boot/initramfs-linux.img mnt/boot/uInitrd 2>/dev/null
91-
mkimage -n "uImage" -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -d mnt/boot/Image mnt/boot/uImage 2>/dev/null
90+
rm mnt/boot/*.cmd
91+
#mkimage -n "uInitrd Image" -A arm64 -O linux -T ramdisk -C none -d mnt/boot/initramfs-linux.img mnt/boot/uInitrd 2>/dev/null
92+
#mkimage -n "uImage" -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -d mnt/boot/Image mnt/boot/uImage 2>/dev/null
9293
sync
9394

9495
umount -R -f mnt 2>/dev/null

src/boot-files/aml_autoscript.cmd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if printenv bootfromsd; then exit; else setenv ab 0; fi;
2+
setenv bootcmd 'run start_autoscript; run storeboot'
3+
setenv start_autoscript 'if mmcinfo; then run start_mmc_autoscript; fi; if usb start; then run start_usb_autoscript; fi; run start_emmc_autoscript'
4+
setenv start_emmc_autoscript 'if fatload mmc 1 1020000 emmc_autoscript; then autoscr 1020000; fi;'
5+
setenv start_mmc_autoscript 'if fatload mmc 0 1020000 s905_autoscript; then autoscr 1020000; fi;'
6+
setenv start_usb_autoscript 'for usbdev in 0 1 2 3; do if fatload usb ${usbdev} 1020000 s905_autoscript; then autoscr 1020000; fi; done'
7+
setenv upgrade_step 2
8+
saveenv
9+
sleep 1
10+
reboot
11+

src/boot-files/aml_autoscript.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/boot-files/aml_autoscript.zip

Whitespace-only changes.

src/boot-files/boot.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
AMLOGIC-UBOOT-CONFIG
2+
3+
if test "${devtype}" = ""; then setenv devtype "mmc"; fi
4+
5+
if fatload ${devtype} ${devnum} 0x1000000 u-boot.ext; then go 0x1000000; fi;

src/boot-files/emmc_autoscript.cmd

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
setenv env_addr 0x1040000
2-
setenv initrd_addr 0x13000000
3-
setenv boot_start 'bootm ${loadaddr} ${initrd_addr} ${dtb_mem_addr}'
4-
setenv addmac 'if printenv mac; then setenv bootargs ${bootargs} mac=${mac}; elif printenv eth_mac; then setenv bootargs ${bootargs} mac=${eth_mac}; fi'
5-
setenv try_boot_start 'if fatload ${devtype} ${devnum} ${loadaddr} uImage; then if fatload ${devtype} ${devnum} ${initrd_addr} uInitrd; then fatload ${devtype} ${devnum} ${env_addr} uEnv.ini && env import -t ${env_addr} ${filesize} && run addmac; fatload ${devtype} ${devnum} ${dtb_mem_addr} ${dtb_name} && run boot_start; fi;fi'
6-
setenv devtype mmc
7-
setenv devnum 1
8-
run try_boot_start
1+
if printenv bootfromsd; then exit; fi;
2+
if fatload mmc 1 0x1000000 u-boot.emmc; then go 0x1000000; fi;
93

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
LABEL "Arch Linux ARM"
2+
LINUX /Image
3+
INITRD /initramfs-linux.img
4+
FDT /dtbs/amlogic/meson-gxl-s905x-p212.dtb

src/boot-files/s905_autoscript.cmd

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1+
if printenv bootfromsd; then exit; fi;
2+
if fatload mmc 0 ${loadaddr} boot_android; then if test ${ab} = 0; then setenv ab 1; saveenv; exit; else setenv ab 0; saveenv; fi; fi;
3+
if fatload usb 0 ${loadaddr} boot_android; then if test ${ab} = 0; then setenv ab 1; saveenv; exit; else setenv ab 0; saveenv; fi; fi;
14
if fatload mmc 0 0x1000000 u-boot.ext; then go 0x1000000; fi;
25
if fatload usb 0 0x1000000 u-boot.ext; then go 0x1000000; fi;
3-
setenv env_addr 0x1040000
4-
setenv initrd_addr 0x13000000
5-
setenv boot_start 'bootm ${loadaddr} ${initrd_addr} ${dtb_mem_addr}'
6-
setenv addmac 'if printenv mac; then setenv bootargs ${bootargs} mac=${mac}; elif printenv eth_mac; then setenv bootargs ${bootargs} mac=${eth_mac}; fi'
7-
setenv try_boot_start 'if fatload ${devtype} ${devnum} ${loadaddr} uImage; then if fatload ${devtype} ${devnum} ${initrd_addr} uInitrd; then fatload ${devtype} ${devnum} ${env_addr} uEnv.ini && env import -t ${env_addr} ${filesize} && run addmac; fatload ${devtype} ${devnum} ${dtb_mem_addr} ${dtb_name} && run boot_start; fi;fi'
8-
setenv devtype mmc
9-
setenv devnum 0
10-
run try_boot_start
11-
setenv devtype usb
12-
for devnum in 0 1 2 3 ; do run try_boot_start ; done

src/boot-files/u-boot.ext

100644100755
418 KB
Binary file not shown.

src/boot-files/uEnv.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)