User Tools

Site Tools


howto:build

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
howto:build [2015/08/22 13:28]
iggy [Preparation and Build]
howto:build [2015/08/25 21:01]
pera Syntax cleanup
Line 15: Line 15:
 ==== Preparation and Build ==== ==== Preparation and Build ====
  
-  * clone the rad1o firmware repository from git +  * clone the rad1o firmware repository from git <​code>​git clone https://​github.com/​rad1o/​f1rmware.git</​code>​ 
- +  * If you did that already some time ago, get the latest changes:<​code>​cd f1rmware 
- +git checkout master 
-    ​git clone https://​github.com/​rad1o/​f1rmware.git +git pull</​code>​
- +
-  * If you did that already some time ago, get the latest changes: +
- +
- +
-    ​cd f1rmware +
-    git checkout master +
-    git pull +
   * install the following build requirments,​ see ''​[[https://​github.com/​rad1o/​f1rmware/​blob/​master/​doc/​build.md|doc/​build.md]]''​ for details how to install on your system:   * install the following build requirments,​ see ''​[[https://​github.com/​rad1o/​f1rmware/​blob/​master/​doc/​build.md|doc/​build.md]]''​ for details how to install on your system:
     * arm-gcc     * arm-gcc
Line 32: Line 24:
     * xxd     * xxd
     * cmake     * cmake
- +  ​* setup the ''​hackrf''​ and ''​libopencm3''​ submodules:<​code>​git submodule init 
-  ​* setup the ''​hackrf''​ and ''​libopencm3''​ submodules: +git submodule update</​code>​ 
- +  * build everything ​<​code>​make 
- +cd smartflash 
-    ​git submodule init +make build 
-    git submodule update +make gather</​code>​
- +
-  * build everything +
- +
- +
-    ​make +
-    cd smartflash +
-    make build +
-    make gather +
   * if that is successfull,​ all firmware files end up in ''​smartflash/​IMG''​. ​   * if that is successfull,​ all firmware files end up in ''​smartflash/​IMG''​. ​
  
Line 57: Line 40:
 === Easy Method: Manual copy === === Easy Method: Manual copy ===
  
-* Boot the rad1o in MSC-mode (joystick UP while you turn it on) +  ​* Boot the rad1o in MSC-mode (joystick UP while you turn it on) 
-* mount the device if your system does not do it automatically (your path will probably be different) +  * mount the device if your system does not do it automatically (your path will probably be different)<​code>​mount /dev/sdb /​media/​ABCD-1234</​code>​ 
- +  * copy the firmware files to the mounted device manually (your path will probably be different):<​code>​cp smartflash/​IMG/​* /​media/​ABCD-1234</​code>​
- +
-    ​mount /dev/sdb /​media/​ABCD-1234 +
- +
-* copy the firmware files to the mounted device manually (your path will probably be different): +
- +
- +
-    ​cp smartflash/​IMG/​* /​media/​ABCD-1234+
  
 === Advanced Method: With FLASHgui === === Advanced Method: With FLASHgui ===
Line 74: Line 50:
     * perl-curses     * perl-curses
     * [[https://​github.com/​rad1o/​dfu-util|patched dfu-util]] (this is only required for the factory reset method)     * [[https://​github.com/​rad1o/​dfu-util|patched dfu-util]] (this is only required for the factory reset method)
- +  ​* install the udev-rules ​<​code>​cp smartflash/​90-rad1o-flash.rules /​etc/​udev/​rules.d</​code>​ 
-  ​* install the udev-rules +  * start the smartflash FLASHgui app: <​code>​cd smartflash 
- +make run</​code>​
- +
-    ​cp smartflash/​90-rad1o-flash.rules /​etc/​udev/​rules.d +
- +
-  * start the smartflash FLASHgui app: +
- +
- +
-    ​cd smartflash +
-    make run +
   * connect a rad1o via USB to the computer and start it in MSC mode (hold UP and switch on).   * connect a rad1o via USB to the computer and start it in MSC mode (hold UP and switch on).
  
Line 104: Line 71:
  
   * a rad1o running the latest firmware from git   * a rad1o running the latest firmware from git
 +
 +
howto/build.txt · Last modified: 2015/09/09 21:15 by 9r