OpenWrt support for WAX206

I don't think in the menuconfig but if you remove the wrong library you will have another error when compiling as the error you already have (I think, I have never tried).

I have no idea too, all I can tell you is that I have both installed in the end, probably only a dependences issue, see my .config:

CONFIG_DEFAULT_libustream-wolfssl=y

CONFIG_PACKAGE_libustream-mbedtls=y
# CONFIG_PACKAGE_libustream-openssl is not set
# CONFIG_PACKAGE_libustream-wolfssl is not set

And the current veersion installed on the WAX206

libustream-mbedtls20201210 - 2022-12-08-9217ab46-2
libwolfssl5.5.4.e624513f - 5.5.4-stable-1

I had to disable one Libraries/libustream and one Utilities/Encryption/px5g. I kept those using wolfssl.
The build did not throw any errors afterwards.

1 Like

I want to install more apps in the firmware, but the firmware space is only about 30M, how can I make it bigger? Will there be any bad effects?

Probably won't be able to go back to the Netgear fw.
Need to build your own images, containing the new size.

root@WAX206:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "Preloader"
mtd1: 00040000 00020000 "ATF"
mtd2: 00080000 00020000 "Bootloader"
mtd3: 00080000 00020000 "Config"
mtd4: 00100000 00020000 "Factory"
mtd5: 02600000 00020000 "ImageA"
mtd6: 025e0000 00020000 "Kernel"
mtd7: 002a0000 00020000 "kernel"
mtd8: 02340000 00020000 "rootfs"
mtd9: 00c60000 00020000 "rootfs_var"
mtd10: 02600000 00020000 "Kernel_backup"
mtd11: 00800000 00020000 "CFG"
mtd12: 00400000 00020000 "RAE"
mtd13: 00100000 00020000 "POT"
mtd14: 00400000 00020000 "Language"
mtd15: 00200000 00020000 "Traffic"
mtd16: 00100000 00020000 "Cert"
mtd17: 00100000 00020000 "NTGRcryptK"
mtd18: 00500000 00020000 "NTGRcryptD"
mtd19: 00100000 00020000 "LOG"
mtd20: 00640000 00020000 "User_data"
root@Wax206:~#  cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "Preloader"
mtd1: 00040000 00020000 "ATF"
mtd2: 00080000 00020000 "Bootloader"
mtd3: 00080000 00020000 "Config"
mtd4: 00100000 00020000 "Factory"
mtd5: 02600000 00020000 "firmware"
mtd6: 00600000 00020000 "kernel"
mtd7: 02000000 00020000 "ubi"
mtd8: 02600000 00020000 "firmware_backup"
mtd9: 00800000 00020000 "CFG"
mtd10: 00400000 00020000 "RAE"
mtd11: 00100000 00020000 "POT"
mtd12: 00400000 00020000 "Language"
mtd13: 00200000 00020000 "Traffic"
mtd14: 00100000 00020000 "Cert"
mtd15: 00100000 00020000 "NTGRcryptK"
mtd16: 00500000 00020000 "NTGRcryptD"
mtd17: 00100000 00020000 "LOG"
mtd18: 00640000 00020000 "User_data"

I compared the original firmware and the openwrt firmware partition situation seems to be different, I do not know which of the several partitions to modify mt4, mt5, mt6, mt7, mt8 in the openwrt partition

Hi guys, I've been experimenting with the various releases people have graciously put online for others to try, but I am running into issues installing extra packages for what I want to be testing because the kernel is a little outdated compared to the official builds.

Can anyone make a sysupgrade package with the latest kernel (and matching kernel release designation?) so I can install the latest packages from the official repositories?

So far, I have run into the issue that installing takes a little more hassle then anticipated, the first flash failed but most importantly, I did not realise the interface would become available on the 4 port switch and not on the WAN port. Just a small FYI for anyone running into the same issue :sweat_smile:

The installed version of package kernel is not compatible, require 5.15.92-1-b7cf82a6… while 5.15.90-1-66604566… is installed.

I've made one this morning but it has the 5.15.90 kernel (same as the one you are using, because of the fork...), anyway I think the issue is not the kernel version but if the package you are trying to install has the Module support in the kernel.

you may be right, I was trying to install the mdio LED control for PHY devices...

I want all my LED's to turn off (except the power LED), but I can not control the switch led's despite it saying it can.

If you want to use the mdio control just add this under menu-config before building the image. Then it works without the updated kernel.

Oh, in this case just use this build I've made this morning, it has the mdio support: https://dsc.cloud/40973c/openwrt-mediatek-mt7622-netgear_wax206-squashfs-sysupgrade.bin

(it has other things like collectd, blabla, see here the config: https://pastebin.com/JEzzKZK8 be careful that it has no swap, pppoe, WAN, etc.. support)

PS: I configured the LED just this morning, with the green power on alywas on, and the blue for the WAN blinking with the network activity, now this white piece of cheap plastic is a bit nicer :grin: ahah.

3 Likes

I tried to modify the space size of mt4, mt5, mt6, mt7, mt8 in the dts file, and finally compiled a firmware, but the result after the update was that the router restored the original 1.0.3 firmware

What is the dts file? There’s no file, you just have to change it menuconfig with your size and compile it.

My firmware is about 35M if it is completed, but the maximum in the mt7622.mk file can only be 32768K, so every time a complete compilation will report an error, so I modified this limit, but even if the compilation is successful, it cannot be updated normally, so I think it should be The size of each partition is set in the dts file of wax206, which makes it impossible to update. I tried to modify the size of the Root filesystem partition size in Target Images, but it didn’t seem to work. I don’t really understand this, so if you know, I hope you can tell How do I do it, thanks a lot!

Sorry but I'm not understanding what you're doing, I can't help.

Ok, anyway, thank you very much for your reply.

For all the 2.5G WAN lovers out there: @Amadeus posted a PR on github to add support for TP-Link TL-XDR6086/6088. This PR contains a commit to make the RTL8221 work in 2.5G mode.

It works great for me (by git cherry-picking the above mentioned commit).

What doesn't work yet is that one can set the 2.5G speed manually (using ethtool -s wan speed 2500 duplex full), setting to lower speed works. But when you let auto-neg do the work that works (ethtool -s wan autoneg on).

5 Likes

That's wonderful news!

why not share a new snapshot build here? :grimacing:

I'm going to pull this and give it a go later today if I find the time.

Did you use quilt to apply the patch or just pipe it via the patch command. I was trying to use the 722 723 patch earlier, but I could never get quilt to work right. Looks like 722 is being picked up without adding quilt commands during build. Just dropped the file into the source tree and it built fine, need to test this, but don't have time yet.

The repository fork with support for the WAX206 https://github.com/boretom/openwrt-fork kernel outdate and is starting to fail the build due to the old kernel, someone know another repository or a workaround? Thanks!