Asus rt-ac1200

So ... TLDR I thought I was getting a deal on a completely different router. I didn't see a lot of movement on these routers. My curiosity got the best of me. :grinning:

admin@(none):/proc# cat cpuinfo
system type             : MT7628
processor               : 0
cpu model               : MIPS 24Kc V5.5
BogoMIPS                : 386.04
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0d38, 0x0b30]
ASEs implemented        : mips16 dsp
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

Anyone interested?

Rebooting...[1 init:init_main +4593] recv siSysRq : Emergency Sync
gnal 15 from pidEmergency Sync complete
 [1414:reboot] (from user)
/ # killall_tk: waiting name=rstats n=9
killall_tk: waiting name=rstats n=8
killall_tk: waiting name=rstats n=7
killall_tk: waiting name=networkmap n=9
killall_tk: waiting name=networkmap n=8
killall_tk: waiting name=networkmap n=7
killall_tk: waiting name=networkmap n=6
killall_tk: waiting name=networkmap n=5
killall_tk: waiting name=networkmap n=4
killall_tk: waiting name=networkmap n=3
killall_tk: waiting name=networkmap n=2
killall_tk: waiting name=networkmap n=1
killall_tk: waiting name=networkmap n=0
killall_tk: SIGKILL name=networkmap n=9
[1 init:stop_dnsmasq +4594] begin
[1 init:stop_dnsmasq +4594] end
[doSystem] iwpriv rai0 set WscConfMode=0
[doSystem] iwpriv rai0 set WscStatus=0
[doSystem] iwpriv ra0 set WscConfMode=0
[doSystem] iwpriv ra0 set WscStatus=0
update_wan_state(wan0_, 6, 0)
stop_auth:: done
stop_auth:: done
_ifconfig: name=vlan2 flags=0000  addr=(null) netmask=(null)
update_wan_state(wan0_, 4, 0)
udhcpc_wan:: deconfig
_ifconfig: name=vlan2 flags=1043 IFUP addr=0.0.0.0 netmask=(null)
wan_down(vlan2)
wan_down(vlan2): 172.31.254.6 8.8.8.8 8.8.4.4.
stop_auth:: done
route_manip: cmd=DEL name=vlan2 addr=0.0.0.0 netmask=0.0.0.0 gateway=172.31.254.1 metric=0
update_wan_state(wan0_, 3, 0)
update_wan_state(wan0_, 4, 3)
udhcpc:: deconfig done
stop_wan_if wan0_proto=dhcp
stop_lan 2183

## wanduck.safeexit ##
_ifconfig: name=lo flags=0000  addr=(null) netmask=(null)
_ifconfig: name=br0 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wds0 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wds1 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wds2 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wds3 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wdsi0 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wdsi1 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wdsi2 flags=0000  addr=(null) netmask=(null)
_ifconfig: name=wdsi3 flags=0000  addr=(null) netmask=(null)
[1 init:init_nvram +4595] init_nvram for model(57)
set_basic_ifname_vars: WAN vlan2 LAN vlan1 2G ra0 5G rai0 USB usb AP_LAN vlan1 DW_WAN (null) DW_LAN vlan3 force_dwlan 0, sw_mode 1
wan_ifnames: vlan2
num_of_mssid_support(0x0091): [mssid] support [3] mssid
update_lan_state(lan_, 4, 0)
hotplug net INTERFACE=br0 ACTION=remove
stop_lan 2383
hotplug net INTERFACE=vlan1 ACTION=remove
hotplug net INTERFACE=vlan2 ACTION=remove
exec_for_host(-1, 2, 16, 4608072)
shutdn rb=1
1: check_action 0
1: set_action 8
1
# Disable direct rule(exit wanduck)
start_nat_rules: apply the nat_rules(/tmp/nat_rules_vlan2_vlan2)!

# return(exit wanduck)
update_wan_state(wan0_, 6, 0)
stop_auth:: done
stop_auth:: done
_ifconfig: name=vlan2 flags=0000  addr=(null) netmask=(null)
vlan2: No such device
update_wan_state(wan0_, 4, 0)
1stop_wan_if wan0_proto=dhcp
TERRestarting system.



U-Boot 1.1.3 (May 28 2015 - 13:51:25)

RT-AC1200 bootloader version: 1.0.0.0
Board: Ralink APSoC DRAM:  64 MB
ASUS RT-AC1200 gpio init : wps / reset pin
******************************
Software System Reset Occurred
******************************
flash manufacture id: c2, device id 20 18
find flash: MX25L12805D
raspi_read: from:40035 len:1 
raspi_read: from:40036 len:1 
raspi_read: from:30000 len:1000 
Maximum malloc length: 1024 KBytes
mem_malloc_start/brk/end: 0x83eb3000/83eb5000/83fb4000
raspi_read: from:30000 len:1000 
============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:May 28 2015  Time:13:51:25
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 
RESET MT7628 PHY!!!!!!
Please choose the operation: 
   0: Load System code then write to Flash via Serial. 
   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.
   5: Load Boot Loader code to SDRAM via Serial. 
   7: Load Boot Loader code then write to Flash via Serial. 
   8: Load Boot Loader code to SDRAM via TFTP. 
   9: Load Boot Loader code then write to Flash via TFTP. 


