找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 62085|回复: 148

全球首发--tplink 941 (ar9132) usb 成功驱动。

  [复制链接]
本帖最后由 qwea 于 2010-7-17 15:15 编辑

tplink 941 添加usb需要做一下工作。
硬件部分:
1。添加焊接usb接口。
2。增加5v dc-dc 电路。(我是用3A的dc-dc模块来直接实现的)
3。添加USB_RREF 产考基准电阻 (R96 阻值4.7k)

固件部分:
由于941的uboot没有加入usb的初始化。所以光添加硬件还是不能正常驱动的。
为此我编译了新的uboot。
1。增加了usb 初始化
2。波特率改为115200
3。去掉了按tp才能中断串口信息。便于调试

PS: 应该同样支持ar9130的841。


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 19恩山币 +24 收起 理由
ol*** + 1 How ever,this is JB useful
ha*** + 1 我是来打酱油的,老婆说酱油要涨价了,顺便再买两块豆腐~
fb237*** + 1 牛人,顶了
hki*** + 1 well done
ice*** + 3 精品文章
dmx*** + 1 8230
mye*** + 1 拜猫神
md-ch*** + 1 确实很棒
uu*** + 1 感謝分享,牛~~
6*** + 1 牛人
lixi*** + 1 niu
sing*** + 4 精品文章
wa*** + 1 虽然我不用TP,但很佩服楼主的探求精神
7296*** + 1 很好很强大
xuji*** + 1 猫大出手果然不一样
wzyw*** + 1 NB大了
net*** + 1 精品文章
`wi*** + 1 顶猫大。。。
liusha*** + 1 谢谢猫大分享!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
沙发
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

支持一个
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

所谓沙发,,,哈哈。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 liushaozheng2 于 2010-7-17 15:06 编辑

抢了沙发再慢慢学习猫大的强帖!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
U-Boot 1.1.4 (Jul 17 2010 - 00:26:05)

AP81 (ar7100) U-boot
DRAM:  
sri
64 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

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
eth0
Hit any key to stop autoboot:  0
## Booting image at bf020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.32.10 (qwea@qwea-desktop) (gcc version 4.3.3 (GCC) ) #4 Tue Jul 13 23:11:31 CST 2010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 1, CPU:400.000 MHz, AHB:100.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=TL-WR941ND
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 61828k/65536k available (2028k kernel code, 3632k reserved, 389k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR941ND
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
yaffs Jul 13 2010 02:13:32 Installing.
msgmni has been set to 120
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: s25sl064a (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=670000, len=180000
0x000000670000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "art"
0x000000020000-0x0000007f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Distributed Switch Architecture driver version 0.1
ar7240_dsa: unsupported chip, ctrl=ffffffff
eth0[0]: detected a Marvell 88E6060 switch
dsa slave smi: probed
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
gpio-buttons driver version 0.1.2
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (100Mbps/Full duplex)
- preinit -
Registered led device: tl-wr941nd:green:system
Registered led device: tl-wr941nd:red:qss
Registered led device: tl-wr941nd:green:qss
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (100Mbps/Full duplex)
device lan1 entered promiscuous mode
device eth0 entered promiscuous mode
device lan2 entered promiscuous mode
lan2: link up, 100 Mb/s, full duplex, flow control disabled
br-lan: port 2(lan2) entering forwarding state
device lan3 entered promiscuous mode
device lan4 entered promiscuous mode
Compat-wireless backport release: compat-wireless-2010-06-17-6-g8a97897
Backport based on wireless-2.6.git v2.6.35-rc4-47517-gade698a
cfg80211: Calling CRDA to update world regulatory domain
SCSI subsystem initialized
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a1 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: US
PPP generic driver version 2.4.2
cfg80211: Regulatory domain changed to country: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (969 buckets, 3876 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
xt_time: kernel timezone is -0000
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
device wlan0 entered promiscuous mode
br-lan: port 5(wlan0) entering forwarding state
scsi 0:0:0:0: Direct-Access     Maxtor 3 4098H4           0000 PQ: 0 ANSI: 0
sd 0:0:0:0: [sda] 78165360 512-byte logical blocks: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
device wlan0 left promiscuous mode
br-lan: port 5(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 5(wlan0) entering forwarding state



BusyBox v1.15.3 (2010-07-13 01:33:06 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
Backfire (10.03, r22127) --------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua
  * 1/3 shot Bailey's  on the bottom, then Bailey's,
  * 1/3 shot Vodka     then Vodka.
---------------------------------------------------
root@OpenWrt:/# IMQ driver unloaded successfully.
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with writeback data mode.

评分

参与人数 1恩山币 +1 收起 理由
liusha*** + 1 猫大这机改的太强了,软硬都来哦

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
root@OpenWrt:/# lsusb
Bus 001 Device 002: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to ATA/ATAPI
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:/# free
              total         used         free       shared      buffers
  Mem:        62056        60024         2032            0        41988
Swap:            0            0            0
Total:        62056        60024         2032
root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 5248      5248         0 100% /rom
tmpfs                    31028       196     30832   1% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3            1536       228      1308  15% /overlay
mini_fo:/overlay          5248      5248         0 100% /
/dev/sda1             38468228    894444  35619688   2% /home
root@OpenWrt:/# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads:   186 MB in  2.01 seconds =  92.76 MB/sec
Timing buffered disk reads:   64 MB in  3.06 seconds =  20.93 MB/sec
root@OpenWrt:/# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads:   180 MB in  2.00 seconds =  89.78 MB/sec
Timing buffered disk reads:   60 MB in  3.02 seconds =  19.89 MB/sec
root@OpenWrt:/# hdparm -tT /dev/sda1

/dev/sda1:
Timing cached reads:   194 MB in  2.01 seconds =  96.52 MB/sec
Timing buffered disk reads:   70 MB in  3.01 seconds =  23.24 MB/sec
root@OpenWrt:/#
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

地板也不错哇,顶个!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

搂主强了
我只有想法 却没实施 楼主已经解决了
建议楼主将源代码发出来    我的941n v2.0   和841n v3.4 已经坏了

只有841n v5的  强烈放出ar9132电路图和 c源码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

地板没得坐就站门口看。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢 楼主的分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 qwea 于 2010-7-17 15:42 编辑

9# 343873163


我和你一样,没有任何ar913x的硬件资料。这个是凭我多年的经验。用可调电阻试出来的。有datasheet的话,这个及其简单的事
对于源码直接去tplink 下载就是了。我也是从tp下的gpl。
我能拿到的东西,网上都能下到的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

顶一下!恭喜!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

再弄台搞搞,呵呵。。大家守秩序,不要挤哦。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

头像被屏蔽
猫神越来越有淘宝的语气了,哈哈

天下第一,
全球唯一,

不过,神就是神,哈哈
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 04:02

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表