Skip to content

Commit

Permalink
Support to boot armbian from SDCard
Browse files Browse the repository at this point in the history
  • Loading branch information
hzyitc committed Sep 18, 2022
1 parent a328d32 commit 8cd4389
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion board/amlogic/configs/m8b_onecloud.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
// =============================================================================
#define CONFIG_PREBOOT "run prepare_video; run check_usbburn; print 'Waiting for autoboot...'"
#define CONFIG_BOOTDELAY 3
#define CONFIG_BOOTCOMMAND "print 'Autobooting...'; run boot_usb_armbian; run boot_emmc_armbian; print 'Failed to boot'; "
#define CONFIG_BOOTCOMMAND "print 'Autobooting...'; run boot_usb_armbian; run boot_sdcard_armbian; run boot_emmc_armbian; print 'Failed to boot'; "
#define CONFIG_HOSTNAME "onecloud"
#define CONFIG_ETHADDR 00:15:18:01:81:31
#define CONFIG_IPADDR 192.168.1.150
Expand Down Expand Up @@ -224,10 +224,18 @@
"loadaddr=0x12000000\0" \
"boot_emmc_armbian=" \
"print -n 'Try to boot from eMMC...'; " \
"mmc rescan 1; " \
"setenv bootdev 'mmc 1'; " \
"fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \
"print 'Fail'; " \
"\0" \
"boot_sdcard_armbian=" \
"print -n 'Try to boot from SDCard...'; " \
"mmc rescan 0; " \
"setenv bootdev 'mmc 0'; " \
"fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \
"print 'Fail'; " \
"\0" \
"boot_usb_armbian=" \
"print -n 'Try to boot from USB...'; " \
"setenv bootdev 'usb 0'; " \
Expand Down

0 comments on commit 8cd4389

Please sign in to comment.