You choosed 1


raspi_read: from:40004 len:6 

   
1: System Load System code to SDRAM via TFTP. 
 Please Input new ones /or Ctrl-C to discard
	Input device IP (192.168.50.1) ==:192.168.50.11\  

	Input server IP (192.168.50.114) ==:192.168.50.114

	Input Linux Kernel filename (lede-ramips-mt7628-rt-ac1200-rootfs.tar.gz) ==:lede-ramips-mt7628-rt-ac1200-rootfs.tar.gze[2~                                              lede-ramips-mt7628-rt-ac1200-initramfs-kernel.bin


 netboot_common, argc= 3 

 KSEG1ADDR(NetTxPacket) = 0xA3FCE2C0 

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
switch prereq:0
TFTP from server 192.168.50.114; our IP address is 192.168.50.1
Filename 'lede-ramips-mt7628-rt-ac1200-initramfs-kernel.bin'.

 TIMEOUT_COUNT=10,Load address: 0x81000000
Loading: *Got ARP REQUEST, return our IP
Got ARP REQUEST, return our IP
checksum bad
checksum bad
checksum bad
checksum bad
Got ARP REQUEST, return our IP
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad

ArpTimeoutCheck 
Got ARP REPLY, set server/gtwy eth addr (08:00:27:8c:d5:1a)
Got it
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###############################
done
Bytes transferred = 3483957 (352935 hex)
NetBootFileXferSize= 00352935
raspi_read: from:30000 len:10000 
Erasing SPI Flash...
raspi_erase: offs:30000 len:10000
.
Writing to SPI Flash...
raspi_write: to:30000 len:10000 
.
done
Automatic boot of image at addr 0x81000000 ...
## Checking image at 81000000 ...
   Image Name:   MIPS LEDE Linux-4.4.74
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3483893 Bytes =  3.3 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Giving linux ramsize: 67108864 (64 MB)

Starting kernel ...

[    0.000000] Linux version 4.4.74 (jeremy@ubuntu) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4504-eaaba94) ) #0 Fri Jun 30 10:14:10 2017
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Buffalo WCR-1166DS
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0005ba10
[    0.000000] Readback ErrCtl register=0005ba10
[    0.000000] Memory: 58596K/65536K available (2913K kernel code, 143K rwdata, 696K rodata, 2320K init, 195K bss, 6940K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource_probe: no matching clocksources found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015351] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.080518] pid_max: default: 32768 minimum: 301
[    0.089780] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.102728] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.123244] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.142636] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.154816] pinctrl core: initialized pinctrl subsystem
[    0.165748] NET: Registered protocol family 16
[    0.283197] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.444205] PCI host bridge /pcie@10140000 ranges:
[    0.453548]  MEM 0x0000000020000000..0x000000002fffffff
[    0.463858]   IO 0x0000000010160000..0x000000001016ffff
[    0.482860] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.493950] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.504988] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.516730] PCI host bridge to bus 0000:00
[    0.524699] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.538321] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.549986] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.563398] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.580343] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.593330] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.607058] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.620474] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.634750] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.648176] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.662631] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.676888] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.686684] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.700109] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.714399] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[    0.725918] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    0.738440] clocksource: Switched to clocksource MIPS
[    0.749834] NET: Registered protocol family 2
[    0.759275] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.772973] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.785497] TCP: Hash tables configured (established 1024 bind 1024)
[    0.798141] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.809598] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.822226] NET: Registered protocol family 1
[    3.923763] Crashlog allocated RAM at address 0x3f00000
[    3.950121] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.961585] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    4.016916] io scheduler noop registered
[    4.024601] io scheduler deadline registered (default)
[    4.035633] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    4.049451] console [ttyS0] disabled
[    4.056415] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    4.074343] console [ttyS0] enabled
[    4.074343] console [ttyS0] enabled
[    4.088040] bootconsole [early0] disabled
[    4.088040] bootconsole [early0] disabled
[    4.105383] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    4.119980] m25p80 spi32766.0: using chunked io (size=32)
[    4.130740] m25p80 spi32766.0: mx25l12805d (16384 Kbytes)
[    4.141482] 7 ofpart partitions found on MTD device spi32766.0
[    4.153036] Creating 7 MTD partitions on "spi32766.0":
[    4.163220] 0x000000000000-0x000000030000 : "u-boot"
[    4.174872] 0x000000030000-0x000000040000 : "u-boot-env"
[    4.187317] 0x000000040000-0x000000050000 : "factory"
[    4.199314] 0x000000050000-0x000000810000 : "firmware"
[    4.254020] 0x000000810000-0x000000fd0000 : "firmware2"
[    4.266052] 0x000000fd0000-0x000000fe0000 : "glbcfg"
[    4.277816] 0x000000fe0000-0x000000ff0000 : "board_data"
[    4.300181] rt3050-esw 10110000.esw: link changed 0x00
[    4.311937] mtk_soc_eth 10100000.ethernet: generated random MAC address 06:1d:8f:44:ac:e3
[    4.329040] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    4.345976] mt7621_wdt 10000120.watchdog: Initialized
[    4.357571] NET: Registered protocol family 10
[    4.370185] NET: Registered protocol family 17
[    4.379141] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    4.404142] 8021q: 802.1Q VLAN Support v1.8
[    4.427872] Freeing unused kernel memory: 2320K (803ac000 - 805f0000)
[    4.453584] init: Console is alive
[    4.460619] init: - watchdog -
[    4.478336] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.503039] usbcore: registered new interface driver usbfs
[    4.514077] usbcore: registered new interface driver hub
[    4.524730] usbcore: registered new device driver usb
[    4.540418] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.555191] ehci-platform: EHCI generic platform driver
[    4.568692] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.582371] ohci-platform: OHCI generic platform driver
[    4.597329] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.622157] init: - preinit -
[    4.754919] rt3050-esw 10110000.esw: link changed 0x00
[    4.810235] random: procd: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.957592] procd: - early -
[    6.964124] procd: - watchdog -
[    7.531059] procd: - watchdog -
[    7.537556] procd: - ubus -
[    7.593282] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.611663] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.629606] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.647670] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.665553] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.683558] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.701596] random: ubusd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.719854] procd: - init -
Please press Enter to activate this console.
[    7.883164] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.900409] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.921871] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[    7.937790] Backport generated by backports.git backports-20160324-13-g24da7d3c
[    7.999842] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[    8.015115] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[    8.026562] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[    8.058441] firmware init done
[    8.251983] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[    8.277990] mt76x2e 0000:01:00.0: ROM patch already applied
[    8.299318] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[    8.310246] mt76x2e 0000:01:00.0: Build: 1
[    8.318352] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[    8.368153] mt76x2e 0000:01:00.0: Firmware running!
[    8.420084] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.455669] nf_conntrack version 0.5.0 (951 buckets, 3804 max)
[    8.572090] xt_time: kernel timezone is -0000
[    8.599820] PPP generic driver version 2.4.2
[    8.639025] NET: Registered protocol family 24
[    8.667568] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.881206] random: jshn: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    9.075042] random: jshn: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[   15.791265] device eth0.1 entered promiscuous mode
[   15.800835] device eth0 entered promiscuous mode
[   15.843545] br-lan: port 1(eth0.1) entered forwarding state
[   15.854688] br-lan: port 1(eth0.1) entered forwarding state
[   17.848453] br-lan: port 1(eth0.1) entered forwarding state



