Add support for ASUS RT-AX89X AX6000

@remittor huh okay. I tried just option 2 but it didn't work. So I tried

ubi remove linux
ubi remove jffs2
ubi remove rootfs
ubi remove rootfs_data
ubi create linux 0x45fe000

And I was actually able to get back to stock firmware.

Then I tried to use the web-flashing.trx file again and it was back into the reboot loop.

Even deleting the partitions again seems to do nothing. I tried again and there was a linux and a jffs2 but not the others. But uploading the stock TRX doesn't work any longer.

This command is superfluous if you continue to use the official recovery process.
For this device you need this:

ubi create linux 0x6406000

Without the UART log it is impossible to understand the reason.

Okay so here is details so far

  1. The new partition size for Linux has allowed me to consistently get back to stock
  2. Uploading the Feb 12 initram-fs-for-web file still puts it into the crash loop

So I:

  1. Load the router
  2. Press 4
  3. Do the commands
  4. Load into rescue mode
  5. tftp the STOCK image
  6. Go to the web interface of the router
  7. Upload the initramfs file
    results: Crash loop

BTW I am fine just going straight to openwrt. I just imagine getting it back to stock and the reflashing is a method.

Here is the output after initramfs upload which appears to be the same as before


U-Boot 2016.01 (Jun 03 2020 - 20:28:21 +0800)
RT-AX89U bootloader version: 2.1.2.1

DRAM:  smem ram ptable found: ver: 1 len: 4
ASUS RT-AX89U gpio init : buttons
1 GiB
NAND:  Could not find nand_gpio in dts, using defaults
ONFI device found
ID = 1590aac2
Vendor = c2
Device = aa
SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
256 MiB
MMC:   
*** Warning - bad CRC, using default environment

In:    serial@78B3000
Out:   serial@78B3000
Err:   serial@78B3000
Check bootloader area ... 
qpic_nand_read_oob: correctable error @ page 0x18
qpic_nand_read_oob: correctable error @ page 0xc1
qpic_nand_read_oob: correctable error @ page 0x1be
qpic_nand_read_oob: correctable error @ page 0x393
qpic_nand_read_oob: correctable error @ page 0x695
qpic_nand_read_oob: correctable error @ page 0x6be
machid: 8010000
Net:   HwId: MAC0 addr:0:aa:bb:cc:dd:e0
PORT0/5/6_PAD_CTRL 0x05080000/01000000/00000080
PORT0/5/6_STATUS   0x0000007e/00001280/00000230
8075 PHY ID1: 0x4d
8075 PHY ID2: 0xd0b1
switch_mac_mode: 0x5/ff/2
EDMA ver 1 hw init
Num rings - TxDesc:1 (0-0) TxCmpl:1 (7-7)
RxDesc:1 (15-15) RxFill:1 (7-7)
ipq807x_edma_alloc_rings: successfull
ipq807x_edma_setup_ring_resources: successfull
ipq807x_edma_configure_rings: successfull
ipq807x_edma_hw_init: successfull
eth0
ubi0: attaching mtd1
qpic_nand_read_oob: correctable error @ page 0x1f7c0
qpic_nand_read_oob: correctable error @ page 0x1fcc0
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=2", size 252 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 2013, bad PEBs: 3, corrupted PEBs: 0
ubi0: user volume: 5, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 561100077
ubi0: available PEBs: 0, total reserved PEBs: 2013, PEBs reserved for bad PEB handling: 37
UBI:   vol_id  reserved_pebs  alignment  data_pad  vol_type  usable_leb_size  used_ebs  used
UBI:        0              3          1         0   dynamic            1f000         3       5d000         1f000          0           0         5  nvram
UBI:        1              3          1         0   dynamic            1f000         3       5d000         1f000          0           0         7  Factory
UBI:        2              3          1         0   dynamic            1f000         3       5d000         1f000          0           0         8  Factory2
UBI:        3            33a          1         0   dynamic            1f000       33a     6406000         1f000          0           0         5  linux
UBI:        4            471          1         0   dynamic            1f000       471     89af000         1f000          0           0         5  jffs2
UBI: 7fffefff              2          1         0   dynamic            1f000         2       3e000             2          0           0         d  layout volume
Read 5d000 bytes from volume Factory offset 0 to 4a08270c
EEPROM set 0: OK (version 54)
Read 5d000 bytes from volume Factory2 offset 0 to 4a08270c
EEPROM set 1: OK (version 54)
Read 5d000 bytes from volume Factory offset 0 to 4a0e2ba0
Select EEPROM set 0 at offset 0x0.
HwId: C

