2013-05-29 09:27:30 +08:00
|
|
|
--- a/include/configs/wandboard.h
|
|
|
|
+++ b/include/configs/wandboard.h
|
2014-05-21 05:01:18 +08:00
|
|
|
@@ -49,7 +49,7 @@
|
2013-08-30 07:06:31 +08:00
|
|
|
#define CONFIG_CMD_BMODE
|
|
|
|
#define CONFIG_CMD_SETEXPR
|
2013-05-29 09:27:30 +08:00
|
|
|
|
|
|
|
-#define CONFIG_BOOTDELAY 5
|
|
|
|
+#define CONFIG_BOOTDELAY 3
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MEMTEST_START 0x10000000
|
|
|
|
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 500 * SZ_1M)
|
2014-05-21 05:01:18 +08:00
|
|
|
@@ -102,13 +102,15 @@
|
2013-05-29 09:27:30 +08:00
|
|
|
|
2013-10-31 08:00:51 +08:00
|
|
|
#if defined(CONFIG_MX6DL) || defined(CONFIG_MX6S)
|
2013-05-29 09:27:30 +08:00
|
|
|
#define CONFIG_DEFAULT_FDT_FILE "imx6dl-wandboard.dtb"
|
2014-05-21 05:01:18 +08:00
|
|
|
+#define CONFIG_OWRT_NAME "openwrt-imx6-imx6dl-wandboard-fit-uImage.itb"
|
2013-08-30 07:06:31 +08:00
|
|
|
#elif defined(CONFIG_MX6Q)
|
|
|
|
#define CONFIG_DEFAULT_FDT_FILE "imx6q-wandboard.dtb"
|
2014-05-21 05:01:18 +08:00
|
|
|
+#define CONFIG_OWRT_NAME "openwrt-imx6-imx6q-wandboard-fit-uImage.itb"
|
2013-05-29 09:27:30 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"script=boot.scr\0" \
|
2014-05-21 05:01:18 +08:00
|
|
|
- "image=zImage\0" \
|
|
|
|
+ "image=" CONFIG_OWRT_NAME "\0" \
|
2013-05-29 09:27:30 +08:00
|
|
|
"console=ttymxc0\0" \
|
2013-10-31 08:00:51 +08:00
|
|
|
"splashpos=m,m\0" \
|
2013-05-29 09:27:30 +08:00
|
|
|
"fdt_high=0xffffffff\0" \
|
2014-05-21 05:01:18 +08:00
|
|
|
@@ -137,11 +139,11 @@
|
2013-05-29 09:27:30 +08:00
|
|
|
"mmcargs=setenv bootargs console=${console},${baudrate} " \
|
|
|
|
"root=${mmcroot}\0" \
|
|
|
|
"loadbootscript=" \
|
|
|
|
- "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
|
|
|
|
+ "ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
|
|
|
|
"bootscript=echo Running bootscript from mmc ...; " \
|
|
|
|
"source\0" \
|
2014-05-21 05:01:18 +08:00
|
|
|
- "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
|
2013-05-29 09:27:30 +08:00
|
|
|
- "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
|
|
|
|
+ "loaduimage=ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
|
|
|
|
+ "loadfdt=ext2load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
|
|
|
|
"mmcboot=echo Booting from mmc ...; " \
|
|
|
|
"run mmcargs; " \
|
|
|
|
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
2014-05-21 05:01:18 +08:00
|
|
|
@@ -155,31 +157,7 @@
|
|
|
|
"fi; " \
|
2013-05-29 09:27:30 +08:00
|
|
|
"fi; " \
|
|
|
|
"else " \
|
2014-05-21 05:01:18 +08:00
|
|
|
- "bootz; " \
|
2013-05-29 09:27:30 +08:00
|
|
|
- "fi;\0" \
|
|
|
|
- "netargs=setenv bootargs console=${console},${baudrate} " \
|
|
|
|
- "root=/dev/nfs " \
|
|
|
|
- "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
|
|
|
|
- "netboot=echo Booting from net ...; " \
|
|
|
|
- "run netargs; " \
|
|
|
|
- "if test ${ip_dyn} = yes; then " \
|
|
|
|
- "setenv get_cmd dhcp; " \
|
|
|
|
- "else " \
|
|
|
|
- "setenv get_cmd tftp; " \
|
|
|
|
- "fi; " \
|
2014-05-21 05:01:18 +08:00
|
|
|
- "${get_cmd} ${image}; " \
|
2013-05-29 09:27:30 +08:00
|
|
|
- "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
|
|
|
- "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
|
2014-05-21 05:01:18 +08:00
|
|
|
- "bootz ${loadaddr} - ${fdt_addr}; " \
|
2013-05-29 09:27:30 +08:00
|
|
|
- "else " \
|
|
|
|
- "if test ${boot_fdt} = try; then " \
|
2014-05-21 05:01:18 +08:00
|
|
|
- "bootz; " \
|
2013-05-29 09:27:30 +08:00
|
|
|
- "else " \
|
|
|
|
- "echo WARN: Cannot load the DT; " \
|
|
|
|
- "fi; " \
|
|
|
|
- "fi; " \
|
|
|
|
- "else " \
|
2014-05-21 05:01:18 +08:00
|
|
|
- "bootz; " \
|
|
|
|
+ "bootm; " \
|
2013-05-29 09:27:30 +08:00
|
|
|
"fi;\0"
|
|
|
|
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
2014-05-21 05:01:18 +08:00
|
|
|
@@ -189,10 +167,10 @@
|
2013-05-29 09:27:30 +08:00
|
|
|
"else " \
|
2014-05-21 05:01:18 +08:00
|
|
|
"if run loadimage; then " \
|
2013-05-29 09:27:30 +08:00
|
|
|
"run mmcboot; " \
|
|
|
|
- "else run netboot; " \
|
|
|
|
+ "else echo WARN: Can not boot the image; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi; " \
|
|
|
|
- "else run netboot; fi"
|
|
|
|
+ "fi"
|
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
#define CONFIG_SYS_LONGHELP
|