ZyXEL NBG6817 (Armor Z2) recover disk partition

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

Patrition is ok. I tried with default patrittion and it doesn't work too

GUYS. I DID IT!!!

I make small "patch" to preinit.sh at rootfs. I build my own image and untar sysupgrade unsquash it and change this strings in squashfs-root/lib/functions/preinit.sh


And after its work!!! It saves changes and i can now normal work with it. Big thanks for your time and help

Well. Small instruction for ZyXEL NBG6817 (Armor Z2)

  1. connect serial (remember what tx on device should be connected to rx and rx to tx)
  2. get method to unlock bootloader https://forum.archive.openwrt.org/viewtopic.php?id=47957&p=1
  3. make partitions like that ZyXEL NBG6817 (Armor Z2) recover disk partition - #8 by slh with fdisk or parted. I changed name for each part
  4. Flash normal system threw tftp
  5. Load initramfs again
  6. Download this sysupgrade https://transfer.sh/Xiuvlg/openwrt-sysupgrade-custom1.bin, untar it and flash root to /dev/mmcblk0p5 then reboot.
    It works!

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