WAG160N-Firmware

All about firmwares for routers. Support for RouterTech firmwares is here too.
Post Reply
mark007
Regular
Regular
Posts: 41
Joined: Wed Nov 21, 2007 11:20 pm

WAG160N-Firmware

Post by mark007 » Mon Feb 15, 2010 8:06 pm

Hi guys
Few months ago i brought a Linksys WAG160N version Annex A Gateway,but it stopped working for no reason.All leds are off except LAN.I can hook up this device to BEfws1v4 thru Ethernet cable and browse internet.
(wired network schematics: MODEM<---Befw1sv4<----WAG160N<-----pc1)

Will someone please help me find solutions for the following
1)Does the corrupt bootloader/CFE has any direct link to non functional power ,adsl,internet leds and console port?.

2)IF CFE/bootloader is corrupt and cause for the above, can it be fixed by flashing CFE/bootloader from another device?.(will some post CFE/bootloader and whole-flash backup from wag160n version 1/0 Annex A?.)

3)How to compile router-tech firmware for this device?.(have the original Linksys GPL code for latest firmware).

4)How to add telnet functionality to original Linksys firmware(which it lacks)?.

5)Also How to add features like reboot thru web GUI,display of adsl statistics and other cool features available in router-tech firmware?.


Device details:
Processor:BCM6358 Rev1.0

Flash: Mx29lv320b(4mb)

Ram: Etrontech EM6AA160TS-5G(16mb)

Wireless:Atheros Ar5008 series.(AR5416-AC1A)

Switch:Lankom electric (LF-H26X-1)????4port

Device FCC details:https://fjallfoss.fcc.gov/oetcf/eas/rep ... WAG160N%27

thanks in advance
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: WAG160N-Firmware

Post by mstombs » Mon Feb 15, 2010 9:01 pm

RouterTech firmware is based on Ti AR7 chipset adsl+wireless, quite different to your hardware I'm afraid. I've seen some movement in OpenWRT on similar Broadcom ADSL chips so you could check there.

Have you tried a different PSU brick and power cycle while holding reset button in?

Many Linksys routers have tftp enabled to upload firmware to the router - if your device is stuck at the bootloader - but it is also possible the switch functions as a hub without processor intervention.

Does the Linksys V1.00.14 GPL compile?
mark007
Regular
Regular
Posts: 41
Joined: Wed Nov 21, 2007 11:20 pm

Re: WAG160N-Firmware

Post by mark007 » Tue Feb 16, 2010 4:04 am

Hi
Thanks for the reply.GPL code is 1.00.15 not 1.00.14. Ive no knowledge of compiling,but i tried to compile with help from friends.Started off with compiling toolchains provided in the GPL code.Everything seems to compile without error.Dont know what to do after that, im learning.
Thanks
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: WAG160N-Firmware

Post by mstombs » Tue Feb 16, 2010 9:58 am

I'm not familiar with the style of GPL code, but at first glance it is very careful about only recompiling the GPL elements (in a strict interpretation of the GPL) and just substituting them into a precompiled image with lots of binary blobs. But you should be able to add telnetd to BusyBox, or a standalone utelnetd binary - you also have to do something about passwords and user accounts.

Google's cache also finds the v1.00.15 GPL - but it doesn't seem to be linked from their website?

You shouldn't have to compile the toolchain - they provide a prebuilt binary plus source for completeness.
mark007
Regular
Regular
Posts: 41
Joined: Wed Nov 21, 2007 11:20 pm

Re: WAG160N-Firmware

Post by mark007 » Tue Feb 16, 2010 4:52 pm

Hi guys

Thanks for the reply. can u please give a brief outline(how to guide) ,regarding adding telnet functionality to linksys code.(i could see a folder named busybox in original gpl code).

Regards :)
antond
Newbie
Newbie
Posts: 4
Joined: Fri Jun 20, 2008 1:22 pm

Re: WAG160N-Firmware

Post by antond » Fri Feb 19, 2010 5:22 pm

