Skip to content

Latest commit

 

History

History
48 lines (44 loc) · 1.16 KB

building.md

File metadata and controls

48 lines (44 loc) · 1.16 KB

Raspberry PI building

SD card prep

  1. Download Latest Crankshaft version
  2. Burn to SD Card
  3. Turn on Dev_Mode, Set DEV_MODE=1 in /boot/crankshaft/crankshaft_env.sh
  4. Set memory split to 16MB for GPU, via raspi-config. This is needed to stop Qt compile from running out of memory

Full Recompile

  1. Boot pi
  2. SSH into pi
  3. add SSH public key
   mkdir .ssh
   touch .ssh/authorized_keys
   chmod 644 .ssh/authorized_keys
   chown pi:pi .ssh/authorized_keys
  1. Update Buster
    sudo apt update -y
    sudo apt upgrade -y
    sudo apt autoremove -y
  1. Install Pre-Reqs
    sudo apt-get install -y libboost-all-dev libusb-1.0.0-dev libssl-dev cmake libprotobuf-dev protobuf-c-compiler protobuf-compiler 
    libtag1-dev
    sudo apt-get -y install cmake build-essential git
  1. Setup Build Environment
mkdir ~/opencardev
git clone https://github.com/opencardev/prebuilts.git prebuilts
cd prebuilts/buildsystem
./1_prepare_build_system.sh
./2_build_aasdk.sh
./3_build_ilclient.sh
./4_build_qt_latest.sh
./5_build_openauto.sh
./6_build_gpio2kbd.sh
./7_build_camoverlay.sh
./99_copy_compiled_files.sh
cd ..
./update_binaries.sh