Modify

Opened 9 years ago

Last modified 3 years ago

#5298 accepted enhancement

AR7: Support for WAG200G possible

Reported by: anonymous Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: WAG200G AR7 Cc:

Description

Is there a chance, to change the AR7 to support shortly the Linksys WAG200G ? Is mostly the same as AG241v2, except switch is Marvel 88E6060 and has TI1350 WLAN included (ACX100). Mostly the ADAM2 Bootloader is little bit tricky. But using SerCom (Windows) Updater, changing Firmware is very easy. Mostly Problem is, that a different Imageformat (.img) for Flashing is needed for this Device.

Attachments (0)

Change History (44)

comment:1 Changed 9 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

Provided that you help us on getting the image format working with your device, we can try to get the switch working ?

comment:2 follow-up: Changed 9 years ago by anonymous

Yes, i can. First Problem is the ugly ADAM2 bootloader, that needs replaced, because interuption via serial port is not possible in this crapped Linksys original Version.

Flashing from AnnexA to AnnexB works for now very nice with the SerCom Windows updater. So replace with the Bootloader from AG241v2 (PSPboot) looks like the best option. Generally, it is the WL1350 added, rest looks like the same as the AG241v2. Or when you have knowledge to build an .img for adam2, i can try directly using the old bootloeader to boot up one file. For me looks like the Marvil chip is configured as switch in default mode. eth0 is used fromt he AR7, and eth1 is the WLAN-Part (TI). So the marvell chips i think will be transparent L2 after cold boot ? When you need some "dmesg" or other log, let me know. Linksys provides "limited" Sources for the WAG200G and the tools needed for build the image.

comment:3 in reply to: ↑ 2 Changed 8 years ago by mazdac@…

Replying to anonymous:

Yes, i can. First Problem is the ugly ADAM2 bootloader, that needs replaced, because interuption via serial port is not possible in this crapped Linksys original Version.

Flashing from AnnexA to AnnexB works for now very nice with the SerCom Windows updater. So replace with the Bootloader from AG241v2 (PSPboot) looks like the best option. Generally, it is the WL1350 added, rest looks like the same as the AG241v2. Or when you have knowledge to build an .img for adam2, i can try directly using the old bootloeader to boot up one file. For me looks like the Marvil chip is configured as switch in default mode. eth0 is used fromt he AR7, and eth1 is the WLAN-Part (TI). So the marvell chips i think will be transparent L2 after cold boot ? When you need some "dmesg" or other log, let me know. Linksys provides "limited" Sources for the WAG200G and the tools needed for build the image.

Hardware info:

  • Marvell 88E6060 - 6-Port Fast Ethernet Switch
  • P2V28S40BTP - Mira P2V28S40BTP (4-BANK x 2,097,152-WORD x 16-BIT DRAM)

( 128Mbit / 8 bit words = 16MB DRAM )

  • 29LV320MBTC - MXIC 32Mbit, 4Mx8 single voltage 3V only flash memory ( 4MB FLASH ).
  • TNETD7200 - TI AR7 CPE Solution ( MIPS32 RISC core, ADSL front-end, 2x16550 UART, USB ) (local PDF)
  • TNETW1350A - TI Application-Specific Single-Chip MAC and Baseband Processor (local PDF)
  • Some kind of RF Front-End, probably TNETW3428 and TNETW3422

Here's the output from various diagnostic commands ran on the device with original fimware:

# ls /dev/mtdblock/
/dev/mtdblock/0 /dev/mtdblock/2 /dev/mtdblock/4
/dev/mtdblock/1 /dev/mtdblock/3 /dev/mtdblock/5

# cat mtd
dev: size erasesize name
mtd0: 002d0000 00010000 "mtd0"
mtd1: 000b0000 00010000 "mtd1"
mtd2: 00020000 00010000 "mtd2"
mtd3: 00010000 00010000 "mtd3"
mtd4: 00010000 00010000 "mtd4"
mtd5: 00040000 00010000 "mtd5"

# cat cpuinfo
processor : 0
cpu model : MIPS 4KEc V4.8
BogoMIPS : 211.35
wait instruction : no
microsecond timers : yes
extra interrupt vector : yes
hardware watchpoint : yes
VCED exceptions : not available
VCEI exceptions : not available

# cat sys/dev/adam2/environment
maca 00:14:bf:6f:81:b2
macb 00:14:bf:6f:81:b3
memsize 0x01000000
flashsize 0x00400000
modetty0 115200,n,8,1,hw
modetty1 115200,n,8,1,hw
bootserport tty0
cpufrequency 211968000
sysfrequency 105984000
bootloaderVersion 0.22.02
ProductID WAG200G
HWRevision Unknown
SerialNumber none
my_ipaddress 169.254.87.1
prompt WAG200G
firstfreeaddress 0x9401bd20
req_fullrate_freq 125000000
mtd0 0x900d0000,0x903a0000
mtd1 0x90020000,0x900d0000
mtd2 0x90000000,0x90020000
mtd3 0x903e0000,0x903f0000
mtd4 0x903f0000,0x90400000
mtd5 0x903a0000,0x903e0000
oam_lb_timeout 100

