User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
toh:linksys:wrt320n [2013/04/13 10:38]
toh:linksys:wrt320n [2015/10/14 18:43] (current)
stingray454 [WiFi]
Line 1: Line 1:
 ====== Linksys WRT320N/​E2000 ====== ====== Linksys WRT320N/​E2000 ======
-:!: **''​Note:''​** Due to a couple of problems, one of them being the closed source blobs needed for Broadcom chipsets to work, this project is still **WIP** and //not yet supported// by OpenWrt! For more Information look here: [[inbox:​asusrt-n16:​wip]] :!: 
-===== Supported Versions ===== 
-^ Version/​Model ^ S/N ^ OpenWrt Version Supported ^ Model Specific Notes ^ 
-| vX.Y | - | WIP | - | 
-===== Hardware Highlights ===== 
-^ CPU ^ Ram ^ Flash ^ Network ^ USB ^ Serial ^ JTag ^ 
-| Broadcom BCM4717A@354Mhz | 32MiB | 8MiB | 4 x 1| No | Yes | Yes | 
 +^ Version/​Model ^ SoC ^ RAM ^ Flash ^ WAN ^ LAN ^ USB ^ Serial ^ JTAG ^ OpenWrt Version Supported ^
 +| v1 | Broadcom BCM4717A1 (354 MHz) | 32 MiB | 8 MiB | 1x1 | 4x1 | No | Yes | Yes | Chaos Calmer 15.05 WiFi (abgn) with closed source WiFi driver -OK- |
 ===== Installation ===== ===== Installation =====
