Experienced Developer Quick Start - commaai/openpilot GitHub Wiki
This is an abbreviated version for experienced developers
SSH
- Add your public key to Github
- Enable SSH in the comma settings & add your GitHub username via
Settings -> Developer -> GitHub Username
- SSH into your comma using the key published on GitHub. NOTE: Must be LAN, SSH is inaccessible from WAN
- For C2: SSH as root user
ssh [email protected]
- For C3: SSH as comma user
ssh [email protected]
- For C2: SSH as root user
Making Changes
- The openpilot install is housed in
/data/openpilot
. The code can be modified in place, reboot after changes to see new changes. - The official release branch is
release3
for the comma3 andrelease2
for the comma2, which comes with precompiled binaries, but most branches do not have binaries. Other interesting branches includemaster
(latest),master-ci
(latest + submodules),devel
, anddevel-staging
- Binaries are compiled at boot time assuming they aren't already supplied by the branch (device will take 20+ minutes to boot). To monitor the build, ssh in and attach to the tmux session via
tmux a
- Keep in mind that at the time of writing
/cereal
,/laika_repo
,/opendbc
,/panda
,/rednose_repo
,/laika
, and/rednose
are all submodules. If you wipe/data/openpilot
and clone fresh be sure to issue the commandgit submodule update --init --recursive
after cloning for a successful build.