forked from mirror/openwrt
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: |
||
|---|---|---|
| .. | ||
| base-files/etc/hotplug.d/ieee80211 | ||
| dts | ||
| files | ||
| generic | ||
| image | ||
| mikrotik | ||
| nand | ||
| patches-5.15 | ||
| tiny | ||
| config-5.15 | ||
| Makefile | ||
| modules.mk | ||