As many of you are asking it, I’ve just written the step by step guide on how to compile sources for wag354g (both v1 and v2).
Please report here your success/insuccess. The guide is available here.
have fun!
how to: compile wag354g firmware from sources…
Unbricking WAG354G
[ITA]
Procedura per l’unbricking del router WAG354G (testata su v1) a seguito di un flash fallito. Se il led power lampeggia, il bootloader dovrebbe essere intatto, e c’è ancora possibilità di recupero senza seriale/jtag.
- Linux: unbricking wag354g(italian version)
- Windows: (……)
[ENG]
This guide shows how to debrick your wag354g (V1 or V2) if an upgrade via web interface goes wrong, or to roll-back from non-Linksys firmwares as OpenWRT.
This procedure is useful if you’ve bricked your router with a bad firmware or even if you wanna just use a brick-proof procedure to upgrade the firmware.
Remember: if you havent messed up the bootloader, you should be able to get out of troubles without a serial cable or a jtag.
- on Linux: unbricking wag354g (english version)
- on Windows: new procedure by user “Kevlar”
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.
- Alternative procedure on Windows:
- If you have a swich /hub, put it between the wag and your pc. Then unplug the router main
- Get a surely working firmware, rename it upgrade_code.bin and put it on your desktop
- Set your network card with a static ip 192.168.1.2 or whatever between 2 and 254 and netmask 255.255.255.0
- Goto Start>Run and enter
cmd - Enter
cd Desktop - Enter
tftp -i 192.168.1.1 PUT upgrade_code.bin - Hurry up plugging the router main.
- If in 30 secs you dont get a positive answer, saying transfer was successful, press ctrl+c, unplug router and repeat from 5.
- Wait until router reboots.
good luck!
97610572
