boot config: cut delay to 1s, add support for fallback roots
parent
03f67bd151
commit
782407354f
|
@ -61,8 +61,10 @@
|
||||||
#define CONFIG_POWER_PFUZE100
|
#define CONFIG_POWER_PFUZE100
|
||||||
#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
|
#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
|
||||||
|
|
||||||
|
#define CONFIG_BOOTCOUNT_LIMIT
|
||||||
|
#define CONFIG_BOOTCOUNT_ENV
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
"vcom=-1250000\0" \
|
|
||||||
"image=zImage\0" \
|
"image=zImage\0" \
|
||||||
"console=ttymxc0\0" \
|
"console=ttymxc0\0" \
|
||||||
"initrd=0x89000000\0" \
|
"initrd=0x89000000\0" \
|
||||||
|
@ -73,35 +75,47 @@
|
||||||
"mmcpart=1\0" \
|
"mmcpart=1\0" \
|
||||||
"splashimage=0x80000000\0" \
|
"splashimage=0x80000000\0" \
|
||||||
"splashpos=m,m\0" \
|
"splashpos=m,m\0" \
|
||||||
"mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
|
"mmcfallbackroot=/dev/mmcblk1p3\0" \
|
||||||
|
"mmcroot=/dev/mmcblk1p2\0" \
|
||||||
"mmcargs=setenv bootargs console=${console},${baudrate} " \
|
"mmcargs=setenv bootargs console=${console},${baudrate} " \
|
||||||
"root=${mmcroot} max17135:vcom=${vcom};\0" \
|
"root=${mmcroot} rootwait rw por=${por};\0" \
|
||||||
"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
|
"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
|
||||||
"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
|
"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
|
||||||
"mmcboot=echo Booting from mmc ...; " \
|
"mmcboot=echo Booting from mmc ...; " \
|
||||||
"run mmcargs; " \
|
"mmc dev ${mmcdev}; " \
|
||||||
"if run loadfdt; then " \
|
"if mmc rescan; then " \
|
||||||
"bootz ${loadaddr} - ${fdt_addr}; " \
|
"if run loadimage; then " \
|
||||||
"else " \
|
"if run loadfdt; then " \
|
||||||
"echo WARN: Cannot load the DT; " \
|
"bootz ${loadaddr} - ${fdt_addr}; " \
|
||||||
|
"else " \
|
||||||
|
"echo WARN: Cannot load the DT; " \
|
||||||
|
"fi; " \
|
||||||
|
"fi; " \
|
||||||
"fi;\0" \
|
"fi;\0" \
|
||||||
"memboot=echo Booting from memory...; " \
|
"memboot=echo Booting from memory...; " \
|
||||||
"setenv bootargs console=${console},${baudrate}" \
|
"setenv bootargs console=${console},${baudrate} " \
|
||||||
"max17135:vcom=${vcom} " \
|
|
||||||
"g_mass_storage.stall=0 g_mass_storage.removable=1 " \
|
"g_mass_storage.stall=0 g_mass_storage.removable=1 " \
|
||||||
"g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\
|
"g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\
|
||||||
"g_mass_storage.iSerialNumber=\"\" rdinit=/sbin/init; "\
|
"g_mass_storage.iSerialNumber=\"\" rdinit=/sbin/init; "\
|
||||||
"bootz ${loadaddr} ${initrd} ${fdt_addr};\0" \
|
"bootz ${loadaddr} ${initrd} ${fdt_addr};\0" \
|
||||||
|
"altbootcmd=echo Running from fallback root...; " \
|
||||||
|
"run memboot; " \
|
||||||
|
"setenv bootargs console=${console},${baudrate} " \
|
||||||
|
"root=${mmcfallbackroot} rootwait rw;\0" \
|
||||||
|
"run mmcboot;\0" \
|
||||||
|
|
||||||
|
/* Always try to boot from memory first, in case of USB download mode */
|
||||||
#define CONFIG_BOOTCOMMAND \
|
#define CONFIG_BOOTCOMMAND \
|
||||||
"run memboot; " \
|
"run memboot; " \
|
||||||
"mmc dev ${mmcdev}; " \
|
"run mmcargs; " \
|
||||||
"if mmc rescan; then " \
|
"run mmcboot; " \
|
||||||
"if run loadimage; then " \
|
"echo WARN: unable to boot from either RAM or eMMC;"
|
||||||
"run mmcboot; " \
|
|
||||||
"fi; " \
|
#ifdef CONFIG_BOOTDELAY
|
||||||
"fi;" \
|
#undef CONFIG_BOOTDELAY
|
||||||
"echo WARN: unable to boot from either RAM or eMMC; "
|
#endif
|
||||||
|
|
||||||
|
#define CONFIG_BOOTDELAY 1
|
||||||
|
|
||||||
/* Miscellaneous configurable options */
|
/* Miscellaneous configurable options */
|
||||||
#define CONFIG_SYS_MEMTEST_START 0x80000000
|
#define CONFIG_SYS_MEMTEST_START 0x80000000
|
||||||
|
|
Loading…
Reference in New Issue