Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
inbox:toh:asus:rt-ac57u_v2 [2021/10/29 11:55] – [Hardware] hsxskyinbox:toh:asus:rt-ac57u_v2 [2022/04/17 22:25] – [Installing OpenWrt] remove confusing info about similar devices (updated tag in repo has symlinks for all devices); clarify partition layout note alex.const
Line 1: Line 1:
-====== ASUS RT-AC57U V2 ======+====== ASUS RT-AC57U v2 ======
  
 {{page>meta:infobox:construction&noheader&nofooter&noeditbtn}} {{page>meta:infobox:construction&noheader&nofooter&noeditbtn}}
  
-AC1200 Dual Band WiFi Gigabit Router. +AC1200 Dual Band WiFi Gigabit Router.\\ 
 +Support for this device is **Work In Progress**!
  
-Features: +^ Links ^^ 
-    300 Mbps(2.4GHzWiFi +| wikidevi (source of some info on the page           | https://wikidevi.wi-cat.ru/ASUS_RT-AC57U_v2 | 
-    867 Mbps (5GHzWiFi +| GPL Source Code (select "Others" in "select OS" drop-down| https://www.asus.com/Networking-IoT-Servers/WiFi-Routers/ASUS-WiFi-Routers/RT-AC57U-V2/HelpDesk_Download/ |
-  *   4 pc Gigabit LAN ports  +
-  *   1 pc Gigabit WAN ports +
-  *   1 pc USB 2.0 port+
  
-The router has 9 leds:+===== Common information ===== 
 + 
 +This section describes information that is shared across the series of related devices. 
 + 
 +^ Common Links ^^ 
 +| Forum thread | https://forum.openwrt.org/t/adding-openwrt-support-for-asus-rt-ac57u-v2/53281 | 
 +| WIP PR for qcn5502 (802.11n at 2.4GHz) Wi-Fi | https://github.com/openwrt/openwrt/pull/9389 | 
 +| FCC            | https://fcc.io/MSQ/-RTACRH01 
 +| Similar or identical devices          | [[inbox:toh:asus:rt-ac59u_series|series]] | 
 + 
 +^ Common specifications ^^ 
 +| SoC            | Qualcomm QCN5502 WiSoC| 
 +| CPU            | MIPS 74Kc (v5.0) @775MHz| 
 +| WLAN1          | Qualcomm Atheros QCN5502 (bgn)| 
 +| WLAN2          | Qualcomm Atheros QCA9888 (an+ac, 2T2R, 5GHz)| 
 +| RAM            | 128 MiB (Winbond W971GG6SB-25)| 
 +| USB            | one USB 2.0 port| 
 +| Switch         | Qualcomm Atheros QCA8337| 
 +| Ethernet speed | 1000Mbps| 
 +| LAN ports      | 4| 
 +| WAN ports      | 1| 
 + 
 +Serial: there are 4 connection points in the upper right corner of the board. 
 + 
 +Left to right: power, ground, TX, RX. Check the labels near the holes. Baud-rate is 115200. 
 + 
 +The router has 9 LEDs:
   * Power   * Power
   * Port4   * Port4
Line 19: Line 43:
   * Port1   * Port1
   * Wan   * Wan
-  * 2.4Ghz Wifi +  * 2.4Ghz WiFi 
-  * 5 Ghz Wifi +  * 5 Ghz WiFi 
-  * Usb +  * USB
-===== Ssh =====+
  
-Ssh access can be enabled by router web admin page at this menu point: Administration - System - Service+==== Stock firmware ====
  
 +ssh access can be enabled on the router web admin page at this menu point: Administration -> System -> Service.
 +You have full root access.
  
-I suggest these settings for security reason: +^ Default settings ^^ 
-  * Enable TelnetNo +| SSID 2.4GHz| ASUS| 
-  * Enable SSHLan only +| SSID 5GHz  | ASUS_5G| 
-  * SSH Port: port from 1025 to 65535 +| IP address | 192.168.50.1| 
-  * Allow Password Login: Yes (It use your  web admin password)+| User       | admin| 
 +| Password   | admin| 
 + 
 +==== Installing OpenWrt ==== 
 + 
 +NOTE! There is no official support at this point. The following link leads to an unofficial, personal repository where the development is taking place. 
 + 
 +You can download the WIP source code and community images at https://gitlab.com/alexconst.sh/openwrt. 
 +  - Building from sourcebranch apjet01-802.11n is probably what you want as it is the only one with qcn5502 support 
 +  - Using unofficial images (NO WARRANTY! **BACK UP YOUR FLASH!**) 
 +    - make sure your stock flash layout matches the table under the "Flash Layout" section below on this page (rootfs doesn't matter as long as it's contained inside "linux"
 +    - checkout the ''apjet01-releases/v1'' tag and look inside ''asus-apjet01-releases'' directory 
 +    - select the file depending on the name **(and version!)** of your device 
 +    - ''*squashfs-factory.bin'' is what you want for full initial install 
 + 
 +In recovery mode, the bootloader will start a tftp //server// and wait for you to send the image. 
 + 
 +  - Connect router's LAN port to your computer 
 +  - Set static IP of computer to ''192.168.1.10/24'' 
 +  - Make sure the router is turned off 
 +  - Hold the reset button 
 +  - Turn the router on and keep holding the button a few seconds until you see the power LED blinking slowly 
 +  - Use a tftp **client** to send the image file to IP 192.168.1.1 at port 69 (example with atftp: ''%%atftp --put -l /path/to/image 192.168.1.1 69%%''
 +  - If there are no errors from tftp client, bootloader is installing OpenWrt; wait 2-3 minutes 
 +  - Remove static IP from your computer's network interface, switch back to DHCP 
 + 
 +==== Flash Layout ==== 
 + 
 +^ partition   ^ start            ^ end              ^ Name          ^ 
 +|mtd0| 0x000000000000 | 0x000000040000 | Bootloader| 
 +|mtd1| 0x000000040000 | 0x000000050000 | nvram     | 
 +|mtd2| 0x000000050000 | 0x000000060000 | Factory   | 
 +|mtd3| 0x000000060000 | 0x000000f80000 | linux     | 
 +|mtd4| 0x0000001ecb00 | 0x000000f80000 | rootfs    | 
 +|mtd5| 0x000000f80000 | 0x000001000000 | jffs2     | 
 +|mtd6| 0x000000000000 | 0x000001000000 | ALL       | 
 + 
 +You can backup a partition like this: 
 +  * Login via ssh, telnet or serial console 
 +  * Use dd command to backup (Danger, wrong usage can overwrite rom): ''dd if=/dev/mtd6 of=all.img'' 
 +  * Use scp to download the image
  
-Get device type: 
-  * uname -n 
-  * RT-AC57U_V2 
  
 ===== Hardware ===== ===== Hardware =====
  
-Router may use two slightly different SOC:+Router was produced at two slightly different **SOC**
   * Qualcomm Atheros QCA5502 ver 1 rev 0   * Qualcomm Atheros QCA5502 ver 1 rev 0
   * Qualcomm Atheros QCA5502 rev 0   * Qualcomm Atheros QCA5502 rev 0
  
-Switch: Atheros AR8337 rev. 2+74Kc MIPS processor with 64 KB I-Cache and 32 KB D-Cache, targeted to operate at up to 775 MHz
  
 +**Switch**: Atheros AR8337 rev. 2
  
- +<hidden>
  
 +<WRAP bootlog>
 +<nowiki>
 +IMQ driver loaded successfully. (numdevs = 8, numqueues = 1, imq_dev_accurate_stats = 1)
 +        Hooking IMQ after NAT on PREROUTING.
 +        Hooking IMQ before NAT on POSTROUTING.
 +libphy: ag71xx_mdio: probed
 +switch0: Atheros AR8337 rev. 2 switch registered on 19000000.mdio
 +ar71xx: using random MAC address for 0
 +eth0: Atheros AG71xx at 0xb9000000, irq 4
 +ag71xx 19000000.ethernet: connected to PHY at 19000000.mdio:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
 +PPP generic driver version 2.4.2
 +PPP MPPE Compression module registered
 +NET: Registered protocol family 24
 +PPTP driver version 0.8.5
 +ath79_wdt: WDOG_REG_CTRL: 0x80000000
  
 +ath79_wdt: Last system reboot was due to WDOG
 +u32 classifier
 +    Performance counters on
 +nf_conntrack version 0.5.0 (1948 buckets, 7792 max)
 +xt_time: kernel timezone is -0000
 +gre: GRE over IPv4 demultiplexor driver
 +ip_tables: (C) 2000-2006 Netfilter Core Team
 +arp_tables: (C) 2002 David S. Miller
 +NET: Registered protocol family 10
 +ip6_tables: (C) 2000-2006 Netfilter Core Team
 +NET: Registered protocol family 17
 +bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
 +Bridge firewalling registered
 +l2tp_core: L2TP core driver, V2.0
 +l2tp_ppp: PPPoL2TP kernel driver, V2.0
 +l2tp_netlink: L2TP netlink interface
 +8021q: 802.1Q VLAN Support v1.8
 +</nowiki>
 +</WRAP>\\
  
 +</hidden>
  
 +**WLAN Hardware**
  
-==== Flash Layout ==== +<hidden>
-16MB flash memory. +
- +
-^ ASUS RT-AC57U V2  ^^^^ +
-^ partition   ^ start            ^ end              ^ Name          ^ +
-|mtd0| 0x000000000000 | 0x000000040000 | "Bootloader"+
-|mtd1| 0x000000040000 | 0x000000050000 | "nvram"+
-|mtd2| 0x000000050000 | 0x000000060000 | "Factory"+
-|mtd3| 0x000000060000 | 0x000000f80000 | "linux"+
-|mtd4| 0x0000001ecb00 | 0x000000f80000 | "rootfs"+
-|mtd5| 0x000000f80000 | 0x000001000000 | "jffs2"+
-|mtd6| 0x000000000000 | 0x000001000000 | "ALL"|+
  
-You can backup partition like that: +Qualcomm Atheros 5500 (integrated to SOC?) 
-  * Login by ssh +  * WLAN 2.4GHz: bgn
-  * Use dd command to backup.(Danger, wrong usege can overwrite rom.)+
 <code> <code>
-admin@RT-AC57U_V2:/tmp/home/root# dd if=/dev/mtd6 of=all.img +wifi0: Qualcomm Atheros 5500: mem_start: =0xb8100000, mem_end: =0xb8120000, irq=47 
-32768+records in +ath_da_pci:  (Atheros/multi-bss) 
-32768+records out+ath_ol_pci:  (Atheros/multi-bss) 
 +hif_pci_enable_bus: con_mode 0x0, device_id = 0x56 
 +ath_ol_pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
 </code> </code>
-  * Use scp (for example: winscp.net) to download the image 
  
 +<code>
 +wifi0      Link encap:UNSPEC  HWaddr A8-5E-45-0C-16-B8-00-41-00-00-00-00-00-00-00-00
 +           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 +           RX packets:1771228 errors:0 dropped:0 overruns:0 frame:0
 +           TX packets:5477680 errors:28401 dropped:0 overruns:0 carrier:0
 +           collisions:0 txqueuelen:2699
 +           RX bytes:170901312 (162.9 MiB)  TX bytes:2372010255 (2.2 GiB)
 +           Interrupt:47 Memory:b8100000-b8120000
 +</code>  
  
 +Qualcomm Atheros QCA9888
 +  * WLAN 5.0GHz: a/n/ac
 +<WRAP bootlog>
 +<nowiki>
 +PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
 +hif_pci_enable_bus: hif_enable_pci done *********** QCA9888 *************hif_pci_enable_bus: hif_type = 0xe, target_type = 0xchif_pci_enable_bus: hif_pci_probe_tgt_wakeup donehif_target_sync: Loop checking FW signalhif_target_sync: Got FW signal, retries = 0hif_config_ce: ce_init donehif_config_ce: X, ret = 0hif_set_hia: Ehif_set_hia_extnd: E
 +chip_id 0xc chip_revision 0x0
  
 + CLOCK PLL skipped
 +hif_set_hia_extnd: setting the target pll frac ffffffff intval ffffffff
 +hif_set_hia_extnd: no frac provided, skipping pre-configuring PLL
 +hif_pci_bus_configure: hif_set_hia donehif_configure_irq: Ehif_pci_configure_legacy_irq: Ehif_pci_configure_legacy_irq: X, ret = 0hif_enable: X OKhif_napi_create: NAPI structures initializedhif_napi_create: NAPI id 6 created for pipe 5qca_napi_create: napi instance 32 created on pipe 4
 +hif_napi_event: received evnt: CONF cmd; v = 1 (state=0x1)hif_napi_event: setting configuration to ON
 +__ol_ath_attach() Allocated scn 86500400
 +__ol_ath_attach: dev name wifi1
 +ol_ath_attach interface_id 1
 +ol_target_init() BMI inited.
 +ol_target_init() BMI Get Target Info.
 +Chip id: 0xc, chip version: 0x1000000
  
 + CE WAR Disabled
 +NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
 +ol_target_init() configure Target .
  
 + Target Version is 1000000
  
 + Flash Download Address  c0000
 +ol_transfer_bin_file: flash data file defined
 +ath_mtd_read: read [Factory] from 0x5000 len 12064
 +qc98xx_verify_checksum: flash checksum passed: 0x48f1
 +ol_transfer_bin_file 3929: Download Flash data len 12064
 +Board extended Data download address: 0x0
  
 + Board data initialized
 +ol_ath_download_firmware: Download OTP, flash download ADDRESS 0xc0000
  
 + Selecting  OTP binary for CHIP Version 0
 +ath_ol_pci 0000:00:00.0: Direct firmware load for QCA9888/hw.2/otp.bin failed with error 0
 +ath_ol_pci 0000:00:00.0: Falling back to user helper
 +ol_transfer_bin_file 3738: downloading file 0, Download data len 9116
  
 + First OTP send param 8000
 +ol_ath_download_firmware :First OTP download and Execute is good address:0x4000 return param 4660
 +ol_ath_download_firmware:##Board Id 16 , CHIP Id 0
 +ol_ath_download_firmware: BOARDDATA DOWNLOAD TO address 0xc0000
 +
 + wifi1: Selecting board data file name boardData_2_0_QCA9888_5G_Y9690.bin
 +ol_transfer_bin_file: Board Data File download to address=0xc0000 file name=QCA9888/hw.2/boardData_2_0_QCA9888_5G_Y9690.bin
 +ath_ol_pci 0000:00:00.0: Direct firmware load for QCA9888/hw.2/boardData_2_0_QCA9888_5G_Y9690.bin failed with error 0
 +ath_ol_pci 0000:00:00.0: Falling back to user helper
 +ol_transfer_bin_file 3738: downloading file 3, Download data len 12064
 +Board extended Data download address: 0x0
 +ol_ath_download_firmware: Using 0x1234 for the remainder of init
 +
 + Selecting  OTP binary for CHIP Version 0
 +ath_ol_pci 0000:00:00.0: Direct firmware load for QCA9888/hw.2/otp.bin failed with error 0
 +ath_ol_pci 0000:00:00.0: Falling back to user helper
 +ol_transfer_bin_file 3738: downloading file 0, Download data len 9116
 +</nowiki>
 +</WRAP>\\
 +
 +<code>
 +wifi1      Link encap:UNSPEC  HWaddr A8-5E-45-0C-16-BC-00-41-00-00-00-00-00-00-00-00
 +           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 +           RX packets:66399 errors:0 dropped:0 overruns:0 frame:0
 +           TX packets:501764 errors:0 dropped:0 overruns:0 carrier:0
 +           collisions:0 txqueuelen:2699
 +           RX bytes:12769893 (12.1 MiB)  TX bytes:355196025 (338.7 MiB)
 +           Interrupt:40 
 +</code>             
 +
 +</hidden>
  
-===== Forum  ===== 
-https://forum.openwrt.org/t/adding-openwrt-support-for-asus-rt-ac57u-v2/53281/27 
  
 ===== Data  ===== ===== Data  =====
 Device datta according: [[:docs:guide-developer:adding_new_device]] Device datta according: [[:docs:guide-developer:adding_new_device]]
 +
 +<hidden>
  
 dmesg: dmesg:
Line 1942: Line 2104:
 </code> </code>
  
 +</hidden>
 +
 +===== Tags =====
  
 +{{tagpage>WIP}} {{tagpage>ath79}} {{tagpage>16flash}} {{tagpage>128ram}} {{tagpage>5port}} {{tagpage>1usb}}
  • Last modified: 2024/05/09 00:21
  • by marceloalm