User Tools

Site Tools


toh:widemac:sl-r7205

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
toh:widemac:sl-r7205 [2012/09/07 17:07]
toh:widemac:sl-r7205 [2014/08/14 15:32] (current)
rspliet Add configuration for VLAN
Line 44: Line 44:
 ==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
  
-OpenWrt was installed with the serial port and tftp method. There is currently no known way to flash directly from the built-in firmware. ​ So, follow [[doc:​howto:​generic.flashing.tftp]] for general setup of a tftp server and firmware to load. Set your terminal to 57600 bauds, 8,N, 1. At boot, you will see the following on your serial terminal:+OpenWrt was installed with the serial port and tftp method. There is currently no known way to flash directly from the built-in firmware. ​ So, follow [[doc:​howto:​generic.flashing.tftp]] for general setup of a tftp server and firmware to load. Use the sysupgrade image. Set your terminal to 57600 bauds, 8,N, 1. At boot, you will see the following on your serial terminal:
  
 ''​ ''​
Line 55: Line 55:
 ''​ ''​
  
-choose 2, then answer the prompts.+choose 2, then answer the prompts. Note that option 1 does not work with the sysupgrade image; booting will fail on finding the root partition. 
 + 
 +After installation,​ copy-paste the following configuration into /​etc/​config/​network 
 +  config interface '​loopback'​ 
 +        option ifname '​lo'​ 
 +        option proto '​static'​ 
 +        option ipaddr '​127.0.0.1'​ 
 +        option netmask '​255.0.0.0'​ 
 +   
 +  config globals '​globals'​ 
 +        option ula_prefix '​fd37:​bd9a:​2b09::/​48'​ 
 +   
 +  config switch '​switch0'​ 
 +        option enable '​1'​ 
 +        option enable_vlan '​1'​ 
 +        option reset '​1'​ 
 +   
 +  config switch_vlan 
 +        option vlan '​1'​ 
 +        option device '​switch0'​ 
 +        option ports '0 6t' 
 +   
 +  config switch_vlan 
 +        option vlan '​2'​ 
 +        option device '​switch0'​ 
 +        option ports '1 2 3 4 6t' 
 +   
 +  config switch_port ​                                         
 +        option port '​0'​ 
 +        option pvid '​1'​ 
 +   
 +  config interface '​lan'​ 
 +        option force_link '​1'​ 
 +        option type '​bridge'​ 
 +        option proto '​static'​ 
 +        option ipaddr '​192.168.1.1'​ 
 +        option netmask '​255.255.255.0'​ 
 +        option ip6assign '​60'​ 
 +        option _orig_ifname '​eth0.2 wlan0'​ 
 +        option _orig_bridge '​true'​ 
 +        option ifname '​eth0.2'​ 
 +        option nat '​1'​ 
 +   
 +  config interface '​wan'​ 
 +        option proto '​dhcp'​ 
 +        option _orig_ifname '​eth0.1'​ 
 +        option _orig_bridge '​false'​ 
 +        option ifname '​eth0.1'​ 
 +        option broadcast '​1'​ 
 + 
 +Reboot, and the network ports should be operational. 
 + 
 +  WARNING: The current OpenWRT image does not contain a valid configuration for the various wired network ports 
 +  on the device. As a result, wired networking broken until copy-pasting in the above configuration.
  
   - -> [[doc:​howto:​obtain.firmware]]   - -> [[doc:​howto:​obtain.firmware]]
Line 84: Line 137:
 <​code>​ <​code>​
 cd /tmp/ cd /tmp/
-wget http://http://​downloads.openwrt.org/​snapshots/​trunk/​XXX/​xxx.abc+wget http://​downloads.openwrt.org/​snapshots/​trunk/​XXX/​xxx.abc
 sysupgrade /​tmp/​xxx.abc sysupgrade /​tmp/​xxx.abc
 </​code>​ </​code>​
Line 92: Line 145:
 <​code>​ <​code>​
 cd /tmp/ cd /tmp/
