1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/ath79
Shiji Yang 7eda621404 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>
(cherry picked from commit 0f9b8aa3f5)
2023-08-24 20:45:01 +02:00
..
base-files/etc/hotplug.d/ieee80211 ath79: migrate Archer C5 5GHz radio device paths 2022-03-31 18:07:29 +02:00
dts ath79: DTS improvement for buzzer on RB951G-2HnD 2023-07-12 20:46:53 +02:00
files kernel: remove obsolete kernel version switches 2023-05-20 15:19:14 +02:00
generic ath79: move ubnt-xm 64M RAM boards back to generic 2023-08-11 12:53:34 +02:00
image ath79: rework Netgear nand devices image recipe 2023-08-24 20:45:01 +02:00
mikrotik ath79: add support for MikroTik RB951G-2HnD 2023-07-12 20:45:43 +02:00
nand ath79: add Cisco Meraki MR18 2023-05-14 00:08:35 +02:00
patches-5.15 kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
tiny ath79: move ubnt-xm 64M RAM boards back to generic 2023-08-11 12:53:34 +02:00
config-5.15 kernel: mtd: backport SafeLoader parser 2022-10-19 07:07:14 +02:00
Makefile ath79: switch to 5.15 as default kernel 2022-09-24 13:04:24 +02:00
modules.mk