File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 167167// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
168168// Environment variables
169169// =============================================================================
170- #define CONFIG_PREBOOT "run show_logo; update 1000 "
170+ #define CONFIG_PREBOOT "run prepare_video; run check_usbburn "
171171#define CONFIG_BOOTDELAY 3
172- #define CONFIG_BOOTCOMMAND "run boot_usb_armbian || run boot_emmc_armbian"
172+ #define CONFIG_BOOTCOMMAND "print 'Booting...'; run boot_usb_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
203203 "fb_width=1280\0" \
204204 "fb_height=720\0" \
205205 "loadaddr_logo=0x13000000\0" \
206- "show_logo=" \
207- "logo size ${outputmode}; " \
206+ "prepare_video=" \
208207 "video open; " \
209208 "video clear; " \
210209 "video dev open ${outputmode}; " \
211210 "imgread pic resource bootup ${loadaddr_logo}; " \
212211 "bmp display ${bootup_offset}; " \
213212 "bmp scale; " \
213+ "set_fontsize 24; " \
214+ "setenv print_color 0xFFFFFF; " \
215+ "print 'U-Boot'; " \
216+ "\0" \
217+ \
218+ "check_usbburn=" \
219+ "print 'Checking USBBurn ...'; " \
220+ "update 1000" \
214221 "\0" \
215222 \
216223 "loadaddr=0x12000000\0" \
217224 "boot_emmc_armbian=" \
225+ "print 'Try to boot from eMMC...'; " \
218226 "bootdev='mmc 1'; " \
219227 "rootdev='/dev/mmcblk1p2'; " \
220228 "fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \
221229 "\0" \
222230 "boot_usb_armbian=" \
231+ "print 'Try to boot from USB...'; " \
223232 "bootdev='usb 0'; " \
224233 "rootdev='/dev/sda2'; " \
225234 "usb start && fatload ${bootdev} ${loadaddr} boot.scr && autoscr ${loadaddr}; " \
You can’t perform that action at this time.
0 commit comments