Setup openpilot on a C3 or C3X without a screen - commaai/openpilot GitHub Wiki
This is intended for a device with a non-working screen and that just been flashed (wiped clean) with https://flash.comma.ai
This setup needs internet on your device. This can be done either via Wi-Fi or a "USB-C to Ethernet" adapter.
Connect via Serial
Power the device via a cable connected to your computer with the other end plugged into OBD-C.
OBD-C is also known as port 1 or the port you plug it in your car
C3
Linux
sudo screen /dev/ttyUSB* 115200
Mac
sudo screen /dev/tty.usbserial-* 115200
C3X
You need to have openpilot on your computer. Easiest way is
bash <(curl -fsSL openpilot.comma.ai)
cd openpilot
panda/tests/som_debug.sh
You will be asked to login into Ubuntu. Use comma / comma (username / password).
Wi-Fi
To connect the device to Wi-Fi:
nmcli dev wifi connect SSIDHERE password PASSHERE
If you prefer a "USB-C to Ethernet" adapter, it will connect to your network without any extra setup.
Clone and setup openpilot:
cd /data
git clone -b release3 --single-branch https://github.com/commaai/openpilot.git openpilot
cp openpilot/selfdrive/ui/installer/continue_openpilot.sh continue.sh
sudo reboot
this will also reboot the device to be sure all needed params are created for the next command
Skip training and terms:
cd /data
cp params/d/TrainingVersion params/d/CompletedTrainingVersion
cp params/d/TermsVersion params/d/HasAcceptedTerms
SSH
To enable SSH and setup your GitHub keys:
/data/openpilot/tools/scripts/setup_ssh_keys.py YOUR_GITHUB_USERNAME
In case you don't have this script, run:
mkdir -p /data/openpilot/tools/scripts; curl -L https://raw.githubusercontent.com/commaai/openpilot/master/tools/scripts/setup_ssh_keys.py -o /data/openpilot/tools/scripts/setup_ssh_keys.py; chmod +x /data/openpilot/tools/scripts/setup_ssh_keys.py
If you want to SSH, you need to first find it's IP address. Either run ifconfig
on your device, look in your router UI admin or run arp -a
on your computer.
Keep in mind that the first time you put it in your car, it needs to calibrate, so you need to drive probably at least 1 mile.