A fully automatic rad1o mass flash tool
smartflash detects rad1os which are attached via USB and which are either in DFU mode or USB Mass Storage (MSC) mode.
It then proceeds to automatically flash all files which are needed to use the rad1o.
There are two different modes of operation. They are auto selected based on the mode of the rad1o (DFU or MSC)
- Programs the on-board CPLD
- Formats the external 2 MB flash
- Copies all gathered files to the external flash
- Selects the camp application as default boot option
- Copies all gathered files to the external flash
A few tools and files need to be installed. The f1rmware and all other files need to be built too.
- On debian/ubuntu:
sudo apt-get install mtools
- On arch:
pacman -S mtools
- On Fedora:
sudo dnf install mtools
- Copy
90-rad1o-flash.rules
to/etc/udev/rules.d
- reload rules
$ sudo udevadm control --reload
- On debian/ubuntu:
sudo apt-get install libcurses-perl
- On arch:
pacman -S perl-curses
- On Fedora:
sudo dnf install perl-Curses
Note: You should probably only do this if there is no package for your distro.
perl -MCPAN -eshell # use default configuration, it's sufficient
# a new console, e.g. ' cpan[1]> ' opens, just type:
install Curses
exit
- Make sure to run "make" in the top level directory first. It will download and build all dependencies of the firmware
- Change to this directory
- Run "make build" to make sure hat all requisites are built
- Run "make" to prepare everything for flashing
- Run "make run" to start the CLI tool which will flash the rad1os