glued_cross_compiler

Differences

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

Link to this comparison view

Next revision
Previous revision
glued_cross_compiler [2019/10/07 09:41] – created nikolalglued_cross_compiler [2022/09/19 11:34] (current) – external edit 127.0.0.1
Line 3: Line 3:
  
 ===== Setting up Glued cross-compiler for DUNE ===== ===== Setting up Glued cross-compiler for DUNE =====
 +  * Install required packages
 +
 +  sudo apt-get install docker.io
 +
 +  * Clone Glued from github
 +
 +  git clone https://github.com/LSTS/glued.git
 +
 +  * Run docker shell for the build system
 +
 +  cd glued/docker && sudo make && sudo make shell
 +
 +  * Create build configuration for mariner-01
 +
 +  ​ ./mkconfig.bash mariner-01
 +
 +  * Compile system image for mariner-01
 +
 +  ​./mksystem.bash lctr-rpi/mariner-01.bash
 +
 +  * Create cross-compilation toolchain
 +
 +  ./pktoolchain.bash lctr-rpi/mariner-01.bash
 +
 +  * Leave docker enviroment
 +
 +  exit
 +===== Cross compiling with the Glued toolchain =====
 +  * Make directory for pibuild
 +
 +  mkdir dunebuildrpi && cd dunebuildrpi
 +
 +  * Create makefiles with cmake, replace ''%%[wherisit]%%'' with path to the glued folder just created and ''%%[dune_source]%%'' with dune folder
 +
 +  cmake -DCROSS=[wherisit]/glued/lctr-rpi/toolchain/bin/armv7-lsts-linux-gnueabihf-gcc [dune_source]
 +
 +  * 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
 +
 +  make -j4
  
  • glued_cross_compiler.1570434097.txt.gz
  • Last modified: 2022/09/19 11:33
  • (external edit)