I've written down a sequence for flashing the Fluksometer with a stock FLUKSO-1-0 release. I'm assuming you are running some sort of *NIX system. These specific commands should Just Work(TM) on Debian or Ubuntu.
1/ Connect the Fluksometer via ethernet to your *NIX box. Configure eth0 of your box with a static IP of 192.168.255.2. The Fluksometer is already set to an IP of 192.168.255.1 in its bootloader.
2/ Copy the /etc/config/system file to your machine. (login:root/pass:root)
- scp root@192.168.255.1:/etc/config/system
3/ Download the images tarball and flash scripts.
- wget 'http://www.flukso.net/files/openwrt/FLUKSO-1-0/FLUKSO-1-0-bin.tar.gz'
- tar -xzvf FLUKSO-1-0-bin.tar.gz
- wget 'http://www.flukso.net/files/openwrt/tools/redboot.pl'
- wget 'http://www.flukso.net/files/openwrt/tools/flukso.flash.exp'
- chmod 775 redboot.pl flukso.flash.exp
4/ Install an atftp server on your system. Point atftp's root dir to the bin dir which you extracted in step 3 (or the equivalent bin dir of a local flukso openwrt x-compilation).
- sudo vi /etc/default/atftpd
- USE_INETD=false
- OPTIONS="--daemon --port 69 --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /home/me/path/to/bin"
- sudo invoke-rc.d atftpd start
5/ Run the expect script.
- sudo apt-get install expect
- ./flukso.flash.exp
6/Power cycle the Fluksometer. The expect script will log into the redboot bootloader via eth0 and flash the Fluksometer with the images it tftp'ed from the /home/me/path/to/bin directory. Wait until the Fluksometer is reachable again.
7/ Use the Fluksometer's local web interface to configure the wifi interface.
8/ SSH into the Fluksometer and download the flukso_1.0-1_mips.ipk package
- ssh root@192.168.255.1 "opkg install 'http://www.flukso.net/files/openwrt/FLUKSO-1-0/bin/packages/mips/flukso_1.0-1_mips.ipk'"
9/ Configure the Fluksometer with the system file you obtained in step 2.
- scp system root@192.168.255.1:/etc/config/
10/ Enable the flukso daemon.
- ssh root@192.168.255.1 "/etc/init.d/flukso enable; /etc/init.d/flukso start"
11/ Enjoy!
Hi, i had varios little problems while flashing my flukso. Maybe the solutions are helpful for others:
To step 4: I configured the tftp base dir to /home/***/flukso/bin in /etc/default/atftpd, but it still points to /srv/tftp/ on my machine -> i just copied the necessary binary files into this folder.
After step 4: I had to install fping and perls telnet module before running ./flukso.flash.exp -> "apt-get install fping libnet-telnet-perl"
regards,
sid