Skip to content

Commit 8cd4389

Browse files
committed
Support to boot armbian from SDCard
1 parent a328d32 commit 8cd4389

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

board/amlogic/configs/m8b_onecloud.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
// =============================================================================
170170
#define CONFIG_PREBOOT "run prepare_video; run check_usbburn; print 'Waiting for autoboot...'"
171171
#define CONFIG_BOOTDELAY 3
172-
#define CONFIG_BOOTCOMMAND "print 'Autobooting...'; run boot_usb_armbian; run boot_emmc_armbian; print 'Failed to boot'; "
172+
#define CONFIG_BOOTCOMMAND "print 'Autobooting...'; run boot_usb_armbian; run boot_sdcard_armbian; run boot_emmc_armbian; print 'Failed to boot'; "
173173
#define CONFIG_HOSTNAME "onecloud"
174174
#define CONFIG_ETHADDR 00:15:18:01:81:31
175175
#define CONFIG_IPADDR 192.168.1.150
@@ -224,10 +224,18 @@
224224
"loadaddr=0x12000000\0" \
225225
"boot_emmc_armbian=" \
226226
"print -n 'Try to boot from eMMC...'; " \
227+
"mmc rescan 1; " \
227228
"setenv bootdev 'mmc 1'; " \
228229
"fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \
229230
"print 'Fail'; " \
230231
"\0" \
232+
"boot_sdcard_armbian=" \
233+
"print -n 'Try to boot from SDCard...'; " \
234+
"mmc rescan 0; " \
235+
"setenv bootdev 'mmc 0'; " \
236+
"fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \
237+
"print 'Fail'; " \
238+
"\0" \
231239
"boot_usb_armbian=" \
232240
"print -n 'Try to boot from USB...'; " \
233241
"setenv bootdev 'usb 0'; " \

0 commit comments

Comments
 (0)