# cat partitions
major minor #blocks name

31 0 2880 mtdblocka
31 1 704 mtdblockb
31 2 128 mtdblockc
31 3 64 mtdblockd
31 4 64 mtdblocke
31 5 256 mtdblockf

# cat meminfo
total: used: free: shared: buffers: cached:
Mem: 14581760 12328960 2252800 0 1191936 4251648
Swap: 0 0 0
MemTotal: 14240 kB
MemFree: 2200 kB
MemShared: 0 kB
Buffers: 1164 kB
Cached: 4152 kB
SwapCached: 0 kB
Active: 1060 kB
Inactive: 5336 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14240 kB
LowFree: 2200 kB
SwapTotal: 0 kB
SwapFree: 0 kB

# cat tty/driver/serial
serinfo:1.0 driver:5.05c revision:2001-07-08
0: uart:16550A port:A8610E00 irq:15 baud:7944 tx:6225 rx:0 RTS|DTR
1: uart:unknown port:A8610F00 irq:16

# cat wlan/hal/acxParams


NVSVersion = 04 1b 06 00 12 00 00 06
ProductId =
ManufactureId =
dot11MacAddress = 00:00:53:90:2c:dc
ProbeDelay = 17
EndofMemory = 0x1010104
dot11CCAModeSupported = 0
dot11DiversitySupport = 5
dot11ShortPreambleOptionImplemented = 1
dot11PBCCOptionImplemented = 6
dot11ChanneAgilityPresent = 0
dot11PHYType = 2
dot11TempType = 1


AntennaList (0) =
SupportedPowerLevels (2) = 0x1e00 0xa00
SupportedDataRates (5) = 0x02 0x04 0x11 0x22 0x44
SupportedRegDomains (0) =

# ps -ef
PID Uid VmSize Stat Command
1 root 288 S init
2 root SW [keventd]
3 root SWN [ksoftirqd_CPU0]
4 root SW [kswapd]
5 root SW [bdflush]
6 root SW [kupdated]
7 root SW [mtdblockd]
29 root 196 S /usr/sbin/download
43 root 220 S /usr/sbin/utelnetd -p 23 -d
45 root 224 S /sbin/klogd
55 root 484 S wpa_auth
65 root 284 S /sbin/syslogd -f /etc/syslog.conf
74 root 176 S /usr/sbin/ntp -t 3600 -z GMT-8
81 root 252 S /usr/sbin/mini_httpd -d /www -r Linksys WAG200G -c *
88 root 224 S /usr/sbin/crond
90 root 172 S /usr/sbin/scfgmgr
92 root 204 S /usr/sbin/atm_monitor
96 root 168 S /usr/sbin/cmd_agent_ap
97 root 168 S /usr/sbin/pb_ap
98 root 160 S /usr/sbin/wizd
116 root 716 S /usr/sbin/upnpd nas0 br0 30 4
118 root 348 S -sh
119 root 716 S /usr/sbin/upnpd nas0 br0 30 4
120 root 716 S /usr/sbin/upnpd nas0 br0 30 4
122 root 716 S /usr/sbin/upnpd nas0 br0 30 4
123 root 716 S /usr/sbin/upnpd nas0 br0 30 4
124 root 716 S /usr/sbin/upnpd nas0 br0 30 4
142 root 716 S /usr/sbin/upnpd nas0 br0 30 4
21465 root 416 S -sh
21993 root 292 R ps -ef

# lsmod
Module Size Used by
tiap 843072 1
led 3880 0
push_button 1544 1
tiatm 122440 0

comment:4 Changed 8 years ago by openwrt@…

I'm also interested in this ticket, and can perform testing if required.

comment:5 Changed 8 years ago by anonymous

Please

comment:6 Changed 7 years ago by sonyia89@…

Is there any progress, at all?

There is nice firmware available, OpenWAG200 - with ssh, no-ip, dns-o-matic, nice statistics, additional dhcp options....but it's not expandable (in any easy way, at least) and would love to see OpenWRT on it.

I'm not a developer, but own the device and very open for testing, and pretty much running any command on the device you guys may want.

Here is the page of the alternative firmware, with many useful (?) info: http://openwag200.sourceforge.net/

comment:7 Changed 7 years ago by sonyia89@…

Hello again guys!

