Sequence for flashing a fluksometer

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)

  1. scp root@192.168.255.1:/etc/config/system

3/ Download the images tarball and flash scripts.

  1. wget 'http://www.flukso.net/files/openwrt/FLUKSO-1-0/FLUKSO-1-0-bin.tar.gz'
  2. tar -xzvf FLUKSO-1-0-bin.tar.gz
  3. wget 'http://www.flukso.net/files/openwrt/tools/redboot.pl'
  4. wget 'http://www.flukso.net/files/openwrt/tools/flukso.flash.exp'
  5. 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).

  1. sudo vi /etc/default/atftpd
  2. USE_INETD=false
  3. 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"
  4.  
  5. sudo invoke-rc.d atftpd start

5/ Run the expect script.

  1. sudo apt-get install expect
  2. ./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

  1. 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.

  1. scp system root@192.168.255.1:/etc/config/

10/ Enable the flukso daemon.

  1. ssh root@192.168.255.1 "/etc/init.d/flukso enable; /etc/init.d/flukso start"

11/ Enjoy!

sid's picture

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