A collection of patches for modifying official openpilot, it may works with other community forks but not guaranteed.
-
go to your openpilot folder
cd /data/openpilot
-
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
-
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
-
If successful, you should see messages like this:
Checking patch selfdrive/thermald.py... Applied patch selfdrive/thermald.py cleanly.
-
Now make openpilot compile, this is to avoid soft brick openpilot.
make
-
If something went wrong, reset your branch and restart again:
git reset --hard
-
now you can safely reboot your EON
reboot