|
很艰难,能编译出能识别网卡的bin,运行lsusb正常:
root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0cf3:1002 Atheros Communications, Inc. TP-Link TL-WN821N v2 802.11n [Atheros AR9170]
root@OpenWrt:~# 但运行dmesg,貌似没看到正式加载。按照网上的方法,应该这一步就直接能看到加载的,现在没法启动radio1。求高手指教!
root@OpenWrt:~# dmesg
[ 0.000000] Linux version 3.3.8 (kingf@kingf_pc) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #3 Wed Dec 25 21:50:19 HKT 2013
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9130 rev 2
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:100.000MHz, Ref:5.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00004000
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 8038f600, node_mem_map 81000000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=TL-WR941ND console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 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] 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 60876k/65536k available (2748k kernel code, 4660k reserved, 514k data, 192k 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... 265.42 BogoMIPS (lpj=1327104)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] NET: Registered protocol family 16
[ 0.090000] gpiochip_add: registered GPIOs 0 to 21 on device: ath79
[ 0.100000] MIPS: machine is TP-LINK TL-WR941ND
[ 0.370000] bio: create slab <bio-0> at 0
[ 0.370000] SCSI subsystem initialized
[ 0.380000] usbcore: registered new interface driver usbfs
[ 0.380000] usbcore: registered new interface driver hub
[ 0.390000] usbcore: registered new device driver usb
[ 0.390000] Switching to clocksource MIPS
[ 0.400000] NET: Registered protocol family 2
[ 0.400000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.410000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.420000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.420000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.430000] TCP reno registered
[ 0.430000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.440000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.450000] NET: Registered protocol family 1
[ 0.450000] PCI: CLS 0 bytes, default 32
[ 0.470000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.480000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.490000] msgmni has been set to 118
[ 0.490000] io scheduler noop registered
[ 0.500000] io scheduler deadline registered (default)
[ 0.500000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.530000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.540000] console [ttyS0] enabled, bootconsole disabled
[ 0.550000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.560000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.560000] 5 tp-link partitions found on MTD device spi0.0
[ 0.570000] Creating 5 MTD partitions on "spi0.0":
[ 0.570000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.580000] 0x000000020000-0x000000140c00 : "kernel"
[ 0.580000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.600000] 0x000000140c00-0x000000ff0000 : "rootfs"
[ 0.600000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.620000] mtd: partition "rootfs" set to be root filesystem
[ 0.620000] mtd: partition "rootfs_data" created automatically, ofs=380000, len=C70000
[ 0.630000] 0x000000380000-0x000000ff0000 : "rootfs_data"
[ 0.640000] 0x000000ff0000-0x000001000000 : "art"
[ 0.640000] 0x000000020000-0x000000ff0000 : "firmware"
[ 0.670000] ag71xx_mdio: probed
[ 0.670000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[ 0.980000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.980000] ehci_hcd: block sizes: qh 64 qtd 96 itd 160 sitd 96
[ 0.980000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[ 0.990000] drivers/usb/core/inode.c: creating file 'devices'
[ 0.990000] drivers/usb/core/inode.c: creating file '001'
[ 0.990000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 1.000000] ehci-platform ehci-platform: reset hcs_params 0x10011 dbg=0 ind cc=0 pcc=0 ordered ports=1
[ 1.000000] ehci-platform ehci-platform: reset hcc_params 0006 thresh 0 uframes 256/512/1024 park
[ 1.000000] ehci-platform ehci-platform: park 0
[ 1.000000] ehci-platform ehci-platform: reset command 0080002 (park)=0 ithresh=8 period=1024 Reset HALT
[ 1.000000] ehci-platform ehci-platform: ...powerdown ports...
[ 1.030000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 1.030000] ehci-platform ehci-platform: init command 0010005 (park)=0 ithresh=1 period=512 RUN
[ 1.050000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 1.050000] usb usb1: default language 0x0409
[ 1.050000] usb usb1: udev 1, busnum 1, minor = 0
[ 1.050000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.060000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.070000] usb usb1: Product: Generic Platform EHCI Controller
[ 1.070000] usb usb1: Manufacturer: Linux 3.3.8 ehci_hcd
[ 1.080000] usb usb1: SerialNumber: ehci-platform
[ 1.080000] usb usb1: usb_probe_device
[ 1.080000] usb usb1: configuration #1 chosen from 1 choice
[ 1.080000] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[ 1.080000] hub 1-0:1.0: usb_probe_interface
[ 1.080000] hub 1-0:1.0: usb_probe_interface - got id
[ 1.080000] hub 1-0:1.0: USB hub found
[ 1.090000] hub 1-0:1.0: 1 port detected
[ 1.090000] hub 1-0:1.0: standalone hub
[ 1.090000] hub 1-0:1.0: individual port power switching
[ 1.090000] hub 1-0:1.0: individual port over-current protection
[ 1.090000] hub 1-0:1.0: Single TT
[ 1.090000] hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
[ 1.090000] hub 1-0:1.0: power on to power good time: 20ms
[ 1.090000] hub 1-0:1.0: local power source is good
[ 1.090000] hub 1-0:1.0: enabling power on all ports
[ 1.090000] drivers/usb/core/inode.c: creating file '001'
[ 1.090000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.100000] ohci_hcd: block sizes: ed 64 td 64
[ 1.100000] usbcore: registered new interface driver cdc_acm
[ 1.100000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.110000] usbcore: registered new interface driver usblp
[ 1.120000] usbcore: registered new interface driver cdc_wdm
[ 1.120000] usbcore: registered new interface driver usbtmc
[ 1.130000] Initializing USB Mass Storage driver...
[ 1.130000] usbcore: registered new interface driver usb-storage
[ 1.140000] USB Mass Storage support registered.
[ 1.150000] usbcore: registered new interface driver usbserial
[ 1.150000] USB Serial support registered for generic
[ 1.160000] usbcore: registered new interface driver usbserial_generic
[ 1.160000] usbserial: USB Serial Driver core
[ 1.170000] USB Serial support registered for pl2303
[ 1.170000] usbcore: registered new interface driver pl2303
[ 1.180000] pl2303: Prolific PL2303 USB to serial adaptor driver
[ 1.190000] TCP cubic registered
[ 1.190000] NET: Registered protocol family 17
[ 1.190000] Distributed Switch Architecture driver version 0.1
[ 1.200000] eth0[0]: detected a Marvell 88E6060 switch
[ 1.210000] ehci-platform ehci-platform: GetStatus port:1 status 001803 0 ACK POWER sig=j CSC CONNECT
[ 1.210000] hub 1-0:1.0: port 1: status 0101 change 0001
[ 1.230000] dsa slave smi: probed
[ 1.240000] 8021q: 802.1Q VLAN Support v1.8
[ 1.250000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.260000] Freeing unused kernel memory: 192k freed
[ 1.310000] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[ 1.310000] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[ 1.430000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 1.430000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 1
[ 1.440000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 2
[ 1.440000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 3
[ 1.440000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 4
[ 1.440000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 5
[ 1.440000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 6
[ 1.440000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 7
[ 1.440000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 8
[ 1.450000] ehci-platform ehci-platform: detected XactErr len 0/64 retry 9
[ 1.510000] ehci-platform ehci-platform: port 1 high speed
[ 1.510000] ehci-platform ehci-platform: GetStatus port:1 status 8001205 4 ACK POWER sig=se0 LPM PE CONNECT
[ 1.570000] ehci-platform ehci-platform: detected XactErr len 0/0 retry 1
[ 1.570000] ehci-platform ehci-platform: detected XactErr len 0/0 retry 2
[ 1.570000] ehci-platform ehci-platform: detected XactErr len 0/0 retry 3
[ 1.570000] ehci-platform ehci-platform: detected XactErr len 0/0 retry 4
[ 1.570000] ehci-platform ehci-platform: detected XactErr len 0/0 retry 5
[ 1.570000] ehci-platform ehci-platform: detected XactErr len 0/0 retry 6
[ 1.570000] ehci-platform ehci-platform: detected XactErr len 0/0 retry 7
[ 1.610000] ehci-platform ehci-platform: detected XactErr len 0/18 retry 1
[ 1.610000] ehci-platform ehci-platform: detected XactErr len 0/18 retry 2
[ 1.620000] ehci-platform ehci-platform: detected XactErr len 0/9 retry 1
[ 1.620000] ehci-platform ehci-platform: detected XactErr len 0/9 retry 2
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 1
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 2
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 3
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 4
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 5
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 6
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 7
[ 1.640000] ehci-platform ehci-platform: detected XactErr len 0/46 retry 8
[ 1.650000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 1
[ 1.660000] usb 1-1: default language 0x0409
[ 1.670000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 1
[ 1.670000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 2
[ 1.670000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 3
[ 1.670000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 4
[ 1.680000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 1
[ 1.680000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 2
[ 1.690000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 1
[ 1.690000] ehci-platform ehci-platform: detected XactErr len 0/255 retry 2
[ 1.690000] usb 1-1: udev 2, busnum 1, minor = 1
[ 1.690000] usb 1-1: New USB device found, idVendor=0cf3, idProduct=1002
[ 1.700000] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 1.700000] usb 1-1: Product: USB2.0 WLAN
[ 1.710000] usb 1-1: Manufacturer: ATHER
[ 1.710000] usb 1-1: SerialNumber: 12345
[ 1.850000] usb 1-1: usb_probe_device
[ 1.850000] usb 1-1: configuration #1 chosen from 1 choice
[ 1.860000] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 1.870000] usbserial_generic 1-1:1.0: usb_probe_interface
[ 1.870000] usbserial_generic 1-1:1.0: usb_probe_interface - got id
[ 1.870000] drivers/usb/core/inode.c: creating file '002'
[ 1.870000] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 3.730000] ar71xx: pll_reg 0xb8050014: 0x13000a44
[ 3.730000] eth0: link up (100Mbps/Full duplex)
[ 3.760000] Registered led device: tp-link:green:system
[ 3.760000] Registered led device: tp-link:red:qss
[ 3.760000] Registered led device: tp-link:green:qss
[ 3.760000] Registered led device: tp-link:green:wlan
[ 7.120000] JFFS2 notice: (560) jffs2_build_xattr_subsystem: complete building xattr subsystem, 19 of xdatum (0 unchecked, 18 orphan) and 29 of xref (0 dead, 18 orphan) found.
[ 28.140000] eth0: link down
[ 30.100000] Loading modules backported from Linux version master-2013-06-27-0-gdcfa6d5
[ 30.110000] Backport generated by backports.git backports-20130617-4-ge3220f5
[ 30.250000] cfg80211: Calling CRDA to update world regulatory domain
[ 30.260000] cfg80211: World regulatory domain updated:
[ 30.260000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 30.270000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 30.280000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 30.290000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 30.300000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 30.300000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 31.160000] usbcore: registered new interface driver rt73usb
[ 31.190000] ath: EEPROM regdomain: 0x0
[ 31.190000] ath: EEPROM indicates default country code should be used
[ 31.190000] ath: doing EEPROM country->regdmn map search
[ 31.190000] ath: country maps to regdmn code: 0x3a
[ 31.190000] ath: Country alpha2 being used: US
[ 31.190000] ath: Regpair used: 0x3a
[ 31.200000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 31.200000] ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2122 RF Rev:a2 mem=0xb80c0000, irq=2
[ 31.210000] cfg80211: Calling CRDA for country: US
[ 31.220000] cfg80211: Regulatory domain changed to country: US
[ 31.220000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 31.230000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 31.240000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[ 31.250000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 31.250000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 31.260000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 31.270000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[ 31.290000] usbcore: registered new interface driver rt2800usb
[ 31.500000] PPP generic driver version 2.4.2
[ 31.550000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 31.660000] NET: Registered protocol family 24
[ 31.690000] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[ 36.250000] ar71xx: pll_reg 0xb8050014: 0x13000a44
[ 36.260000] eth0: link up (100Mbps/Full duplex)
[ 36.260000] device lan1 entered promiscuous mode
[ 36.270000] device eth0 entered promiscuous mode
[ 36.290000] device lan2 entered promiscuous mode
[ 36.320000] device lan3 entered promiscuous mode
[ 36.320000] device lan4 entered promiscuous mode
[ 37.040000] lan1: link up, 100 Mb/s, full duplex, flow control disabled
[ 37.040000] br-lan: port 1(lan1) entered forwarding state
[ 37.050000] br-lan: port 1(lan1) entered forwarding state
[ 39.050000] br-lan: port 1(lan1) entered forwarding state
[ 42.990000] wlan0: authenticate with ec:6c:9f:17:f2:a2
[ 43.000000] wlan0: send auth to ec:6c:9f:17:f2:a2 (try 1/3)
[ 43.010000] wlan0: authenticated
[ 43.030000] wlan0: associate with ec:6c:9f:17:f2:a2 (try 1/3)
[ 43.040000] wlan0: RX AssocResp from ec:6c:9f:17:f2:a2 (capab=0x431 status=0 aid=3)
[ 43.040000] wlan0: associated
|
|