Hi, all. I use Ubnt AirOSV5.2 firmware in my TP-LINK WR741ND dmesg: [4294667.296000] Linux version 2.6.15--LSDK-7.3.0.300 (v...@bogon) (gcc version 4.1.2) #201 Thu Aug 12 17:03:47 CST 2010 [4294667.296000] flash_size passed from bootloader = 8 [4294667.296000] CPU revision is: 00019374 [4294667.296000] Determined physical RAM map: [4294667.296000] memory: 02000000 @ 00000000 (usable) [4294667.296000] User-defined physical RAM map: [4294667.296000] memory: 02000000 @ 00000000 (usable) [4294667.296000] On node 0 totalpages: 8192 [4294667.296000] DMA zone: 8192 pages, LIFO batch:1 [4294667.296000] DMA32 zone: 0 pages, LIFO batch:0 [4294667.296000] Normal zone: 0 pages, LIFO batch:0 [4294667.296000] HighMem zone: 0 pages, LIFO batch:0 [4294667.296000] Built 1 zonelists [4294667.296000] Kernel command line: console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init mem=32M mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM) panic=3 quiet [4294667.296000] Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes. [4294667.296000] Primary data cache 32kB, 4-way, linesize 32 bytes. [4294667.296000] Synthesized TLB refill handler (20 instructions). [4294667.296000] Synthesized TLB load handler fastpath (32 instructions). [4294667.296000] Synthesized TLB store handler fastpath (32 instructions). [4294667.296000] Synthesized TLB modify handler fastpath (31 instructions). [4294667.296000] Cache parity protection disabled [4294667.296000] PID hash table entries: 256 (order: 8, 4096 bytes) [4294667.296000] Using 195.000 MHz high precision timer. [4294667.296000] Console: colour dummy device 80x25 [4294667.297000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [4294667.297000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [4294667.301000] Memory: 30172k/32768k available (1687k kernel code, 2580k reserved, 349k data, 124k init, 0k highmem) [4294667.301000] Calibrating delay loop... 259.07 BogoMIPS (lpj=129536) [4294667.317000] Mount-cache hash table entries: 512 [4294667.317000] Checking for 'wait' instruction... available. [4294667.320000] NET: Registered protocol family 16 [4294667.320000] Generic PHY: Registered new driver [4294667.321000] usbcore: registered new driver usbfs [4294667.321000] usbcore: registered new driver hub [4294667.321000] PCI: Scanning bus 0000:00 [4294667.321000] PCI: Found 0000:00:00.0 [168c/002a] 000280 00 [4294667.321000] PCI: Calling quirk 8021290c for 0000:00:00.0 [4294667.321000] PCI: Fixups for bus 0000:00 [4294667.321000] PCI: Bus scan for 0000:00 returning with max=00 [4294667.321000] got res [10000000:1000ffff] bus [10000000:1000ffff] flags 204 for BAR 0 of 0000:00:00.0 [4294667.321000] PCI: moved device 0000:00:00.0 resource 0 (204) to 0 [4294667.321000] Returning IRQ 48 [4294667.321000] PCI: fixup irq: (0000:00:00.0) got 48 [4294667.322000] AR7240 GPIOC major 0 [4294667.323000] squashfs: version 3.4 (2008/08/26) Phillip Lougher [4294667.323000] Initializing Cryptographic API [4294667.323000] io scheduler noop registered [4294667.323000] io scheduler deadline registered [4294667.323000] PCI: Calling quirk 80213b08 for 0000:00:00.0 [4294667.323000] PCI: Calling quirk 80217c40 for 0000:00:00.0 [4294667.349000] Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled [4294667.349000] serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A [4294667.350000] 6 cmdlinepart partitions found on MTD device ar7240-nor0 [4294667.350000] Creating 6 MTD partitions on "ar7240-nor0": [4294667.350000] 0x00000000-0x00040000 : "u-boot" [4294667.350000] 0x00040000-0x00050000 : "u-boot-env" [4294667.350000] 0x00050000-0x00150000 : "kernel" [4294667.350000] 0x00150000-0x007b0000 : "rootfs" [4294667.350000] 0x007b0000-0x007f0000 : "cfg" [4294667.350000] 0x007f0000-0x00800000 : "EEPROM" [4294667.351000] usbmon: debugfs is not available [4294667.351000] 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (ar7240_ohci)block sizes: ed 64 td 64 [4294667.351000] In ohci_hcd_ar7240_drv_probe probing... [4294667.351000] drivers/usb/host/ohci-ar7240.c: starting AR7240 OHCI USB Controller... [4294667.352000] ar7240_start_hc val 8 , reg:8 [4294667.352000] ar7240-ohci ar7240-ohci.0: AR7240 OHCI [4294667.352000] ar7240-ohci ar7240-ohci.0: new USB bus registered, assigned bus number 1 [4294667.352000] ar7240-ohci ar7240-ohci.0: irq 3, io mem 0x1b000000 [4294667.408000] hub 1-0:1.0: USB hub found [4294667.408000] hub 1-0:1.0: 1 port detected [4294667.509000] probing done [4294667.509000] pktgen v2.63: Packet Generator for packet performance testing. [4294667.509000] u32 classifier [4294667.509000] input device check on [4294667.509000] Netfilter messages via NETLINK v0.30. [4294667.509000] NET: Registered protocol family 2 [4294667.518000] IP route cache hash table entries: 512 (order: -1, 2048 bytes) [4294667.518000] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [4294667.518000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [4294667.518000] TCP: Hash tables configured (established 2048 bind 2048) [4294667.518000] TCP reno registered [4294667.519000] GRE over IPv4 tunneling driver [4294667.519000] TCP bic registered [4294667.519000] NET: Registered protocol family 1 [4294667.519000] NET: Registered protocol family 17 [4294667.561000] Bridge firewalling registered [4294667.561000] 802.1Q VLAN Support v1.8 Ben Greear <[email protected]> [4294667.561000] All bugs added by David S. Miller <[email protected]> [4294667.561000] ar7240wdt_init: Registering WDT success [4294667.566000] VFS: Mounted root (squashfs filesystem) readonly. [4294667.566000] Freeing unused kernel memory: 124k freed [4294667.571000] Warning: unable to open an initial console. [4294667.907000] Algorithmics/MIPS FPU Emulator v1.5 [4294670.034000] AG7240: Length per segment 1540 [4294670.034000] AG7240: Max segments per packet 1 [4294670.034000] AG7240: Max tx descriptor count 80 [4294670.034000] AG7240: Max rx descriptor count 252 [4294670.034000] AG7240: fifo cfg 3 01f00140 [4294670.034000] AG7240CHH: Mac address for unit 0 [4294670.034000] AG7240CHH: 00:15:6d:ff:94:7e [4294670.235000] AG7240CHH: Mac address for unit 1 [4294670.235000] AG7240CHH: 02:15:6d:ff:94:7e [4294670.587000] SCSI subsystem initialized [4294670.901000] CSLIP: code copyright 1989 Regents of the University of California [4294670.945000] PPP generic driver version 2.4.2 [4294671.026000] PPP MPPE Compression module registered [4294671.077000] NET: Registered protocol family 24 [4294671.331000] wlan: module license 'BSD' taints kernel. [4294671.341000] wlan: 0.8.4.2 (Atheros/multi-bss) [4294671.421000] ubnt_poll: Initializing polling module... [4294671.421000] ubnt_poll: Initializing packet classifier... [4294671.421000] ubnt_poll: OS timer frequency 1000 Hz [4294671.575000] ath_hal: 0.9.17.1 (AR5416, REGOPS_FUNC, 11D) [4294671.612000] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved [4294671.699000] wlan: mac acl policy registered [4294671.803000] wlan_me: Version 0.1 [4294671.803000] Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved [4294671.827000] ath_dfs: Version 2.0.0 [4294671.827000] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved [4294671.920000] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved [4294671.982000] ath_pci: 0.9.4.5 (Atheros/multi-bss) [4294671.982000] PCI: Setting latency timer of device 0000:00:00.0 to 64 [4294671.990000] ath_hal: Ubiquiti Merlin [4294671.995000] wifi0: Atheros 9280: mem=0x10000000, irq=48 hw_base=0xb0000000 [4294672.051000] ar7240-gpio 1.0 initialised [4294672.163000] Initializing USB Mass Storage driver... [4294672.163000] usbcore: registered new driver usb-storage [4294672.163000] USB Mass Storage support registered. [4294672.238000] fuse init (API version 7.8) [4294672.239000] fuse distribution version: 2.7.3 [4294672.295000] rssi-leds 1.0 loaded [4294672.416000] device eth0_real entered promiscuous mode [4294672.426000] device eth1_real entered promiscuous mode [4294672.689000] ubnt_poll: Clearing hooks... [4294672.689000] ubnt_poll: ack_mode set to 0 [4294673.037000] RSSI LED invert is OFF [4294673.330000] ip_tables: (C) 2000-2002 Netfilter core team [4294673.612000] ip_conntrack version 2.4 (256 buckets, 2048 max) - 212 bytes per conntrack [4294673.747000] ipt_recent v0.3.1: Stephen Frost <[email protected]>. http://snowman.net/projects/ipt_recent/ [4294674.377000] ip_conntrack_pptp version 3.1 loaded [4294674.494000] ag7240_ring_alloc Allocated 1280 at 0x81ad1000 [4294674.494000] ag7240_ring_alloc Allocated 4032 at 0x81a0e000 [4294674.496000] Setting PHY... [4294677.510000] ag7240_ring_alloc Allocated 1280 at 0x81bad800 [4294677.510000] ag7240_ring_alloc Allocated 4032 at 0x81baf000 [4294677.512000] ATHRS26: resetting s26 [4294677.612000] ATHRS26: s26 reset done [4294677.614000] Setting PHY... [4294678.630000] device eth0 entered promiscuous mode [4294678.664000] Country ie is CNI [4294678.665000] device ath0 entered promiscuous mode [4294679.171000] AG7240: enet unit:1 phy:3 is up...Mii 100Mbps full duplex [4294679.171000] AG7240: done cfg2 0x7235 ifctl 0x0 miictrl [4294679.171000] eth0: port 2(eth1_real) entering learning state [4294680.171000] eth0: topology change detected, propagating [4294680.171000] eth0: port 2(eth1_real) entering forwarding state [4294811.983000] AG7240: unit 1: phy 3 not up carrier 1 [4294811.984000] eth0: port 2(eth1_real) entering disabled state [4294813.744000] AG7240: enet unit:1 phy:0 is up...Mii 100Mbps full duplex [4294813.745000] AG7240: done cfg2 0x7235 ifctl 0x0 miictrl [4294813.746000] eth0: port 2(eth1_real) entering learning state [4294814.746000] eth0: topology change detected, propagating [4294814.746000] eth0: port 2(eth1_real) entering forwarding state [4294899.208000] AG7240: unit 1: phy 0 not up carrier 1 [4294899.208000] eth0: port 2(eth1_real) entering disabled state [4294902.324000] AG7240: enet unit:0 phy:4 is up...Mii 100Mbps full duplex [4294902.324000] AG7240: done cfg2 0x7135 ifctl 0x10000 miictrl [4294902.325000] eth0: port 1(eth0_real) entering learning state [4294903.325000] eth0: topology change detected, propagating [4294903.325000] eth0: port 1(eth0_real) entering forwarding state [ 93.320000] eth0: port 1(eth0_real) entering disabled state [ 93.348000] ag7240_ring_free Freeing at 0x81ad1000 [ 93.348000] ag7240_ring_free Freeing at 0x81a0e000 [ 93.362000] ag7240_ring_free Freeing at 0x81bad800 [ 93.362000] ag7240_ring_free Freeing at 0x81baf000 [ 93.625000] ip_conntrack_pptp version 3.1 unloaded [ 94.626000] eth0: port 1(eth0_real) entering disabled state [ 94.636000] eth0: port 2(eth1_real) entering disabled state [ 94.952000] ath_pci: driver unloaded [ 94.963000] ath_dev: driver unloaded [ 94.974000] ath_dfs: driver unloaded [ 94.986000] wlan_me: driver unloaded [ 95.043000] wlan: mac acl policy unregistered [ 95.077000] ath_rate_atheros: driver unloaded [ 95.088000] ath_hal: driver unloaded [ 95.236000] ubnt_poll: Uninitializing packet classifier... [ 95.236000] ubnt_poll: Uninitializing module [ 95.247000] wlan: driver unloaded [ 95.862000] ag7240_cleanup Freeing at 0x8106c000 [ 95.868000] ag7240_cleanup Freeing at 0x813f8000 [ 95.868000] AG7240: cleanup done [ 95.980000] AG7240: Length per segment 1540 [ 95.980000] AG7240: Max segments per packet 1 [ 95.980000] AG7240: Max tx descriptor count 80 [ 95.980000] AG7240: Max rx descriptor count 252 [ 95.980000] AG7240: fifo cfg 3 01f00140 [ 95.980000] AG7240CHH: Mac address for unit 0 [ 95.980000] AG7240CHH: 00:15:6d:ff:94:7e [ 96.181000] AG7240CHH: Mac address for unit 1 [ 96.181000] AG7240CHH: 02:15:6d:ff:94:7e [ 96.513000] wlan: 0.8.4.2 (Atheros/multi-bss) [ 96.544000] ubnt_poll: Initializing polling module... [ 96.544000] ubnt_poll: Initializing packet classifier... [ 96.544000] ubnt_poll: OS timer frequency 1000 Hz [ 96.672000] ath_hal: 0.9.17.1 (AR5416, REGOPS_FUNC, 11D) [ 96.694000] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved [ 96.760000] wlan: mac acl policy registered [ 96.863000] wlan_me: Version 0.1 [ 96.863000] Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved [ 96.882000] ath_dfs: Version 2.0.0 [ 96.882000] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved [ 96.920000] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved [ 96.960000] ath_pci: 0.9.4.5 (Atheros/multi-bss) [ 96.960000] PCI: Setting latency timer of device 0000:00:00.0 to 64 [ 96.968000] ath_hal: Ubiquiti Merlin [ 96.973000] wifi0: Atheros 9280: mem=0x10000000, irq=48 hw_base=0xb0000000 [ 97.082000] rssi-leds 1.0 loaded [ 97.297000] device eth0_real entered promiscuous mode [ 97.307000] device eth1_real entered promiscuous mode [ 97.367000] ubnt_poll: Clearing hooks... [ 97.367000] ubnt_poll: ack_mode set to 0 [ 97.676000] RSSI LED invert is OFF [ 97.967000] ip_tables: (C) 2000-2002 Netfilter core team [ 98.210000] ip_conntrack version 2.4 (256 buckets, 2048 max) - 212 bytes per conntrack [ 98.346000] ipt_recent v0.3.1: Stephen Frost <[email protected]>. http://snowman.net/projects/ipt_recent/ [ 98.918000] ip_conntrack_pptp version 3.1 loaded [ 99.005000] ag7240_ring_alloc Allocated 1280 at 0x8143d000 [ 99.005000] ag7240_ring_alloc Allocated 4032 at 0x8143b000 [ 99.007000] Setting PHY... [ 102.029000] AG7240: enet unit:0 phy:4 is up...Mii 100Mbps full duplex [ 102.029000] AG7240: done cfg2 0x7135 ifctl 0x10000 miictrl [ 102.043000] ag7240_ring_alloc Allocated 1280 at 0x81172800 [ 102.043000] ag7240_ring_alloc Allocated 4032 at 0x81a67000 [ 102.045000] ATHRS26: resetting s26 [ 102.145000] ATHRS26: s26 reset done [ 102.147000] Setting PHY... [ 103.163000] eth0: port 1(eth0_real) entering learning state [ 103.163000] device eth0 entered promiscuous mode [ 103.199000] Country ie is CNI [ 103.200000] device ath0 entered promiscuous mode [ 104.163000] eth0: topology change detected, propagating [ 104.163000] eth0: port 1(eth0_real) entering forwarding state
I use dd command read /dev/mtd5 partition, found MAC address(wifi mac) in this partition, so I change it, use mtd command write back and reboot, I found wifi do not work, in web page WLAN MAC: 00:00:00:00:00:00,dmesg display "unable to attach hardware..." Any idea? PS. default AirOS v5.2 os not support mtd command, I use sdk create custorm firmware, means to make menuconfig, add mtd package. _______________________________________________ ath9k-devel mailing list [email protected] https://lists.ath9k.org/mailman/listinfo/ath9k-devel
