Re: [OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-02-05 Thread Gabor Juhos
Hi Jonathan, <..> > Here's the relevant lines from dmesg: > ag71xx_mdio: probed > eth0: Atheros AG71xx at 0xb900, irq 4 > eth0: connected to PHY at ag71xx-mdio:0c [uid=8201, driver=Generic PHY] The PHY is at address 0x0c. So the phy mask should be 0x1000 (1 << 12). > > I don't reall

Re: [OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-02-04 Thread Jonathan Bennett
Gabor, thanks for the feedback. >> +        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; >> +        ar71xx_eth0_data.speed       = SPEED_100; >> +        ar71xx_eth0_data.duplex      = DUPLEX_FULL; > > You don't have to specify the speed and duplex values if you are using a > phy_mask.

Re: [OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-02-02 Thread Jonathan Bennett
Included patch adds support for the TP-link WA901ND-v2. I have yet to map out the leds and buttons, but I don't anticipate having much problem with that. I'll push that patch through once I get it done. This patch also adds an init script to the ar71xx platform. It checks to see if it is running o

Re: [OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-02-01 Thread Jonathan Bennett
OK, so I have the ethernet working. It's a MII interface, instead of a RMII like the wa901nd v1. I also had to specify a phy_mask to get the kernel to connect to the phy. Once that happens, I still have to run mii_tool -R to get the port to come up. I've got another issue that has me befuddled. Wh

Re: [OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-01-29 Thread Gabor Juhos
Hi Jonathan, > OK, so, I was finally able to compile forcedeth support into the > kernel. It seems that the kernel compile process prompts whether to > actually compile that in. Without running V=99, I had no way of > telling it to actually include forcedeth support. You don't need forcedeth supp

Re: [OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-01-28 Thread Jonathan Bennett
OK, so, I was finally able to compile forcedeth support into the kernel. It seems that the kernel compile process prompts whether to actually compile that in. Without running V=99, I had no way of telling it to actually include forcedeth support. That said, I still have no ethernet support. Strang

Re: [OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-01-26 Thread Jonathan Bennett
The stock firmware is now up at http://oneru.dyndns.org/openwrt/WA901NDv2/ The driver for the ethernet chip appears to be the the forcedeth.c driver that ships with the kernel. I haven't been successful in making the build process include that file for compilation, though. I've added "CONFIG_FORCE

[OpenWrt-Devel] TP-Link TL-WA901ND V2 support

2011-01-25 Thread Jonathan Bennett
I'm working on support for the new version of the WA901ND. TP-link changed nearly every component from version 1. 32 megs of ram proc: AR9132-BC1E ethernet chip: RTL8201CP Wireless AR5416 Flash: 4MB I've gotten everything working but the Ethernet port. It's a RTL8201CP chip that drives the port. I