[FS#3890] Kernel is wrongly encapsulated
OpenWrt Bugs
openwrt-bugs at lists.openwrt.org
Sun Jun 20 07:31:52 PDT 2021
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - anonymous (Mijzelf)
Attached to Project - OpenWrt/LEDE Project
Summary - Kernel is wrongly encapsulated
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - High
Priority - Very Low
Reported Version - openwrt-21.02
Due in Version - Undecided
Due Date - Undecided
Details - Device ZyXEL P2812HNU-F1
Flashing the sysupgrade of 21.02rc3 bricks the router. Apparently there is a checksum error in the flashed kernel:
NAND read: device 0 offset 0x60000, size 0x200000
2097152 bytes read: OK
## Booting kernel from Legacy Image at 80800000 ...
Image Name: MIPS OpenWrt Linux-5.4.124
Created: 2021-06-13 22:02:19 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2465658 Bytes = 2.4 MiB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Further, don't know if it is related, booting the initramfs-kernel.bin doesn't work either:
P-2812HNU-F1 # bootm $fileaddr
## Booting kernel from Legacy Image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.4.124
Created: 2021-06-13 22:02:19 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 5608365 Bytes = 5.3 MiB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must RESET b
When tftpbooting the kernel found in the imagebuilder,
openwrt-imagebuilder-21.02.0-rc3-lantiq-xrx200.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/zyxel_p-2812hnu-f1-kernel.bin
the kernel boots fine (and uses the rootfs which is currently flashed in ubi), and has the same size and timestamp as the one from sysupgrade:
bootm $fileaddr
## Booting kernel from Legacy Image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.4.124
Created: 2021-06-13 22:02:19 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2465658 Bytes = 2.4 MiB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
So my guess is something went wrong in assembling the sysupgrade image, destroying the CRC.
I also tried the initramfs-kernel from the bt-homehub and the initramfs-kernel of snapshot for the p-2812hnu-f1, which both gave the same lzma decompress error.
More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3890
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the openwrt-bugs
mailing list