Sercomm NA502 - MT7621 - LZMA ERROR 1

Hi. Sercomm NA502 https://openwrt.org/toh/sercomm/na502

I've noticed that builds newer than 23.03.1 on the NA502 fail with the below error:

3: System Boot system code via Flash.
## Booting image at c1140000 ...
   Image Name:   MIPS OpenWrt Linux-5.15.137
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2973829 Bytes =  2.8 MB
   Load Address: 80001000
   Entry Point:  80001000
..............................................   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover

Is there a method to fix this? I've seen other posts, but they seem to be for other devices. I don't think we can patch u-boot on this device.

I just tested with latest snapshot, error still occurs.

Full uboot log:

https://pastebin.mozilla.org/Aj3o330a

Looks like a $(Device/uimage-lzma-loader) in the image recipe would help.

Would you mind testing if I provide binaries?

1 Like

Oh, could be due to kernel size. I don't use them in production any more but if @xabolcs build doesn't work, I can have a look in about two weeks.

2 Likes

sure thing!

Here is a build for openwrt-23.05, to be sure it will fix your problem once it got backported from the main brach:

Please provide a full uboot log, again!


And here is the SNAPSHOT version:

Please test this too!

3 Likes

@xabolcs both are working fine!

Thank You!!

snapshot uboot log:
https://pastebin.mozilla.org/HFR2VZvp
23.05 uboot log:
https://pastebin.mozilla.org/ojj6bS1t

2 Likes

:thinking:

The kernel in my builds are just 2.2 MB instead of 2.8 MB so they don't prove they would fix the LZMA ERROR 1 problem.

Let me try again!


Here we go: openwrt-sercomm-na502-lzma-loader-try2.tar.gz

It has now 2.8 MB kernel! :muscle:

$ tar -tvf bin/targets/ramips/mt7621/openwrt-ramips-mt7621-sercomm_na502-squashfs-sysupgrade.bin 
drwxr-xr-x 0/0               0 2023-11-09 09:26 sysupgrade-sercomm_na502/
-rw-r--r-- 0/0              20 2023-11-09 09:26 sysupgrade-sercomm_na502/CONTROL
-rw-r--r-- 0/0         2979553 2023-11-09 09:26 sysupgrade-sercomm_na502/kernel
-rw-r--r-- 0/0         3883008 2023-11-09 09:26 sysupgrade-sercomm_na502/root

Please test this too, @gtxent!

confirmed working!
https://pastebin.mozilla.org/sQorrQOX

1 Like

Thanks for testing!

What did you mean by "23.03.1"?

apologies, i meant newer than 22.03 do not work

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.