Again courtesy of OpenWAG200G, here are the instructions for building proper and working .IMG file from source code: http://openwag200.sourceforge.net/?p=rebuild . Is it as I think just a matter of looking around the source code, and replacing right things with AR7 OpenWRT?

Perhaps this will also be useful: emulating original linksys firmware on QEMU, complete bootlog inluded: http://openwag200.sourceforge.net/?p=runningsoftwareinqemu .

Hope it gets off the ground guys!

Sonia.

comment:8 Changed 7 years ago by sonyia89@…

Hello again!

It's almost certain that this device uses LZMA-compressed squashfs for firmware images, not "standard" gzip.

This assumption was inspired by wrtp54g info on openwrt wiki (quite similar in many aspects), and confirmed by digging through OpenWAG200 source code - there are LZMA patches for squashfs-tools.

It also explains why I couldn't unsquashfs it on my linux box (only gzip support).

Best regards, sonya.

comment:9 Changed 7 years ago by Wipster

Hi Sonya,
From looking at the .img linksys have for that device its much the same as what netgear do. Starts with a copy of the bootloader, image then ends with a tag.
On the whole your device should be supported, with possibly the exception of the wireless as I dont use it myself.
In the ar7/image/Makefile there is a sErCoMm image generation section you will need to give it the bootloader image (can be cut from official firmware up to 128k I think yours is) and the end tag which is the last 80 bytes.
I look forward to hearing your progress on this device, good luck.

comment:11 Changed 7 years ago by Darkaura05@…

is it possible to use it as a repeater

comment:12 Changed 7 years ago by anonymous

Yes, it is..

"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

comment:13 Changed 7 years ago by anonymous

You could install RouterTech Firmware on WAG200G

"Drawing is the honesty of the art. There is no possibility of cheating. It is either good or bad."

comment:14 Changed 4 years ago by volkan-k@…

OpenWrt should build & work for WAG200G, IMO.

AFAIK, florian completed switch driver support for Marvell, and Wi-Fi & ADSL chips should be supported, already.

OpenWAG200 is no longer available. If you are unable to build OpenWrt or find working image, Please use RouterTech Firmware.;
http://www.routertech.org/viewtopic.php?f=3&t=4138

Thanks!

comment:15 Changed 4 years ago by M3m3nt0

I have a WAG200G too and I can perform test on it to help ;)

comment:16 Changed 4 years ago by anonymous

People on FreeNode IRC channel can help you to build firmware image for WAG200G and test it. You may want to contact florian on irc://chat.freenode.net/openwrt or #openwrt-devel

comment:17 Changed 4 years ago by anonymous

[florian]: I should get one of those anytime soon now
me: did somebody donate you a WAG200G ?
[florian]: yes, somebody donated one

comment:18 follow-up: Changed 4 years ago by anonymous

