openwrt/target/linux/ipq40xx
David Bauer d0620706f0 ipq40xx: fix broken image generation for EX6150v2
All NETGEAR EX6150v2 validate the rootfs for which OpenWrt places a
fakeheader at the position, where the bootloader expects it.

Some EX6150v2 bootloaders do however make a broken assumption about
where the rootfs starts. This is due to them calculating the rootfs
start not based upon the kernel-length but the string-offset of the
FIT-image.

We have to be compatible with both this broken as well as the valid
calculation. So we do relocate the FDT string section to a
block-boundary and enlarge the FIT image to end at this boundary +
BLOCKSIZE / 2. This way, both the broken as well as correct calculations
do expect the rootfs-header at the same position.

It is worth noting, that this is a rare edge-case in which only happens
if the image-length as well as the start of the string-section are not
placed in the same erase-block. This is an edge-case which happens very
rarely (thus it was not spotted prior).

Affected:
 - U-Boot 2012.07 (Jun 16 2016 - 11:59:37)

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit de59fc4540)
2024-06-08 17:30:58 +02:00
..
base-files ipq40xx: convert Engenius EAP1300 to DSA 2024-05-12 18:59:28 +02:00
chromium ipq40xx: cut ath10k board file for mikrotik subtarget 2022-05-27 14:15:09 +02:00
files ipq40xx: Properly set MAC addresses for the EAP1300 2024-05-12 18:59:28 +02:00
generic ipq40xx: cut ath10k board file for mikrotik subtarget 2022-05-27 14:15:09 +02:00
image ipq40xx: fix broken image generation for EX6150v2 2024-06-08 17:30:58 +02:00
mikrotik ipq40xx: cut ath10k board file for mikrotik subtarget 2022-05-27 14:15:09 +02:00
patches-5.15 generic: 5.15: backport upstream Aquantia PHY firmware loader patches 2024-02-13 05:41:32 +01:00
config-5.15 ipq40xx: Enable NVMEM_U_BOOT_ENV config 2024-05-12 18:59:28 +02:00
Makefile treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00