From: Maxime Ripard Date: Mon, 17 Dec 2018 10:07:49 +0100 Subject: [U-Boot] [PATCH] sunxi: Allow booting from 128KB SD/eMMC offset In-Reply-To: <20181216020458.16701-1-andre.przywara@arm.com> References: <20181216020458.16701-1-andre.przywara@arm.com> Message-ID: <20181217090749.3q3yu32scfucn4yz@flea> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Dec 16, 2018 at 02:04:58AM +0000, Andre Przywara wrote: > On modern Allwinner SoCs (tested: H2+, A64, H5, H6) the BootROM can > actually load the SPL also from sector 256 (128KB) of an SD card or eMMC > chip. For more details, see [1]. > In this case the boot source indicator (written at offset 0x28 of SRAM A1) > has bit 4 set, so it's 0x10 for SD card and 0x12 for eMMC. > > Add those new values to the existing boot source check to allow booting > the SPL from those "high" disk offsets as well. For this to work, the > value of CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR needs to be adjusted, > for instance to 0x140 (right after the high SPL). Doing this dynamically > sounds desirable, but looks nasty to implement. > > [1] https://groups.google.com/forum/#!topic/linux-sunxi/MaiijyaAFjk > > Signed-off-by: Andre Przywara Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: not available URL: