I'm still playing with the meshing myself, and the setup can take a while.
This describes some of how to setup batman on openwrt: http://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config
Start by building a new OS image for the Omega with support for Batman and avahi. Once I had the Omega image building, I had to do so something like ./scripts/feeds install batman-adv
; and similar for avahi; I forget the exact package name. You should be able to find the package names you need by sifting through the feeds directory. You'll also need to run make menuconfig
to enable batman-adv and avahi in the build.
If you don't understand the build process or aren't comfortable flashing a new OS image onto your Omega, you probably shouldn't try.
Keep your USB cable handy; I'm using the USB-serial console for all of my development and debugging, because I have to disable the connection to other wireless networks.
I'm using the following network and wifi configs:
/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/ar933x_wmac'
option htmode 'HT20'
option disabled '0'
option channel '6'
option txpower '30'
option country 'US'
config wifi-iface 'wmesh'
option device 'radio0'
option ifname 'wlan1'
option network 'wlan1'
option mode 'adhoc'
option ssid 'Onion-Mesh'
option 'mcast_rate' '18000'
and
/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 interface 'wlan1'
option mtu '1532'
option proto 'batadv'
option mesh 'bat0'
and the default batman-adv config.
There's still some manual startup to do to get the mesh up, once the AdHoc connection is established:
$ ip link set bat0 up
$ avahi-autoipd bat0 &