Linksys WRT350N v1

Links of Interest

 * On the OpenWrt wiki
 * On the DD-WRT wiki
 * Listed on the 'Linksys routers' page on Wikipedia
 * Linksys WRT350N Review at http://www.smallnetbuilder.com
 * DD-WRT Support for Linksys WRT350N Ver.2?

Flashing DD-WRT
On the DD-WRT Wiki

First, before you do anything else, check which version of the WRT350N you have. If you have V1, you're in business. If you have V2, you're outta luck.

Flashing a virgin WRT350N with the default Linksys firmware will require a special "trailed" mini-build to be flashed first. You should use a build from the BS Broadcom folder 12874 for the initial flash. The name of this file specifically is "dd-wrt.v24_mini_wrt350n.bin". You may proceed to flash it with a generic build next, such as Mega.bin. Remember to do the 30/30/30 Hard Reset after every successful flash. It is absolutely essential.

The proper process for flashing is:


 * 1)  Read Note 1 of the peacock announcement http://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486
 * 2)  Read Note 3 of the peacock announcement
 * 3)  Download dd-wrt.v24_mini_wrt350n.bin
 * 4)  Do a Hard reset or 30/30/30 on your router. You will not get a password renewal page as you have stock linksys firmware on the router still.
 * 5)  Plug a cable into the lan port of the router and your computer, and disable any wireless to the computer. Disable all firewalls and virus protection. (Setting your computer to a static IP should not be required)
 * 6)  Set your browser to 192.168.1.1. This will open up the linksys webgui
 * 7)  Enter the username admin and password admin
 * 8)  Go to the administration tab. Click on firmware upgrade.
 * 9)  BROWSE to the dd-wrt.v24_mini_wrt350n.bin file you downloaded.
 * 10)  Click on the upgrade button and WAIT for the upgrade successful message. Wait at LEAST 5 minutes
 * 11)  Power cycle your router. (very important) WAIT until you can relogin at 192.168.1.1
 * 12)  Do another PROPER Hard reset or 30/30/30 on your router (very important) WAIT until you can login at 192.168.1.1
 * 13)  Click on any tab. Reset your username/password by TYPING in a new username/password
 * 14)  Configure your router

You can now upgrade to any generic dd-wrt build except Micro. Be sure to always do a hard reset prior to flashing another build, do a power cycle followed by another hard reset after flashing, and NEVER re-use a configuration file from a previous build or another router. Reconfigure from scratch.

Flashing OpenWrt
On the OpenWrt Wiki

From DD-WRT
DoesItMatter Wrote:

gargoyle_1.3.13-wrt350n_v1-squashfs.bin

Grab that image from the download section

Linksys WRT350N Chipset Broadcom 4785 RAM 32 MB FLASH 8 MB

Broadcom chipsets are fairly easy to back-forth between Gargoyle and DD-WRT

Best recommendation for steps:


 * 1) download a backup current DD-WRT build you are using
 * 2) backup your current DD-WRT config
 * 3) reset dd-wrt to defaults
 * 4) from dd-wrt GUI - flash the gargoyle.bin image
 * 5) once you start the flash - wait about 5 minutes
 * 6) try to login to 192.168.1.1 - defaull password = password

If you want to go back to dd-wrt


 * 1) backup your current Gargoyle config
 * 2) reset Gargoyle to defaults
 * 3) flash the dd-wrt .bin file that you originally saved above
 * 4) once again - wait about 5 minutes for flash
 * 5) reload your backup config file for dd-wrt

JTAG Pinouts
 nTRST  1o o2	GND TDI  3o o4	GND TDO  5o o6	GND TMS  7o o8	GND TCK  9o o10	GND nSRST 11o o12  N/C

Serial Pinouts
 GND 5 o N/C 4 o TX 3 o ? RX 2 o ? VCC 1 o  ? 1 o ? ? 2 o ?

DD-WRT Serial Recovery
Modified redhawk0 instructions
 * 1) Print out these instructions for Off-Line use
 * 2) Connect PC to router with a network cable
 * 3) Configure PC with a static IP of 192.168.1.10
 * 4) Connect Serial cable
 * 5) Start one of the programs from above
 * 6) Get TFTP ready with file selected
 * 7) Use dd-wrt.v24 mini wrt350n.bin
 * 8) Connect power to the router
 * 9) start a rapid fire Cntl-C as you plug the router to power
 * 10) type "nvram erase" w/o quotes, hit enter
 * 11) type "flash -noheader : flash1.trx" w/o quotes, this starts the tftp daemon, hit enter
 * 12) but have TFTP ready
 * 13) Click go or start on TFTP
 * 14) give it 5 minutes after it finishes
 * 15) then power cycle....Hard reset or 30/30/30...then config
 * 16) when it stops spitting out txt....hit the enter key...you should get a login prompt...at that point, power cycle it, hard reset...then config
 * 17) you'll see it boot up

DD-WRT vlan Info

 * WikiDevi:DD-WRT/VLAN Support

I can confirm the WRT350N v1.0 does support port-based vlan's via nvram only, the gui doesn't work. "proc/switch" is not present.

Defaults
root@DD-WRT:~# nvram show | grep vlan.ports vlan2ports=0 8 vlan1ports=1 2 3 4 8* size: 19676 bytes (13092 left) root@DD-WRT:~# nvram show | grep port.vlans port5vlans=1 2 16 port4vlans=1 port3vlans=1 port2vlans=1 port1vlans=1 port0vlans=2 size: 19676 bytes (13092 left) root@DD-WRT:~# nvram show | grep vlan.hwname vlan2hwname=et0 vlan1hwname=et0 size: 19676 bytes (13092 left) root@DD-WRT:~#

Commands
root@DD-WRT:~# nvram set vlan2ports="0 4 8" root@DD-WRT:~# nvram set vlan1ports="1 2 3 8*" root@DD-WRT:~# nvram commit root@DD-WRT:~# reboot

nvram
root@DD-WRT:~# nvram show | grep vlan.ports vlan2ports=0 4 8 vlan1ports=1 2 3 8* size: 19895 bytes (12873 left) root@DD-WRT:~# nvram show | grep port.vlans port5vlans=1 2 16 port4vlans=1 port3vlans=1 port2vlans=1 port1vlans=1 port0vlans=2 size: 19895 bytes (12873 left) root@DD-WRT:~# nvram show | grep vlan.hwname vlan2hwname=et0 vlan1hwname=et0 size: 19895 bytes (12873 left) root@DD-WRT:~#

GUI
Reset to default before test, GUI settings do not work root@DD-WRT:~# nvram show | grep vlan.ports vlan2ports=0 8 vlan1ports=1 2 3 4 8* size: 19594 bytes (13174 left) root@DD-WRT:~# nvram show | grep port.vlans port5vlans=1 2 16 port4vlans=2 18 19 port3vlans=1 18 19 port2vlans=1 18 19 port1vlans=1 18 19 port0vlans=2 18 19 size: 19594 bytes (13174 left) root@DD-WRT:~# nvram show | grep vlan.hwname vlan2hwname=et0 vlan1hwname=et0 size: 19594 bytes (13174 left) root@DD-WRT:~#

Pictures
Images 

Hardware Modification

 * 350n + WPC600n Update