I am trying to port VIZIO XWR100. (modified based on WRT400N)
I got a "Data bus error" when wifi start.
root@(none):/tmp# wifi restart
Configuration file: /var/run/hostapd-phy0.conf
[ 1693.200000] Data bus error, epc == 80d61a0c, ra == 80d61a08
[ 1693.200000] Oops[#1]:
[ 1693.200000] Cpu 0
[ 1693.200000] $ 0 : 00000000 00000000 deadc0de 80d2fbf8
[ 1693.200000] $ 4 : b0008048 b0000000 02000020 00000000
[ 1693.200000] $ 8 : 00000006 00000001 00000000 00000000
[ 1693.200000] $12 : 10030000 0000002c 00000000 00000000
[ 1693.200000] $16 : ffffffff 00008048 81b0d7e0 02000020
[ 1693.200000] $20 : 0000016d 00000000 00000002 00007894
[ 1693.200000] $24 : 00000000 00000000
[ 1693.200000] $28 : 8090a000 8090bc68 ffbfffff 80d61a08
[ 1693.200000] Hi : 00000000
[ 1693.200000] Lo : 19d60000
[ 1693.200000] epc : 80d61a0c ath_start_rfkill_poll+0x1f4/0x548 [ath9k]
[ 1693.200000] Tainted: G O
[ 1693.200000] ra : 80d61a08 ath_start_rfkill_poll+0x1f0/0x548 [ath9k]
[ 1693.200000] Status: 1000f403 KERNEL EXL IE
[ 1693.200000] Cause : 1080001c
[ 1693.200000] PrId : 00019374 (MIPS 24Kc)
[ 1693.200000] Modules linked in: ath9k(O) ath79_wdt ath9k_common(O) ath9k_hw(O) ath(O) mac80211(O) cfg80211(O) compat(O) ledtrig_timer ledtrig_default
_on leds_gpio gpio_button_hotplug(O)
[ 1693.200000] Process hostapd (pid: 947, threadinfo=8090a000, task=81b3edb8, tls=77c73440)
[ 1693.200000] Stack : 00000000 00000000 00000000 00000004 81b40010 00000004 81b40010 81b4019c
00000002 80d0dd38 00000001 00000001 00000000 80d04a08 000002c7 00000000
81b40010 81b4019c 00000000 81b40030 00000001 00000001 00000000 00000000
20000000 80d07144 81b0c000 80c21210 00000000 81b40010 00000001 81b87810
81b40030 81b0e074 00000000 00000001 81b40010 81b0d7e0 81b4019c 81b87810
...
[ 1693.200000] Call Trace:
[ 1693.200000] [<80d61a0c>] ath_start_rfkill_poll+0x1f4/0x548 [ath9k]
[ 1693.200000] [<80d0dd38>] ar9002_hw_attach_phy_ops+0x2004/0x28c4 [ath9k_hw]
[ 1693.200000]
[ 1693.200000]
Code: 0c06160b 00852021 8e45088c <00508024> 02138025 02002021 0c061611 00b12821 8fbf0024
[ 1693.380000] ---[ end trace ab1b548cc310307c ]---
[ 1693.380000] Kernel panic - not syncing: Fatal exception in interrupt
This is full boot message with openwrt firmware
U-Boot 1.1.4 (Jan 18 2010 - 15:46:20)
AP94 (ar7100) U-boot 0.0.12
DRAM: b8050000: 0xc0140180
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 220k for U-Boot at: 81fc8000
Reserving 192k for malloc() at: 81f98000
Reserving 44 Bytes for Board Info at: 81f97fd4
Reserving 36 Bytes for Global Data at: 81f97fb0
Reserving 128k for boot params() at: 81f77fb0
Stack Pointer at: 81f77f98
Now running in RAM - U-Boot at: 81fc8000
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
No valid address in Flash. Using fixed address
eth0: 00:03:7f:09:0b:ad
eth0 up
No valid address in Flash. Using fixed address
eth1: 00:03:7f:09:0b:ad
eth1 up
eth0, eth1
Hit any key to stop autoboot: 1 0
## Booting image at bf040000 ...
Image Name: MIPS OpenWrt Linux-3.8.7
Created: 2013-04-18 9:13:01 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1003810 Bytes = 980.3 kB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
[ 0.000000] Linux version 3.8.7 (xxxxxx) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r36332) ) #6 Thu Apr 18 17:12:39 CST 2013
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7161 rev 2
[ 0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x01ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x01ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=WRT400N console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 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] __ex_table already sorted, skipping sort
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 28856k/32768k available (2162k kernel code, 3912k reserved, 578k data, 264k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 512
[ 0.070000] NET: Registered protocol family 16
[ 0.070000] MIPS: machine is Linksys WRT400N
[ 0.780000] registering PCI controller with io_map_base unset
[ 0.790000] bio: create slab <bio-0> at 0
[ 0.800000] PCI host bridge to bus 0000:00
[ 0.800000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[ 0.810000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.810000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.820000] pci 0000:00:11.0: fixup device configuration
[ 0.820000] pci 0000:00:12.0: fixup device configuration
[ 0.830000] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[ 0.830000] pci 0000:00:12.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
[ 0.840000] pci 0000:00:11.0: using irq 40 for pin 1
[ 0.840000] pci 0000:00:12.0: using irq 41 for pin 1
[ 0.850000] Switching to clocksource MIPS
[ 0.850000] NET: Registered protocol family 2
[ 0.860000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.860000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.870000] TCP: Hash tables configured (established 512 bind 512)
[ 0.870000] TCP: reno registered
[ 0.880000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.880000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.890000] NET: Registered protocol family 1
[ 0.900000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.910000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.920000] msgmni has been set to 56
[ 0.930000] io scheduler noop registered
[ 0.930000] io scheduler deadline registered (default)
[ 0.930000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.960000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.970000] console [ttyS0] enabled, bootconsole disabled
[ 0.970000] console [ttyS0] enabled, bootconsole disabled
[ 0.980000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[ 0.990000] m25p80 spi0.0: found w25x64, expected m25p80
[ 0.990000] m25p80 spi0.0: w25x64 (8192 Kbytes)
[ 1.000000] Creating 9 MTD partitions on "spi0.0":
[ 1.000000] 0x000000000000-0x000000030000 : "uboot"
[ 1.010000] 0x000000030000-0x000000040000 : "env"
[ 1.020000] 0x000000040000-0x0000001b0000 : "linux"
[ 1.020000] 0x0000001b0000-0x0000007e0000 : "rootfs"
[ 1.030000] mtd: partition "rootfs" set to be root filesystem
[ 1.040000] mtd: partition "rootfs_data" created automatically, ofs=360000, len=480000
[ 1.040000] 0x000000360000-0x0000007e0000 : "rootfs_data"
[ 1.050000] 0x0000007b0000-0x0000007c0000 : "nvram"
[ 1.060000] 0x0000007c0000-0x0000007d0000 : "factory"
[ 1.060000] 0x0000007d0000-0x0000007f0000 : "language"
[ 1.070000] 0x0000007f0000-0x000000800000 : "caldata"
[ 1.080000] 0x000000040000-0x0000007b0000 : "firmware"
[ 1.100000] libphy: ag71xx_mdio: probed
[ 1.100000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII
[ 1.410000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:RMII
[ 1.720000] ag71xx ag71xx.1 eth1: connected to PHY at ag71xx-mdio.0:04 [uid=004dd043, driver=Generic PHY]
[ 1.730000] TCP: cubic registered
[ 1.730000] NET: Registered protocol family 17
[ 1.740000] 8021q: 802.1Q VLAN Support v1.8
[ 1.750000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 1.760000] Freeing unused kernel memory: 264k freed
[ 3.400000] eth0: link up (100Mbps/Full duplex)
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
- init -
[ 6.670000] eth0: link down
[ 7.180000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[ 7.180000] Backport based on wireless-testing.git master-2013-02-22
[ 7.190000] compat.git: wireless-testing.git
[ 7.220000] cfg80211: Calling CRDA to update world regulatory domain
[ 7.220000] cfg80211: World regulatory domain updated:
[ 7.230000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 7.240000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 7.240000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 7.250000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 7.260000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 7.270000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 7.470000] NET: Registered protocol family 10
[ 7.640000] usbcore: registered new interface driver usbfs
[ 7.650000] usbcore: registered new interface driver hub
[ 7.650000] usbcore: registered new device driver usb
[ 8.110000] PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
[ 8.140000] ath_start_rfkill_poll():207
[ 8.140000] ath_start_rfkill_poll():209
[ 8.140000] ath_start_rfkill_poll():211
[ 8.150000] ath_start_rfkill_poll():217
[ 8.150000] ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xb0000000, irq=40
[ 8.160000] PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
[ 8.180000] ath_start_rfkill_poll():207
[ 8.190000] ath_start_rfkill_poll():209
[ 8.190000] ath_start_rfkill_poll():211
[ 8.200000] ath_start_rfkill_poll():217
[ 8.200000] ieee80211 phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=41
[ 8.240000] PPP generic driver version 2.4.2
[ 8.330000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.460000] NET: Registered protocol family 24
[ 8.480000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 8.490000] ehci-platform: EHCI generic platform driver
[ 8.510000] nf_conntrack version 0.5.0 (455 buckets, 1820 max)
[ 8.750000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.890000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Please press Enter to activate this console. [ 12.960000] eth0: link up (100Mbps/Full duplex)
[ 12.970000] device eth0 entered promiscuous mode
[ 12.970000] br-lan: port 1(eth0) entered forwarding state
[ 12.980000] br-lan: port 1(eth0) entered forwarding state
[ 12.990000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 14.980000] br-lan: port 1(eth0) entered forwarding state
[ 15.730000] eth1: link up (100Mbps/Full duplex)
[ 15.730000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 18.720000] Data bus error, epc == 80c21a0c, ra == 80c21a08
[ 18.720000] Oops[#1]:
[ 18.720000] Cpu 0
[ 18.720000] $ 0 : 00000000 00000000 deadc0de 80cafbf8
[ 18.720000] $ 4 : b0008048 b0000000 02000020 00000000
[ 18.720000] $ 8 : 00000006 00000001 00000000 00000000
[ 18.720000] $12 : 10030000 0000002c 00000000 00000000
[ 18.720000] $16 : ffffffff 00008048 80ce17e0 02000020
[ 18.720000] $20 : 0000016d 00000000 00000002 00007894
[ 18.720000] $24 : 00000000 00000000
[ 18.720000] $28 : 80b72000 80b73c68 ffbfffff 80c21a08
[ 18.720000] Hi : 00000000
[ 18.720000] Lo : 19d60000
[ 18.720000] epc : 80c21a0c ath_start_rfkill_poll+0x1f4/0x548 [ath9k]
[ 18.720000] Tainted: G O
[ 18.720000] ra : 80c21a08 ath_start_rfkill_poll+0x1f0/0x548 [ath9k]
[ 18.720000] Status: 1000f403 KERNEL EXL IE
[ 18.720000] Cause : 1080001c
[ 18.720000] PrId : 00019374 (MIPS 24Kc)
[ 18.720000] Modules linked in: ath79_wdt ohci_hcd ledtrig_usbdev ledtrig_netdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp ipt_MASQUERADE iptable_nat xt_nat nf_nat_ipv4 nf_nat pppoe xt_conntrack xt_CT iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ehci_platform ehci_hcd pppox ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) ath9k_hw(O) ath(O) mac80211(O) usbcore usb_common nls_base crc_ccitt ipv6 cfg80211(O) compat(O) arc4 crypto_blkcipher aead ledtrig_timer ledtrig_default_on leds_gpio gpio_button_hotplug(O)
[ 18.720000] Process hostapd (pid: 1127, threadinfo=80b72000, task=80b89d18, tls=77072440)
[ 18.720000] Stack : 80b72000 80b73c90 ffbfffff 00000004 80c1c010 00000004 80c1c010 80c1c19c
00000002 80c8dd38 00000001 00000001 00000000 80c84a08 000002c7 00000000
80c1c010 80c1c19c 00000000 80c1c030 00000001 00000001 00000000 00000000
20000000 80c87144 80ce0000 81be1210 00000000 80c1c010 00000001 81bae810
80c1c030 80ce2074 00000000 00000001 80c1c010 80ce17e0 80c1c19c 81bae810
...
[ 18.720000] Call Trace:
[ 18.720000] [<80c21a0c>] ath_start_rfkill_poll+0x1f4/0x548 [ath9k]
[ 18.720000] [<80c8dd38>] ar9002_hw_attach_phy_ops+0x2004/0x28c4 [ath9k_hw]
[ 18.720000]
[ 18.720000]
Code: 0c06160b 00852021 8e45088c <00508024> 02138025 02002021 0c061611 00b12821 8fbf0024
[ 18.950000] ---[ end trace 7eb22e5b51963169 ]---
[ 18.960000] Kernel panic - not syncing: Fatal exception in interrupt
[ 18.960000] Rebooting in 3 seconds..
I try to enter failsafe mode. => fine
insmod wireless relative module. => fine
generate /etc/config/wireless by "wifi detect" => fine
start wifi by "wifi restart" => kernel panic !!
Others information:
iw list
root@(none):/# iw list
Wiphy phy1
Band 1:
Capabilities: 0x11ce
HT20/HT40
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-15
Frequencies:
* 5180 MHz [36] (20.0 dBm)
* 5200 MHz [40] (20.0 dBm)
* 5220 MHz [44] (20.0 dBm)
* 5240 MHz [48] (20.0 dBm)
* 5260 MHz [52] (disabled)
* 5280 MHz [56] (disabled)
* 5300 MHz [60] (disabled)
* 5320 MHz [64] (disabled)
* 5500 MHz [100] (disabled)
* 5520 MHz [104] (disabled)
* 5540 MHz [108] (disabled)
* 5560 MHz [112] (disabled)
* 5580 MHz [116] (disabled)
* 5600 MHz [120] (disabled)
* 5620 MHz [124] (disabled)
* 5640 MHz [128] (disabled)
* 5660 MHz [132] (disabled)
* 5680 MHz [136] (disabled)
* 5700 MHz [140] (disabled)
* 5745 MHz [149] (20.0 dBm) (passive scanning, no IBSS)
* 5765 MHz [153] (20.0 dBm) (passive scanning, no IBSS)
* 5785 MHz [157] (20.0 dBm) (passive scanning, no IBSS)
* 5805 MHz [161] (20.0 dBm) (passive scanning, no IBSS)
* 5825 MHz [165] (20.0 dBm) (passive scanning, no IBSS)
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
max # scan SSIDs: 4
max scan IEs length: 2261 bytes
Coverage class: 0 (up to 0m)
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
* P2P-GO
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed, WDS, P2P-client } <= 2048, #{ AP, mesh point, P2P-GO } <= 8, #{ IBSS } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* set_wds_peer
* tdls_mgmt
* tdls_oper
* probe_client
* set_noack_map
* register_beacons
* Unknown command (89)
* Unknown command (92)
* connect
* disconnect
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* (null): 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* (null): 0x40 0xd0
Device supports RSN-IBSS.
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Wiphy phy0
Band 1:
Capabilities: 0x11ee
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-15
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm) (passive scanning, no IBSS)
* 2472 MHz [13] (20.0 dBm) (passive scanning, no IBSS)
* 2484 MHz [14] (20.0 dBm) (passive scanning, no IBSS)
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
max # scan SSIDs: 4
max scan IEs length: 2257 bytes
Coverage class: 0 (up to 0m)
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
* P2P-GO
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed, WDS, P2P-client } <= 2048, #{ AP, mesh point, P2P-GO } <= 8, #{ IBSS } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* set_wds_peer
* tdls_mgmt
* tdls_oper
* probe_client
* set_noack_map
* register_beacons
* Unknown command (89)
* Unknown command (92)
* connect
* disconnect
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* (null): 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* (null): 0x40 0xd0
Device supports RSN-IBSS.
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
root@(none):/#
root@(none):/#
modified mach-wrt400n.c for XWR100.
/*
* Linksys WRT400N board support
*
* Copyright (C) 2009-2012 Gabor Juhos <juhosg@openwrt.org>
* Copyright (C) 2009 Imre Kaloz <kaloz@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <asm/mach-ath79/ath79.h>
#include "dev-ap9x-pci.h"
#include "dev-eth.h"
#include "dev-gpio-buttons.h"
#include "dev-leds-gpio.h"
#include "dev-m25p80.h"
#include "machtypes.h"
#define WRT400N_GPIO_LED_POWER 1
#define WRT400N_GPIO_LED_WPS_BLUE 4
#define WRT400N_GPIO_LED_WPS_AMBER 5
#define WRT400N_GPIO_LED_WLAN 6
#define WRT400N_GPIO_BTN_RESET 8
#define WRT400N_GPIO_BTN_WLSEC 3
#define WRT400N_KEYS_POLL_INTERVAL 20 /* msecs */
#define WRT400N_KEYS_DEBOUNE_INTERVAL (3 * WRT400N_KEYS_POLL_INTERVAL)
#define WRT400N_MAC_ADDR_OFFSET 0x110C
#define WRT400N_CALDATA0_OFFSET 0x1000
#define WRT400N_CALDATA1_OFFSET 0x5000
static struct mtd_partition wrt400n_partitions[] = {
{
.name = "uboot",
.offset = 0,
.size = 0x030000,
.mask_flags = MTD_WRITEABLE,
}, {
.name = "env",
.offset = 0x030000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
}, {
.name = "linux",
.offset = 0x040000,
.size = 0x170000,
}, {
.name = "rootfs",
.offset = 0x1B0000,
.size = 0x630000,
}, {
.name = "nvram",
.offset = 0x7b0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
}, {
.name = "factory",
.offset = 0x7c0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
}, {
.name = "language",
.offset = 0x7d0000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
}, {
.name = "caldata",
.offset = 0x7f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
}, {
.name = "firmware",
.offset = 0x040000,
.size = 0x770000,
}
};
static struct flash_platform_data wrt400n_flash_data = {
.parts = wrt400n_partitions,
.nr_parts = ARRAY_SIZE(wrt400n_partitions),
};
static struct gpio_led wrt400n_leds_gpio[] __initdata = {
{
.name = "wrt400n:blue:wps",
.gpio = WRT400N_GPIO_LED_WPS_BLUE,
.active_low = 1,
}, {
.name = "wrt400n:amber:wps",
.gpio = WRT400N_GPIO_LED_WPS_AMBER,
.active_low = 1,
}, {
.name = "wrt400n:blue:wlan",
.gpio = WRT400N_GPIO_LED_WLAN,
.active_low = 1,
}, {
.name = "wrt400n:blue:power",
.gpio = WRT400N_GPIO_LED_POWER,
.active_low = 0,
.default_trigger = "default-on",
}
};
static struct gpio_keys_button wrt400n_gpio_keys[] __initdata = {
{
.desc = "reset",
.type = EV_KEY,
.code = KEY_RESTART,
.debounce_interval = WRT400N_KEYS_DEBOUNE_INTERVAL,
.gpio = WRT400N_GPIO_BTN_RESET,
.active_low = 1,
}, {
.desc = "wlsec",
.type = EV_KEY,
.code = KEY_WPS_BUTTON,
.debounce_interval = WRT400N_KEYS_DEBOUNE_INTERVAL,
.gpio = WRT400N_GPIO_BTN_WLSEC,
.active_low = 1,
}
};
static void __init wrt400n_setup(void)
{
u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
u8 *mac = art + WRT400N_MAC_ADDR_OFFSET;
ath79_register_mdio(0, 0x0);
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1);
ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
ath79_eth0_data.speed = SPEED_100;
ath79_eth0_data.duplex = DUPLEX_FULL;
ath79_init_mac(ath79_eth1_data.mac_addr, mac, 2);
ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
ath79_eth1_data.phy_mask = 0x10;
ath79_register_eth(0);
ath79_register_eth(1);
ath79_register_m25p80(&wrt400n_flash_data);
ath79_register_leds_gpio(-1, ARRAY_SIZE(wrt400n_leds_gpio),
wrt400n_leds_gpio);
ath79_register_gpio_keys_polled(-1, WRT400N_KEYS_POLL_INTERVAL,
ARRAY_SIZE(wrt400n_gpio_keys),
wrt400n_gpio_keys);
//ap94_pci_init(art + WRT400N_CALDATA0_OFFSET, art + 0x110C,
// art + WRT400N_CALDATA1_OFFSET, art + 0x520C);
ap94_pci_init( art + WRT400N_CALDATA0_OFFSET,
art + 0x110C,
art + WRT400N_CALDATA1_OFFSET,
art + 0x520C);
}
MIPS_MACHINE(ATH79_MACH_WRT400N, "WRT400N", "Linksys WRT400N", wrt400n_setup);
If someone need more information, please kindly let me know.
I really want make openwrt to work on this device.
If possible, I can create a teamview remote for debug. (console with XWR100)
Thanks,
(Last edited by cmtsij on 18 Apr 2013, 11:30)