openwrt/target/linux/ipq40xx
David Bauer de59fc4540 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 8f9546f7b0a14f3afa813e39ed45c968ece24464)
2024-06-08 02:09:15 +02:00
..
base-files ipq40xx: use NVMEM-on-UBI for ASUS RT-AC58U 2024-06-05 13:46:00 +01:00
chromium ipq40xx: cut ath10k board file for mikrotik subtarget 2022-05-27 14:15:09 +02:00
files-6.6/arch/arm/boot/dts/qcom ipq40xx: use NVMEM-on-UBI for ASUS RT-AC58U 2024-06-05 13:46:00 +01: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 02:09:15 +02:00
mikrotik ipq40xx: cut ath10k board file for mikrotik subtarget 2022-05-27 14:15:09 +02:00
patches-6.6 kernel: bump 6.6 to 6.6.31 2024-05-30 00:04:12 +02:00
config-6.6 ipq40xx: use NVMEM-on-UBI for ASUS RT-AC58U 2024-06-05 13:46:00 +01:00
Makefile ipq40xx: switch default to 6.6 2024-04-26 12:30:01 +02:00