1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
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
..
airoha airoha: drop kernel 6.1 support 2024-06-05 09:34:06 +02:00
apm821xx
archs38
armsr armsr: Remove kernel 6.1 configuration 2024-05-30 22:44:57 +02:00
at91
ath79 mikrotik: switch to Yafut for building MikroTik NOR images 2024-06-05 17:03:24 +02:00
bcm27xx kernel: Split kmod-video-dma into two kmods 2024-06-02 17:38:23 +02:00
bcm47xx bcm47xx: 6.6: refresh patches 2024-06-03 17:57:54 +02:00
bcm53xx
bcm4908
bmips
d1 d1: drop 6.1 support 2024-05-29 17:56:28 +02:00
gemini gemini: In-flight ethernet patches 2024-05-19 22:06:11 +02:00
generic generic: 6.6: refresh patches 2024-06-06 20:08:13 +01:00
imx imx: 6.6: update kernel config 2024-06-06 22:04:23 +02:00
ipq40xx ipq40xx: fix broken image generation for EX6150v2 2024-06-08 02:09:15 +02:00
ipq806x ipq806x: mr42/mr52: fix PCIe ports 2024-05-16 19:28:16 +02:00
ixp4xx ixp4xx: Add back support for D-Link DSM G600 A 2024-05-25 09:17:19 +02:00
kirkwood kirkwood: Add Marvell RTC to two devices 2024-06-07 21:48:42 +02:00
lantiq lantiq: disable building of ZyXEL P-2812HNU F1 2024-05-28 08:06:10 +02:00
layerscape layerscape: add 6.6 testing kernel 2024-05-25 20:18:23 +02:00
loongarch64
malta malta: Remove kernel 6.1 configuration 2024-05-28 22:10:53 +02:00
mediatek mediatek: fix wps button for nokia ea0326gmp 2024-06-07 14:19:39 +02:00
mpc85xx mpc85xx: refresh patches 2024-06-02 22:43:46 +02:00
mvebu mvebu: disable polling delay for passive trip point for puzzle thermal 2024-06-01 16:40:10 +01:00
mxs
octeon
octeontx
omap
pistachio
qoriq
qualcommax qualcommax: use ath11k_patch_mac for ZBT-Z800AX 2024-06-03 13:15:48 +02:00
ramips ramips: add support for Buffalo WSR-2533DHPL2 2024-06-05 21:14:16 +02:00
realtek
rockchip
sifiveu
starfive
sunxi
tegra tegra: Activate CONFIG_SND_DRIVERS 2024-06-02 17:56:28 +02:00
uml
x86 x86: Activate CONFIG_FB_DEVICE 2024-05-31 11:25:48 +02:00
zynq
Makefile