istoreos/target/linux/amlogic/image/aml_autoscript.cmd
Liangbin Lian f727777263 target/amlogic: init support for amlogic SoCs
first supported board Phicomm N1

based on db281bf932

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2025-12-30 17:02:53 +08:00

11 lines
656 B
Batchfile

if printenv bootfromsd; then exit; else setenv ab 0; fi;
setenv bootcmd 'run start_autoscript; run storeboot'
setenv start_autoscript 'if mmcinfo; then run start_mmc_autoscript; fi; if usb start; then run start_usb_autoscript; fi; run start_emmc_autoscript'
setenv start_emmc_autoscript 'if fatload mmc 1 1020000 emmc_autoscript; then autoscr 1020000; fi;'
setenv start_mmc_autoscript 'if fatload mmc 0 1020000 s905_autoscript; then env delete usbdev; autoscr 1020000; fi;'
setenv start_usb_autoscript 'for usbdev in 0 1 2 3; do if fatload usb ${usbdev} 1020000 s905_autoscript; then autoscr 1020000; fi; done'
setenv upgrade_step 2
saveenv
sleep 1
reboot