config switch ‘eth0′
option enable ’1′
option enable_vlan ’1′
option reset ’1′
config interface ‘lan’
option proto ‘static’
option ipaddr ’10.0.1.1′
option netmask ’255.255.255.0′
option defaultroute ’0′
option peerdns ’0′
option nat ’1′
option ifname ‘eth0.1′
option type ‘bridge’
config switch_vlan
option device ‘eth0′
option ports ’0 1 2 4 8t’
option vlan ’1′
config interface ‘wan’
option ifname ‘eth0.2′
option proto ‘dhcp’
config switch_vlan
option device ‘eth0′
option vlan ’2′
option ports ’3 8t’
start router web server:
$ /etc/init.d/uhttpd start
$ /etc/init.d/uhttpd enable
That’s all. Good luck!
forum discuss link:
http://www.bananapi.com/index.php/forum/general/417-banana-pi-bpi-r1-openwrt-image-2-0-release-note#1229
Wiki link:
http://wiki.geiges.net/doku.php?id=openwrt_bpi-r1
Lamobo Openwrt image
68
Summary of Contents for BPI-R1
Page 5: ...BPI R1 hardware interface BPI R1 hardware interface Front Back BPI R1 hardware interface 5...
Page 6: ...Hardware connect sketch map Front Back BPI R1 hardware interface 6...
Page 7: ...BPI R1 hardware interface 7...
Page 8: ...BPI R1 hardware spec BPI R1 hardware spec 8...
Page 14: ...J13 P01 UART0 RX PB23 J13 P02 UART0 TX PB22 BPI R1 GPIO Pin define 14...
Page 28: ...please note value 0 value 1 press is 1 unpress is 0 BPI R1 IR interface 28...
Page 41: ...BPI R1 RoHS Certification BPI R1 CE FCC RoHS Certification 41...
Page 42: ...BPI R1 CE FCC RoHS Certification 42...
Page 43: ...BPI R1 Software BPI R1 support linux android and openwrt system BPI R1 Software 43...
Page 59: ...Linux kernel 3 4 BSP image 59...