- Download a latest compiler arm-none-eabi-gcc at link
- Extract
- Create environmnet by adding the compiler path to the $PATH. Edit your ~/.bashrc file and add new line:
export PATH=$PATH:$HOME/tools/gcc-arm-none-eabi-4_7-2013q1/bin
- Get source code of tool:
git clone https://github.com/utzig/lm4tools.git
- Compile
cd lm4ftools/lm4flash/
make
- And finish
sudo cp lm4flash /usr/bin
- Refer to Wiki Page for more details