ASUS RT-G32

Atheros, Rev A model.

The device is a wireless G router with

  • 1 not-detachable antenna
  • 5 port switch
  • 4 MB Flash
  • 16 MB SDRAM

Installation

Compile or download OpenWRT (tested on both Backfire and Attitude Adjustment). You will have 2 files, which you should put into the same folder with tftpd32.exe and putty.exe

openwrt-atheros-vmlinux.lzma openwrt-atheros-root.squashfs

To log in RedBoot you will need putty and file redboot.txt with 2 letters:

^C

Set your IP to 192.168.1.254. Run ping 192.168.1.1 -t. Power on the router. When you see first ping reply, run (you may need to do it several times since you have only 2 sec interval)

putty.exe telnet://192.168.1.1:9000 -m redboot.txt

Run tftpd32.exe. You will not have to change boot script, if you name the kernel partition "vmlinux.bin.l7" (first letter in l7 is lowercase "L").

== Executing boot script in 2.040 seconds - enter ^C to abort ^C RedBoot> ip_address -h 192.168.1.254 IP: 192.168.1.1/255.255.255.0, Gateway: 192.168.1.254 Default server: 192.168.1.254 RedBoot> fis list Name FLASH addr Mem addr Length Entry point RedBoot 0xBFC00000 0xBFC00000 0x00030000 0x00000000 vmlinux.bin.l7 0xBFC30000 0x80041000 0x000E0000 0x80041000 FIS directory 0xBFFE0000 0xBFFE0000 0x0000F000 0x00000000 RedBoot config 0xBFFEF000 0xBFFEF000 0x00001000 0x00000000 RedBoot> fis init About to initialize [format] FLASH image system - continue (y/n)? y … Initialize FLASH Image System … Erase from 0xbffe0000-0xbfff0000: . … Program from 0x80ff0000-0x81000000 at 0xbffe0000: RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma Using default protocol (TFTP) Raw file loaded 0x80041000-0x80120fff, assumed entry at 0x80041000 RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7 … Erase from 0xbfc30000-0xbfd10000: ………….. … Program from 0x80041000-0x80121000 at 0xbfc30000: ………….. … Erase from 0xbffe0000-0xbfff0000: . … Program from 0x80ff0000-0x81000000 at 0xbffe0000: . RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs Using default protocol (TFTP) Raw file loaded 0x80041000-0x802e0fff, assumed entry at 0x80041000 RedBoot> fis create rootfs … Erase from 0xbfd10000-0xbffb0000: …………………………………… … Program from 0x80041000-0x802e1000 at 0xbfd10000: …………………………………… … Erase from 0xbffe0000-0xbfff0000: . … Program from 0x80ff0000-0x81000000 at 0xbffe0000: . RedBoot> reset

Telnet 192.168.1.1 and run passwd to enable ssh. You will have to configure switch, since it wont be detected correctly. Set up wifi first to be able to connect to the router if something goes wrong. Add following lines to /etc/config/network

config switch option name 'switch0' option enable_vlan '1' option reset '1' config switch_vlan option vlan '1' option device 'switch0' option ports '0t 1 2 3' config switch_vlan option vlan '2' option device 'switch0' option ports '0t 5'

Switch option name can be 'switch0' or 'eth0'. Try it out.

Hardware

Info

Architecture: MIPS
Vendor: Asus
Bootloader: RedBoot
System-On-Chip: AR2317
CPU Speed: 183 Mhz
Flash-Chip: MX25L3205D
Flash size: 4 MiB
RAM size: 16 MiB
Wireless: in SoC
Ethernet: AR8216
USB: No
Serial: Yes
JTAG: Yes

Photos

Opening the case

Note: This will void your warranty!

  1. There are two screws underneath the rubber feet at the front of the device. Remove those.
  2. Two additional screws are freely removeable at the bottom of the case. Don't forget these ;-)
  3. Remove the top of the case with the transparent plastic piece.

Serial

The serial port is the only pin header on the board The pinout is GND|TX|RX|VCC(3.3), where the ground pin is towards the front of the unit. The bootloader (RedBoot) and the original Asus firmware use a baudrate of 9600 with 8N1.

GPIO

0: WLAN LED
1: Unused pin label DS14
3: Unused pin lable DS15
4: WPS Button
6: Reset Button
7: WLAN LED

Boot messages (Original firmware)

(this is kinda screwed up)