Please choose the operation: 
   1: Load System code to SDRAM via TFTP.
   2: Load System code then write to Flash via TFTP.
   3: Boot System code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
^H^H^H 0 
   3: Boot System code via Flash (default).

RT-AX89U bootloader version: 2.1.2.1
MAC Address: 04:42:1A:E5:7A:F0
Read 40 bytes from volume linux offset 0 to 4b000000
Read 31d8957 bytes from volume linux offset 40 to 4b000040
## Booting kernel from Legacy Image at 4b000000 ...
   Image Name:   ^C
   Image Type:   ARM Linux Kernel Image (lzma compressed)
   Data Size:    52267351 Bytes = 49.8 MiB
   Load Address: 42208000
   Entry Point:  42208000
   Verifying Checksum ... OK
## Booting kernel from Legacy Image at 4b000000 ...
   Image Name:   ^C
   Image Type:   ARM Linux Kernel Image (lzma compressed)
   Data Size:    52267351 Bytes = 49.8 MiB
   Load Address: 42208000
   Entry Point:  42208000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 4a0c5000, end 4a0de6dd ... OK
del /soc/dp6 okay
del /soc/mdio@90000/ethernet-phy@5 okay
del /soc/ess-instance/ess-switch@3a000000/qcom,port_phyinfo/port@5 okay
enable /soc/dp6_aqr113c/status okay
enable /soc/mdio1/ethernet-phy@5/status okay
enable /soc/ess-instance/ess-switch@3a000000/qcom,port_phyinfo/port@5_113c/status okay
Using machid 0x8010000 from environment

Starting kernel ...

^@^@
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00158
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B -       203 - PBL, Start
B -      2739 - bootable_media_detect_entry, Start
B -      3447 - bootable_media_detect_success, Start
B -      3452 - elf_loader_entry, Start
B -      6121 - auth_hash_seg_entry, Start
B -      6364 - auth_hash_seg_exit, Start
B -     68401 - elf_segs_hash_verify_entry, Start
B -    131243 - PBL, End
B -    142252 - SBL1, Start
B -    194071 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B -    200537 - pm_device_init, Start
B -    322476 - PM_SET_VAL:Skip
D -    121512 - pm_device_init, Delta
B -    324916 - pm_driver_init, Start
D -      5398 - pm_driver_init, Delta
B -    331199 - clock_init, Start
D -      2165 - clock_init, Delta
B -    335256 - boot_flash_init, Start
D -      8570 - boot_flash_init, Delta
B -    347486 - boot_config_data_table_init, Start
D -      3050 - boot_config_data_table_init, Delta - (575 Bytes)
B -    354959 - Boot Setting :  0x00000618
B -    358985 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    365817 - sbl1_ddr_set_params, Start
B -    369629 - CPR configuration: 0x30c
B -    373076 - cpr_init, Start
B -    375851 - Rail:0 Mode: 5 Voltage: 848000
B -    381067 - CL CPR settled at 800000mV
B -    383873 - Rail:1 Mode: 5 Voltage: 904000
B -    388051 - Rail:1 Mode: 7 Voltage: 952000
D -     16500 - cpr_init, Delta
B -    394944 - Pre_DDR_clock_init, Start
B -    398970 - Pre_DDR_clock_init, End
B -    402356 - DDR Type : PCDDR3
B -    407968 - do ddr sanity test, Start
D -      1037 - do ddr sanity test, Delta
B -    412817 - DDR: Start of HAL DDR Boot Training
B -    417545 - DDR: End of HAL DDR Boot Training
B -    423218 - DDR: Checksum to be stored on flash is -2105217666
B -    433649 - Image Load, Start
D -    224144 - QSEE Image Loaded, Delta - (1376448 Bytes)
B -    657885 - Image Load, Start
D -        61 - SEC Image Loaded, Delta - (0 Bytes)
B -    665540 - Image Load, Start
D -     10706 - DEVCFG Image Loaded, Delta - (26008 Bytes)
B -    676337 - Image Load, Start
D -     22052 - RPM Image Loaded, Delta - (86584 Bytes)
B -    698480 - Image Load, Start
D -    112423 - APPSBL Image Loaded, Delta - (697944 Bytes)
B -    811056 - QSEE Execution, Start
D -        91 - QSEE Execution, Delta
B -    816851 - USB D+ check, Start
D -         0 - USB D+ check, Delta
B -    823256 - SBL1, End
D -    683291 - SBL1, Delta
S - Flash Throughput, 6789 KB/s  (2187559 Bytes,  322195 us)
S - DDR Frequency, 466 MHz
S - Core 0 Frequency, 1651 MHz


