AG241V2 annex A

All about firmwares for routers. Support for RouterTech firmwares is here too.
User avatar
Shotokan101
RouterTech Team
RouterTech Team
Posts: 4779
Joined: Thu Jan 26, 2006 3:17 pm
Location: Glasgow, Scotland

Post by Shotokan101 » Sun Mar 25, 2007 5:51 pm

From a post here :-

http://forums.whirlpool.net.au/forum-re ... 11748.html

It would look like the V1 at least - uses a 4MB flash and AMD extensions - does this mean that it is AMD compatible flash ?
Jim

.....I'm Sorry But I Can't Do That Dave.....
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Sun Mar 25, 2007 8:08 pm

Yes. It stands to reason that V2 will use either AMD or Intel extensions, and so there may be no problem there. Next is the question of bravery ...
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
CaNsA
Novice
Novice
Posts: 21
Joined: Thu Mar 22, 2007 11:13 pm

Post by CaNsA » Thu Apr 05, 2007 11:23 am

thechief wrote:Yes. It stands to reason that V2 will use either AMD or Intel extensions, and so there may be no problem there. Next is the question of bravery ...
okies, i have found a dude who has given me a bit of f/w that has telnet enabled. kudos to him.

managed to get he info that was asked for previously. this is from a ag241v1eu annex a