+Ethernet eth0: MAC address e0:cb:4e:e5:47:3c IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.88 Default server: 192.168.0.88 RedBoot™ bootstrap and debug environment [ROMRAM] Non-certified release, version V1.0.0.7 - built 20:03:51, Dec 9 2008 Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. Board: ap61 RAM: 0x80000000-0x81000000, [0x80040f80-0x80fe1000] available FLASH: 0xbfc00000 - 0xbfff0000, 64 blocks of 0x00010000 bytes each. exec cmd=ip_address -l 192.168.1.1/24 -h 192.168.1.254 IP: 192.168.1.1/255.255.255.0, Gateway: 192.168.0.88 Default server: 192.168.1.254 == Executing boot script in 2.000 seconds - enter ^C to abort RedBoot> fis load -l vmlinux.bin.l7 Image loaded from 0x80041000-0x80201000 RedBoot> exec -c "root=/dev/mtdblock1 rootfs=squashfs" Now booting linux kernel: Base address 0x80030000 Entry 0x80041400 Cmdline : root=/dev/mtdblock1 rootfs=squashfs <4>CPU revision is: 00019064 <4>Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes. <4>Primary data cache 16kB 4-way, linesize 16 bytes. <4>Linux version 2.4.25-LSDK-5.3.1.31 (root@thinkpad) (gcc version 3.3.3) #3 Wed Nov 18 19:17:56 MSK 2009 <4>Determined physical RAM map: <4> memory: 01000000 @ 00000000 (usable) <4>On node 0 totalpages: 4096 <4>zone(0): 4096 pages. <4>zone(1): 0 pages. <4>zone(2): 0 pages. <4>Kernel command line: console=ttyS0,9600 root=/dev/mtdblock1 rootfs=squashfs <4>Using 92.000 MHz high precision timer. <4>Calibrating delay loop… 183.50 BogoMIPS <6>Memory: 13916k/16384k available (1589k kernel code, 2468k reserved, 96k data, 80k init, 0k highmem) <6>Dentry cache hash table entries: 2048 (order: 2, 16384 bytes) <6>Inode cache hash table entries: 1024 (order: 1, 8192 bytes) <6>Mount cache hash table entries: 512 (order: 0, 4096 bytes) <6>Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) <4>Page-cache hash table entries: 4096 (order: 2, 16384 bytes) <4>Checking for 'wait' instruction… unavailable. <4>POSIX conformance testing by UNIFIX <6>Linux NET4.0 for Linux 2.4 <6>Based upon Swansea University Computer Society NET3.039 <4>Initializing RT netlink socket <4>Starting kswapd <6>devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) <6>devfs: boot_options: 0x1 <6>squashfs: version 3.1 (2006/08/19) Phillip Lougher <4>pty: 256 Unix98 ptys configured <6>Serial driver version 5.05c (2001-07-08) with no serial options enabled <6>ttyS00 at 0xb1100003 (irq = 37) is a 16550A <4>HDLC line discipline: version $Revision: #3 $, maxframe=4096 <6>N_HDLC line discipline registered. <6>Generic MIPS RTC Driver v1.0 <4>==⇒Enter clean nat module <6>PPP generic driver version 2.4.2 <6>PPP Deflate Compression module registered <6>PPP BSD Compression module registered <6>MPPE/MPPC encryption/compression module registered <6>PPPoL2TP kernel driver, V0.13 (oleg@cs.msu.su) <4>MTD driver for SPI flash. <4>spiflash: Probing for Serial flash … <4>spiflash: Found SPI serial Flash. <4>4194304: size <5>Creating 6 MTD partitions on "spiflash": <5>0x00000000-0x00030000 : "RedBoot" <5>0x00030000-0x00320000 : "rootfs" <5>0x00320000-0x003d0000 : "vmlinux.bin.l7" <5>0x003d0000-0x003e0000 : "config" <5>0x003e0000-0x003ef000 : "FIS directory" <4>mtd: partition "FIS directory" doesn't end on an erase block – force read-only <5>0x003ef000-0x003f0000 : "RedBoot config" <4>mtd: partition "RedBoot config" doesn't start on an erase block boundary – force read-only <6>Initializing Cryptographic API <6>NET4: Linux TCP/IP 1.0 for NET4.0 <6>IP Protocols: ICMP, UDP, TCP, IGMP <6>IP: routing cache hash table of 512 buckets, 4Kbytes <6>TCP: Hash tables configured (established 1024 bind 2048) <6>IPv4 over IPv4 tunneling driver <6>Linux IP multicast router 0.06 plus PIM-SM <4>ip_conntrack version 2.1 (128 buckets, 1024 max) - 320 bytes per conntrack <4>ip_tables: (C) 2000-2002 Netfilter core team <4>netfilter PSD loaded - © astaro AG <6>NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. <6>NET4: Ethernet Bridge 008 for NET4.0 <1>802.1Q VLAN Support v1.8 Ben Greear greearb@candelatech.com <1>All bugs added by David S. Miller davem@redhat.com <4>VFS: Mounted root (squashfs filesystem) readonly. <6>Mounted devfs on /dev <4>Algorithmics/MIPS FPU Emulator v1.5reed Using /lib/modules/2.4.25-LSDK-5.3.1.31/net/ae531x.o Warning: loading ae531x will taint the kernel: non-GPL license - Atheros See http://www.tux.org/lkml/#export-tainted for information about tainted modules Using /lib/modules/2.4.25-LSDK-5.3.1.31/misc/ar5<4> <4>Going to gpio_proc_entry31xgpio.o Warning: loading ar531xgpio will taint the kernel: non-GPL license - Atheros See http://www.tux.org/lkml/#export-tainted for information about tainted modules Using /lib/modules/2.4.25-LSDK-5.3.1.31/misc/ar531x-wdt.o Warning: loading ar531x-wdt will taint the kernel: non-GPL license - Atheros See http://www.tux.org/lkml/#export-tainted for information about tainted modules /etc/wlanwlanconfig not found. Use default settings. Using /lib/modules/2.4.25-LSDK-5.3.1.31/net/wlan.o <6>wlan: 0.8.4.2 (Atheros/multi-bss) Using /lib/modules/2.4.25-LSDK-5.3.1.31/net/ath_hal.o Warning: loading ath_hal will taint the kernel: <6>ath_hal: 0.9.17.1 (AR5212, AR5312, RF5111, RF5112, RF2413, RF5413, RF2317) non-GPL license - Proprietary See http://www.tux.org/lkml/#export-tainted for information about tainted modules Using /lib/modules/2.4.25-LSDK-5.3.1.31/net/ath_rate_atheros<6>ath_rate_atheros: Version 2.0.1 <4>Copyright © 2001-2004 Atheros Communications, Inc, All Rights Reserved .o Warning: loading ath_rate_atheros will taint the kernel: non-GPL license - Proprietary See http://www.tux.org/lkml/#export-tainted for information about <6>ath_dfs: Version 2.0.0 <4>Copyright © 2005-2006 Atheros Communications, Inc. All Rights Reserved tainted modules Using /lib/modules/2.4.25-LSDK-5.3.1.31/net/ath_dfs.o Warning: loading ath_dfs will taint the kernel: non-GPL license - Proprietary See http://www.tux.org/lkml/#export-tainted for information about tainted modules Using /lib/modules/2.4.25-LSDK-5.3.1.31/net/ath_ahb.o <6>ath_ahb: 0.9.4.5 (Atheros/multi-bss) <4>wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps <4>wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps <4>wifi0: mac 11.0 phy 4.8 radio 8.7 <4>wifi0: Use hw queue 1 for WME_AC_BE traffic <4>wifi0: Use hw queue 0 for WME_AC_BK traffic <4>wifi0: Use hw queue 2 for WME_AC_VI traffic <4>wifi0: Use hw queue 3 for WME_AC_VO traffic <4>wifi0: Use hw queue 8 for CAB traffic <4>wifi0: Use hw queue 9 for beacons <6>wifi0: Atheros 2317 WiSoC: mem=0xb0000000, irq=3 <4>————-AR8216 Ver:1.00————— <4>enter athr_VLANInit <6>device eth0 entered promiscuous mode /etc/wlanwlanconfig.0 not found. Use default settings. <mapping sub-ioctl turbo to cmd 0x8BE0-1> /etc/wlanwlanconfig.0.0 not found. Use default settings. <6>device ath0 entered promiscuous mode <6>ath0: attempt to add interface with same source address. <6>br0: port 2(ath0) entering learning state <6>br0: port 1(eth0) entering learning state Updating neighbor's ARP cache … <6>br0: port 2(ath0) entering forwarding state <6>br0: topology change detected, propagating <6>br0: port 1(eth0) entering forwarding state <6>br0: topology change detected, propagating Using /lib/modules/2.4.25-LSDK-5.3.1.31/net/pronat.o Using /lib/modules/2.4.25-LSDK-5<6>PPTP driver version 0.8.3 .3.1.31/net/pptp.o <6>br0: port 1(eth0) entering disabled state <6>device eth0 left promiscuous mode <6>eth0.1: dev_set_promiscuity(master, 1) <6>device eth0 entered promiscuous mode <6>device eth0.1 entered promiscuous mode <6>br0: port 1(eth0.1) entering learning state <6>br0: port 1(eth0.1) entering forwarding state <6>br0: topology change detected, propagating RT-G32_V3.0.2.1_RU09 BusyBox v1.00-pre10 (2009.11.13-10:53+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. wlan[0,0]→ <6>br0: port 2(ath0) entering disabled state <6>br0: port 2(ath0) entering learning state <6>br0: port 2(ath0) entering disabled state <6>br0: port 2(ath0) entering learning state <6>br0: port 2(ath0) entering forwarding state <6>br0: topology change detected, propagating <4>eth0.2: Setting MAC address to e0 cb 4e e5 47 3c. <4>VLAN (eth0.2): Underlying device (eth0) has same MAC, not checking promiscio us mode. ⇒start nat.sh <4>clean nat conn: clean all of the connection track End nat.sh ⇐ ⇒start nat.sh <4>clean nat conn: clean all of the connection track End nat.sh ⇐''

Back to top

toh/asus/rt-g32_atheros.txt · Last modified: 2014/06/23 15:17 by phisik