U-Boot 2016.01 (Jun 03 2020 - 20:28:21 +0800)
RT-AX89U bootloader version: 2.1.2.1

DRAM:  smem ram ptable found: ver: 1 len: 4
ASUS RT-AX89U gpio init : buttons
1 GiB
NAND:  Could not find nand_gpio in dts, using defaults
ONFI device found
ID = 1590aac2
Vendor = c2
Device = aa
SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
256 MiB
MMC:   
*** Warning - bad CRC, using default environment

In:    serial@78B3000
Out:   serial@78B3000
Err:   serial@78B3000
Check bootloader area ... 
qpic_nand_read_oob: correctable error @ page 0x18
qpic_nand_read_oob: correctable error @ page 0xc1
qpic_nand_read_oob: correctable error @ page 0x1be

I also saw this error


   3: Boot System code via Flash (default).

RT-AX89U bootloader version: 2.1.2.1
MAC Address: 04:42:1A:E5:7A:F0
Read 40 bytes from volume linux offset 0 to 4b000000
Read f73a80 bytes from volume linux offset 40 to 4b000040
## Booting kernel from Legacy Image at 4b000000 ...
   Image Name:   
   Image Type:   AArch64 Linux Multi-File Image (gzip compressed)
   Data Size:    16202368 Bytes = 15.5 MiB
   Load Address: 41000000
   Entry Point:  41000000
   Contents:
      Image 0: 16149379 Bytes = 15.4 MiB
      Image 1: 67112960 Bytes = 64 MiB
      Image 2: 48872 Bytes = 47.7 KiB
   Verifying Checksum ... OK
## Booting kernel from Legacy Image at 4b000000 ...
   Image Name:   
   Image Type:   AArch64 Linux Multi-File Image (gzip compressed)
   Data Size:    16202368 Bytes = 15.5 MiB
   Load Address: 41000000
   Entry Point:  41000000
   Contents:
      Image 0: 16149379 Bytes = 15.4 MiB
      Image 1: 67112960 Bytes = 64 MiB
      Image 2: 48872 Bytes = 47.7 KiB
## Loading init Ramdisk from multi component Legacy Image at 4b000000 ...
## Flattened Device Tree from multi component Image at 4B000000
   Booting using the fdt at 0x4ff67bd4
ERROR: image is not a fdt - must RESET the board to recover.
Could not find a valid device tree
resetting ...

I believe this is starting at the part where I uploaded the initramfs

Build temp rootfs
cp: can't stat '/usr/lib/libbcm*': No such file or directory
tar: removing leading '/' from member names
lib/modules/4.4.60/extra/bled.ko
lib/modules/4.4.60/kernel/drivers/nvram_linux.ko
lib/modules/4.4.60/kernel/drivers/usb/common/usb-common.ko
lib/modules/4.4.60/kernel/drivers/usb/usbcore.ko
lib/modules/4.4.60/modules.dep
1992: check_action 0: 1077(httpd)
1992: set_action 2
file len=0xf73aee
mtd size=6406000, erasesize=1f000, writesize=800, type=7
freeram=27241000 unit_len=f80000 filelen=f73aee mi.erasesize=1f000 mi.writesize=800
ofs=0 n=f73800/f73800 ei.start=0 ei.length=f80000
ofs=f73800 n=2ee/800 ei.start=f80000 ei.length=f80000
1992: set_action 0
Image successfully flashed
switch to temp rootfilesystem
init_main start

1: set_action 0


Hit ENTER for new console...

