u-boot/arch/arm/mach-mvebu
Josua Mayer a5539f976b arm: mvebu: allow additional 4096 offset for bootable mmc image
Disarm the error message forcing u-boot/spl image to be located at
sector 0 on eMMC data-partition and microSD.
Offset 0 makes sense on eMMC boot partitions only, data partition must
use 4096 to avoid conflicting with MBR.

Valid offsets when booting from microSD, reported by boot-rom v1.73:

BootROM: Bad header at offset 00000200
BootROM: Bad header at offset 00004400
BootROM: Bad header at offset 00200000
BootROM: Bad header at offset 00400000
BootROM: Bad header at offset 00600000
BootROM: Bad header at offset 00800000
BootROM: Bad header at offset 00A00000
BootROM: Bad header at offset 00C00000
BootROM: Bad header at offset 00E00000
BootROM: Bad header at offset 01000000
BootROM: Bad header at offset 01200000
BootROM: Bad header at offset 01400000
BootROM: Bad header at offset 01600000
BootROM: Bad header at offset 01800000
BootROM: Bad header at offset 01A00000
BootROM: Bad header at offset 01C00000
BootROM: Bad header at offset 01E00000
BootROM: Bad header at offset 02000000
BootROM: Bad header at offset 02200000
BootROM: Bad header at offset 02400000
BootROM: Bad header at offset 02600000
BootROM: Bad header at offset 02800000
BootROM: Bad header at offset 02A00000
BootROM: Bad header at offset 02C00000
BootROM: Bad header at offset 02E00000

Valid offsets when booting from eMMC:

BootROM: Bad header at offset 00000000
BootROM: Bad header at offset 00200000
Switching BootPartitions.
BootROM: Bad header at offset 00000000
BootROM: Bad header at offset 00200000

Fixes: 2226ca1734 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header")

Signed-off-by: Josua Mayer <josua@solid-run.com>
Reviewed-by: Stefan Roese <sr@denx.de>
2023-10-26 14:49:36 +02:00
..
alleycat5 arm: mvebu: ac5: Define mvebu_get_nand_clock() 2023-07-13 10:26:27 +02:00
armada8k global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_* 2022-12-05 16:06:07 -05:00
armada3700 treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
include/mach arm: mvebu: Define all options for AXP BOOT_FROM_* macros 2023-03-30 07:05:20 +02:00
serdes arm: mvebu: Remove A39x relicts 2023-03-01 06:39:18 +01:00
.gitignore mvebu: select boot device at SoC level 2018-08-06 14:07:23 +02:00
arm64-common.c common: return type board_get_usable_ram_top 2023-08-15 18:21:17 +02:00
cpu.c drivers: fix debug string with fdt_addr_t input 2023-05-06 17:28:18 +08:00
dram.c arm: mvebu: Avoid reading MVEBU_REG_PCIE_DEVID register too many times 2022-07-21 10:14:04 +02:00
efuse.c arm: mvebu: Add support for specifying VHV_Enable GPIO 2022-10-06 10:15:35 +02:00
gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig arm: mvebu: turris_mox: Extend to support RIPE Atlas Probe 2023-10-26 14:49:36 +02:00
kwbimage.cfg.in arm: mvebu: spl: Allow to build SATA kwbimage for 4K Native disks 2023-04-13 11:34:47 +02:00
lowlevel.S global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
lowlevel_spl.S mvebu: Use CONFIG_SPL_STACK + 4 directly for bootparam location 2022-06-06 12:09:12 -04:00
Makefile arm: mvebu: spl: Allow to build SATA kwbimage for 4K Native disks 2023-04-13 11:34:47 +02:00
mbus.c arm: mvebu: Mark constant data with const keyword 2022-09-13 06:38:08 +02:00
spl.c arm: mvebu: allow additional 4096 offset for bootable mmc image 2023-10-26 14:49:36 +02:00
system-controller.c drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00