Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
glued_cross_compiler [2019/10/07 09:52] – [Setting up Glued cross-compiler for DUNE] nikolal | glued_cross_compiler [2022/09/19 11:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Setting up Glued cross-compiler for DUNE ===== | ===== Setting up Glued cross-compiler for DUNE ===== | ||
* Install required packages | * Install required packages | ||
+ | |||
+ | sudo apt-get install docker.io | ||
+ | |||
* Clone Glued from github | * Clone Glued from github | ||
+ | |||
+ | git clone https:// | ||
+ | |||
* Run docker shell for the build system | * Run docker shell for the build system | ||
+ | |||
+ | cd glued/ | ||
+ | |||
* Create build configuration for mariner-01 | * Create build configuration for mariner-01 | ||
+ | |||
+ | ./ | ||
+ | |||
* Compile system image for mariner-01 | * Compile system image for mariner-01 | ||
+ | |||
+ | ./ | ||
+ | |||
* Create cross-compilation toolchain | * Create cross-compilation toolchain | ||
+ | |||
+ | ./ | ||
+ | |||
* Leave docker enviroment | * Leave docker enviroment | ||
+ | |||
+ | exit | ||
===== Cross compiling with the Glued toolchain ===== | ===== Cross compiling with the Glued toolchain ===== | ||
* Make directory for pibuild | * Make directory for pibuild | ||
- | | + | |
- | * make | + | mkdir dunebuildrpi && cd dunebuildrpi |
+ | |||
+ | | ||
+ | |||
+ | cmake -DCROSS=[wherisit]/ | ||
+ | |||
+ | * Compile with make, add the -j4 for using more threads, add package to make a tar.gz2 archive that can easily be transferred to the Raspberry Pi | ||
+ | |||
+ | | ||