modem data: save the data during the signal 15.
/bin/sh: shn_ctrl: not found
killall: afpd: no process killed
killall: cnid_metad: no process killed
/tmp/avahi/services/mt-daap.service: No such file or directory
# nvram_commit skip pid(1 /sbin/init) #
[1 init:stop_dnsmasq +246] begin
[1 init:stop_dnsmasq +246] end
update_wan_state(wan0_, 6, 0)
stop_auth:: done
stop_auth:: done
_ifconfig: name=eth3 flags=1043 IFUP addr=0.0.0.0 netmask=
update_wan_state(wan0_, 4, 0)
stop_wan_if wan0_proto=dhcp
update_wan_state(wan1_, 6, 0)
stop_auth:: done
stop_auth:: done
update_wan_state(wan1_, 4, 0)
stop_wan_if wan1_proto=dhcp
stop_lan 2143
_ifconfig: name=br0 flags=0000  addr= netmask=
fini_wl(0x0ae2): fini_wl:destroy wi node
/bin/sh: ifconfig: not found
/bin/sh: ifconfig: not found
_ifconfig: name=wifi1 flags=0000  addr= netmask=
wifi1: No such device
_ifconfig: name=wifi0 flags=0000  addr= netmask=
wifi0: No such device
[1 init:init_nvram +250] init_nvram for model(93)
1
set_basic_ifname_vars: WAN eth3 LAN eth1 eth2 eth0 2G ath1 5G ath0 60G N/A USB usb AP_LAN N/A DW_WAN vlan2 DW_LAN vlan3 force_dwlan 0, sw_mode 1
wan_ifnames: eth3
update_lan_state(lan_, 4, 0)
stop_lan 2410
killall: afpd: no process killed
killall: cnid_metad: no process killed
/tmp/avahi/services/mt-daap.service: No such file or directory
exec_for_host(-1, 2, 16, 0x78258)
stop_usb: stopping the USB features...
stop_usb: save the modem(0) data.
killall: afpd: no process killed
killall: cnid_metad: no process killed
/tmp/avahi/services/mt-daap.service: No such file or directory
# nvram_commit skip pid(1 /sbin/init) #
shutdn rb=1
1: check_action 0: 1(init)
1: set_action 8
update_wan_state(wan0_, 6, 0)
stop_auth:: done
stop_auth:: done
_ifconfig: name=eth3 flags=1043 IFUP addr=0.0.0.0 netmask=
update_wan_state(wan0_, 4, 0)
stop_wan_if wan0_proto=dhcp
update_wan_state(wan1_, 6, 0)
stop_auth:: done
stop_auth:: done
update_wan_state(wan1_, 4, 0)
stop_wan_if wan1_proto=dhcp
TERM
KILL^@^@
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00158
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B -       203 - PBL, Start
B -      2738 - bootable_media_detect_entry, Start
B -      3446 - bootable_media_detect_success, Start
B -      3450 - elf_loader_entry, Start
B -      6116 - auth_hash_seg_entry, Start
B -      6359 - auth_hash_seg_exit, Start
B -     68332 - elf_segs_hash_verify_entry, Start
B -    131175 - PBL, End
B -    212463 - SBL1, Start
B -    289841 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B -    299479 - pm_device_init, Start
B -    478545 - PM_SET_VAL:Skip
D -    177205 - pm_device_init, Delta
B -    480954 - pm_driver_init, Start
D -      5398 - pm_driver_init, Delta
B -    487329 - clock_init, Start
D -      2135 - clock_init, Delta
B -    491263 - boot_flash_init, Start
D -      8570 - boot_flash_init, Delta
B -    503616 - boot_config_data_table_init, Start
D -      3050 - boot_config_data_table_init, Delta - (575 Bytes)
B -    511058 - Boot Setting :  0x00000618
B -    515084 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    521916 - sbl1_ddr_set_params, Start
B -    525728 - CPR configuration: 0x30c
B -    529175 - cpr_init, Start
B -    531950 - Rail:0 Mode: 5 Voltage: 848000
B -    537166 - CL CPR settled at 800000mV
B -    540002 - Rail:1 Mode: 5 Voltage: 904000
B -    544181 - Rail:1 Mode: 7 Voltage: 952000
D -     16531 - cpr_init, Delta
B -    551043 - Pre_DDR_clock_init, Start
B -    555069 - Pre_DDR_clock_init, End
B -    558455 - DDR Type : PCDDR3
B -    564067 - do ddr sanity test, Start
D -      1067 - do ddr sanity test, Delta
B -    568916 - DDR: Start of HAL DDR Boot Training
B -    573644 - DDR: End of HAL DDR Boot Training
B -    579347 - DDR: Checksum to be stored on flash is -2105217666
B -    589748 - Image Load, Start
D -    224175 - QSEE Image Loaded, Delta - (1376448 Bytes)
B -    814014 - Image Load, Start
D -        30 - SEC Image Loaded, Delta - (0 Bytes)
B -    821700 - Image Load, Start
D -     10675 - DEVCFG Image Loaded, Delta - (26008 Bytes)
B -    832467 - Image Load, Start
D -     22051 - RPM Image Loaded, Delta - (86584 Bytes)
B -    854610 - Image Load, Start
D -    112392 - APPSBL Image Loaded, Delta - (697944 Bytes)
B -    967124 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    972919 - USB D+ check, Start
D -         0 - USB D+ check, Delta
B -    979324 - SBL1, End
D -    769179 - SBL1, Delta
S - Flash Throughput, 6788 KB/s  (2187559 Bytes,  322225 us)
S - DDR Frequency, 466 MHz
S - Core 0 Frequency, 1651 MHz


