Problem with flashing NSA325v2 no USB

Good day,

It is Christmas time so I decided to spend some time to update my NSA325v2 firmware. Now I use stock firmware and oryginal u-boot. I try to flash stock firmware with new u-boot and openwrt firmware as mentioned in Wiki instruction but I cannot access to usb. All 3 ports are inactive no matter what kind of stick I use and if it is powered or not.
Now I have an idea to flash u-boot from this : https://forum.doozan.com/read.php?3,135222
By terminal (without interrupting boot proces and entering to boatloader). And then mayby I can load another u-boot from https://openwrt.org/toh/zyxel/nsa325 when USB will be active on that u-boot.

I’d like to know if it is a good bypass?

use the one from Doozan, it usually have nice features added.

Yes but why one u-boot I can flash from terminal (according to instruction on doozan forum) and another one must be flash from boatloader? Mayby I can load u-boot from https://archive.openwrt.org/releases/18.06.0/targets/kirkwood/generic/u-boot-nsa325/ direct from terminal?

you should be able to follow the doozan guide for any version of uboot.

the tools for flashing from OS, are provided by Doozan, not Openwrt, and I can imagine the openwrt instructions are pretty old, perhaps even older than the Doozan flash guide.

Unfortunetely I’m unable to flash u-boot from terminal on oryginal firmware
When typing


flash_erase /dev/mtd0 0 4

I received

sh: flash_erase: Permission denied

And also I cannot do it on boatloader mode due to lack of usb support by old stock u-boot I wonder if it is any other way to flash uboot

ls -l flash_erase

and ./flash_erase

perhaps even chmod 755 flash_erase, if the command above fails.

Ok thank you it helps (permision for flash_erase was a problem). Now I loaded uboot from
doozan. Can I use it with openwrt or I rather should use old u-boot 18.x.x release as mentioned in instruction? Do you know what variable should by modified to booting from NAND memory? Doozan u-boot is configured to run from USB (for debian). I rather would like to try openwrt first.

You should be able to use the Doozan uboot, and set the variables as described in the Openwrt wiki...
Doozan usually have netcat built-in into uboot, it's pretty neat for serial less uboot access, but it needs to be configured 1st.

setenv mtdparts etc...

Thank you finally I installed u-boot as described on OpenWrt wiki. Then according to instruction OpenWrt firmware (bin file). Installation went smooth and everything was good. However after restart during loading kernel it gives an error

If you know how to fix it please let me know. Thank you