Hi,
I was googling a way to do just that- get proper access to my router.
I found http://www.modemboard.net/topic/1475-wa ... et-zugang/ ; a german board where someone posted a telnet-enabled version of the latest firmware.
If you understand german you could maybe ask him how he did it?
otherwise, the download link for the annex a version is here: http://www.modemboard.net/files/file/5- ... t-annex-a/

It worked perfectly for me.
Good luck!
mark007
Regular
Regular
Posts: 41
Joined: Wed Nov 21, 2007 11:20 pm

Re: WAG160N-Firmware

Post by mark007 » Fri Feb 19, 2010 7:24 pm

antond wrote:Hi,
I was googling a way to do just that- get proper access to my router.
I found http://www.modemboard.net/topic/1475-wa ... et-zugang/ ; a german board where someone posted a telnet-enabled version of the latest firmware.
If you understand german you could maybe ask him how he did it?
otherwise, the download link for the annex a version is here: http://www.modemboard.net/files/file/5- ... t-annex-a/

It worked perfectly for me.
Good luck!
Hi

Thanks for the info.Brilliant. Ive been trying for firmware like this for months now.If worked for u , can u post screen shots and backup of ur mtd partitions?.Itwill help me debrick my wag160n device(bricked mine trying to enable telnet).

Thanks in advance
antond
Newbie
Newbie
Posts: 4
Joined: Fri Jun 20, 2008 1:22 pm

Re: WAG160N-Firmware

Post by antond » Sun Feb 21, 2010 9:06 am

Hi,

What exactly do you want a screenshot of? Just any page of the web GUI?
And how do I make a backup of the mtd blocks? I can cat them to some other file or gzip them but I can't think of a way to "get" them (copy to my computer);
the httpd dir is read-only so can't put them there...
mark007
Regular
Regular
Posts: 41
Joined: Wed Nov 21, 2007 11:20 pm

Re: WAG160N-Firmware

Post by mark007 » Sun Feb 21, 2010 10:30 am

Hi
thanks for the reply. Screenshot of any WEBGUI page is ok,but device details page is better(will help me debrick my device).About the mtdblocks, telnet login in as root and cd into /dev/mtd( u should see something like 0 1 2 3 4 5 6 7), use the following command to dump the block into file

cat /dev/mtd/0 > /tmp/mtdblock0.bin
or (use /tmp or /var folder to dump)
/var/mtdblock0.bin

cat /dev/mtd/1 > /tmp/mtdblock1.bin
or
/var/mtdblock1.bin


like wise repeat the command for all mtdblocks found inthe /dev/mtd folder ,to dump blocks into a file.

type the following command
# /usr/sbin/thttpd -g -d /var -u root -p 1080
or
# /usr/sbin/thttpd -g -d /tmp -u root -p 1080
Now using browser type http:// ur device ip:1080

u will see list of files u created earlier with cat /dev command,click and save each file as it is .


If u experience error while creating dumps of all mtdblocks in one go, try to create one dump file at a time. copy using web browser.
Thanks in advance
antond
Newbie
Newbie
Posts: 4
Joined: Fri Jun 20, 2008 1:22 pm

Re: WAG160N-Firmware

Post by antond » Sun Feb 21, 2010 11:26 am

Hi,

The screenshot and mtdblocks are attached. Can't find device details page in webgui? IP address is obscured.
When doing cat /dev/mtdblock5 thru 7 I got "no such device or address", however they are present in the directory.
Blocks 1 thru 4 went fine.
The http server in this firmware is mini_httpd, and it did not want to run two instances simultaneously, so I had to kill the webGUI first.

here is some more info:

Code: Select all

# cd /dev
# ls
ac97          console       mtdblock4     ptyp1         tty1
bcm           dk0           mtdblock5     ram           ttyS0
bcmaal20      dk1           mtdblock6     ram0          ttyS1
bcmadsl0      initctl       mtdblock7     ram1          ttyp0
bcmatm0       kmem          null          ram2          ttyp1
bcmatmb0      log           port          ram3          urandom
bcmendpoint0  mem           ppp           random        zero
bcmles0       mtdblock0     printer0      si3215
bcmprof       mtdblock1     ptmx          slac
bcmvdsl0      mtdblock2     pts           tty
brcmboard     mtdblock3     ptyp0         tty0
Available commands:

