diff options
author | Joakim Zhang <qiangqing.zhang@nxp.com> | 2018-08-07 17:55:23 +0800 |
---|---|---|
committer | Joakim Zhang <qiangqing.zhang@nxp.com> | 2018-08-08 09:44:56 +0800 |
commit | facc02d13a3f806a1fa8db37b26994ec027171a1 (patch) | |
tree | e365185918b2203966c3527042d709b315605ca5 | |
parent | 02034154349f0ba54fe09cc3f2aec0bb6a14d77d (diff) |
MLK-19150 fastboot: enable fastboot in mx7dsabre
Modify mx7dsabresd.h file and defconfig file to enable fastboot in
mx7dsabre board
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
-rw-r--r-- | configs/mx7dsabresd_defconfig | 10 | ||||
-rw-r--r-- | configs/mx7dsabresd_epdc_defconfig | 10 | ||||
-rw-r--r-- | configs/mx7dsabresd_nonsec_defconfig | 10 | ||||
-rw-r--r-- | configs/mx7dsabresd_optee_defconfig | 10 | ||||
-rw-r--r-- | configs/mx7dsabresd_reva_defconfig | 10 | ||||
-rw-r--r-- | configs/mx7dsabresd_revb_defconfig | 10 | ||||
-rw-r--r-- | include/configs/mx7dsabresd.h | 22 |
7 files changed, 68 insertions, 14 deletions
diff --git a/configs/mx7dsabresd_defconfig b/configs/mx7dsabresd_defconfig index 5229cdce611..31c03b20670 100644 --- a/configs/mx7dsabresd_defconfig +++ b/configs/mx7dsabresd_defconfig @@ -75,3 +75,13 @@ CONFIG_USB_ETHER_ASIX=y CONFIG_VIDEO=y CONFIG_ERRNO_STR=y CONFIG_DM_ETH=y + +CONFIG_CMD_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FSL_FASTBOOT=y +CONFIG_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x83800000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 +CONFIG_EFI_PARTITION=y diff --git a/configs/mx7dsabresd_epdc_defconfig b/configs/mx7dsabresd_epdc_defconfig index 3efcb768b8e..b780d2a6cea 100644 --- a/configs/mx7dsabresd_epdc_defconfig +++ b/configs/mx7dsabresd_epdc_defconfig @@ -74,3 +74,13 @@ CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_VIDEO=y CONFIG_ERRNO_STR=y + +CONFIG_CMD_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FSL_FASTBOOT=y +CONFIG_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x83800000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 +CONFIG_EFI_PARTITION=y diff --git a/configs/mx7dsabresd_nonsec_defconfig b/configs/mx7dsabresd_nonsec_defconfig index 0febd129b3b..7a4190c27ac 100644 --- a/configs/mx7dsabresd_nonsec_defconfig +++ b/configs/mx7dsabresd_nonsec_defconfig @@ -74,3 +74,13 @@ CONFIG_USB_ETHER_ASIX=y CONFIG_VIDEO=y CONFIG_ERRNO_STR=y CONFIG_DM_ETH=y + +CONFIG_CMD_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FSL_FASTBOOT=y +CONFIG_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x83800000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 +CONFIG_EFI_PARTITION=y diff --git a/configs/mx7dsabresd_optee_defconfig b/configs/mx7dsabresd_optee_defconfig index caeb06945ae..05e314d5624 100644 --- a/configs/mx7dsabresd_optee_defconfig +++ b/configs/mx7dsabresd_optee_defconfig @@ -76,3 +76,13 @@ CONFIG_USB_ETHER_ASIX=y CONFIG_VIDEO=y CONFIG_ERRNO_STR=y CONFIG_DM_ETH=y + +CONFIG_CMD_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FSL_FASTBOOT=y +CONFIG_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x83800000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 +CONFIG_EFI_PARTITION=y diff --git a/configs/mx7dsabresd_reva_defconfig b/configs/mx7dsabresd_reva_defconfig index da0c2c323e3..8d6959cd035 100644 --- a/configs/mx7dsabresd_reva_defconfig +++ b/configs/mx7dsabresd_reva_defconfig @@ -75,3 +75,13 @@ CONFIG_USB_ETHER_ASIX=y CONFIG_VIDEO=y CONFIG_ERRNO_STR=y CONFIG_DM_ETH=y + +CONFIG_CMD_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FSL_FASTBOOT=y +CONFIG_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x83800000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 +CONFIG_EFI_PARTITION=y diff --git a/configs/mx7dsabresd_revb_defconfig b/configs/mx7dsabresd_revb_defconfig index 7ed6568a1e4..510bab15b57 100644 --- a/configs/mx7dsabresd_revb_defconfig +++ b/configs/mx7dsabresd_revb_defconfig @@ -75,3 +75,13 @@ CONFIG_USB_ETHER_ASIX=y CONFIG_VIDEO=y CONFIG_ERRNO_STR=y CONFIG_DM_ETH=y + +CONFIG_CMD_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FSL_FASTBOOT=y +CONFIG_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x83800000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 +CONFIG_EFI_PARTITION=y diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h index c612e98c0ea..0099e96d223 100644 --- a/include/configs/mx7dsabresd.h +++ b/include/configs/mx7dsabresd.h @@ -11,6 +11,7 @@ #define __MX7D_SABRESD_CONFIG_H #include "mx7_common.h" +#include "imx_env.h" #define CONFIG_DBG_MONITOR #define PHYS_SDRAM_SIZE SZ_1G @@ -89,23 +90,16 @@ #define MFG_NAND_PARTITION "" #endif +#define CONFIG_CMD_READ +#define CONFIG_SERIAL_TAG +#define CONFIG_FASTBOOT_USB_DEV 0 + #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 \ "initrd_addr=0x83800000\0" \ "initrd_high=0xffffffff\0" \ - "bootcmd_mfg=run mfgtool_args; " \ - "if test ${tee} = yes; then " \ - "bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; " \ - "else " \ - "bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; " \ - "fi;\0" + "emmc_dev=1\0"\ + "sd_dev=0\0" \ #define CONFIG_DFU_ENV_SETTINGS \ "dfu_alt_info=image raw 0 0x800000;"\ |