summaryrefslogtreecommitdiff
path: root/include/configs/mx6sxsabreauto.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-02-24 17:38:54 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:36 +0800
commitb18995387375111011612aa1e47d203733d16d14 (patch)
treed7fb0cdab2870ae689da9dd074cc2c69e5cb0f6b /include/configs/mx6sxsabreauto.h
parent7e43357e93c2aff021f9d41b4bd4f666ec0402a7 (diff)
downloadu-boot-imx-b18995387375111011612aa1e47d203733d16d14.zip
u-boot-imx-b18995387375111011612aa1e47d203733d16d14.tar.gz
u-boot-imx-b18995387375111011612aa1e47d203733d16d14.tar.bz2
MLK-12444-1 mfgtool: Add mfgtool support
If boot from usb, reset environment to default value. Auto apply mfgtools setting and boot mfgtools kernel. Porting this from fsl uboot to uboot 2016. The 7dsabresd has already added the environment and usb boot related functions. No need to add them more. Only need to add NAND parts environment for mfgtools. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit a352ed3c5184b95c4c9f7468f5fbb5f43de5e412)
Diffstat (limited to 'include/configs/mx6sxsabreauto.h')
-rw-r--r--include/configs/mx6sxsabreauto.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/configs/mx6sxsabreauto.h b/include/configs/mx6sxsabreauto.h
index 0f1ce4d..27569ab 100644
--- a/include/configs/mx6sxsabreauto.h
+++ b/include/configs/mx6sxsabreauto.h
@@ -19,7 +19,28 @@
#define CONFIG_MXC_UART
#define CONFIG_MXC_UART_BASE UART1_BASE
+#ifdef CONFIG_SYS_BOOT_NAND
+#define MFG_NAND_PARTITION "mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),1m(misc),-(rootfs) "
+#else
+#define MFG_NAND_PARTITION ""
+#endif
+
+#define CONFIG_MFG_ENV_SETTINGS \
+ "mfgtool_args=setenv bootargs console=${console},${baudrate} " \
+ "rdinit=/linuxrc " \
+ "g_mass_storage.stall=0 g_mass_storage.removable=1 " \
+ "g_mass_storage.file=/fat g_mass_storage.ro=1 " \
+ "g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\
+ "g_mass_storage.iSerialNumber=\"\" "\
+ MFG_NAND_PARTITION \
+ "\0" \
+ "initrd_addr=0x83800000\0" \
+ "initrd_high=0xffffffff\0" \
+ "bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \
+
+
#define CONFIG_EXTRA_ENV_SETTINGS \
+ CONFIG_MFG_ENV_SETTINGS \
"script=boot.scr\0" \
"image=zImage\0" \
"console=ttymxc0\0" \