OpenWrt support for Asus RT-AX59U

Pre-populated pins are +1 but I wouldn't buy a € 130 router to void the warranty on the fist boot because I had to open the case to install OpenWrt. :confused:

So another +1 for Dynalink DL-WRX36: not just populated serial, but easy teardown and no warranty seals! :pray:
I hope Asus do the same too!

1 Like

I'm interested in the result of running the command:

ubinfo /dev/ubi0 -a

This can be run on either an OpenWRT or AsusWRT system.

I am also interested in the full UART log.

root@OpenWrt:/# ubinfo /dev/ubi0 -a
ubi0
Volumes count:                           5
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     992 (125960192 bytes, 120.1 MiB)
Amount of available logical eraseblocks: 544 (69074944 bytes, 65.8 MiB)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       0
Count of reserved physical eraseblocks:  20
Current maximum erase counter value:     13
Minimum input/output unit size:          2048 bytes
Character device major/minor:            249:0
Present volumes:                         0, 1, 2, 3, 4

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        1 LEBs (126976 bytes, 124.0 KiB)
State:       OK
Name:        nvram
Character device major/minor: 249:1
-----------------------------------
Volume ID:   1 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        8 LEBs (1015808 bytes, 992.0 KiB)
State:       OK
Name:        Factory
Character device major/minor: 249:2
-----------------------------------
Volume ID:   2 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        8 LEBs (1015808 bytes, 992.0 KiB)
State:       OK
Name:        Factory2
Character device major/minor: 249:3
-----------------------------------
Volume ID:   3 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        32 LEBs (4063232 bytes, 3.8 MiB)
State:       OK
Name:        linux
Character device major/minor: 249:4
-----------------------------------
Volume ID:   4 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        373 LEBs (47362048 bytes, 45.1 MiB)
State:       OK
Name:        jffs2
Character device major/minor: 249:5
root@OpenWrt:/# 

Why don’t I see volume rootfs and rootfs_data in this list?

After installing the OpenWRT, 65 MiB are available for files?

This is from TFTP-loaded initramfs, I had probably a broken flash attempt before.

And yes after installing OpenWRT, 65 MiB are available for files!

I also made it possible for this device to have a simple installation:

Available disk memory has been expanded!

PS.: I haven't tested anything on this device! Use this at your own risk!

