Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3971 - Zyxel nbg-419v2 bootloop #8964

Closed
openwrt-bot opened this issue Aug 9, 2021 · 2 comments
Closed

FS#3971 - Zyxel nbg-419v2 bootloop #8964

openwrt-bot opened this issue Aug 9, 2021 · 2 comments
Labels
flyspray release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release

Comments

@openwrt-bot
Copy link

diego0815:

after upgrading my zyxel nbg-419v2 to 2021.02RC4 i noticed a bootloop

when connecting the serial cable it turned out to be a kernel unpacking issue:

raspi_read: from:50000 len:40
. Image Name: MIPS OpenWrt Linux-5.4.137
Created: 2021-07-31 17:21:01 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1496161 Bytes = 1.4 MB
Load Address: 80000000
Entry Point: 80000000
raspi_read: from:50040 len:16d461
....................... Verifying Checksum ... OK
Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover

U-Boot 1.1.3 (Jun 9 2012 - 07:23:11)

Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fac000


Software System Reset Occurred


spi_wait_nsec: 3c
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D

once i managed flashing 19.07.08 via tftp it works again as expected.

unfortunately [[https://openwrt.org/toh/zyxel/nbg-419n_v2#oem_installation_using_the_tftp_method|the wiki]] was more misleading than helping, especally the magic number is wrong, it seems the right one is already in the normal images, so changing makes things worse.

@openwrt-bot
Copy link
Author

walterav1984:

Can you post the mtd partition sizes/layout, newer openwrt releases are to big for certain partitions of the layout altering them may fix it on some routers. See first 2 comments in this wifi bug but related topic:
https://bugs.openwrt.org/index.php?do=details&task_id=3906&string=zyxel

Sometimes loading from serial/tftp may bypass mtd restrictions.

Eventhough partition sizes may not be the problem it can be the bootloader itself which cannot load bigger files. This has also occurred on some routers but I can't find a recent example.

@openwrt-bot
Copy link
Author

diego0815:

Oh really sorry, I completely forgot about this bug, now took my router out again after a long time and checked the mtd sizes:

root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00001000 "u-boot"
mtd1: 00010000 00001000 "u-boot-env"
mtd2: 00010000 00001000 "factory"
mtd3: 007b0000 00001000 "firmware"
mtd4: 0014985f 00001000 "kernel"
mtd5: 006667a1 00001000 "rootfs"
mtd6: 00448000 00001000 "rootfs_data"

In the meantime I retired the router and replaced it with an nbg6617, so my urge to get this fixed has dropped slightly...

@aparcar aparcar added the release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release label Feb 22, 2022
@jow- jow- closed this as completed in fd72e59 Jun 20, 2022
jow- pushed a commit that referenced this issue Jun 20, 2022
This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of other devices from 'ramips' target.

Fixes: #9842
Fixes: #8964

Reported-by: Juergen Hench <jurgen.hench@gmail.com>
Tested-by: Juergen Hench <jurgen.hench@gmail.com>
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(cherry picked from commit fd72e59)
jow- pushed a commit that referenced this issue Jun 20, 2022
This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of other devices from 'ramips' target.

Fixes: #9842
Fixes: #8964

Reported-by: Juergen Hench <jurgen.hench@gmail.com>
Tested-by: Juergen Hench <jurgen.hench@gmail.com>
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(cherry picked from commit fd72e59)
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this issue Jun 21, 2022
This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of other devices from 'ramips' target.

Fixes: openwrt#9842
Fixes: openwrt#8964

Reported-by: Juergen Hench <jurgen.hench@gmail.com>
Tested-by: Juergen Hench <jurgen.hench@gmail.com>
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
renatoccosta pushed a commit to renatoccosta/openwrt that referenced this issue Jun 21, 2022
This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of other devices from 'ramips' target.

Fixes: openwrt#9842
Fixes: openwrt#8964

Reported-by: Juergen Hench <jurgen.hench@gmail.com>
Tested-by: Juergen Hench <jurgen.hench@gmail.com>
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(cherry picked from commit fd72e59)
devendranaga pushed a commit to devendra-naga-labs/bsp_build that referenced this issue Sep 8, 2022
This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of other devices from 'ramips' target.

Fixes: openwrt#9842
Fixes: openwrt#8964

Reported-by: Juergen Hench <jurgen.hench@gmail.com>
Tested-by: Juergen Hench <jurgen.hench@gmail.com>
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
ArtelMike pushed a commit to ArtelMike/openwrt-1 that referenced this issue Jan 31, 2023
This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of other devices from 'ramips' target.

Fixes: openwrt#9842
Fixes: openwrt#8964

Reported-by: Juergen Hench <jurgen.hench@gmail.com>
Tested-by: Juergen Hench <jurgen.hench@gmail.com>
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(cherry picked from commit 5642e20)
ohabu referenced this issue in ohabu/openwrt May 12, 2023
This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of other devices from 'ramips' target.

Fixes: #9842
Fixes: #8964

Reported-by: Juergen Hench <jurgen.hench@gmail.com>
Tested-by: Juergen Hench <jurgen.hench@gmail.com>
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(cherry picked from commit fd72e59)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release
Projects
None yet
Development

No branches or pull requests

2 participants