OpenWrt Forum Archive

Topic: Asus RT-N12

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

After watching the E1000 thread so long for brcm4716 status, it appears that the RT-N12 is now finally in a usable state as well.  I attached a patch to ticket #7586 to add the basic board identifiers, and the rest seems to pretty much just work.  If anyone else has this hardware and wants to try it, I'd like to hear how it goes for you too.

Hi cuviper,

I own an ASUS Model RT-N12 ver. C1.

I'm running dd-wrt, but it doesn't work well.

I would like to install OpenWrt.

Which version do I install?

This is my /proc/cpuinfo

system type             : Broadcom BCMD144 chip rev 1
processor               : 0
cpu model               : MIPS 74K V4.9
BogoMIPS                : 149.91
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : no
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp
shadow register sets    : 1
VCED exceptions         : not available
VCEI exceptions         : not available

dcache hits             : 2147483648
dcache misses           : 4026488832
icache hits             : 2147483648
icache misses           : 2818572281
instructions            : 2147483648

For most bcm47xx devices trunk (snapshots) build is highly suggested.

Thanks Zajec,

I'll install this build: openwrt-brcm47xx-squashfs.trx

I'll let you know what happens

Unfortunately no luck here.

I had to reinstall the stock firmware.

With OpenWrt the router didn't respond to telnet or http.

Without providing a boot log we can't help.

Zajec wrote:

Without providing a boot log we can't help.

This is an RT-12, with non-responsive OpenWRT installed.
It seems that it's failing to set up eth[0-4].

Output from serial header:
--------------------------------------------

Decompressing...done


CFE version 5.10.56.46 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: 五  9月 11 16:02:04 CST 2009 (root@localhost.localdomain)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 131072(0x20000)
Found a 4MB ST compatible serial flash
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.46
CPU type 0x19749: 300MHz
Tot mem: 32768 KBytes

CFE mem:    0x80700000 - 0x8079B670 (636528)
Data:       0x80731600 - 0x807346F0 (12528)
BSS:        0x807346F0 - 0x80735670 (3968)
Heap:       0x80735670 - 0x80799670 (409600)
Stack:      0x80799670 - 0x8079B670 (8192)
Text:       0x80700000 - 0x807315FC (202236)

