diff options
author | Han Xu <han.xu@nxp.com> | 2018-09-07 16:41:21 -0500 |
---|---|---|
committer | Han Xu <han.xu@nxp.com> | 2018-09-10 15:51:58 -0500 |
commit | 225fa189faa518a334729d01176bc966e0259b8d (patch) | |
tree | 5380017755a843dd988f70c354be15e14fd36782 /include | |
parent | fa0d072b593e5e3bf49427e978de4fa5fd689023 (diff) |
MLK-19524: configs: add fastboot support for nand u-boot
add fastboot support for nand u-boot.
1. Add fastboot related configs
2. enlarge the SPL size for i.MX8MQ DDR4 NAND config
3. include the imx_env for boot command settings
Signed-off-by: Han Xu <han.xu@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/imx8mq_arm2.h | 17 | ||||
-rw-r--r-- | include/configs/imx8qxp_arm2.h | 25 | ||||
-rw-r--r-- | include/configs/mx7dsabresd.h | 6 |
3 files changed, 19 insertions, 29 deletions
diff --git a/include/configs/imx8mq_arm2.h b/include/configs/imx8mq_arm2.h index 2c224f679d9..678cd5bd1d2 100644 --- a/include/configs/imx8mq_arm2.h +++ b/include/configs/imx8mq_arm2.h @@ -15,7 +15,7 @@ #endif #define CONFIG_SPL_TEXT_BASE 0x7E1000 -#define CONFIG_SPL_MAX_SIZE (124 * 1024) +#define CONFIG_SPL_MAX_SIZE (148 * 1024) #define CONFIG_SYS_MONITOR_LEN (512 * 1024) #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 @@ -328,32 +328,23 @@ /* USB configs */ #ifndef CONFIG_SPL_BUILD -#define CONFIG_USB_XHCI_IMX8M -#define CONFIG_USB_XHCI_DWC3 -#define CONFIG_USB_XHCI_HCD #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 #define CONFIG_CMD_USB #define CONFIG_USB_STORAGE -#define CONFIG_USB_DWC3 -#define CONFIG_USB_DWC3_GADGET #define CONFIG_USBD_HS -#define CONFIG_USB_GADGET #define CONFIG_CMD_USB_MASS_STORAGE #define CONFIG_USB_GADGET_MASS_STORAGE -#define CONFIG_USB_GADGET_DOWNLOAD #define CONFIG_USB_GADGET_VBUS_DRAW 2 -#define CONFIG_USB_GADGET_DUALSPEED #define CONFIG_USB_FUNCTION_MASS_STORAGE -#define CONFIG_USB_GADGET_VENDOR_NUM 0x0525 -#define CONFIG_USB_GADGET_PRODUCT_NUM 0xa4a5 -#define CONFIG_USB_GADGET_MANUFACTURER "FSL" - #endif +#define CONFIG_SERIAL_TAG +#define CONFIG_FASTBOOT_USB_DEV 0 + #define CONFIG_OF_SYSTEM_SETUP #endif diff --git a/include/configs/imx8qxp_arm2.h b/include/configs/imx8qxp_arm2.h index 5fda6e8baf6..33308cf0614 100644 --- a/include/configs/imx8qxp_arm2.h +++ b/include/configs/imx8qxp_arm2.h @@ -10,6 +10,8 @@ #include <linux/sizes.h> #include <asm/arch/imx-regs.h> +#include "imx_env.h" + #define CONFIG_REMAKE_ELF #define CONFIG_BOARD_EARLY_INIT_F @@ -102,33 +104,28 @@ "m4boot_0=run loadm4image_0; dcache flush; bootaux ${loadaddr} 0\0" \ #ifdef CONFIG_NAND_BOOT -#define MFG_NAND_PARTITION "mtdparts=gpmi-nand:128m(boot),32m(kernel),16m(dtb),8m(misc),-(rootfs) " +#define MFG_NAND_PARTITION "mtdparts=gpmi-nand:128m(nandboot),32m(nandkernel),16m(nanddtb),8m(nandtee),-(nandrootfs) " #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.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\ - "g_mass_storage.iSerialNumber=\"\" "\ - MFG_NAND_PARTITION \ - "clk_ignore_unused "\ - "\0" \ + CONFIG_MFG_ENV_SETTINGS_DEFAULT \ + "clk_ignore_unused "\ + "\0" \ "initrd_addr=0x83100000\0" \ "initrd_high=0xffffffffffffffff\0" \ - "bootcmd_mfg=run mfgtool_args; if iminfo ${initrd_addr}; then "\ - "booti ${loadaddr} ${initrd_addr} ${fdt_addr};"\ - "else fastboot 1; fi\0" \ + "mtdparts=" MFG_NAND_PARTITION \ + "\0"\ /* Initial environment variables */ #ifdef CONFIG_NAND_BOOT #define CONFIG_EXTRA_ENV_SETTINGS \ CONFIG_MFG_ENV_SETTINGS \ "bootargs=console=ttyLP0,115200 ubi.mtd=5 " \ - "root=ubi0:rootfs rootfstype=ubifs " \ - "mtdparts=gpmi-nand:128m(boot),32m(kernel),16m(dtb),8m(misc),-(rootfs)\0"\ + "root=ubi0:nandrootfs rootfstype=ubifs " \ + MFG_NAND_PARTITION \ + "\0"\ "console=ttyLP0,115200 earlycon=lpuart32,0x5a060000,115200\0" \ "fdt_addr=0x83000000\0" #else diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h index 0099e96d223..dc45ceaff19 100644 --- a/include/configs/mx7dsabresd.h +++ b/include/configs/mx7dsabresd.h @@ -85,7 +85,7 @@ #endif #ifdef CONFIG_NAND_BOOT -#define MFG_NAND_PARTITION "mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),16m(tee),-(rootfs) " +#define MFG_NAND_PARTITION "mtdparts=gpmi-nand:64m(nandboot),16m(nandkernel),16m(nanddtb),16m(nandtee),-(nandrootfs) " #else #define MFG_NAND_PARTITION "" #endif @@ -100,6 +100,8 @@ "initrd_high=0xffffffff\0" \ "emmc_dev=1\0"\ "sd_dev=0\0" \ + "mtdparts=" MFG_NAND_PARTITION \ + "\0"\ #define CONFIG_DFU_ENV_SETTINGS \ "dfu_alt_info=image raw 0 0x800000;"\ @@ -116,7 +118,7 @@ "fdt_high=0xffffffff\0" \ "console=ttymxc0\0" \ "bootargs=console=ttymxc0,115200 ubi.mtd=4 " \ - "root=ubi0:rootfs rootfstype=ubifs " \ + "root=ubi0:nandrootfs rootfstype=ubifs " \ MFG_NAND_PARTITION \ "\0" \ "bootcmd=nand read ${loadaddr} 0x4000000 0x800000;"\ |