Free ModKit that allows for modifying the MH2p unit used in some Volkswagen AG vehicles using only an SD card or flash drive.
- This file is part of MH2p_SD_ModKit, licensed under CC BY-NC-SA 4.0.
- https://creativecommons.org/licenses/by-nc-sa/4.0/
- See the LICENSE file in the project root for full license text.
- NOT FOR COMMERCIAL USE
- each mod should be self-contained in its own folder
/Mods/[modname] - mod can include Update, Post, and Persist parts
- Update: runs during update
- if included, needs
install.shanduninstall.sh
- if included, needs
- Post: runs once after update, followed by persistant reboot (useful for 5F coding that does not work during an update)
- if included, needs
install.shanduninstall.sh
- if included, needs
- Persist: runs at every startup
- if included, needs
install.sh
- if included, needs
- Update: runs during update
- mod output is logged to
/Logs/[modname].log - if
uninstall.txtis present,uninstall.shscripts are run - otherwise,
install.shscripts are run - users can choose to install or uninstall by adding or removing
uninstall.txt - MH2p ModKit exports a few useful variables:
MODKIT_VERSION: current release is 2RELEASE_VERSION: release version string ex: MH2p_US_PO416_P2870REGION: region ex: AS, CN, ER, US, ...OEM: car brand ex: VW, AU, PO, LB, ...TYPE: screen type ex: 416, 636, G33, G35, G36, ...RELEASE_TYPE: E: engineering, K: customer update, P: production, S: security updateSOFTWARE_VERSION: software version number ex: 9830, 2870, ...MOD: name of mod (same as mod's folder name) ex:[modname]MOD_PATH: path to mod part's folder ex:/fs/sdb0/Mods/[modname]/UpdateMEDIA_PATH: path to SD card (only available in Update) ex:/fs/sdb0
- the ModKit is a valid checksummed and signed update for MH2p
- I discovered checksum and signing methods through reverse engineering MH2p binaries
- the update runs
modkit.shwhich runsmodkit_install.shwhich runs scripts under/Mods/that are not checksummed or signed - this allows easier development and installation of mods
- after running the ModKit, if update media is inserted with
failsafe.shat the root, the script will be run early in the startup process- this can be used to clean up a mistake and escape a boot loop without needing to use a PL2303TA cable to enter emergency SWUP