Atheros AP81/AP83 platform, u-boot, list of known routers

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Mon Dec 08, 2008 16:45    Post subject: Atheros AP81/AP83 platform, u-boot, list of known routers Reply with quote
Several Atheros AR81 platform routers have been identified. All use u-boot, have 4MB of FLASH, 32MB of RAM. Models: AR9130/AR9132, AR9102/AR9103/AR9104/AR9106. The AP81 is single band, the AP83 is dual-band (2.4 and 5.8Ghz).

Known Atheros AP81 based Routers

1) Trendnet TEW-632BRP, AP81-AR9130-RT-070614-00, ar9102 2x2 MIMO, root telnet firmware available
2) Trendnet TEW-652BRP, AP81-AR9130-RT-080609-05, ar9102 2x2 MIMO, root telnet firmware from TEW-632BRP confirmed working
3) DLink DIR-615 revision C1, AP81-AR9130-RT-080609-05, ar9102 2x2 MIMO, root telnet firmware from TEW-632BRP confirmed working
4) Netgear WNR2000, unknown hardware ID, ar9103 3x3 MIMO, runs OpenWRT-based firmware root telnet native in firmware
5) TP-Link TL-WR941N or TL-WR941ND, unknown hardware ID, ar9103 3x3 MIMO, details: http://network.pconline.com.cn/pingce/0803/1252528_5.html
6) Planex mzk-w300nh, unknown hardware ID, OpenWRT booting via u-boot tftpboot confirmed
7) Netgear WN802T version 2, suggested on this page http://blog.chinaunix.net/u2/83623/showart_1353786.html
8 ) Planex MZK-W04NU, ar9103 3x3 MIMO, 1 USB port included - and believed to have 8MB of FLASH based on firmware download size
9) Atlantiland A02-RB-W300N
10) Cameo Communications WLN2206, FCC id same as Trendnet TEW-632BRP according to SmallNetBuilder website
11) Mercury MWR300T+, ar9103 3x3 MIMO, details: http://bbs.whbear.com/thread-62276-1-1.html - probably a clone of the TL-WR941ND, because it uses the same firmware.
12) Zyxel models NBG460N, X550N, x550nh, 401764. they run ZyOS (not Linux) but the bootloader seems flexible. Info: http://en.network01.net/modules/newbb/viewtopic.php?topic_id=15&forum=2

Known AP83 routers

I'm not really sure what the difference is on AP81 vs AP83.

1) Unex RNRA-83, http://www.unex.com.tw/spec/rnra-83
2) Unex RNEA-81: AP83 AR9130+AR9104
3) ARADA SoC Econo Series 2
4) Linksys WAP-4410N, if you read the release notes for the firmware on this router you will clearly see AP83 reference.

So far, I don't think we have identified a way to gain access to u-boot via Ethernet like is possible with redboot. So far only u-boot on some routers via rs232 serial port.

Example system with lots of details: http://wiki.x-wrt.org/index.php/Trendnet_TEW-632BRP

==========================================

OpenWRT now has working firmware for several of these models. Including patches to the ATH9K driver for the new wireless ar9102/ar9103/ar9106 chips.


Last edited by RoundSparrow on Sat Jan 10, 2009 21:43; edited 22 times in total
Sponsor
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Mon Dec 08, 2008 17:09    Post subject: Reply with quote
I found a copy of Atheros documentation that shows detailed instructions on how to flash from u-boot and even how to replace u-boot itself.

PDF file: http://www.zeeport.com/guest/IWNCOMM/CarrierAP_1.4.0.13_Alpha.pdf

Also found references to u-boot being part of the reference design for the AP83 platform:

http://lists.denx.de/pipermail/u-boot/2008-August/039277.html


Last edited by RoundSparrow on Thu Dec 11, 2008 21:14; edited 1 time in total
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Mon Dec 08, 2008 17:49    Post subject: Reply with quote
My goal here is to figure out a way to load what we want on these systems without hardware serial port addition. We have managed to get root telnet access on several of these routers.

So how about we use that root telnet access to rework the u-boot environment partition? Here is off my Netgear wnr2000:

Code:

/ # dd if=/dev/mtdblock1 of=/tmp/mtd1
128+0 records in
128+0 records out
/ #
/ # cat /tmp/mtd1
v¹bootdelay=4baudrate=115200ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xeeethact=eth0 stdin=serialstdout=serialstderr=serialfilesize=334f4fileaddr=80060000 ipaddr=192.168.1.10serverip=192.168.1.12bootcmd=bootm 0xbf2a0000bootargs=console=ttyS0,115200 root=31:02 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),2304k(rootfs),64k(user-config),1152k(uImage),128k(language_table),64k(rootfs_checksum),64k(ART)/ #


ok, this looks damn promising to me! If we can edit and dd in the appropriate values, shouldn't we be able to boot whatever we want from mtd partitions or tftp or nfs?

I found an example of how you set automatic u-boot startup commands, look at the bottom of this page:
http://wiki.emqbit.com/u-boot-root-over-nfs.en
Just add what we want to the bootcmd= line.

For those with serial port access and can gain u-boot prompt: you can modify the u-boot environment right within u-boot command prompt. example:

Code:

ar7100> setenv serverip 10.0.0.1
ar7100> setenv tftpip 10.0.0.1
ar7100> setenv bootcmd 'set ipaddr 10.0.0.10;tftp 0x10200000 uImage;bootm'
ar7100> askenv bootargs
>root=/dev/nfs nfsroot=10.0.0.1:/nfs ip=10.0.0.10::10.0.0.1:::eth0:off console=ttyS0
ar7100> saveenv


