Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.29 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.29 KB

openpilot patches

A collection of patches for modifying official openpilot, it may works with other community forks but not guaranteed.

usage

  1. go to your openpilot folder

    cd /data/openpilot
  2. find your openpilot version, you will see something like this: #define COMMA_VERSION "0.5.8-release and your version will be 0.5.8

    cat selfdrive/common/version.h | grep COMMA_VERSION
  3. download and apply patch, repeat this step if you want to apply more patches, example format:

    curl https://raw.githubusercontent.com/eFiniLan/openpilot-patches/master/<version>/<patch file> | git apply -v

    real example:

    curl https://raw.githubusercontent.com/eFiniLan/openpilot-patches/master/0.5.8/shut_down_eon_after_90_mins_if_usb_disconnected.diff | git apply -v
  4. If successful, you should see messages like this:

    Checking patch selfdrive/thermald.py...
    Applied patch selfdrive/thermald.py cleanly.
  5. Now make openpilot compile, this is to avoid soft brick openpilot.

    make
  6. If something went wrong, reset your branch and restart again:

    git reset --hard
  7. now you can safely reboot your EON

    reboot