A collection of patches for modifying official openpilot, it may works with other community forks but not guaranteed.
-
find your openpilot version, you will see something like this: #define COMMA_VERSION "0.5.10-release and your version will be 0.5.10
cat /data/openpilot/selfdrive/common/version.h | grep COMMA_VERSION
-
find the patch file and copy the command from the top of the file, e.g. (0.5.10/disable_mapd.diff line 1):
cd /data/openpilot && curl https://raw.githubusercontent.com/eFiniLan/openpilot-patches/master/0.5.10/disable_mapd.diff | git apply -v
-
If successful, you should see messages like this:
Checking patch selfdrive/manager.py... Applied patch selfdrive/manager.py cleanly.
-
Now make openpilot compile, this is to avoid soft brick your device.
python -m compileall . && make
-
If something went wrong, reset your branch and restart again:
git reset --hard