mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 06:48:43 +04:00
askey_sbe1v1k currently sets KERNEL_LOADADDR to 0x42080000, which is not 2MB-aligned. This trips the arm64 boot code's alignment check and prints the following warning on every boot: [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader! 0x42080000 is a 2MB-aligned base plus the legacy TEXT_OFFSET of 0x80000, which arm64 kernels used before v5.8. Since v5.8, TEXT_OFFSET is fixed at 0, so the kernel now expects the load address itself to sit on a 2MB boundary. This target runs on much newer kernels, so the old offset is stale and only serves to trigger the FW_BUG warning. Instead of manually shifting the address, drop the device-specific KERNEL_LOADADDR override entirely. This allows the image to fall back to the target's default load address (0x41000000), which is properly 2MB-aligned and cleanly resolves the alignment warning. Verified by both TFTP-booting the .itb and flashing the generated sysupgrade image to a physical bare-metal device. The device boots cleanly, operates stably, and the misalignment warning no longer appears. Signed-off-by: Jackie Han <jackie.han@gmail.com> Link: https://github.com/openwrt/openwrt/pull/25283 Signed-off-by: Robert Marko <robimarko@gmail.com>