God yes, somebody please get this working! The current firmware of WAG200G has a publicly known fucking backdoor ( http://www.businessinsider.com/cisco-warns-about-security-hole-2014-1 ) and yet there is no firmware update from the makers (formerly Cisco, now Belkin) to fix it. OpenWRT remains the only hope ...

comment:19 follow-up: Changed 4 years ago by florian

FYI, I still have not received the router yet.

comment:20 in reply to: ↑ 18 Changed 4 years ago by BrollyLSSJ

Replying to anonymous:

God yes, somebody please get this working! The current firmware of WAG200G has a publicly known fucking backdoor ( http://www.businessinsider.com/cisco-warns-about-security-hole-2014-1 ) and yet there is no firmware update from the makers (formerly Cisco, now Belkin) to fix it. OpenWRT remains the only hope ...

Maybe RouterTech has fixed the bug. So far I like the RouterTech firmware, but am also looking forward in trying OpenWRT. But please make it possible to easy switch back to RouterTech firmware in case someone wants to.

comment:21 Changed 4 years ago by anonymous

I think Manufacturer (formerly Cisco, now Belkin) will not fix WAG200G.

They previously announced that this product(WAG200G) is EoL (end-of-sale and end-of-life) and will not be supported. They advised purchasing newer products in January, 2014.

comment:22 Changed 4 years ago by anonymous

RouterTech firmware does NOT have this bug. You are safe to install RouterTech firmware! If you want OpenWRT support then send a test unit to openWRT developer: florian (Florian Fainelli)

AFAIK @florian is the only openWRT developer working on AR7 platform and unfortunately he doesn't have a WAG200G for development/testing purposes

You can contact him via
E-MAIL : florian [at] openwrt ]dot[ org
or IRC : [florian] on irc://chat.freenode.net/openwrt , #openwrt-devel

comment:23 Changed 4 years ago by anonymous

Will it be possible to use NGN in OpenWRT with the WAG200G, if it gets ported to the WAG200G? With RouterTech Firmware my telephone wasn't working and I guess it is due to the NGN stuff, DSL is working fine with it.

comment:24 Changed 4 years ago by anonymous

imo, you should buy a cheap openwrt supported DSL modem, tplink is price/performance winner if there is supported models with xDSL modem. Alternatively use your modem in bridge mode with official firmware and also use an openwrt wireless router to handle PPP & routing.

it seems, wag200g will not be supported until florian gets a test unit. so please stop pushing it, if you are not able to send patches for router support or send a router to the developer for development purposes.

comment:26 Changed 4 years ago by anonymous

You need to contact the openwrt developer florian (Florian Fainelli) via
E-MAIL: florian [at] openwrt ]dot[ org
or IRC: [florian] on ​irc://chat.freenode.net/openwrt , #openwrt-devel

then he may give you his address & phone.

comment:27 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:28 Changed 3 years ago by anonymous

Can anybody review this router? It seems that florian has this device but I didn't see any improvement....

comment:29 Changed 3 years ago by anonymous

florian told me that nobody sent him a WAG200

so dont expect support for that old device. Buy TP-Link.

comment:30 Changed 3 years ago by florian

I received one a few months ago, just have not connected it to my rack. I will post progress reports.

comment:31 Changed 3 years ago by anonymous

I have one wag200g
installed openwag
and i'm waiting the openwrt firmware
when test firmware realesed, i will try and report about it.

comment:32 Changed 3 years ago by anonymous

seriously, have you been waiting OpenWrt support for 6+ years?

WAG200G is very old device with 4 MB flash & 16mb ram.

You are not going to get much performance or features from it..

you should also consider that OpenWrt dropped support for kernel 2.x like many other projects..

I can recommend price/performance winner: TP-Link devices supported by OpenWrt;
http://wiki.openwrt.org/toh/start#tp-link

or higher-end ASUS routers. They are supported by Asuswrt-Merlin firmware;
http://asuswrt.lostrealm.ca/about

comment:33 Changed 3 years ago by anonymous

openwag files are still available on http://sourceforge.net/projects/wag200/files/OldFirmwareSRC/

If you want to try unsecure firmware, use only at your own risk. we take no responsibility.

comment:34 Changed 3 years ago by AxeL

Florian any news with the porting?
I can help with the test, I still have my WAG around

AxeL

comment:35 Changed 3 years ago by anonymous

it is not one-night love.

keep in mind, floarian is not paid developer hired by OpenWrt.

It is just free time thing for him. It may take many more months or years.

comment:36 Changed 3 years ago by anonymous

Another WAG200G owner here, willing to help testing. If needed I can solder some pins on the board and connect to the serial port.

comment:37 Changed 3 years ago by anonymous

I may be able to help a little with this. Not much, I'm no dev and I don't have the exact hardware. I do have a similar ar7 based box I've been playing with. I've had some success. If someone is interested, feel free to email me, at jumpship [at] gmail.

comment:38 Changed 3 years ago by anonymous

lol @ beta testers.

he does not need testers.
he does not have images to test.

comment:39 Changed 3 years ago by anonymous

Not just beta testing, I am actually willing to help experiment and work on some of the problems. I have experience with other ARM devices (using Uboot and a gzipped rootfs) and all the tools needed to set up a serial link to my WAG200G. I just haven't ever done any work on OpenWRT, so if I do this on my own without help from a developer, it'll just result in some rogue release that will never get updated, never get any support and be shared on MegaUpload.

comment:40 Changed 3 years ago by anonymous

Ok, so it turns out that besides the problem of the ADAM2 bootloader with inconvenient mtd flash partitions, there is a second problem: the latest driver for the WAG200G's wireless chip (TNETW1350A) needs Linux 2.4. If we get OpenWRT working at all, it will be without wireless. Fixing the driver is most likely going to be too much work. If you need wireless, try RouterTech firmware at http://www.routertech.org/viewtopic.php?t=4138&f=3

comment:41 Changed 3 years ago by anonymous

any progress?

comment:42 Changed 3 years ago by anonymous

Nope. linksys WAG200G will not be supported. Sorry.

OpenWrt team phasing out support for 16mb Ram and 4mb flash devices.

consumer power! do not buy routers that has 16mb or less RAM, 4mb or less flash size.

comment:43 Changed 3 years ago by anonymous

Thanks for the reply. My device was death yesterday because of a thunder...

The case is totally closed for me.

comment:44 in reply to: ↑ 19 Changed 3 years ago by koen_92

Replying to florian:

FYI, I still have not received the router yet.

Hi! I just got a WAG200G for free at the closure of a flea market (router would otherwise be thrown away). I don't need this router, since I already have a better supported router.

Florian: Are you still interested in this router? Of someone else?

Add Comment

Modify Ticket

Action
as accepted .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.