Code: Select all

HNAP1                grep                 pvc2684ctl 
IGMPProxy            gzip                 pvc2684d 
\[                   hostapd              pwd 
adslctl              hostname             rc 
apdown               id                   reaim 
apup                 ifconfig             reboot 
ash                  init                 restore_config.cgi 
ath/                 insmod               rm 
athload              iostat               rmmod 
athstart             ip                   route 
athstop              ip1                  routed 
atm_monitor          iptables             rtstat 
atmarp               iptunnel             sadc 
atmarpd              iwconfig             sar 
atmctl               iwpriv               scfgmgr 
awk                  kill                 sed 
bpalogin             killall              setup.cgi 
bpamonitor           klogd                sh 
brctl                lld2                 slabtop 
busybox              ln                   sleep 
cat                  lnstat               smtpc 
certSrv.pem          losetup              sort 
chmod                ls                   sysinfo 
chown                lsmod                syslogd 
cmd_agent_ap         mini_httpd           tar 
cp                   mini_httpd.pem       tc 
crond                mkdir                test 
ctstat               modprobe             top 
df                   mount                tr 
dhcp-fwd             mv                   traceroute 
dirname              nbtscan              tty 
dmesg                netstat              udhcpc 
download             ntp                  udhcpd 
ebtables             nvram                uname 
echo                 pb_ap                upgrade_flash.cgi 
egrep                pidstat              upnpd 
expr                 ping                 usleep 
ez-ipupdate          ping2file            utelnetd 
fgrep                ping6                vconfig 
find                 pingmultilang        vlanset 
free                 pppd                 wc 
ftpget               privkeySrv.pem       wlanconfig 
fw-scripts/          ps                   wscupnpd 
If there's something else you want/need, just let me know.
(ps aux after fresh reboot maybe?)

Good luck!
Attachments
wag160n.jpg
webgui screenshot
mtdblock.zip
mtd0 -> 4
(5.69 MiB) Downloaded 813 times
Last edited by antond on Sun Feb 21, 2010 3:23 pm, edited 1 time in total.
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: WAG160N-Firmware

Post by mstombs » Sun Feb 21, 2010 12:23 pm

So it appears Broadcom also use mtd2 as the 64kB bootloader - there is also a copy of this in the source-code tarball.
mtd3 is also clearly the nvram with config settings

Note that there is only a 4MB flash, and mtd1 which is presumably the firmware also contains a copy of the contents of the squashed filesystem mtd0.

I can't see right now how they all fit into the flash.
antond
Newbie
Newbie
Posts: 4
Joined: Fri Jun 20, 2008 1:22 pm

Re: WAG160N-Firmware

Post by antond » Sun Feb 21, 2010 12:37 pm

whoops! didn't think of deleting/obscuring my passwords it seems :)
i guess a "please don't do nasty things to me" is in order!
mark007
Regular
Regular
Posts: 41
Joined: Wed Nov 21, 2007 11:20 pm

Re: WAG160N-Firmware

Post by mark007 » Sun Feb 21, 2010 4:36 pm

antond wrote:whoops! didn't think of deleting/obscuring my passwords it seems :)
i guess a "please don't do nasty things to me" is in order!
Hi

Timely help.Thank u so much.About ur passwords, u already knew, im just repeating reset and change ur settings.
Once again thank thank thank u.:)
betalee
Newbie
Newbie
Posts: 2
Joined: Sat Jul 30, 2011 3:23 am

Re: WAG160N-Firmware

Post by betalee » Sat Jul 30, 2011 5:42 am

HELP!Who give me Linksys WAG160N firmware(AnnexA) with Telnet
hi

i want the WAG160N firmware with telnet(AnnexA)

but modemboard.net close,and I can't find it form google.com

I hope Who give the firmware to me

thanks

I bad English
Post Reply