-
Notifications
You must be signed in to change notification settings - Fork 0
Flashing from Linux
Chris Souers edited this page Feb 8, 2021
·
1 revision
Below are instructions for flashing the bodyharness panda from linux. In this guide, I assume you are running Ubuntu 20.04, though other distributions may work as well. A USB-A to USB-A cable is required, or likewise, a comma.ai panda paw and a USB-A to USB Micro-B is also acceptable. Don't have either of these options? Simple splice two USB-A cable ends together for a makeshift flashing cable.
- From Ubuntu Linux, open a Terminal window and clone the bodyharness panda repository with
git clone -b bodyharness https://github.com/csouers/panda
- Enter the board directory:
cd panda/board
- If you haven't done so already, you'll need to install the flashing toolchain. On a fresh installation, this is as easy as running the get_sdk.sh script:
./get_sdk.sh
. Otherwise, try to run the steps in number 4 and add any additional packages as necessary. See board/get_sdk.sh for details. - Flash the firmware:
make recover
Note: You MUST runmake recover
otherwise OTA updates via CAN will NOT be possible! Do not disconnect any cables or remove the panda from power during flashing. If you have installed everything correctly, but are still not able to flash, run it as root withsudo make recover
. If that doesn't work, verify that the panda is listed as a USB device with by runninglsusb
and try again. - Install the panda into the body harness. After flashing or initial power-up, the panda will pulse red for 10 seconds before turning the LED off. If necessary, complete the hardware installation and do the following test: with the vehicle off, press the brake pedal and observe the LED color on the panda. If it lights up blue with the vehicle off, that means you have a proper connection to the vehicle's body CAN bus.