Adding OpenWrt support for Xiaomi AX3600 (Part 1)

The replacement can be done with a one liner script, if you're courageous:

find etc/config -type f -exec sh -c "cp -a {} {}.orig && cat {}.orig | sed -r 's/\beth0\b/wan/' | sed -r 's/\beth([1-3])\b/lan\1/'>{}" \;

Delete the *.orig files after checking it worked :wink:

3 Likes

When upgrading from the 12/26 (2f7a3cc) build to the latest build (1970ee5), the attached message comes up. Do we need to uncheck the "Keep settings and retain current configuration"?

Yes as stated in the other posts, the device names have been changed so the configuration is not compatible and the easiest way of upgrading is not keeping the configuration.

1 Like

Thought so, but just wanted be certain -- THANKS :sunglasses:

1 Like

If your config is complex, you can update your existing one following the instructions in this post:
Replace interface names and set new version in uci
I added a one liner here to do the text replacements in the etc/config files here, if you are feeling brave:
script to replace interface names

1 Like

This worked quite nicely. Only thing to add is that after the upgrade/reboot the PPPoE connection was bound to a non-existent "wan0" interface instead of "wan". That needs to be fixed after the upgrade.

I had a similar problem with dhcp over vlan, but a second reboot fixed it. It don't know why happened exactly and maybe it's not the same problem than yours.

I've restored and reinstalled Openwrt in mtd12 but upgrade is not working.
How can I check if I'm in the correct bank in Openwrt?

fw_printenv flag_boot_rootfs

If I recall correctly, 0 means it booted from mtd12 and 1 means it booted from mtd13.

mtd12: 023c0000 00020000 "rootfs"  - is the 0
mtd13: 023c0000 00020000 "rootfs_1"  - is the 1

This used to be in the wiki, but seems to have been deleted. A randomly picked old version still has this info: https://openwrt.org/inbox/toh/xiaomi/xiaomi_ax3600?rev=1634906210

It's very well possible this was removed with good reason and no longer applies, so take this with a grain of salt. I haven't tried this for many months.

So am i doing something wrong with the LuCI interface uploading the bin or the problem is somewhere else?

EDIT: From Robimarko build 2023-01-05-2313 (including) to future releases, my bellow instructions are invalid because of single/enlarged rootfs partition change.


Do you remember when you flashed from xiaomi factory FW to openwrt, if you flashed openwrt once and then a second time after you boot openwrt ?

Read the wiki here (in the wiki you have to click to display the instructions):
https://openwrt.org/inbox/toh/xiaomi/xiaomi_ax3600#install_the_experimental_firmware
Specially this: " Follow the next steps only if you wish to proceed into with a dual boot OpenWRT exclusive router, booted and on the OpenWRT CLI."
Meaning both partitions need to be flashed with openwrt factory.ubi, for sysupgrade to work.

So, if you did flash it twice, then you must read here:
https://openwrt.org/inbox/toh/xiaomi/xiaomi_ax3600#potential_issueslimitations
Meaning you must stop wpad manually, before you sysupgrade.

1 Like

The new wiki instructions @sqrwv references are actually much better than the old ones. I just didn't find them on cursory reading.

First of all:

Thank you for this amazing version!

I compiled my own version from source (ipq807x-5.15-pr) and activated kmod-wireguard and its dependencies in config.

The build works but after I try to install the sysupgrade-file there is no kmod-wireguard in the list of installed software...

It looks like the sysupgrade-file is not accepted when I try to install it.
What could be the problem? (I stopped wpad before sysupgrade)

Uwe

EDIT:
After istalling the ubi-factory image on the second partition I was able to install my image with sysupgrade...
Is it wanted like that?

Both partitions need to be flashed with factory.ubi, for sysupgrade to work.

1 Like

Just a little additional information: The prefix "kmod-" signifies a kernel module. Sometimes these are required to install a piece of software that needs them.

It doesn't mean that any software requiring a specific module is installed, just that it CAN be installed. You might be looking for "wireguard-tools". Go to System->Software and click "Update lists". Having done that type "wireguard" in System->Software->Available->Filter and it will show you what's available.

@dimfish How to build the increased layout feature with the latest versions ?

Hello, I updated the latest release of the robimarko assembly, I see the signal has become larger before it was -74 in the far room, now -68 and the channel speeds have grown. What is the change in the ath11 driver?

I'm on vacation right now and my build will be later maybe in 2 weeks. To build my source code just rebase my branch over latest robimarko changes (but compat version should be 2.1 then).

I've flashed OpenWrt only once because i wasn't sure that flashing OpenWrt in both partition would have broken the MiWi recovery app in case of RMA.

Anyone smarter enough may help me in this? :grinning:

I'm trying to use it as access point, plugging the cable in lan port (not WAN), setting the ip fixed and gateway, as expected, but no internet access from inside it.

Any advice, please?

Thanks