From: Stefan Roese Date: Thu, 16 Jan 2020 15:27:43 +0100 Subject: [PATCH v3 1/3] spl: mmc: support uboot image offset on main partition In-Reply-To: <64d8ffc3379ce93437113d8f6df513fa6d46e8c3.1579072090.git.baruch@tkos.co.il> References: <64d8ffc3379ce93437113d8f6df513fa6d46e8c3.1579072090.git.baruch@tkos.co.il> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 15.01.20 08:08, Baruch Siach wrote: > On Armada 38x platforms the ROM code loads SPL from offset 0 of eMMC > hardware boot partitions. When there are no boot partitions (i.e. SD > card) the ROM skips the first sector that usually contains the (logical) > partition table. Since the generated .kwb image contains the main U-Boot > image in a fixed location (0x140 sectors by default), we end up with the > main U-Boot image in offset of 1 sector. The current workaround is to > manually set CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x141 to > compensate for that. > > This patch uses the run-time detected boot partition to determine the > right offset of the main U-Boot partition. The generated .kwb image is > now compatible with both eMMC boot partition, and SD card main data > partition. > > Signed-off-by: Baruch Siach Applied to u-boot-marvell/master Thanks, Stefan