[linux-sunxi] [PATCH] sunxi: Allow booting from 128KB SD/eMMC offset

2018-12-15 Thread Andre Przywara
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

[linux-sunxi] Allwinner BootROM loading eGON from 128KB

2018-12-15 Thread André Przywara
Hi, I am not sure this is widely known, at least I couldn't find anything about it: While looking at the eMMC content of the Eachlink H6 Mini TV box, I was surprised to find an identical boot0 copy at offset 128KB of the eMMC device, in addition to the usual version at 8K. Some experiments later