Skip to content

About

OpenWRT build for Open Mesh devices

Resources

Stars

7 stars

Watchers

4 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenWRT on OpenMesh

Docker based firmware build and flasher for the OpenWRT firmware and Open-Mesh hardware.

Using prebuilt docker image

docker pull ghcr.io/jw3/openwrt-openmesh:master

Building

After the build completes the firmware will be in /tmp:

ls /tmp | grep openwrt
openwrt-ar71xx-generic-om2p-squashfs-factory.bin
openwrt-ar71xx-generic-om2p-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-uImage-lzma.bin
openwrt-ar71xx-generic-vmlinux.bin

The ap51-flash tool will be in /usr/local/bin

build.sh

usage: build.sh <git-ref> [image-name]

Flashing

Using docker image the command is formed like so (mind the network device id)

docker run --rm --privileged --network=host ghcr.io/jw3/openwrt-openmesh:master ap51-flash eth0 openwrt-ar71xx-generic-om2p-squashfs-factory.bin

Then plugin the OM2P in eth0 and power it up.

The output of the flash tool should look like this:

  [MA:C-:AD:DR:ES:S ]: type 'OM2P router' detected
  [MA:C-:AD:DR:ES:S ]: OM2P router: tftp client asks for 'fwupgrade.cfg', serving fwupgrade.cfg portion of: openwrt-ar71xx-generic-om2p-squashfs-factory.bin (1 blocks) ...
  [MA:C-:AD:DR:ES:S ]: OM2P router: tftp client asks for 'kernel', serving kernel portion of: openwrt-ar71xx-generic-om2p-squashfs-factory.bin (1993 blocks) ...
  [MA:C-:AD:DR:ES:S ]: OM2P router: tftp client asks for 'rootfs', serving rootfs portion of: openwrt-ar71xx-generic-om2p-squashfs-factory.bin (4609 blocks) ...
  [MA:C-:AD:DR:ES:S ]: OM2P router: image successfully transmitted - writing image to flash ...
  [MA:C-:AD:DR:ES:S ]: OM2P router: flash complete. Device ready to unplug.

Kill the container and reboot the device.

flash.sh

usage:flash.sh <eth-device> [tag]

Configuration

After flashing the following steps will prepare the router for use

  • Connect via ssh ssh root@192.168.1.1
  • Set the root password passwd
  • Enable wifi uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi
  • Switch pc connection to OpenWrt from ethernet to wifi
  • Move ethernet connection from PC to WAN router
  • Install the configuration webapp
opkg update
opkg install luci

or for ssl use luci-ssl

  • Start webapp /etc/init.d/uhttpd start
  • Start webapp on boot /etc/init.d/uhttpd enable

useful cli commands

  • If the default 192.168.1.1 address conflicts with the wan router, change the om2p address
    • uci set network.lan.ipaddr='192.168.2.1'; uci commit wireless; wifi
  • To enable dhcp on eth0 (this seemed to have been auto in the past)
uci set network.wwan=eth0; uci commit wireless
uci set network.wwan.proto='dhcp'; uci commit wireless

upgrades

The recommended way to upgrade is via the "sysupgrade" script. Just copy the factory image (openwrt-ar71xx-generic-om2p-squashfs-factory.bin) to the /tmp folder and run:

sysupgrade /tmp/openwrt-ar71xx-generic-om2p-squashfs-factory.bin

errors

references

history

Issue #42 in the mvf project tracked some original progress on this.

Initial development of this took place over in that repository.

About

OpenWRT build for Open Mesh devices

Resources

Stars

7 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages