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
..
2024-06-05 09:34:06 +02:00
2024-03-29 09:58:45 +01:00
2024-06-03 17:57:54 +02:00
2024-04-30 20:18:15 +02:00
2024-05-29 17:56:28 +02:00
2024-05-19 22:06:11 +02:00
2024-06-06 20:08:13 +01:00
2024-06-06 22:04:23 +02:00
2024-05-04 14:14:16 +08:00
2024-06-02 22:43:46 +02:00
2024-04-25 14:33:22 +02:00
2024-04-16 23:11:25 +02:00
2024-04-18 00:30:03 +03:00
2024-05-09 10:43:37 +02:00
2024-04-30 11:02:48 +02:00
2024-06-02 17:56:28 +02:00
2024-05-31 11:25:48 +02:00
2024-05-01 10:26:41 +02:00