1. Status of the AR7 port of OpenWrt

1.1. What is this AR7 stuff?

AR7 is a router platform by Texas Instruments, which is used for routers and ADSL gateways.

See the TableOfHardware for supported AR7 routers.

See OpenWrtDocs/InstallingAR7 if you are brave enough to test it.

1.2. Finished tasks

Our Kernel support for AR7 is in SVN trunk. Here's what we have integrated so far (for Linux kernel 2.4, no longer supported):

The latest contributions add experimental AR7 support for Linux 2.6:

The latest Linux kernel 2.6.22.4 is now supported for AR7.

1.3. Bugs / Ugly-Hacks

I would like to keep a list of the bugs and ugly-hacks used to make the ar7 work, so that they can be removed.

1.4. TODO

See also https://dev.openwrt.org/report/ (all tickets with AR7 in the summary).

1.5. Firmware/Bootloader

There are at least 4 variants

Note: Even on VxWorks based routers with the BRN bootloader, it is possible to install Linux and OpenWrt! See http://forum.openwrt.org/viewtopic.php?id=2654 for more details.

There are also at least two variants of ADAM2. My version (0.22.06) allows flashing of each mtdblock by ftp, others have reported they must flash a complete image via tftp TFTP is probably specific to CyberTAN-based stuff (almost exclusively Linksys). All other vendors seem to use FTP

There are two ADAM2 environment controlling boot process:

2. Emulation

You can use the MIPS emulator QEMU to emulate an AR7 based router in software. See http://forum.openwrt.org/viewtopic.php?id=5488 for more details.

3. How to help

If you want to help and got some basic kernel hacking knowledge, you should start by familiarizing yourself with the OpenWrt build system. It now has support for building images for non-broadcom hardware. All the kernel and image stuff is in the target/ subdirectory.

AR7-specific kernel patches go into target/linux/linux-2.4/patches/ar7. The build system part that constructs the firmware images for AR7 based routers is in target/linux/image/ar7. You can also find the kernel loader there.

If you'd like to help out and maybe have a patch or two, please talk to one of the developers working on this via IRC in the OpenWrt channel. Some people working on this are: nbd, wbx, wickus, z3ro, ralf, mache, sw_ and ydef.

3.1. IRC

There is a specifically targeted #ar7 irc channel complementary to #openwrt on Freenode where those devoted to hacking ar7 based routers go to hang out.

4. Other stuff

4.1. Model-specific information

Mode-specific information can be found on that model's page. See CategoryAR7Device.

4.2. JTAG

The AR7 is based on ejtag version 2.6.

This EJTAG layout should support all AR7 based boards with a 14 pin jtag pinout. The same cable as used for the standard wrt54g (based on the xilinx III/dlc-5) as demonstrated by HairyDairyMaid can be constructed and is well documented. Debug INT pin 13 is optional and pin 14 can be left unhooked for passive cabling.

Since DMA Routines do NOT exist for this ejtag version (compared to ejtag v2.0 supported on the wrt54g) interfacing requires a rewrite utilizng prAcc routines of the v2.6 standard.

JTAG for D-Link DSL-30xT, JTAGInterface (Italian!)

interface

As of 2008-01 there is a new, actively developed fork of openwince JTAG tools with EJTAG driver included, named "UrJTAG": http://urjtag.org - it should be working with AR7 based boards as well (try latest version from Subversion repository). This is usable on Speedport(AVM)routers with more as one chip on the chain. Some bsd definition files must be created first to discribe the chain in use. Still up to now i just could dsplay the chips and do some register setting but could not read or write the flash memory attatched to the TNETV7200 CPU.

it is possible to use derivative of jtag-tools (GPL) with EJTAG driver included to work with flash on AR7 based boards http://star.oai.pp.ru/jtag/jtag-brecis-ok.zip It works with Xilinx-cable (5 resistors).

14

See a JTAG_Cables page for more info

commands example for Dlink DSL-500T router:

jtag> cable parallel 0x378 DLC5 
jtag> detect
jtag> detectflash 0x30000000 1
jtag> readmem 0x30000000 0x400000 dsl-500t-fullflash.img
jtag> flashmem 0x30000000 adam2.img

For flashing connect RST pin on VCC


CategoryOpenWrtPort

AR7Port (last edited 2008-10-14 14:42:43 by Johann Pascher)

Almost all of these pages are editable, create an account and click the edit (Edit) button at the top of the page.