Tested with AX59U version (https://drive.google.com/drive/folders/1A20QdjK7Udagu31FSszpWAk8-cGlCwsq) and it worked fine.

Booted into initramfs and then flashed a custom AX59U image built from this branch https://github.com/openwrt/openwrt/pull/13125

1 Like

great news

What can a custom bootloader be useful for?
The stock bootloader has all the necessary features.

I've used stock layout

1 Like

The RT-AX59U doesn't seem to have a wiki-page yet, or does it? I don't (yet) own an RT-AX59U, but I could buy one if that helps the project?

I can create a techdata entry, but for some reason the DokuWiki isn't working atm.

until then, install details are in https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=782eb050082acac93c2f9b3eb22348234bc93e99
images at https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=mediatek%2Ffilogic&id=asus_rt-ax59u

2 Likes

I am getting the following errors:

root@OpenWrt:~# logread -e err
Wed Mar 20 11:06:45 2024 kern.info kernel: [    3.434419] mt7530-mdio mdio-bus:1f: no interrupt support
Wed Mar 20 11:06:45 2024 kern.warn kernel: [   10.400988] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7986_eeprom_mt7976_dbdc.bin failed with error -2
Wed Mar 20 11:06:45 2024 kern.warn kernel: [   10.503682] mt798x-wmac: probe of 18000000.wifi failed with error -12
Wed Mar 20 11:06:53 2024 daemon.warn odhcpd[1628]: No default route present, overriding ra_lifetime!

The version from frollic worked last week but today it doesn't work anymore which leads me to believe it is a HW issue with my unit, however the stock firmware works fine. Any clue?

I've been reading that's most probably an issue with data that is written into the EEPROM. This explains the behaviour, however I still don't know how to fix.

Does mt7986_eeprom_mt7976_dbdc.bin exist?

Here is from 23.05.2:

 ls /lib/firmware/mediatek
mt7986_eeprom_mt7975_dual.bin  mt7986_eeprom_mt7976_dual.bin  mt7986_rom_patch_mt7975.bin    mt7986_wm.bin                  mt7986_wo_0.bin
mt7986_eeprom_mt7976_dbdc.bin  mt7986_rom_patch.bin           mt7986_wa.bin                  mt7986_wm_mt7975.bin           mt7986_wo_1.bin

Yes:

BusyBox v1.36.1 (2023-11-14 13:38:11 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05.2, r23630-842932a63d
 -----------------------------------------------------
root@OpenWrt:~# logread -e TAG
root@OpenWrt:~# logread -e err
Tue Nov 14 13:38:21 2023 kern.info kernel: [    1.130711] mt7530-mdio mdio-bus:1f: no interrupt support
Tue Nov 14 13:38:21 2023 kern.warn kernel: [   10.030890] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7986_eeprom_mt7976_dbdc.bin failed with error -2
Tue Nov 14 13:38:31 2023 daemon.warn odhcpd[1975]: No default route present, overriding ra_lifetime!
root@OpenWrt:~# ls /lib/firmware/mediatek
mt7986_eeprom_mt7975_dual.bin  mt7986_eeprom_mt7976_dual.bin  mt7986_rom_patch_mt7975.bin    mt7986_wm.bin                  mt7986_wo_0.bin
mt7986_eeprom_mt7976_dbdc.bin  mt7986_rom_patch.bin           mt7986_wa.bin                  mt7986_wm_mt7975.bin           mt7986_wo_1.bin
root@OpenWrt:~# 

However with 23.05.2 Luci interface is extremely slow. Takes 10 seconds or more to load each page and WiFi also does not work, although the file is there.

In today's snapshot version the file isn't there, WiFi also does not work and LuCi is very snappy:

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r25598-a6991fc7d2
 -----------------------------------------------------
root@OpenWrt:~# ls /lib/firmware/mediatek
mt7986_rom_patch.bin         mt7986_wa.bin                mt7986_wm_mt7975.bin         mt7986_wo_1.bin
mt7986_rom_patch_mt7975.bin  mt7986_wm.bin                mt7986_wo_0.bin

yesterday's snapshot for TUF-AX6000:

→ cd build_dir/target-aarch64_cortex-a53_musl/root-mediatek/lib
user git[master+?] ../root-mediatek/lib
→ find . -iname "mt*"
./firmware/mediatek/mt7986_wm.bin
./firmware/mediatek/mt7986_rom_patch.bin
./firmware/mediatek/mt7986_rom_patch_mt7975.bin
./firmware/mediatek/mt7986_wo_0.bin
./firmware/mediatek/mt7986_wm_mt7975.bin
./firmware/mediatek/mt7986_wo_1.bin
./firmware/mediatek/mt7986_wa.bin
./modules/6.1.82/mt76-connac-lib.ko
./modules/6.1.82/mt7915e.ko
./modules/6.1.82/mt76.ko

Reason: https://github.com/openwrt/openwrt/commit/e3aa645b267ca4f08773b5366583e9b0020fc3e9

Official 23.05.3 is ok too on my device.

[   14.671103] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174648a
[   14.671103] 
[   15.036085] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221012174725
[   15.203817] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   15.350030] mt798x-wmac 18000000.wifi: eeprom load fail, use default bin
[   15.356787] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7986_eeprom_mt7976_dbdc.bin failed with error -2
[   15.367899] mt798x-wmac 18000000.wifi: Falling back to sysfs fallback for: mediatek/mt7986_eeprom_mt7976_dbdc.bin

Probably @GPereira's device has no correct factory partition and caldata_extract_ubi script fails.

Is there a bin file with the contents of that partition? We should write about it in the future device's wiki page.
Meanwhile, I've returned my device to the reseller and asked for a replacement. Let's see how it works when the new one arrives.