imx: imx8qxp_mek: fix CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
authorPeng Fan <peng.fan@nxp.com>
Wed, 21 Aug 2019 08:28:15 +0000 (08:28 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:58 +0000 (16:35 +0200)
The first stage of flash.bin is larger than 584 * 512, so when
writting u-boot.itb, some data will be override. Enlarge the
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to fix boot.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/freescale/imx8qxp_mek/README
include/configs/imx8qxp_mek.h

index f32290e3a2bac5a1ab1af01d1553eb9a3c1e02a0..9f2e2f7b126dd4a85b7a9822b5d6a8ecdad9127c 100644 (file)
@@ -43,7 +43,7 @@ $ export ATF_LOAD_ADDR=0x80000000
 $ export BL33_LOAD_ADDR=0x80020000
 $ make imx8qxp_mek_defconfig
 $ make flash.bin
-$ dd if=u-boot.itb of=flash.bin bs=512 seek=528
+$ dd if=u-boot.itb of=flash.bin bs=512 seek=1984
 
 Flash the binary into the SD card
 =================================
index c357c7bbe6a60e5443031304b984fe7b329a9f16..872805cae613118b6e3044cdd96dfdec0360d235 100644 (file)
@@ -13,7 +13,7 @@
 #define CONFIG_SPL_MAX_SIZE                            (124 * 1024)
 #define CONFIG_SYS_MONITOR_LEN                         (1024 * 1024)
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
-#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR                0x250
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR                0x800
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION             0
 
 #define CONFIG_SPL_LDSCRIPT            "arch/arm/cpu/armv8/u-boot-spl.lds"