OpenWrt for WAG354G
Lately I have attempted to build OpenWrt for the AR7 platform.Building process was straight-forward, after selecting your target (AR7) and desired packages with “make menuconfig” you only need to enter “make” as usual and take a bike ride while your cpu is being squeezed for some hours…
You have to upload the firmware via tftp. Once flashed, the configuration is not so hard, but there is not web interface and all needs to be done using ssh/telnet. Luckily OpenWrt wiki is well-documented, so you just need to spend some time to read it and do some “healty” copy&paste….
What works (in KAMIKAZE bleeding edge, r10074, 2008-01-01):
-ADSL/ADSL2+ (phew…;) )
-Ethernet/switch (but you should apply this patch).
-serial console connection
-Wireless in client mode, even with wpa2 encryption.
What does not work or needs to be fixed:
-wireless in AP mode.
-Bridging ethernet & wireless.
-leds (not so hard to fix this)
-reset button
HERE you can find OpenWrt for WAG354G all versions plus an essential package feed.
Enjoy!
man you rule! I will test it as soon as I get back home.
I installed it but I couldn’t enable adsl, cause I dont linux commands so well. Also i have read the guides in openwrt wikis. Is it possible to enable through web interface??
no Paris, it is not possible to enable adsl via the web interface.
Commands are not so hard to enter, you just need to understand the commnads useful for you
I will try to write a short guide for enabling adsl and put it on the openwrt wiki.
cheers
Hey, there is another openwrt version out! Kamikaze 7.06. It has the 2.6 kernel! Can you compile it? I can test it if you want
hi Paris, I have updated the post with the link to a new kamikaze version…
I installed it but I cant get the correct ip (192.168.1.111 as the wiki says) through dhcp. Any suggestions?
i cannot understand what’s your problem. I are u able to telnet into it? Openwrt wiki does not talk about an .111 ip.
I am not able to telnet into 192.168.1.1
Somewhere in the wiki says that if the router gets an ip like 169.x.x.x then something’s wrong.
The correct ip should be 192.168.1.x
Also in system tray appears an icon that says that the lan connection is unstable.
I uploaded the firmware via tftp.
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
here’s the wiki page
http://wiki.openwrt.org/OpenWrtDocs/Hardware/D-Link/DSL-502T
you should refer to the wiki of WAG354G, the d-link page was useful only with the old openwrt version. The router ip (as in the README) is 192.168.1.1, use telnet to login (no password).
The wiki of the wag354g didnt help me at all.
I still cant use telnet. Also ping into 192.168.1.1 fails!
How did you install openwrt?
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
i installed via tftp. I confirm you the ip is 192.168.1.1.
Are u sure u have set a static ip on your pc?
are u using the openwrt version i have posted above? Because standard openwrt does not work on wag.
Maybe take a look also here for initial configuration: http://forum.openwrt.org/viewtopic.php?id=11451
Still nothing
I’ve tried via a static and a dynamic ip.
The power led winks red.
I cant find whats wrong.
Maybe you should create a guide on how to install it.
I’ve got your 2.6 firmware running on my WAG354G without any problems, but as I am using pppoa and the package is not installed I cannot connect my adsl. To get round this I am trying to build openwrt myself.
I have tried checking out the same revision you used from svn with ’svn co -r 7314′ as I know the current svn revision won’t boot on the WAG354G but I cannot get it to build successfully. The error I’m encountering is with the ar7_gpio kernel module not compiling.
Is it possible you could provide information on what you had to change to get this revision to compile?
f*ck, you are right, i forgot pppoa! About the compiling errors, it’s just matter of changing the #include to point to the right .h file, where functions are defined. Remember also to apply the patch for the switch:
Index: target/linux/ar7-2.6/files/drivers/net/cpmac.c
===================================
--- target/linux/ar7-2.6/files/drivers/net/cpmac.c (revisione 7038)
+++ target/linux/ar7-2.6/files/drivers/net/cpmac.c (copia locale)
@@ -1088,11 +1088,11 @@
break;
}
- mask &= 0x7fffffff;
- if (mask & (mask - 1)) {
+/* mask &= 0x7fffffff;
+ if (mask & (mask - 1)) {*/
external_switch = 1;
mask = 0;
- }
+/* }*/
cpmac_mii.phy_mask = ~(mask | 0x80000000);
Trying to flash openwrt with tftp
when i get to final part which connects it immediately returns with … invalid password!!!
help!!!!!!!
tftp> put upgrade_code.bin
putting upgrade_code.bin to 192.168.1.1:upgrade_code.bin [octet]
sent WRQ
sent WRQ
sent WRQ
sent WRQ
received ERROR
Error code 100: Invalid Password !!
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
it is because at that stage, you are not dealing with the bootloader tftp server but with the tftp server of the firmware that requires authentication.
so, repeat the procedure of flashing…or use the tftp client that support authentication: http://cyberstorm.altervista.org/?p=8
bye
I managed to solve it yesterday, didn’t realize the delay was about 2 seconds …
However being a noobie, I’m sure I am missing something out, or wrong details somewhere!
Anyone from the UK who can help me?
thanx marco … it worked on the fonera next stop the wag354g!
i appreciate the help
good job!
well i thought i did, i cut and paste it disconnected automatically, i hooked it up to pc tring to connect on 192.168.1.1 but nothing and no wlan led ? whats happening?
tell me exactly what u have done
can we talk by icq its quicker
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
Marco - Great Work !
Can you please do another version of OpenWRT for WAG354G combined with a web user interface: X-WRT
http://x-wrt.org/
“X-Wrt was started because there was a need for end user extensions to OpenWrt, such as an enhanced web management console (webif). For a long time now it has been established that OpenWrt is the best firmware in its class. It far exceeds other firmwares in performance, stability, extensibility, robustness, and design. We at X-Wrt decided it was long past time for end users to get access to this superior firmware.”
hi
with ur firmware I can’t connect to internet. router doesn’t align… any suggests?
hai installato tutti i moduli necessari? quelli per l’annexa, pppoa o pppoe, etc…
Ad essere sincero non so come istallare i moduli… mi documento
penso che tu sappia che openwrt, al momento, è gestibile solo via terminale.
Detto questo, dalla stessa pagina da cui hai scaricato il firmware trovi anche l’url dei pacchetti da aggiungere. Il sistema è l’ipkg, documentato ad es. sulla wiki di openwrt.
I pacchetti da installare (per il pppoe) sono:
kmod-sangam-atm-annex-a
kmod-pppoe
ppp-mod-pppoe
ppp
Poi non ti resta che editare il file di configurazione /etc/config/network
Stasera provvedo a fare una prova. Ti faccio un’altra domanda: mi sono cimentato nella compilazione e tutto va a buon fine compreso l’allineamento dell’adsl. Non riesco però ad accedere via ethernet, il router non risponde nemmeno al ping. Devo compilare i driver della scheda? se si quali sono?
grazie mille!
devi applicare una patch che consente allo switch di funzionare…è scritto tutto nel post sopra, sotto “what works”
patch applicata ma non funzia cmq. qual’è il modulo da abilitare in menuconfig per avere i driver ethernet?
grazie mille per il supporto
il nome del driver è cpmac, ma cmq viene già abilitato di default quando selezioni il target AR7… se hai una v2 però potresti avere dei problemi, perchè monta il 7200… se guardi sul forum di openwrt c’è altra gente che lamenta il tuo stesso problema, non so se però si sia in qualche modo risolto
un cavo console ti farebbe sicuramente comodo però…
non capisco una cosa: ho fatto il checkout, certo con find cpmac ma non trovo nulla (???)
dopo che compilo ne trovo 2:
./build_dir/toolchain-mipsel_gcc4.1.2/linux-2.6.24.2/drivers/net/cpmac.c
./build_dir/linux-ar7/linux-2.6.24.2/drivers/net/cpmac.c
io ho modificato solo il secondo, a questo punto mi sa che modifico anche il primo e vediamo che succede.
Non uso il tuo dato che non hai linkato staticamente i moduli per l’adsl: ho solo questo router e non potendo accedere ad internet non posso scaricare dal tuo repo
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
ti conviene aspettare: https://dev.openwrt.org/ticket/3124
ho letto. Ho fatto il checkout della tua revisione e tutto funziona. il modem si alliena ma non so come connetterlo: ho modificato il config/network con i parametri della mia adsl e quanto faccio il network restart compare:
DSL in Sync
WARNING: at kernel/softirq.c:139 local_bh_enable()
Call Trace:
[] dump_stack+0×8/0×34
[] local_bh_enable+0×50/0xa8
[] tn7atm_receive+0×154/0×200 [tiatm]
[] tn7sar_process_unmatched_oam+0×2ac/0×34c [tiatm]
ti dice nulla? magari chiedo anche sul forum.
Sai darmi qualche dritta su come mettere online un repository?
grazie mille
putroppo non so come aiutarti…è comunque un problema legato al chipset del V2. Per il repository basta che fai l’upload della cartella packages su un qualche web server.
risolto! quel messaggio indica l’avvenuta connessione (pensa te!)! mi fregava perchè non accende il solito led. ora procedo col repo. mi manca solo xwrt ora! purtroppo quando lo istallo da segmentation fault!
ora scopro come fare!
ciao!
esatto i led sono da sistemare…magari quando ho un po’ di tempo scrivo una patch per farli funzionare correttamente..
xwrt io l’ho preso direttamente da un repository per router con processore mipsel, tipo i wrt54g
ci sono: per completare la mia opera devo solo montare una share samba o nfs e installare rtorrent. hai per caso già provato questo client sul router? come se la cava? immagino che più di un paio di torrent non li gestisca, che dici?
eh, prova, secondo me ha troppa poca memoria per gestire un client torrent
i have an xbox and nslu2 connected to the wag354 via lan, if i flash the wag354 with openwrt to use as a client, would both wired devices be able to work on the wireless network? or would i need to apply a patch as you mention above ?
thanks in advance
wag354g can act as a wireless client with OpenWRT firmware, so answer to your question is YES.
You may use the firmware linked above, or if your build your own you have the apply the patch.
thanks Marco for your great work.
Hello, thank you for your firmware. It works like a charm.
I would like to know how did you patch the compiled image, what’s the headers you use to make it work on WAG354G (Annexe B) ?
Thanks again !
JAMESB: I dont know if I have understood your question. Anyway the patch should be applied on the source code of OpenWRT, so that the internal switch is recognized and ethernet works. You can use it on Annex B, as long as you flash the correct image, and install the packages:
kmod-sangam-atm-annex-b
kmod-pppoe (or pppoa)
ppp-mod-pppoe (or pppoa)
ppp
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
So you mean I can use this patch https://dev.openwrt.org/ticket/1614 ? (What a dumb question :D)
But I don’t understand “as long as you flash the correct image”, which image ? There is a lot of compiled images after `make` but none are for the WAG354G, aren’t they ?
yes I mean that patch.
Once make has finished, the image for v1 AnnexB is named “WA32″, and for v2 AnnexB is “WA7B”
hi, i have upgraded to openWrt firmware and want to go back to original. using a windows machine, i have tried the tftp.exe with the recovery software, but the router doesnt accept it.
Router IP 192.168.1.1
PC IP 192.168.1.2
now that the router has openWRT flashed, does the TFP server still work ? i dont have a serial cable, i upgraded to openWrt via network.
Anyone any suggestions how to revert back to original firmware? any help greatly appreciated. thanks
by the way , i can ssh onto the router, could i get it to upgrade back to original from the routers end ? ie. start the upgrade process from the router have tftp server running on the windows machine.
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
kevlar: the tftp server is still there waiting at boot.
I think you just dont guess the exact time for sending the firmware. Have u done what’s written here: http://cyberstorm.altervista.org/?p=7
-
You may also flah the router from openwrt command line, but i cannot tell you the exact way to do it… it involves splitting the firmware in kernel and rootfs, and use the command “mtd” for flash them. Here is the partition map: http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WAG354G#head-b18f569b5730ad52a1873bdcbbdedc77418ab5f1
Dont use this method unless you know exactly what you are doing!!
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
which TFTP.exe client should i use ?
This is what i have managed to achieve, but no result.
i think the router is bricked, as it starts up with the power light flashing green, then after a few seconds goes to a solid red
Cannot ping, cannot access the router no more. The Windows Recovery TFTP.exe program flashed the router once but i am unsure if it was complete, then it started behaving as i described above.
c:\\wag354>tftp.exe -i 192.168.1.1 PUT upgrade_code.bin
WinAgents TFTP Client version 1.4 Copyright (c)2004-2007 by Tandem Systems,Ltd.
http://www.winagents.com - Software for network administrators
Transfering file upgrade_code.bin to server in octet mode…
File upgrade_code.bin was transferred successfully.
3321912 bytes transfered for 17 seconds, 195406 bytes/second
any other recommendations that may save the unit ? thanks again. is there another tftp windows command line program i should use?
c:\\wag354>tftp -i 192.168.1.1 PUT upgrade_code.bin
Transfer successful: 3321912 bytes in 8 seconds, 415239 bytes/s
well it appears after a bit more reading microsoft have included there own version of TFTP and no need to download one.<BR><P>
i appear to have unbricked the router.
<BR><P>
using the windows tftp is the most effective thus far, running the command as listed above and in marcos tutorials.<BR><P>
it may pay to add in the tutorials, after the tftp upload is successfull, the power light will continue to flash green and eventually the unit will reboot and then the power light will remain green and in a few seconds so will the wireless light.<BR><P>
the upgrade file used above is from marcos firmware and not the recovery linksys.<BR><P>
great work marco thanks again
De-Brick Tutorial Update
0. disconnect the router from the mains and network
1. connect network cable between PC and WAG354 (preferably crossover) / straight through cable didnt work for me for some reason, the shorter the cable length the better, mind you my cable was 3m. plus the cable into the network port of PC and the first ethernet port of your router
2. configure your network card and router IP. Router IP should be 192.168.1.1 network card 192.168.1.2 be sure to set netmark 255.255.255.0 disconnect any other network devices you may have connected, ie wireless. a single network connection to the router is required.
2. download the approproate firmware you want to flash your router with in my situation i used: Neptune354-v0.2_WAG354GV1_AnnexA
3. extract the archive and copy upgrade_code.bin to the root of your C drive
4. open a command prompt Start > Run > type cmd then enter in the run box or from the Start menu > Programs > Accessories > Command Prompt
5. type the following to change to the root of the C drive - CD C: you should have a prompt that looks like c:\>
6. type the following command - tftp -i 192.168.1.1 PUT upgrade_code.bin
7. do not hit enter at this stage, plug in the mains cable into the router, the power light starts flashing, hit enter on the keyboard to run the TFTP command in step 6. the timing has to be perfect, the router only has a small window where it will accept the flash, you may have to try this several times to get it right, once you get the message
Transfer successful: 3321912 bytes in 8 seconds, 415239 bytes/s well done, thats it. dont do anything, go grab yourself a coffee. leave the router to sort itself out for a few minutes
the power and wireless light should appear. good luck.
I’ve just downloaded the entire kamikaze trunk and compiled and image for the ar7 arch.
Now the problem is…which is the correct image to flash the wag354g v1??? Openwrt has generated a LOT of images and i don’t know which one should I use
I just tried this, using the linksys tftp client mentioned in an earlier comment and it all appeared to go ok, until the tftp was finished.
After that when it restarts the power led flashes like crazy and it tries to get an address using dhcp, which I send it, but then it doesn\’t respond to the allocated address.
Do you know whether there is anyway to recover this without obtaining an RS232-TTL cable? Also have you come across this before? Do you know where I went wrong?
Thanks!
Hi Marco,
could you make a build of latest 8.09_RC2 with x-wrt?
It would be great if you add also qos-scripts, ntpclient, bandwidthd, miniupnpd, updatedd
thx a lot
Ciao Marco complimenti per tutto ma ora ho questo problema che nn riesco a risolvere…
Ho flashato correttamente il router pero’ mi era venuta voglia di mettere su una seriale…
Giocando giocando ho visto che rimaneva la luce del power lampeggiante verde e non ho piu’ accesso…
Riflashndo con firmware originale ritorna ok pero’ se rimetto openwrt questo sembra nn partire e la luce del power lampeggia sempre…
hai qualche idea di come misteriosamente ora quando riflasho non parte piu’ openwrt ma solo l’originale???
Avro’ gia’ riflashato mille volte ma niente smepre lo stesso risultato!!!
Grazie mille michele
Does some got the wa354g v1 working (without patches) from the latest trunk with the ethernet and wifi working? If so, how did you do that?! (does it require some patch? which ones?).
Many thanks!
Hi there, I need help configuring my WAG354G equipped with Kamikaze.
and no usb ports.
I need to associate the WAG354G using wireless to my existing wireless wpa network, then connect a “strange device” using a lan cable attached to the wag354 (in other words, the wag354g will be an “ethernet to wlan” adapter).
The “strange device” is a normal linux embedded device that has only one ethernet port
How can I configure the router using wpa? Which mode should I use (I’m using webif to configure the router).
Please, can someone help me?
Many thanks!
Hi, I cannot for the life of me figure out how to install this. I’ve tried various methods online about tftp and CMD. could you please tell me how to install this firmware and use my router as a wireless client?
Thank You so much
Hi.
I’ve got the 8.09.1 version of Kamikaze running nicely on ny wag354g (v1).
Simple steps are: (For Linux)
1) download and untar the code.
2) run “make”
This isn’t going to create a working version, but it’s needed.
3) Once finished, edit “target/linux/generic-2.6/config-2.6.26″ and change the two following lines:
CONFIG_MVSWITCH_PHY=y
CONFIG_ADM6996_PHY=y
4) Apply the cpmac.c patch as above. I added 1 extra line, according to “https://dev.openwrt.org/ticket/3923″
5) run “make”
6) The working image should be called “bin/openwrt-WA31-*” for wag354g v1
That’s it. I’ve found that you need udevtrigger or it doesn’t work.
As a guide if the power lights goes crazy it works, if it flashes green constantly you’ve not got udevtrigger, and if there is a single red flash every few seconds, the switch isn’t detected/configured.
Do you have wireless enabled in AcessPoint mode?
Hi.
I included the package so I would be able to, but I need mine to be a client. I tried many different variations, but couldn\’t get the wpa_supplicant on as well as everything else though.
There would be enough room if you used squashfs though instead of jffs2.
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 932
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/blog/wp-includes/kses.php on line 933
Take a look here since marco v site and forum is… dead
https://forum.openwrt.org/viewtopic.php?pid=93462
I’ll immediately get the rss of OpenWrt for WAG354G | marco v. site as I can notfind your e-mail subscription hyperlink or newsletter service. Do you’ve any? Kindly let me know so that I could subscribe. Thanks.