-wget http://http://​downloads.openwrt.org/​snapshots/​trunk/​XXX/​xxx.abc+wget http://​downloads.openwrt.org/​snapshots/​trunk/​XXX/​xxx.abc
 mtd write /​tmp/​xxx.abc linux && reboot</​code>​ mtd write /​tmp/​xxx.abc linux && reboot</​code>​
  
Line 120: Line 173:
  
 ==== Switch Ports (for VLANs) ==== ==== Switch Ports (for VLANs) ====
-(this has not been verified) +Numbers ​1-are ports 1-4 as labeled on the unit, number ​is the Internet (WAN) on the unit, is the internal connection to the router itself. vlan0 = eth0.0, vlan1 = eth0.1 and so on.
-Numbers ​0-are Ports 1-4 as labeled on the unit, number ​is the Internet (WAN) on the unit, is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.+
 ^ Port ^ Switch port ^ ^ Port ^ Switch port ^
-| Internet (WAN) | 4 |  +| 0 | Internet (WAN) | 
-| LAN 1 | 3 |  +| 1 | LAN 1 | 
-LAN 2 | 2 |  +| 2 | LAN 2 | 
-| LAN 3 | 1 |  +| 3 | LAN 3 | 
-| LAN 4 | +| 4 | LAN 4 | 
 +| 5 | non-connected?​ | 
 +| 6 | CPU (internal) ​|
  
 ===== Hardware ===== ===== Hardware =====
Line 137: Line 191:
 | **[[doc:​hardware:​soc|System-On-Chip]]:​** ​ | RT3052 | | **[[doc:​hardware:​soc|System-On-Chip]]:​** ​ | RT3052 |
 | **[[doc:​hardware:​cpu|CPU]]/​Speed** ​       | 24Kc 384 Mhz | | **[[doc:​hardware:​cpu|CPU]]/​Speed** ​       | 24Kc 384 Mhz |
-| **Flash-Chip:​** ​     | [[http://​www.alldatasheet.com/​view.jsp?​Searchword=29LV320DB|29LV320DBTI-70G]] ​+| **Flash-Chip:​** ​     | [[http://​www.alldatasheet.com/​view.jsp?​Searchword=29LV320DB|29LV320DBTI-70G]]/[[http://​www.spansion.com/​Support/​Datasheets/​S25FL064P_00_03_e.pdf|ST 25P64V6P]] |
-| **Flash-Chip:​** ​     | s25sl064a ​[[http://​www.spansion.com/​Support/​Datasheets/​S25FL064P_00_03_e.pdf|ST 25P64V6P]] |+
 | **Flash size:​** ​     | 4096 KiB | | **Flash size:​** ​     | 4096 KiB |
 | **RAM:​** ​            | 32 MiB   | | **RAM:​** ​            | 32 MiB   |
Line 190: Line 243:
 ==== Serial port ==== ==== Serial port ====
  
-The [[doc:​hardware:​port.serial|serial port]] is on the unpopulated header labelled "​console"/"​J2"​. Pins are, from the pin closest to J2 Gnd, Rx, Tx, Vcc. Use a level shifter. Some of the boards are shipped with a populated header.+The [[doc:​hardware:​port.serial|serial port]] is on the unpopulated header labelled "​console"/"​J2"​. Pins are, from the pin closest to J2 Gnd, Rx, Tx, Vcc. Use a 5V <-> 3.3V level shifter. Some of the boards are shipped with a populated header. Use 57600 8N1, hard & soft flow control OFF.
  
 **Photo of PCB with markings** **Photo of PCB with markings**
Line 218: Line 271:
  
  
-{{tag>​FastEthernet 5Port USB 1USB DetachableAntenna 32RAM 4Flash MIPS}}+{{tag>ramips rt3052 ​FastEthernet 5Port USB 1USB DetachableAntenna 32RAM 4Flash MIPS}}
toh/widemac/sl-r7205.1347030427.txt.bz2 · Last modified: 2012/09/07 17:07 (external edit)