BusyBox v1.26.2 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (SNAPSHOT, r4504-eaaba94)
    \________\/    -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@LEDE:/#

This device is supported by Padavan: https://bitbucket.org/padavan/rt-n56u/

You should be able to get this working with LEDE without to much problems. The MT76 driver is still buggy on this SOC but in general it works.

That device looks promising! I'll monitor progress in support for it! :slight_smile:

Wish I had time to work on it and contribute, but I've had a chronic time-shortage for years now (since kids, basically )

I am looking for LeDe on Asus RT-AC1200.

Someone please help.. please...

Is there any OpenWRT/LEDE release working for RT-AC1200?

Thanks!

The topic is very relevant, please make an issue on this router.

I'm interested in adding support for this router.
I've read all the relevant developer documents:

https://openwrt.org/docs/guide-developer/add.new.device

I'm sshing on the device and have almost all the debug information that I need.
However, I'm stuck at the GPIO testing itself.
/sys/class/gpio does not exist on this router

admin@RT-AC1200:/# cd /sys/class/
/sys/class/bdi/           /sys/class/mem/           /sys/class/net/           /sys/class/ppp/           /sys/class/scsi_disk/     /sys/class/tty/
/sys/class/bsg/           /sys/class/misc/          /sys/class/nvram/         /sys/class/rfkill/        /sys/class/scsi_generic/  /sys/class/usb_device/
/sys/class/dma/           /sys/class/mtd/           /sys/class/pci_bus/       /sys/class/scsi_device/   /sys/class/scsi_host/
admin@RT-AC1200:/# cd /sys/class/gpio
-sh: cd: can't cd to /sys/class/gpio

Also, there is no root account defined. Admin is the only superuser here.

Is there any workaroud to test for GPIO/leds ?

From https://bitbucket.org/padavan/rt-n56u/src/master/trunk/configs/boards/RT-AC1200/board.h

#define BOARD_GPIO_BTN_RESET 5
#define BOARD_GPIO_BTN_WPS 11
#define BOARD_GPIO_LED_ALL 4
#undef BOARD_GPIO_LED_WIFI
#define BOARD_GPIO_LED_POWER 37
#undef BOARD_GPIO_LED_LAN
#undef BOARD_GPIO_LED_WAN
#define BOARD_GPIO_LED_USB 6
#undef BOARD_GPIO_LED_ROUTER
#undef BOARD_GPIO_PWR_USB