Solution for networking conflict: RaspberryPi B+ v1.2, Avalon6, and OpenWrt

Install openwrt via canaan.io[1] to a mini SD card. Using dd[2] is easy for this. However, the default IP for the RPI is 192.168.0.1. If this conflicts with any devices, such as a router, then here is a solution. Mount the SD card and change the IP settings in the file /etc/config/network.

Here are the original settings for a vanilla installation:

config 'interface' 'lan'
  option 'ifname' 'eth0'
  option 'type' 'bridge'
  option 'proto' 'static'
  option 'netmask' '255.255.255.0'
  option 'ipaddr' '192.168.0.100'
  option 'gateway' '192.168.0.1'
  option dns '192.168.0.1'
  option broadcast '192.168.0.255'

And here are the updated settings:

config 'interface' 'lan'
  option 'ifname' 'eth0'
  option 'type' 'bridge'
  option 'proto' 'static'
  option 'netmask' '255.255.255.0'
  option 'ipaddr' '192.168.1.100'
  option 'gateway' '192.168.1.1'
  option dns '192.168.1.1'
  option broadcast '192.168.1.255'

Thanks to Konstantinos Aravanis[3] for noting this.

Sources:

[1] https://canaan.io/downloads/software/avalon6/openwrt/20160726/brcm2708/

[2] https://wiki.openwrt.org/toh/raspberry_pi_foundation/raspberry_pi

[3] https://aravaniskostas.com/2012/01/23/static-ip-on-openwrt/

[4] https://en.wikipedia.org/wiki/Raspberry_Pi