diff options
| author | Shiji Yang <yangshiji66@qq.com> | 2023-07-09 22:10:53 +0800 |
|---|---|---|
| committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-08-24 00:04:38 +0200 |
| commit | 0f9b8aa3f592b22e3f1d5f7d049e92653ba0f884 (patch) | |
| tree | 5f76ed637269c143cdc3cd311e2e2fce4db7804b /package/kernel/bpf-headers/src | |
| parent | f3eb998e7e646e91cc42b019dce4e347a505f3b6 (diff) | |
| download | upstream-0f9b8aa3f592b22e3f1d5f7d049e92653ba0f884.tar.gz upstream-0f9b8aa3f592b22e3f1d5f7d049e92653ba0f884.tar.bz2 upstream-0f9b8aa3f592b22e3f1d5f7d049e92653ba0f884.zip | |
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: 3c1512a25d92 ("ath79: optimize the firmware recipe for Netgear NAND devices")
Tested-by: Yousaf <yousaf465@gmail.com>
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'package/kernel/bpf-headers/src')
0 files changed, 0 insertions, 0 deletions
