Installing OpenWrt on ZyXEL NBG7815 (Armor G5)

Hello everyone,

I bought the powerful ZyXEL Armour G5 AX6000 NBG7815 router on sale here in Germany for 100 Euros and because it is compatible with OpenWrt. So far so good...
I tried to install OpenWrt and failed at Variant a) and Variant b). I followed the Installation Instructions here: https://openwrt.org/inbox/toh/zyxel/nbg7815_armor_g5

Variant b)
Unfortunately, I get stuck at a certain point because I don't know exactly what I have to do:

> b) login as root, go to /tmp/ApplicationData and get latest nbg7815-squashfs-sysupgrade version from site https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/ using wget

--> I was able to guess the command "cd" and Telnet tells me that I am in the folder /tmp/ApplicationData, but wget shows the error message "not an http or ftp url: *URL-of-zyxel_nbg7815-squashfs-sysupgrade.bin file".
The same error message also appears with all other winget commands. I have also tried it without https and only with http, but without success.
Is this probably due to the Internet connection? Unfortunately, the OpenWrt flash tutorial does not say how to connect the router to the Internet for variant b) or what exactly needs to be configured/connected for this.

Variant a)
Furthermore, variant a) of the installation instructions via WinSCP unfortunately does not work either, because I cannot set up SSH access as described in the instructions. From this certain point onwards, I did not get any further:

> SSH access:
> "Comment lines in preboot file like below:"

The upper part is without "#", so I did the same for all lines in the upper area. Then comes the lower section, which is not in my file - the question is, do I have to manually write everything that is in the lower section into the file? And how do I save the file and get out of it?

Many thanks in advance for your support.

post your /etc/init.d/preboot file.

I was able to flash my device... I used the current 23.05.2 release.

wget -O openwrt-ipq807x-generic-zyxel_nbg7815-squashfs-sysupgrade.bin http://downloads.openwrt.org/releases/23.05.2/targets/ipq807x/generic/openwrt-23.05.2-ipq807x-generic-zyxel_nbg7815-squashfs-sysupgrade.bin

I recommend downloading and providing the firmware and the two shell scripts via WinSCP beforehand.

The scripts did not work for me straight away, as they contained control characters that the router could not process when downloaded directly.

I provide the cleaned up files under the following link

Rough procedure:

Download the latest firmware and the two scripts, give your own computer / notebook the IP address 192.168.123.x and establish a Telnet connection with the router (192.168.123.1).

Set up root and SSH access according to the instructions (a reboot is required here) and copy the files to the router via WinSCP....

The update can then be carried out via Putty (SSH).... Following the instructions exactly did not work for me, as the scripts contained special characters and could not be executed directly...

After the flash process and another reboot, the router can be reached as usual at the IP address 192.168.1.1

change_boot_partition.sh still throws an error message ... maybe someone has a solution for this? :slight_smile:

Code:

root@OpenWrt:~# cd /tmp
root@OpenWrt:/tmp# chmod 755 ./change_boot_partition.sh
root@OpenWrt:/tmp# ./change_boot_partition.sh
OpenWrt release
1+0 records in
1+0 records out
1+0 records in
1+0 records out
Could not open mtd device: /dev/mtd2
Can't open device for writing!
Could not open mtd device: /dev/mtd3
Can't open device for writing!
./change_boot_partition.sh: line 35: syntax error: unexpected end of file (expecting "fi")
root@OpenWrt:/tmp#

I have the same problem. Did you found a solution?

Any more information of how to install openwrt in Zyxel NBG7815?

https://openwrt.org/inbox/toh/zyxel/nbg7815_armor_g5#installation