===== German Version ===== Please find the German version of this document here: [[Fluksov2Aktualisierung]]. Bitte klicken Sie hier für die deutsche Version dieses Dokuments: [[Fluksov2Aktualisierung]]. ===== Changelog ===== Changelogs can be found at [[flm02:changelog]] ===== Building new Images ===== How to build new Images: [[flm02:build]] ===== Flashing new Images ===== Bart published an update for the Fluksov2 supporting non-integer values for the meter constant. This allows the use of S0-counter with more than 1000 imp/kWh. The update can be downloaded from [[http://www.flukso.net/files/flm02/bin/develop/openwrt-atheros-vmlinux.lzma]] [[http://www.flukso.net/files/flm02/bin/develop/openwrt-atheros-root.squashfs]] The MySmartGrid version can be downloaded from here: [[http://openwrt.mysmartgrid.de/flm02/atheros/2.1.0-3/openwrt-atheros-root.squashfs]] [[http://openwrt.mysmartgrid.de/flm02/atheros/2.1.0-3/openwrt-atheros-vmlinux.lzma]] There are two options to flash new images to your device: - Flashing via Redboot (Bootloader) - recommended - Flashing via ssh ==== 1. Flashing via Redboot (Bootloader) ==== This is the recommended option. === Prerequisites === You need the following things in advance: * a flukso v2 device * a PC or laptop running Linux, preferably [[http://www.ubuntu.com/download/desktop|Ubuntu 12.04 LTS]] * an ethernet cable === Preliminary software installation === You need to take the following steps: * Download and install [[http://git-scm.com/downloads|github]]. * Follow this guide on how to [[https://help.github.com/articles/set-up-git|set up git]]. * Clone the mySmartGrid flukso repository [[http://github.com/mysmartgrid/flm02|flm02]]. If you're new to git, follow this guide on how to [[http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository|get a git repository]]. * To flash these images run the following in the tools folder in our repository [[http://github.com/mysmartgrid/flm02|flm02]] or as precompiled binaries on [[http://openwrt.mysmartgrid.de/|openwrt.mysmartgrid.de]] wget http://openwrt.mysmartgrid.de/flm02/atheros/2.1.0-3/openwrt-atheros-root.squashfs wget http://openwrt.mysmartgrid.de/flm02/atheros/2.1.0-3/openwrt-atheros-vmlinux.lzma wget http://openwrt.mysmartgrid.de/ap51-flash/ap51-flash.x86_64.bin wget http://openwrt.mysmartgrid.de/ap51-flash/flash.sh chmod a+x ap51-flash.x86_64.bin === Actual flashing === * Now, connect your computer with the ethernet cable to your flukso device. Then, run the following script: sudo ./ap51-flash.x86_64.bin eth0 openwrt-atheros-root.squashfs openwrt-atheros-vmlinux.lzma * When ap51-flash is running, power up your flukso. The script now flashes the new image to your device. Wait until the script is done. * When the power LED of the flukso starts to blink, wait another 3 minutes. * Open a browser. Surf to the address 192.168.255.1. You should see the flukso configuration interface. * Follow the [[https://www.mysmartgrid.de/content/installationsanleitung-des-fluksos-2|installation procedure]]. ==== 2. Flashing via ssh ==== You can also use the command line of the flukso to flash the new images. In this case you do not need to catch the booloader but wait until the device is up and you can connect via ssh (Secure Shell, a cryptographic network protocol). To flash the new images run the following on your flukso. cd /tmp wget http://openwrt.mysmartgrid.de/flm02/atheros/2.1.0-3/openwrt-atheros-vmlinux.lzma wget http://openwrt.mysmartgrid.de/flm02/atheros/2.1.0-3/openwrt-atheros-root.squashfs mtd write openwrt-atheros-vmlinux.lzma vmlinux.bin.l7 mtd write openwrt-atheros-root.squashfs rootfs Now you can reboot the device and be happy with your new system.