Warning: Attempt this modification at your own risk. This is for educational and research purposes only, and you must at all times follow the laws of your local jurisdiction. None of the editors, owners, or hosts of this site can be responsible for any action you may take with this information or any event that may occur as a result of such action.
Nearly all modifications require you to have SSH access to the Linux system used in the MZD Connect. To establish a SSH Connection, you need to have a Network connection between your Computer (or your Mobile) and your Infotainment System. There are two ways to create a network connection to your car:
The car supports some USB-To-Ethernet adapters. Using these, you can connect your car by a standard network patchcable to either your router or directly to your computer (this may require a cross-over cable, if your components cannot Autosense).
The MZD Connect is also equipped with a Wireless LAN connection. To use this, connect to your Home WLAN or a portable Hotspot using the Devices menu in the Settings dialog. If you are in North America or Japan, the WLAN adapter may be disabled (due to Mazda discontinuing the Connected Car features in these regions). If that is the case with your car, you can either
- downgrade your OS-Version to a Version where WLAN was still enabled, disable the Update validation and install a modified Update with WLAN still enabled
- use Ethernet (either constantly or only to enable the WLAN features)
WARNING: You should only connect to Networks you trust (e.g. not to public WLANs), since everyone in that network could possibly brick (=make unusable) your device!
Once you have created a network link, the car will try to fetch an IP-Address via DHCP. If it fails to get a valid IP 10 times, it will use 192.168.42.1/24 . Depending on your setup, you have different ways of finding out what IP the car uses:
- You can see active leases in your DHCP-Server (e.g. your home router's Webinterface shows you)
- You use a network scan to find the car
- You have no reachable DHCP and the car uses the static IP
Once you know your car's ip and are in the same network, you can connect using SSH. The login information is
User: root Password: jci
Remount filesystem as read/write
By default, the file system is in read-only mode, which prevents you from making changes. To remount it as writable, run the following command via SSH:
mount -o rw,remount /
This will allow you to change files on the system until the next reboot (you will have to reissue the command after rebooting if you want to continue changing files).
The changes you have made will stay across reboots.
Note: Some files have their permissions additionally set to be read-only. If you get permission errors when changing a file, change its permissions to be read, write, execute (7) for root and read, execute for everybody else (55):
chmod 755 /jci/path/to/file.ext
The original firmware is configured to reboot on any error (hoping that that will fix it). This makes it very hard to repair anything, since you won't have time to revert your changes via SSH before the System reboots.
The part of the system that checks if the Interface works as normal is called a "Watchdog".
You can disable it until the next reboot using
echo 1 > /sys/class/gpio/Watchdog\ Disable/value
Since you need this to be set as soon as the device starts to prevent a bootloop, you need to let this execute during boot. One way of accomplishing that is to execute the line in /jci/scripts/stage_1.sh by adding it to that file.
You can check if your auto-disable of the Watchdog works by rebooting and running
cat /sys/class/gpio/Watchdog\ Disable/value
which should read 1 if the Watchdog was successfully disabled.
Correctly creating backups
If you plan to change any file on the original system, always create a backup of the original file, on both the USB device and an external USB unit. Use the cp command to make a backup copy of a file on the device:
cp /jci/gui/apps/syssettings/js/syssettingsApp.js /jci/gui/apps/syssettings/js/syssettingsApp.js.bak
Replace the file with the one you want to modify (note that the second time, a .bak is added to the filename to denote the backup copy)
To create a offline backup of the file, download it using SCP or cp it to a USB-Stick.