BusyBox v0.60.0 (2007.03.28-05:43+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# cat /proc/ticfg/env
memsize 0x01000000
flashsize 0x00400000
FlashVendor AMD
CodePattern AG1A
modetty0 38400,n,8,1,hw
modetty1 38400,n,8,1,hw
bootserport tty0
cpufrequency 150000000
sysfrequency 125000000
bootloaderVersion 0.22.10
ProductID AR7WRD
HWRevision Unknown
SerialNumber none
my_ipaddress 192.168.1.1
maca 00:14:BF:73:41:9C
mtd0 0x900e0000,0x903f0000
mtd1 0x90020000,0x900e0000
mtd2 0x90000000,0x90020000
mtd3 0x903f0000,0x90400000
mtd4 0x90020000,0x903f0000
autoload 2
pair_selection 0
prompt Adam2_AR7WRD
firstfreeaddress 0x9401c028
req_fullrate_freq 125000000
modulation GDMT
#
# cat /proc/modules
tiatm 123936 1
#
# cat /proc/interrupts
7: 23591546 R4000 timer/counter [MIPS interrupt]
8: 0 unified secondary [hw0 (Avalanche Primary)]
15: 5265 serial [hw0 (Avalanche Primary)]
23: 16488788 + SAR [hw0 (Avalanche Primary)]
41: 6202574 + Cpmac Driver [hw0 (Avalanche Primary)]
47: 73 + DSL [hw0 (Avalanche Primary)]
#
# cat /proc/avalanche/avsar_ver
ATM Driver version:[6.00.01.00]
DSL HAL version: [6.00.01.00]
DSP Datapump version: [6.00.04.00] Annex A
SAR HAL version: [01.07.2b]
PDSP Firmware version:[0.54]
Chipset ID: [7300/7300A]
#


i know bravery is a big thing, buit i aint got it until i have some-one to blame.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Thu Apr 05, 2007 12:07 pm

Everything said before remains valid. The rest depends on your bravery.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
CaNsA
Novice
Novice
Posts: 21
Joined: Thu Mar 22, 2007 11:13 pm

Post by CaNsA » Thu Apr 05, 2007 4:18 pm

okies. ill give it a whirl.

which f/w to get then?
can u post the linky plz for the ag241 v2 eu

cheers
Xybirium
Novice
Novice
Posts: 24
Joined: Thu Oct 19, 2006 2:40 pm

Linksys WAG54GV3

Post by Xybirium » Fri Sep 21, 2007 1:45 pm

I have a Linksys WAG54GV3 and I am trying to look for an unofficial firmware for it. Googling doesn't seem to help much and all I could get after trawling the internet is what you see below.

Vendor:LINKSYS
ModelName:WAG54G-V3
Firmware Version:1.00.63 , Apr 24 2007
#:000
Boot Version:0.22.50
CodePattern:WAA2
Country:Europe

DSL DSP Datapump version: [6.00.04.00] Annex A
Chipset : Texas Instruments TNETD 7200+1350 +3422+3427 (based on http://whirlpool.net.au/index.cfm?a=h_view&model_id=596)

If anyone can point me in the right direction, I would be so forever grateful.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Fri Sep 21, 2007 2:40 pm

Login via telnet/ssh and please supply the outputs of these commands:

Code: Select all

cat /etc/versions
cat /proc/ticfg/env
cat /proc/modules
cat /proc/interrupts
cat /proc/avalanche/avsar_ver 
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
Xybirium
Novice
Novice
Posts: 24
Joined: Thu Oct 19, 2006 2:40 pm

Post by Xybirium » Sat Sep 22, 2007 2:26 am

I can't do that and I think it is a similar output to the thread starter. The only thing I get when I telnet is

xybirium@Xybirium-Debian:~$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.

login: xxxx
Password: xxxx
Router(main)#?
access-list no access-list configure show log vpn
exit help ? iflist interface
ip dhcp ipcp parental ping reboot
restart show saveall status traceroute
upgrade
Router(main)#

Their GPL Code is at http://www.linksys.com/servlet/Satellit ... torWrapper specifically ftp://ftp.linksys.com/opensourcecode/wa ... AnnexA.tgz if you think that's any help.

Any assistance would be much appreciated.
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Sat Sep 22, 2007 10:31 am

The firmware looks similar to other Linksys WAG54G, AG241, WAG200G products using the Ti AR7 platform.

They use familiar ADAM2 or PSPBOOT bootloaders (but may only be accessible by tftp not ftp) and a kernel based on Montavista but they do not use the Ti NSP core logic and config.xml, instead they employ CyberTan and Broadcom code similar to the Linksys WRT54GL series for router control and web interface. This uses variables stored in flash with "nvram set, get, commit" type commands. Probably similar to Netgear - here's an analysis of a DG834G V1 or 2?

http://www.suburbia.com.au/~dan/

It is possible to recompile the distributed firmware with telnet etc support built in - I've not seen any yet for the WAG54GV3 but I doubt it will be long as the V2 is discontinued and they fail with capacitor failure after a couple of years use! So "WAG54V2 pluto", "WAG54GV2 skidoo", "WAG200G woytekm" (Google for more info!) will have to move on!

I'm sure it would be possible to port Routertech firmware to this platform, but I wouldn't think it would be easy, the other direction would be nice - port Routertech optimizations back to the CyberTan/Broadcom environment which may free us from the Ti closed source core logic modules?
Xybirium
Novice
Novice
Posts: 24
Joined: Thu Oct 19, 2006 2:40 pm

Post by Xybirium » Sun Sep 23, 2007 2:03 am

Thanks for the info mstombs!

I've seen you lurking around in the Linksys forums! :D

If you have any other pointers, please let me know. I'm trying to recompile the firmware but I'm a Debian Linux newbie and I just don't know where to start. I kept getting recompile errors but I'm not giving up yet.

Just wondering whether any Linux expert could recompile the firmware...
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Post by mstombs » Sun Sep 23, 2007 9:43 pm

The linksys GPL sourcecode for the WAG54V3 is incomplete, it tells you to get the Montavista preview kit - which they will not give you.

Start with the WAG200G GPL, this includes the toolchain and compiles without modification on my Linux PC

Here an edited/commented console log:-, the only commands typed are on the lines begiining with the name of my P3-500MHz 896MB PC called "vector:" after the beta single CD distro it has loaded.

Code: Select all

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2007.09.23 18:37:19 =~=~=~=~=~=~=~=~=~=~=~=
login as: root
root@vector.lan's password: 
Vector Linux 5.8 SOHO Beta 1   Feb-22-2007 on Linux 2.6.20
You are working as root

# This environment variable breaks the Linksys scripts - so remove it (My PC issue)
vector://home/user root:# unset CFLAGS

# expand the tarball - must not start with deeper directory
vector://home/user root:# tar -xzf WAG200G_1.01.05.tar.gz 

#start in the newly created directory
vector://home/user root:# cd wag200g-gpl/

# run the supplied build script
vector://home/user/wag200g-gpl root:# ./build.sh
echo "make links"
make links
ln -sf asm-mips /home/user/wag200g-gpl/code/kernel/src/include/asm
ln -sf sangam_atm_B_5.00.04 /home/user/wag200g-gpl/code/kernel/src/drivers/atm/sangam_atm
...
LOTS OF OUTPUT -LOTS OF WARNINGS ....
...
cp -f /home/user/wag200g-gpl/code/driver/atm/tiatm_V3.o /home/user/wag200g-gpl/code/target/lib/modules/2.4.17_mvl21-malta-mips_fp_le/kernel/drivers/atm/tiatm.o
cp -f /home/user/wag200g-gpl/code/driver/wifi/tiap.o /home/user/wag200g-gpl/code/target/lib/modules/
cp -f /home/user/wag200g-gpl/code/driver/wifi/wlan_init /home/user/wag200g-gpl/code/target/usr/sbin/
cp -f /home/user/wag200g-gpl/code/driver/wifi/wpa_authenticator /home/user/wag200g-gpl/code/target/usr/sbin/wpa_auth
cp -f /home/user/wag200g-gpl/code/driver/atm/annex_a/ar0700mp.bin.5.00.02 /home/user/wag200g-gpl/code/target/lib/modules/ar0700xx.bin
/home/user/wag200g-gpl/code/tools/makeimage/mksquashfs /home/user/wag200g-gpl/code/target /home/user/wag200g-gpl/code/image/fsa.bin -b 32768 -noappend
Creating little endian filesystem on /home/user/wag200g-gpl/code/image/fsa.bin, block size 32768.

Little endian filesystem, data block size 32768, compressed data, compressed metadata, compressed fragments
Filesystem size 2143.95 Kbytes (2.09 Mbytes)
25.18% of uncompressed filesystem size (8514.17 Kbytes)
Inode table size 4584 bytes (4.48 Kbytes)
32.63% of uncompressed inode table size (14050 bytes)
Directory table size 3334 bytes (3.26 Kbytes)
38.95% of uncompressed directory table size (8560 bytes)
Number of duplicate files found 43
Number of inodes 604
Number of files 450
Number of fragments 100
Number of symbolic links  88
Number of device nodes 32
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 34
Number of uids 1
root (0)
Number of gids 0
#/home/user/wag200g-gpl/code/tools/makeimage/mkcramfs /home/user/wag200g-gpl/code/target /home/user/wag200g-gpl/code/image/fsa.bin 
/home/user/wag200g-gpl/code/tools/makeimage/makeImage_4M /home/user/wag200g-gpl/code/image/WAG200G_A_1.01.05_EN.img /home/user/wag200g-gpl/code/bootloader/loader.bin /home/user/wag200g-gpl/code/bootloader/download.bin /home/user/wag200g-gpl/code/kernel/src/ram_zimage_pad.bin /home/user/wag200g-gpl/code/image/fsa.bin /home/user/wag200g-gpl/code/tools/makeimage/PID_A1.01.05
/home/user/wag200g-gpl/code/bootloader/loader.bin read 39 kbytes maximum 92 kbytes
/home/user/wag200g-gpl/code/bootloader/download.bin read 14 kbytes maximum 36 kbytes
/home/user/wag200g-gpl/code/kernel/src/ram_zimage_pad.bin read 576 kbytes maximum 704 kbytes
/home/user/wag200g-gpl/code/image/fsa.bin read 2144 kbytes maximum 2879 kbytes
/home/user/wag200g-gpl/code/tools/makeimage/PID_A1.01.05 read 0 kbytes maximum 0 kbytes
rm -f /home/user/wag200g-gpl/code/image/fsa.bin

vector://home/user/wag200g-gpl root:# ls -laF  code/image
total 4160
drwxrwxrwx 2 root root    4096 2007-09-23 20:20 ./
drwxrwxrwx 9 root root    4096 2007-09-23 20:20 ../
-rwxr-xr-x 1 root root     413 2007-06-22 02:22 Makefile*
-rwxr-xr-x 1 root root  102685 2007-06-22 02:22 WAG200G_1.00.09_DE.lang*
-rwxr-xr-x 1 root root   97660 2007-06-22 02:22 WAG200G_1.00.09_EN.lang*
-rwxr-xr-x 1 root root  101659 2007-06-22 02:22 WAG200G_1.00.09_FR.lang*
-rwxr-xr-x 1 root root   98915 2007-06-22 02:22 WAG200G_1.00.09_SV.lang*
-rw-r--r-- 1 root root 3801088 2007-09-23 20:20 WAG200G_A_1.01.05_EN.img
-rwxr-xr-x 1 root root   16164 2007-06-22 02:22 make_firmware*
No idea whether it would would work - but that's the basic idea... To get the WAG54GV3 to compile is just a matter of getting all the links and paths right to use the same toolchain - I suspect...

There's a guide to building the AG241 firmware here http://ag241.ickz.com/node/11
Last edited by mstombs on Thu Nov 08, 2007 9:25 pm, edited 3 times in total.
Xybirium
Novice
Novice
Posts: 24
Joined: Thu Oct 19, 2006 2:40 pm

Post by Xybirium » Mon Sep 24, 2007 11:41 am

Geez!!!!! Looks really scary for a really, really, really Linux newbie like me!!! :shock:

Thanks for the assistance and I'll try it later rather than sooner. :(
Post Reply