openwrt/target/linux
Shiji Yang 0f9b8aa3f5 ath79: rework Netgear nand devices image recipe
In Netgear u-boot GPL code, nand devices uses this formula to locate the
rootfs offset.

offset = (((128 + KERNEL_SIZE) / BLOCK_SIZE) + 1) * BLOCK_SIZE;

Howerver, WNDR4500 source code incorrectly define the nand block size to
64k. In some cases, it causes u-boot can't get the correct rootfs offset,
which result in boot failure. This patch workaround it by padding kernel
size to (128k * n - 128 - 1). The additional char '\0' is used to ensure
the (128 + KERNEL_SIZE) can't be divided by the BLOCK_SIZE.

Fixes: https://github.com/openwrt/openwrt/issues/13050
Fixes: 3c1512a25d ("ath79: optimize the firmware recipe for Netgear NAND devices")
Tested-by: Yousaf <yousaf465@gmail.com>
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-08-24 00:04:38 +02:00
..
airoha kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
apm821xx apm821xx: fix autoloading of kmod-hw-crypto4xx 2023-07-08 15:38:42 +02:00
archs38 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
armsr armsr: armv8: fix invalid symbol value for FSL_ENETC_QOS 2023-08-15 15:55:00 +02:00
at91 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
ath25 kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
ath79 ath79: rework Netgear nand devices image recipe 2023-08-24 00:04:38 +02:00
bcm27xx kernel: bump 6.1 to 6.1.45 2023-08-12 12:10:36 +02:00
bcm47xx kernel: bump 5.15 to 5.15.123 2023-07-30 18:02:47 +02:00
bcm53xx bcm53xx: add support for ASUS RT-AC3100 2023-08-19 11:03:11 +02:00
bcm63xx kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
bcm4908 kernel: bump 5.15 to 5.15.126 2023-08-13 13:03:43 +02:00
bmips kernel: bump 6.1 to 6.1.44 2023-08-09 20:39:20 -04:00
gemini gemini: Fix up kernel v6.1 config 2023-08-10 19:31:37 +02:00
generic ipq807x: add support for Netgear RAX120v2 2023-08-19 17:12:46 +02:00
imx kernel: backport NVMEM patches queued for the v6.5 2023-06-16 09:45:38 +02:00
ipq40xx ipq40xx: qca8k: add ageing setting support 2023-08-19 16:48:33 +02:00
ipq806x kernel: bump 6.1 to 6.1.44 2023-08-09 20:39:20 -04:00
kirkwood kirkwood: add support for Iomega Storcenter ix4-200d 2023-05-20 15:35:37 +02:00
lantiq kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
layerscape kernel: bump 5.15 to 5.15.124 2023-08-09 22:06:23 +02:00
malta kernel: remove CRYPTO_BLAKE2S from all >=5.15 2023-07-08 16:54:01 +02:00
mediatek mediatek: enable NWA50AX Pro eth LEDs 2023-08-22 13:37:27 +02:00
mpc85xx mpc85xx: 5.15: refresh kernel patches 2023-06-10 06:56:19 +02:00
mvebu mvebu: mcbin-singleshot: enable hearbeat LED by default 2023-08-10 23:09:37 +02:00
mxs mxs: add testing kernel 6.1 2023-07-01 12:54:30 +02:00
octeon kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
octeontx kernel: bump 5.15 to 5.15.123 2023-07-30 18:02:47 +02:00
omap treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
oxnas kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
pistachio treewide: cleanup kernel symbol references 2023-05-12 13:02:44 +02:00
qoriq kernel: fix handling of CONFIG_DYNAMIC_DEBUG 2023-05-03 10:26:17 -07:00
qualcommax ipq807x: add support for Netgear RAX120v2 2023-08-19 17:12:46 +02:00
ramips ramips: add support for I-O DATA WN-DEAX1800GR 2023-08-20 01:26:15 +02:00
realtek kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
rockchip rockchip: enable wifi support for NanoPC T4 2023-07-26 12:15:20 +02:00
sifiveu kernel: bump 5.15 to 5.15.117 2023-06-16 19:44:28 +02:00
sunxi sunxi: bananapro: add firmware files for Ampak 6181 2023-08-12 14:00:18 +02:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
x86 x86: Add virtualization time sync support 2023-08-14 20:13:12 +02:00
zynq generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:41:12 +02:00