Device eth0:  hwaddr 48-5B-39-C7-8D-10, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Null Rescue Flag.
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: TFTP Server.
Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3780 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
[    0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Mar 23 16:01:31 UTC 2013
[    0.000000] CPU revision is: 00019749 (MIPS 74Kc)
[    0.000000] bcm47xx: using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0xB83A, rev 0x00 and package 0x02
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x02, class 0x0)
[    0.000000] bcma: bus0: found serial flash.
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] gpiochip_add: registered GPIOs 0 to 15 on device: bcm47xx
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 29100k/32768k available (2540k kernel code, 3668k reserved, 379k data, 168k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] Calibrating delay loop... 149.50 BogoMIPS (lpj=299008)
[    0.032000] pid_max: default: 32768 minimum: 301
[    0.032000] Mount-cache hash table entries: 512
[    0.032000] NET: Registered protocol family 16
[    0.060000] bio: create slab <bio-0> at 0
[    0.064000] Switching to clocksource MIPS
[    0.072000] NET: Registered protocol family 2
[    0.076000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.076000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.076000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.076000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.076000] TCP reno registered
[    0.076000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.076000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.076000] NET: Registered protocol family 1
[    0.080000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x11, class 0x0)
[    0.080000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x01, class 0x0)
[    0.080000] bcma: bus0: Core 4 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.720000] bcma: bus0: Initializing MIPS core...
[    0.720000] bcma: bus0: set_irq: core 0x0812, irq 3 => 3
[    0.720000] bcma: bus0: set_irq: core 0x082d, irq 4 => 4
[    0.720000] bcma: bus0: IRQ reconfiguration done
[    0.720000] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I
[    0.720000] bcma: core 0x082c, irq : 2(S)* 3  4  5  6  D  I
[    0.720000] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I
[    0.720000] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I
[    0.720000] bcma: core 0x082e, irq : 2(S)* 3  4  5  6  D  I
[    0.720000] bcma: bus0: Bus registered
[    0.724000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.724000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.728000] msgmni has been set to 56
[    0.728000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.728000] io scheduler noop registered
[    0.728000] io scheduler deadline registered (default)
[    0.728000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.760000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A
[    1.140000] console [ttyS0] enabled
[    1.152000] bcm47xx_pflash: error registering platform driver: -19
[    1.156000] bcm47xx_sflash: found serial flash: blocksize=64KB, numblocks=64, size=4096KB
[    1.168000] bcm47xx_part: bootloader size: 131072
[    1.176000] bcm47xx_part: Looking for dual image
[    1.188000] bcm47xx_part: TRX offset : 0
[    1.192000] 4 bcm47xx partitions found on MTD device bcm47xx-sflash
[    1.200000] Creating 4 MTD partitions on "bcm47xx-sflash":
[    1.204000] 0x000000000000-0x000000020000 : "cfe"
[    1.212000] 0x000000020000-0x0000003f0000 : "linux"
[    1.224000] 0x000000113c00-0x0000003f0000 : "rootfs"
[    1.228000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    1.244000] mtd: partition "rootfs" set to be root filesystem
[    1.252000] mtd: partition "rootfs_data" created automatically, ofs=2F0000, len=100000
[    1.260000] 0x0000002f0000-0x0000003f0000 : "rootfs_data"
[    1.268000] 0x0000003f0000-0x000000400000 : "nvram"
[    1.280000] bcm47xx_nflash: error registering platform driver: -19
[    1.288000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
[    1.296000] TCP cubic registered
[    1.300000] NET: Registered protocol family 17
[    1.304000] Bridge firewalling registered
[    1.308000] 8021q: 802.1Q VLAN Support v1.8
[    1.328000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.336000] Freeing unused kernel memory: 168k freed
[    4.672000] diag: Detected 'ASUS WL-500g Deluxe'
[    5.792000] roboswitch: Probing device eth0: No such device
[    5.800000] roboswitch: Probing device eth1: No such device
[    5.804000] roboswitch: Probing device eth2: No such device
[    5.808000] roboswitch: Probing device eth3: No such device
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[   12.460000] JFFS2 notice: (305) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 6 of xref (0 dead, 2 orphan) found.
switching to jffs2
- init -
Please press Enter to activate this console. [   16.824000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[   16.832000] Backport based on wireless-testing.git master-2012-09-07
[   16.840000] compat.git: wireless-testing.git
[   16.888000] cfg80211: Calling CRDA to update world regulatory domain
[   16.892000] cfg80211: World regulatory domain updated:
[   16.900000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   16.908000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   16.916000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   16.924000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   16.932000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   16.940000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   17.064000] roboswitch: Probing device eth0: No such device
[   17.072000] roboswitch: Probing device eth1: No such device
[   17.076000] roboswitch: Probing device eth2: No such device
[   17.084000] roboswitch: Probing device eth3: No such device
[   17.868000] b43-phy0: Broadcom 47162 WLAN found (core revision 17)
[   17.876000] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 6
[   17.884000] Broadcom 43xx driver loaded [ Features: PNL ]
[   17.932000] Broadcom 43xx-legacy driver loaded [ Features: PLID ]
[   18.304000] PPP generic driver version 2.4.2
[   18.712000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   18.896000] NET: Registered protocol family 24
[   18.932000] nf_conntrack version 0.5.0 (457 buckets, 1828 max)

Platypus wrote:

This is an RT-12, with non-responsive OpenWRT installed.
It seems that it's failing to set up eth[0-4].

Please see my message again:

Zajec wrote:

For most bcm47xx devices trunk (snapshots) build is highly suggested.

AA may indeed have some problems with Broadcom switches. Everything should be working correctly with trunk (snapshots) builds.

The discussion might have continued from here.