U-Boot 2016.01 (Jun 03 2020 - 20:28:21 +0800)
RT-AX89U bootloader version: 2.1.2.1

DRAM:  smem ram ptable found: ver: 1 len: 4
ASUS RT-AX89U gpio init : buttons
1 GiB
NAND:  Could not find nand_gpio in dts, using defaults
ONFI device found
ID = 1590aac2
Vendor = c2
Device = aa
 ESCODstop_auth:: done
_ifconfig: name=eth3 flags=1043 IFUP addr=0.0.0.0 netmask=
update_wan_state(wan0_, 4, 0)
stop_wan_if wan0_proto=dhcp
update_wan_state(wan1_, 6, 0)
stop_auth:: done
stop_auth:: done
update_wan_state(wan1_, 4, 0)
stop_wan_if wan1_proto=dhcp
TERM
KILL^@^@
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00158
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B -       203 - PBL, Start
B -      2738 - bootable_media_detect_entry, Start
B -      3446 - bootable_media_detect_success, Start
B -      3450 - elf_loader_entry, Start
B -      6116 - auth_hash_seg_entry, Start
B -      6359 - auth_hash_seg_exit, Start
B -     68332 - elf_segs_hash_verify_entry, Start
B -    131175 - PBL, End
B -    212463 - SBL1, Start
B -    289841 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B -    299479 - pm_device_init, Start
B -    478545 - PM_SET_VAL:Skip
D -    177205 - pm_device_init, Delta
B -    480954 - pm_driver_init, Start
D -      5398 - pm_driver_init, Delta
B -    487329 - clock_init, Start
D -      2135 - clock_init, Delta
B -    491263 - boot_flash_init, Start
D -      8570 - boot_flash_init, Delta
B -    503616 - boot_config_data_table_init, Start
D -      3050 - boot_config_data_table_init, Delta - (575 Bytes)
B -    511058 - Boot Setting :  0x00000618
B -    515084 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    521916 - sbl1_ddr_set_params, Start
B -    525728 - CPR configuration: 0x30c
B -    529175 - cpr_init, Start
B -    531950 - Rail:0 Mode: 5 Voltage: 848000
B -    537166 - CL CPR settled at 800000mV
B -    540002 - Rail:1 Mode: 5 Voltage: 904000
B -    544181 - Rail:1 Mode: 7 Voltage: 952000
D -     16531 - cpr_init, Delta
B -    551043 - Pre_DDR_clock_init, Start
B -    555069 - Pre_DDR_clock_init, End
B -    558455 - DDR Type : PCDDR3
B -    564067 - do ddr sanity test, Start
D -      1067 - do ddr sanity test, Delta
B -    568916 - DDR: Start of HAL DDR Boot Training
B -    573644 - DDR: End of HAL DDR Boot Training
B -    579347 - DDR: Checksum to be stored on flash is -2105217666
B -    589748 - Image Load, Start
D -    224175 - QSEE Image Loaded, Delta - (1376448 Bytes)
B -    814014 - Image Load, Start
D -        30 - SEC Image Loaded, Delta - (0 Bytes)
B -    821700 - Image Load, Start
D -     10675 - DEVCFG Image Loaded, Delta - (26008 Bytes)
B -    832467 - Image Load, Start
D -     22051 - RPM Image Loaded, Delta - (86584 Bytes)
B -    854610 - Image Load, Start
D -    112392 - APPSBL Image Loaded, Delta - (697944 Bytes)
B -    967124 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    972919 - USB D+ check, Start
D -         0 - USB D+ check, Delta
B -    979324 - SBL1, End
D -    769179 - SBL1, Delta
S - Flash Throughput, 6788 KB/s  (2187559 Bytes,  322225 us)
S - DDR Frequency, 466 MHz
S - Core 0 Frequency, 1651 MHz


