ZyXEL NBG6817 (Armor Z2) recover disk partition

OpenWrt support for Zyxel PMG5617GA, first GPON support !? - #8 by bmork, unless it's the part you wiped.

ATGU should drop you into u-boot.


Now it cant boot it

I upload initramfs to router and then run it with command bootm with address.
I use address from output of tftpboot

Last step guys. Pls help

@frollic @slh

I wrote patrition and


It dont boot

How to write this things from sysupgrade? I wrote with dd if=file.bin of=target

P.S i did it. I wrote it to wrong part

P.P.S i will write a guid what to do in this situations

Then post the reason to the failed boot.

1 Like

Boot the initramfs then download the sysupgrade image and run sysupgrade. Often the sysupgrade script will take care of formatting the MMC flash for you and writing OpenWrt kernel and rootfs to the correct places. Poking around in the flash directly should be a last resort.

1 Like



I load openwrt but i cant save any config or file. Because rom load without other files. What i need to do? I tried to do overlayfs but it raise an error
@slh

Scp or wget the image @slh posted, and do the sysupgrade.

Did you already, were there any errors?

Which image? I dont understand

Then perhaps you should tell us, instead if winging it, and risking breaking stuff even further.

What part did you understand?

I need download sysupgrade. Untar it and write root it to rootfs patrition. But i dont understand which @slh image i need to get. I tried a lot sysupgrade images and it dosent work

You shouldn't unpack, nor should you write it, the sysupgrade command will do it for you.

Sysupgrade image link is at https://openwrt.org/toh/hwdata/zyxel/zyxel_nbg6817. Use the 22.02 image.


It killed my boot)

P.S
I tried flash threw tftp new firmware but it raise error again)

No idea what you're showing us, but the rootfs was written to mmcblk0p8, not 5.

Not sure how the boot works on your device, but what does printenv show in uboot?


Have a look at tftp push-button recovery - and I do notice quite considerable differences in the partitioning, which might -or might not- be a problem.

It break my boot again


It work only then i manually write rootfs part. In other ways it breaks. Only rootfs. Not kernel