|
| 1 | +How to build the openwrt image |
| 2 | +============================== |
| 3 | + |
| 4 | +Just run the `openwrt-build.sh` script as a user (not root), tested under |
| 5 | +ubuntu 14.04. |
| 6 | + |
| 7 | +First of all, you have to be root without password prompt preferably, here an |
| 8 | +example how to add the user `joe` for sudo, those steps have to be done with |
| 9 | +the root user: |
| 10 | + |
| 11 | +``` |
| 12 | +$ export MYUSER="joe" |
| 13 | +$ echo "$MYUSER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/$MYUSER |
| 14 | +$ chmod 0440 /etc/sudoers.d/$MYUSER |
| 15 | +``` |
| 16 | + |
| 17 | +This has been tested under ubuntu 14.04, if you want other distributions, look |
| 18 | +at the OpenWRT requirements here: |
| 19 | + |
| 20 | +https://wiki.openwrt.org/doc/howto/buildroot.exigence |
| 21 | + |
| 22 | +Then, just run the `openwrt-build.sh` script as a user (not root): |
| 23 | + |
| 24 | +``` |
| 25 | +./openwrt-build.sh |
| 26 | +``` |
| 27 | + |
| 28 | +At the end of the process, you should end up with a firmware bin file named |
| 29 | +`openwrt-ar71xx-generic-gl-ar150-squashfs-sysupgrade.bin` which |
| 30 | +contains glard and all the zmq libs in the `openwrt/bin/ar71xx` directory: |
| 31 | + |
| 32 | +``` |
| 33 | +zoobab@sabayonx86-64 /home/zoobab/soft/glar150/openwrt/bin/ar71xx [13]$ ls |
| 34 | +md5sums openwrt-ar71xx-generic-uImage-lzma.bin openwrt-ar71xx-generic-vmlinux.lzma |
| 35 | +openwrt-ar71xx-generic-gl-ar150-squashfs-sysupgrade.bin openwrt-ar71xx-generic-vmlinux-lzma.elf packages |
| 36 | +openwrt-ar71xx-generic-root.squashfs openwrt-ar71xx-generic-vmlinux.bin sha256sums |
| 37 | +openwrt-ar71xx-generic-root.squashfs-64k openwrt-ar71xx-generic-vmlinux.elf |
| 38 | +openwrt-ar71xx-generic-uImage-gzip.bin openwrt-ar71xx-generic-vmlinux.gz |
| 39 | +``` |
| 40 | + |
| 41 | +You should then upload this file in the default firmware of Gl.inet by going to |
| 42 | +the web interface of the device, -> Advanced Settings -> User+passwd -> System |
| 43 | +-> Backup/FlashFirmware -> Flash New Firmware Image -> Choose File -> Flash |
| 44 | +Image |
| 45 | + |
| 46 | +Do no power up the device, and wait 3 minutes at least. |
| 47 | + |
| 48 | +The device will reboot with a 192.168.1.1 IP address, you should be able to: |
| 49 | + |
| 50 | +a. ping if you put a static IP on your PC (like 192.168.1.2) |
| 51 | +b. a DHCP address from your PC |
| 52 | + |
| 53 | +From there, you should be able to reach the default web interface |
| 54 | +http://192.168.1.1 or telnet to the device. |
| 55 | + |
| 56 | +Sometimes the previous configuration is not erased, so it will keep its default |
| 57 | +IP address (192.168.8.1), so if you want to wipe it out, you should login in |
| 58 | +telnet or ssh, and run `firstboot` to erase the previous settings. |
0 commit comments