U-Boot 2016.01 (Jun 03 2020 - 20:28:21 +0800)
RT-AX89U bootloader version: 2.1.2.1

DRAM:  smem ram ptable found: ver: 1 len: 4
ASUS RT-AX89U gpio init : buttons
1 GiB
NAND:  Could not find nand_gpio in dts, using defaults
ONFI device found
ID = 1590aac2
Vendor = c2
Device = aa
 ESCODstop_auth:: done
_ifconfig: name=eth3 flags=1043 IFUP addr=0.0.0.0 netmask=
update_wan_state(wan0_, 4, 0)
stop_wan_if wan0_proto=dhcp
update_wan_state(wan1_, 6, 0)
stop_auth:: done
stop_auth:: done
update_wan_state(wan1_, 4, 0)
stop_wan_if wan1_proto=dhcp
TERM
KILL^@^@
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00158
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B -       203 - PBL, Start
B -      2738 - bootable_media_detect_entry, Start
B -      3446 - bootable_media_detect_success, Start
B -      3450 - elf_loader_entry, Start
B -      6116 - auth_hash_seg_entry, Start
B -      6359 - auth_hash_seg_exit, Start
B -     68332 - elf_segs_hash_verify_entry, Start
B -    131175 - PBL, End
B -    212463 - SBL1, Start
B -    289841 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B -    299479 - pm_device_init, Start
B -    478545 - PM_SET_VAL:Skip
D -    177205 - pm_device_init, Delta
B -    480954 - pm_driver_init, Start
D -      5398 - pm_driver_init, Delta
B -    487329 - clock_init, Start
D -      2135 - clock_init, Delta
B -    491263 - boot_flash_init, Start
D -      8570 - boot_flash_init, Delta
B -    503616 - boot_config_data_table_init, Start
D -      3050 - boot_config_data_table_init, Delta - (575 Bytes)
B -    511058 - Boot Setting :  0x00000618
B -    515084 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    521916 - sbl1_ddr_set_params, Start
B -    525728 - CPR configuration: 0x30c
B -    529175 - cpr_init, Start
B -    531950 - Rail:0 Mode: 5 Voltage: 848000
B -    537166 - CL CPR settled at 800000mV
B -    540002 - Rail:1 Mode: 5 Voltage: 904000
B -    544181 - Rail:1 Mode: 7 Voltage: 952000
D -     16531 - cpr_init, Delta
B -    551043 - Pre_DDR_clock_init, Start
B -    555069 - Pre_DDR_clock_init, End
B -    558455 - DDR Type : PCDDR3
B -    564067 - do ddr sanity test, Start
D -      1067 - do ddr sanity test, Delta
B -    568916 - DDR: Start of HAL DDR Boot Training
B -    573644 - DDR: End of HAL DDR Boot Training
B -    579347 - DDR: Checksum to be stored on flash is -2105217666
B -    589748 - Image Load, Start
D -    224175 - QSEE Image Loaded, Delta - (1376448 Bytes)
B -    814014 - Image Load, Start
D -        30 - SEC Image Loaded, Delta - (0 Bytes)
B -    821700 - Image Load, Start
D -     10675 - DEVCFG Image Loaded, Delta - (26008 Bytes)
B -    832467 - Image Load, Start
D -     22051 - RPM Image Loaded, Delta - (86584 Bytes)
B -    854610 - Image Load, Start
D -    112392 - APPSBL Image Loaded, Delta - (697944 Bytes)
B -    967124 - QSEE Execution, Start
D -        61 - QSEE Execution, Delta
B -    972919 - USB D+ check, Start
D -         0 - USB D+ check, Delta
B -    979324 - SBL1, End
D -    769179 - SBL1, Delta
S - Flash Throughput, 6788 KB/s  (2187559 Bytes,  322225 us)
S - DDR Frequency, 466 MHz
S - Core 0 Frequency, 1651 MHz


U-Boot 2016.01 (Jun 03 2020 - 20:28:21 +0800)
RT-AX89U bootloader version: 2.1.2.1

DRAM:  smem ram ptable found: ver: 1 len: 4
ASUS RT-AX89U gpio init : buttons
1 GiB
NAND:  Could not find nand_gpio in dts, using defaults
ONFI device found
ID = 1590aac2
Vendor = c2
Device = aa
SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
256 MiB
MMC:   
*** Warning - bad CRC, using default environment

In:    serial@78B3000
Out:   serial@78B3000
Err:   serial@78B3000
Check bootloader area ... 
qpic_nand_read_oob: correctable error @ page 0x18
qpic_nand_read_oob: correctable error @ page 0xc1
qpic_nand_read_oob: correctable error @ page 0x1be
qpic_nand_read_oob: correctable error @ page 0x393
qpic_nand_read_oob: correctable error @ page 0x695
qpic_nand_read_oob: correctable error @ page 0x6be
machid: 8010000
Net:   HwId: MAC0 addr:0:aa:bb:cc:dd:e0
PORT0/5/6_PAD_CTRL 0x05080000/01000000/00000080
PORT0/5/6_STATUS   0x0000007e/00001280/00000230
8075 PHY ID1: 0x4d
8075 PHY ID2: 0xd0b1
switch_mac_mode: 0x5/ff/2
EDMA ver 1 hw init
Num rings - TxDesc:1 (0-0) TxCmpl:1 (7-7)
RxDesc:1 (15-15) RxFill:1 (7-7)
ipq807x_edma_alloc_rings: successfull
ipq807x_edma_setup_ring_resources: successfull
ipq807x_edma_configure_rings: successfull
ipq807x_edma_hw_init: successfull
eth0
ubi0: attaching mtd1
qpic_nand_read_oob: correctable error @ page 0x1f7c0
qpic_nand_read_oob: correctable error @ page 0x1fcc0
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=2", size 252 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 2013, bad PEBs: 3, corrupted PEBs: 0
ubi0: user volume: 5, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 561100077
ubi0: available PEBs: 0, total reserved PEBs: 2013, PEBs reserved for bad PEB handling: 37
UBI:   vol_id  reserved_pebs  alignment  data_pad  vol_type  usable_leb_size  used_ebs  used_bytes  last_eb_bytes  corrupted  upd_marker  name_len  name
UBI:        0              3          1         0   dynamic            1f000         3       5d000         1f000          0           0         5  nvram
UBI:        1              3          1         0   dynamic            1f000         3       5d000         1f000          0           0         7  Factory
UBI:        2              3          1         0   dynamic            1f000         3       5d000         1f000          0           0         8  Factory2
UBI:        3            33a          1         0   dynamic            1f000       33a     6406000         1f000          0           0         5  linux
UBI:        4            471          1         0   dynamic            1f000       471     89af000         1f000          0           0         5  jffs2
UBI: 7fffefff              2          1         0   dynamic            1f000         2       3e000             2          0           0         d  layout volume
Read 5d000 bytes from volume Factory offset 0 to 4a08270c
EEPROM set 0: OK (version 56)
Read 5d000 bytes from volume Factory2 offset 0 to 4a08270c
EEPROM set 1: OK (version 56)
Read 5d000 bytes from volume Factory offset 0 to 4a0e2ba0
Select EEPROM set 0 at offset 0x0.
HwId: C

Okay I now have it working fine by using the Feb 11 initramfs for web. Feb 5 and Feb 16 both brick my device when uploading to the Asus web.

I have now sys upgraded to Feb 12-sysupgrade. Will stay on that for a bit since I don't want to risk it :smiley:

Some details

Date Sha256 Bricks
Feb 5 bf817c0383ef5b9fa1009652f8afa30b26b2e23fa0522a8932c7721f93a69385 YES
Feb 11 b48ab12560fdfe0eaf5ed66731e38a55b38890fe14d02dc2d2b8a6c649bbe3d8 NO
Feb 16 158456b119d6299c0684fde01485eab0bd44271b45b79955cf0fdeaf30b4f410 YES

I'm not sure why only the Feb11 version works and the others do not when flashing to the web.

2 Likes

Thanks for the logs! Thanks to you, I found an error in the code of my utility mkasustrx!
Today I will fix it.

Reason for error: FDT image must be aligned to an 8-byte address.

2 Likes

Okay awesome. I am glad that I captured the correct logs for you to find it. Much appreciated.