Now for those of us only with telnet rootaccess to the router, it seems to me we need to get uboot-utils with the programs fw_printenv fw_setenv onto the router compatible with the proessor and kernel 2.6.15.


Last edited by RoundSparrow on Thu Dec 11, 2008 16:53; edited 1 time in total
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Mon Dec 08, 2008 21:14    Post subject: Reply with quote
Found a built binary of the OpenWRT tftpboot image:

http://downloads.openwrt.org/snapshots/ar71xx/openwrt-ar71xx-uImage.gz
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Thu Dec 11, 2008 20:43    Post subject: Reply with quote
Anyone read Chinese? Seems to be instructions on how to build a root filesystem for the AP81 platform:

http://blog.chinaunix.net/u2/83623/showart_1353786.html
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Thu Dec 11, 2008 21:50    Post subject: Reply with quote
i think it speed up things it would be nice to have one ap81 and 83 uboot device on sebastians desk
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Mon Dec 15, 2008 0:57    Post subject: Reply with quote
FYI: The trendnet TEW-672GR GPL download suggests it is a version of the RT288x_SDK.

It also includes source for u-boot MIPS processor.
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Mon Dec 15, 2008 14:24    Post subject: Reply with quote
The Netgear WNR2000 is an AP81 router with stock firmware based on OpenWRT. I downloaded the Netgear GPL package and it is the first one of these AP81 kits that has built for me on a modern Ubuntu!

I built it on Ubuntu 8.04, 32bit. Follow the included WNR2000-V1.1.3.9-build_instructions.txt - I also had to add a few Ubuntu packages.

Code:
sudo apt-get install gcc g++ binutils patch bzip2 flex bison make gettext unzip libz-dev libc6 ncurses-dev fakeroot


This is the same kernel 2.6.15 that all these routers seem to use on their current firmware. So if you are looking to build modules/apps for the factory firmware environment, I recommend the Netgear WNR2000 GPL kit.

BAD NEWS: My ubuntu-built firmware fired up, but the web service returns 404 on any pages. The telnet root still works. Anyway, I found no way to flash it from telnet... so I'm soldering up a rs232 serial port on the WNR2000 to get into u-boot.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Mon Dec 15, 2008 18:03    Post subject: Reply with quote
i have ap81 and ap83 devices since a long time, but the chipsets are very buggy. this is one of the major reasons why i tried to stay away until atheros fixed these issues. the drivers provided by atheros for example are just doing 2 mbit/s in client mode and issues like that
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Mon Dec 15, 2008 18:17    Post subject: Reply with quote
More AP81 activity reported by OpenWRT developers. Looks to me they have gotten the Trendnet flashing working and a modern kernel booting.

http://forum.openwrt.org/viewtopic.php?id=17992
bkmartin
DD-WRT Novice


Joined: 05 Dec 2008
Posts: 15

PostPosted: Mon Dec 15, 2008 19:13    Post subject: Reply with quote
BrainSlayer wrote:
i have ap81 and ap83 devices since a long time, but the chipsets are very buggy. this is one of the major reasons why i tried to stay away until atheros fixed these issues. the drivers provided by atheros for example are just doing 2 mbit/s in client mode and issues like that


I get high throughput and stability from my Trendnet TEW-652BRP. Maybe things are better now.
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Fri Dec 19, 2008 16:12    Post subject: Reply with quote
BrainSlayer wrote:
i have ap81 and ap83 devices since a long time, but the chipsets are very buggy. this is one of the major reasons why i tried to stay away until atheros fixed these issues. the drivers provided by atheros for example are just doing 2 mbit/s in client mode and issues like that



Brainslayer, do you actually have device id's and/or source code for these drivers?

On the Trendnet GPL download for this router, all I find is a binary driver for 2.6.15 kernel. If you have some source for this driver, please speak up.

Right I haven't managed to get lspci working on the device to even know the ID of the chip.
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Sun Dec 21, 2008 20:07    Post subject: Reply with quote
The wireless drivers are still a big sticking point. The ath9k developers don't seem interested and point to the OpenWRT guys as the place to develop drivers.

I've started a thread on the OpenWRT forum, please help! http://forum.openwrt.org/viewtopic.php?pid=78306

UPDATE: AHB bus (alternate to PCI bus) is the main issue at this point, don't think the ath9k driver supports it yet.


Last edited by RoundSparrow on Tue Dec 23, 2008 20:05; edited 1 time in total
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Tue Dec 23, 2008 20:01    Post subject: Reply with quote
A review of ZyXEL routers points to another contender.

These models are identical: NBG460N, X550N, 401764 according to their compliance documents. I think the 550N is sold in USA, the 460N in EU.

Great review of the NBG 420N and NBG 460N
http://en.network01.net/modules/newbb/viewtopic.php?topic_id=15&forum=2

Pictures clearly show an Atheros AR9130 CPU, and the cited 400Mhz speed and 32MB of RAM sounds familiar.

I am asking ZyXEL for GPL software release and going over the binary firmware file for the 460N.
RoundSparrow
DD-WRT User


Joined: 28 Nov 2008
Posts: 112

PostPosted: Sun Dec 28, 2008 0:15    Post subject: Reply with quote
Oops, that router runs ZynOS (proprietary). The review sure shows it blows the doors off what I've gotten out of Linux Wink Shows some tuning to be done.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum