From mboxrd@z Thu Jan 1 00:00:00 1970 From: Axel Haslam Date: Mon, 13 Feb 2017 11:44:57 +0100 Subject: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41 In-Reply-To: <20170213104457.28125-1-ahaslam@baylibre.com> References: <20170213104457.28125-1-ahaslam@baylibre.com> Message-ID: <20170213104457.28125-3-ahaslam@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The uboot binary on the AIS file starts at offset 0x8000. This would be sector 0x40 on a mmc card with 512 bytes per sector: 0x8000/0x200 = 0x40. But because we usually skip the first mmc sector to preserve the partition table, the ais image is written starting on sector 0x1, and the u-boot binary ends up at sector 0x41. Set the address of the u-boot binary to 0x41 so that spl can correctly jump to it. Signed-off-by: Axel Haslam --- configs/omapl138_lcdk_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index d20af19..a249ebd 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -12,7 +12,7 @@ CONFIG_VERSION_VARIABLE=y # CONFIG_DISPLAY_BOARDINFO is not set CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL=y -CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xb5 +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x41 CONFIG_HUSH_PARSER=y CONFIG_SYS_PROMPT="U-Boot > " CONFIG_CMD_BOOTZ=y -- 2.9.3