The fix was not easy! But everything worked out:
https://github.com/openwrt-xiaomi/openwrt/commit/f25b0acb8f21d0fc862ff5d5ec9c609e6b69a81e#diff-b3afd9d94ac53d0ac9bf36931d9c62e592be67f8c64114566e4a74daf249ec34R99-R108

2 Likes

I tried the Feb 21 sysupgrade and it worked perfectly!

2 Likes

This is a thread in the developer section for this particular device. To post your own hardware question or review multiple other available options Iā€™d check out the hardware section of the forums (there are multiple recent threads and/or you can start your own thread with your requirements):

1 Like

To set a fixed fan speed, you need to add a few lines to file rc.local (LuCI -> System -> Startup):

for file in /sys/class/thermal/thermal_zone*/mode; do
  echo disabled > "$file";
done
echo 1600 > /sys/class/hwmon/hwmon0/fan1_target

@remittor qq I am updating my device when I see them in the Google drive. Are they just updates from OpenWRT main branch or are they specific updates to the x89x software?

Unless otherwise specified, It is going to be a long time before we will see official OpenWRT firmware for this device.

Can you please elaborate what remains the main blocker for releasing it sooner? I.e. something needs work or it relies on changes that won't land until much later?

well, to go more into a bit detail, I thin the OpenWRT maintainers are doing a "all hands on deck" to changing all the routers they support from whatever kernel they are on now to kernel 6.1 or 6.6

As much as I would like to see the RT-AX89X "rock n roll" with OpenWRT, I think all we can do is wait.

heres to hoping we see it very soon on the "stable builds" downloads folder

I am convinced that version 24.XX.0 (or 25.XX.0) will have to wait a very long time.

23.05.0, while branched in late May, has only been released in mid October. According to the usual cadence of a bit over a year between releases, this -with kernel v6.1- would be a bit early (yes, there is quite some staging new hardware support and some breaking changes (DSA for ipq806x, {,sub}target rename for qualcommax/ipq807x, lots of work on filogic 820/ 830, ~830, qualcommax/ipq60xx is already knocking at the door (mostly waiting for QCA to formally publish a working wireless firmware)), but other aspects of OpenWrt still need to catch up (mbedtls, hostapd, the kernel for the older targets, ā€¦).

So yes, 24.xy.0 (and that may very well become 25.xy.0) will take a while, but probably less because of the (not really formally final yet) switch to kernel v6.6 instead of v6.1, just more because of the rest of the system. We're already seeing a flurry of activity to port the popular/ newer targets to v6.6 - so I would expect most of the targets that are on v6.1 now, to be on v6.6 very soon. The real efforts will be necessary for the older and less actively maintained targets, but those have only gotten attention for v6.1 very recently or are still on v5.15 now. Yes, a switch to kernel v6.6 will have 'some' impact on the release schedule, but less than you seem to imply (perhaps ~1-2 months). It's not throwing the baby out with the bathwater.

Yes, running main snapshots is not for everyone, but once your device becomes available in main, it will be usable and will (very likely) be part of the next stable release, whatever that will be called.

Disclaimer: this is just extrapolating from recent history and keeping an eye on the development, I'm obviously not an OpenWrt developer, nor have any inside information, nor speaking for the project.

Hi, can you help me out with this fan setting?
I have the issue that my model turns off the fan shortly after boot (even before luci is running). One temp sensor (gpio008) runs around 92 degrees C, so I think I should get that fan running again.

I have added this line to my startup, but it did not help. I then changed the folder from hwmon0 to hwmon1 because there I found fan-related files, including fan1_target. But after boot the fan is off again.
Editing them manually does not work, for some reason. The values are noted as saved, but upon re-opening the file it has reverted to zero.

I am running on snapshot 240317 master, which is the latest I could find.

probably better off waiting for the official firmware to come out first. So as of right now, probably got about 6 more months to go before the OpenWRT developers start making official firmware for this router.

Mhm, it sure is the safest bet for getting a functioning firmware.
I'm just thinking, this is clearly a bug, that I should report/mention. It strikes me, especially because there seems to be a process overriding any fix I come up with. As I said earlier, the fan speed values can be edited, but they get reset shortly after again. Even changing chmod to read only does not prevent this. Weird.

So far I have not encountered any other issue, which probably is a good sign in terms of quickly porting it to the new firmware. I sure am looking forwards to it :slight_smile:

This may not happen for this reason:

OpenWRT developers are very strange people and can simply refuse to build old uImage for a ARM64 platform.