-FIXME Project is still **[[inbox:​asusrt-n16:​wip|WIP]]** 
-==== Flash Layout ==== +Get the ''​brcm47xx'' ​firmware image ''​openwrt-15.05-brcm47xx-mips74k-linksys-wrt320n-v1-squashfs.bin'' ​from https://​​chaos_calmer/​15.05/​brcm47xx/​mips74k/​
-First let's have a quick view at the Flash Layout with the stock firmware and after OpenWrt has been installed. When you later want to understand, what the programs ​''​mtd'' ​and ''​sysupgrade'' ​do, have a second look here:+
-  * cf. -> [[/​toh/​tp-link/​tl-wr1043nd#​flash.layout]] or [[doc:​techref:​Flash Layout]] +Upgrade that via factory firmware'​s Administration ​-> Firmware Upgrade selection.
-  * Obtain the data: ''​cat /​proc/​mtd'',​ ''​dmesg'',​ ''​df -h'',​ ''​df'',​ ''​mount''​+
-==== OEM easy installation ==== 
-| FIXME The instructions below are for Broadcom devices and only serve as an example. Don't leave them in place if they do not apply to a particular device! | 
-This section deals with how you install OpenWrt from a device freshly opened. ​ Plus the steps required such as reset to factory defaults if the device has already been configured 
-**Note:** Reset router to factory defaults if it has been previously configured. 
-  *Browse to http://​​Upgrade.asp 
-  *Upload .bin file to router 
-  *Wait for it to reboot 
-  *Telnet to and set a root password, or browse to http://​ if LuCI is installed. 
-==== OEM installation using the TFTP method ​====+===== WiFi =====
-If you want to upgrade using TFTP you follow these steps (as an alternative ​to the above install process.+I needed 2,4ghz wireless "​n"​ so i went for the propertary driver ​(kmod-brcm-wl) from start, \\  
 +i didn't have time to play around with the open source drivers in CC (final).
-==== Upgrading OpenWrt ==== +I have tested this one driver (kmod-brcm-wl) now in CC (final), and it works fine on my WRT320N (bought in sweden).
-->  [[doc:​howto:​generic.sysupgrade]]+
-If you have already installed OpenWrt ​and like to reflash for e.gupgrading to a new OpenWrt version you can upgrade using the mtd command line tool. It is important that you put the firmware image into the ramdisk (/tmpbefore you start flashing.+have earlier tested all the available broadcom drivers including kmod-brcm-wl for this router, ​and all have failed ​to work in various ways with CC develop release (unknown revision, was a few months ago..)
-=== LuCI Web Upgrade Process ===+After that i went to fallback on BB as this wikipage told it was untested WiFi-wise. 
 +B43 driver works in 54mbit mode, and the link drops randomly, **alot!** if lucky, it worked 5mins without dropping. 
 +kmod-brcm-wl driver did not work at '​N'​ speed (300mbit) if i remeber correctly it worked at 54mbit mode but i dont remeber at what extent as i continued to use b43 even though it dropped connection.
-  * Browse ​to​luci/​mini/​system/​upgrade/​ LuCI Upgrade URL +i'm sure someone will get the open source drivers ​to work sometime.. then update the wiki with more subcategorys for the other drivers.
-  * Upload image file for sysupgrade to LuCI +==== Modifications for use kmod-brcm-wl driver ==== 
-  * Wait for reboot+  
 +With CC (final) it works and whats needed as post-install on a vanilla installation (installation part above). 
 +  * install packages.. "opkg install kmod-brcm-wl wl wlc nas" 
 +  ​ 
 +  * Disable B43 modules from loading at boot.  
 +    * remove file "/​etc/​modules.d/​b43"​ (or remove b43 kmod package) 
 +    * or modify that file so it says "#​b43"​ instead.
-=== Terminal Upgrade Process ===+  * New/​reconfigured "/​etc/​config/​wireless"​.  
 +    * back it up on your desktop if you want or just overwrite as i did. 
-  ​* Login as root via SSH on +  ​config wifi-device '​wl0'​ 
-  ​* Use the following commands to upgrade.+    option type '​broadcom'​ 
 +    option disabled '​0'​ 
 +    option channel '​4'​ 
 +    option txpower '​16'​ 
 +  ​ 
 +  config wifi-iface 
 +    option device '​wl0'​ 
 +    option network '​lan'​ 
 +    option ssid '​OpenWrt'​ 
 +    option key '​passphrase'​ 
 +    option mode '​ap'​ 
 +    option encryption '​psk2'​
-<​code>​ +  * reboot and wireless should be up and running after the reboot (or init the modules and run the commands in the post below
-cd /tmp/ +
-wget http://​​snapshots/​trunk/​XXX/​ +
-sysupgrade /​tmp/​ +
-  *If sysupgrade does not support this router, use the following commands. 
-<​code>​ +tnx goes to this [[​viewtopic.php?​pid=278354#​p278354|post]] where i found how to do it..
-cd /tmp/ +
-wget​snapshots/​trunk/​XXX/​ +
-mtd write /tmp/ linux && reboot</​code>​+
-===== Basic configuration ===== 
--> [[doc:​howto:​basic.config|Basic configuration]] After flashing, proceed with this.\\ 
-Set up your Internet connection, configure wireless, configure USB port, etc. 
 +===== How to mod Cisco/​Linksys WRT320N to E2000 =====
-===== Specific Configuration ===== +[[https://​​blog/​2010/​08/​22/​upgrade-your-linksys-router-literally/​|This guide on]] can be used too. It's actually a better guide.
-==== Interfaces ====+
-==== Switch Ports (for VLANs====+Mirrored from:  
 +http://​​2011/​03/​how-to-mod-ciscolinksys-wrt320n-to-e2000/​ Which is no longer present ​(checked 2013/06/24
-==== Failsafe mode ====+Posted on March 3, 2011 by Dave Kincade
-==== Buttons ==== 
-===== Hardware ===== 
-==== Info ==== 
-==== Info ==== 
-| **Architecture:​** MIPS|  
-| **Vendor:** Broadcom |  
-| **Bootloader:​** CFE |  
-| **System-On-Chip:​** Broadcom BCM4717A (MIPS 74KTM ) |  
-| **CPU Speed:** 354 Mhz |  
-| **Flash-Chip:​** ? |  
-| **Flash size:** 8 MiB |  
-| **RAM:** 32 MiB |  
-| **Wireless:​** Broadcom BCM43xx 802.11a/​b/​g/​n (Dual-Band Single Radio) |  
-| **Ethernet:​** ? | 
-| **USB:** no |  
-| **Serial:** Yes |  
-| **JTAG:** [[#​JTAG|Yes]] | 
-==== Photos ==== +This is a companion piece to my article explaining how to powerfully network your house. While setting up two Cisco/​Linksys WRT320Ns to use DD-WRT, I saw in the DD-WRT wiki page that upgrading the firmware to the E2000 model can solve some problems.
-Model Number+
-//Front://+I’d just gotten the routers so I never got a chance to see what those problems are, but I’m a sucker for new firmware so I had to upgrade. buddee’s guide is great and includes everything you need to do the upgrade, but I had a bit of a headache after reading his post so I’m going to lay it out here. 
 +  - You need DD-WRT on your router already. If you’re entering from my networking article, then you’ve just put on an older trailed build which is just fine. 
 +  - Download a [[​blog/?​wpdmact=process&​did=OS5ob3RsaW5r|cfe_e2k.bin]] file which contains the actual configuration for the E2000 and another trailed DD-WRT build, but for E2000. Note: you may need to go to the guide to download the files. 
 +  - Open the cfe_e2k.bin in a hex edior. As per buddee’s recommendation,​ HxD is a good choice. I just grabbed the portable version since I don’t see much more hex editing in the near future. 
 +  - You need to modify three values that are right next to each other. I found it easiest to just search for “mac=” and let HxD find it. buddee lists the offsets as starting at 0x3E098. 
 +  - The MAC address, serial number (SN), and PIN are all found underneath the router. Replace the values in the file with the values on your router. Make sure you leave the colons where they are, and I used capital values for the alphabetical hex characters, if it matters. Make sure you work in the “text” area (i.e. the part you can actually read). Just save when you’re done. 
 +  - Backup your WRT320N CFE by going to​backup/​cfe.bin. It’ll take a minute so be patient. I’m honestly not sure how you’d get the chance to restore it if something goes wrong, bit it’s better to have it. 
 +  - You need to get the CFE to the router. I haven’t found a better way that buddee’s suggestion to use winSCP. Enable sshd by going to DD-WRT via http://​ and going to “Services” and scrolling down to sshd. The defaults (password login, no SSH TCP forwarding) should be fine. Apply the settings. 
 +  - Open winSCP and set up a new connection to with username as “root” and whatever password you’ve set up for the router. Make sure you set the protocol to “SCP” since it will fail even with the SFTP fallback to SCP. 
 +  - Transfer your cfe_e2k.bin file into the /tmp folder. You can close winSCP now. 
 +  - Open up a telnet session to the router. Windows comes with a telnet client, which you can enable by typing “Turn Windows Features on or off” into the start menu or find the option in the control panel. 
 +  - Once telnet is enabled, open a command prompt and enter “telnet″ and enter the same credentials as before (root / password that you know). 
 +  - In the telnet session, enter the following commands: 
 +  - “cd /tmp” – navigate to the /tmp folder where the cfe_e2k.bin file was stored. 
 +  - “mfe unlock cfe” < --note that this may now be "​mtd"​ 
 +  - “mfe write -f cfe_e2k.bin cfe” – actually write the new CFE. This is the only really sensitive part of this process, so make sure you don’t disrupt the process. After it’s finished, you’re done with telnet, winSCP, and HxD. 
 +  - Now you want to update the firmware to a E2000 version. It’s probably a bad idea to reboot the router before updating the firmware. Go to http://​​Upgrade.asp and select the trailed E2000 build downloaded earlier, and make sure you select “reset to default settings”. You may be able to go right to a new DD-WRT build rather than this older trailed build but I didn’t want to risk it. 
 +  - After the firmware update has happened, you can go ahead and update to a newer firmware. If you go to http://​​Status_Router.asp,​ you should see something like this:
-**Photo of front of the casing** +Congrats!
- +
-//Back:// +
- +
-**Photo of back of the casing** +
- +
-==== Opening the case ==== +
-**Note:** This will void your warranty! +
- +
-  *To remove the cover do a/b/c +
- +
-//Main PCB// +
- +
-**Photo of PCB** +
- +
-==== Serial ==== +
--> [[doc:​hardware:​port.serial]] general information about the serial port, serial port cable, etc. +
- +
-How to connect to the Serial Port of this specific device: +
- +
-**Photo of PCB with markings** +
- +
-==== JTAG ==== +
--> [[doc:​hardware:​port.jtag]] general information about the JTAG port, JTAG cable, etc. +
- +
-How to connect to the JTAG Port of this specific device: +
- +
-**Photo of PCB with markings** +
- +
- +
-===== Debricking ===== +
--> [[doc:​howto:​generic.debrick]] +
- +
-===== Bootloader Mods ===== +
-  - you could read about [[doc:​techref:​bootloader]] in general +
- +
-===== Hardware mods ===== +
-  - as a beginner, you really should inform yourself about [[doc:​hardware:​soldering]] in general and then obtain some practical experience!+
 ===== Notes ===== ===== Notes =====
Line 145: Line 98:
 ===== Tags ===== ===== Tags =====
-For some Help with the Tags, please have a look here: [[tags]] +For some Help with the Tags, please have a look here: [[meta:tags]] 
- +{{tag>​GigabitEthernet ​1NIC 1WNIC 5Port 32RAM 8Flash MIPS MIPS32 ​bcm47xx}}
-{{tag>​GigabitEthernet ​FastEthernet ​5Port 1PHY 32RAM 8Flash MIPS MIPS32}}+
toh/linksys/wrt320n.1365842336.txt.bz2 · Last modified: 2013/04/13 10:38 by laibsch