Solderless way to install Toolbox for all Bolero/Amundsen/Composition/Discover Media/Seat Media/Navi System by malec
Compatible with units of HW versions: H2x/H3x/H4x/H5x

Preparations
1. Watch /docs/Video_Instruction.mp4 to get basic understanding how it all works
2. Make USB2HSD cable. See /docs/USB2HSD_cable.jpg and /docs/HowToConnect.jpg
3. Buy two USB to TTL adapters (FT232* from Aliexpress can be used). See /docs/HowToConnect.jpg

Process
1. Disconnect the power from quadlock and remove the cover from the unit
2. Short "J5 boot mode" pins. For MIB2 STD PQ see /docs/Pinout_PQ.jpg. For MIB2 STD ZR see /docs/Pinout_ZR_v1.jpg or Pinout_ZR_v2.jpg
3. Short "iMX6 recovery" pins. For MIB2 STD PQ see /docs/Pinout_PQ.jpg. For MIB2 STD ZR see /docs/Pinout_ZR_v1.jpg or Pinout_ZR_v2.jpg
4. Connect first USB to TTL (FT232) adapter from laptop to quadlock TX/RX/GND pins
5. Connect second USB to TTL (FT232) adapter from laptop to iMX6 TX/RX/GND pins.
6. Connect USB2HSD cable to laptop and yellow HSD of the MIB2
7. On the laptop, start putty and open COM port of first USB to TTL adapter (serial mode, 115200 baud, ANSI)
8. On the laptop, start putty and open COM port of second USB to TTL adapter (serial mode, 115200 baud, ANSI)
9. Power on the quadlock. IMPORTANT! Use power supply 12V min 3A!
10. In putty of the first TTL adapter, you should see the emergency menu:
        1 - continue boot
        2 - Emergency Update
        3 - Unlock JTAG
        4 - reset Emergency Counter
        5 - disable Watchdog
        6 - enable Watchdog
        7 - enable imx6 USB and release imx6 from reset
11. Press 5 (disable Watchdog), then 7 (enable imx6 USB and release imx6 from reset)
12. You will see no output in putty windows. It is ok. But in Windows on the laptop you should hear the USB device connection sound.
That means USB2HSD cable and connection are ok.
13. If your unit has 2 SD slots, run NAV1.bat. On unit with only 1 SD slot, run PLUS1.bat
14. You should see some output in putty connected to iMX6
15. If your unit has 2 SD slots, run NAV2.bat. On unit with only 1 SD slot run PLUS2.bat
16. In the putty of iMX6, you will see that copying of the file started and hear in the Windows a sound of the disconnected USB
17. In iMX6 putty you should see QNX root prompt # 
18. Now you can enter QNX console commands. See /docs/ConsoleCommands.pdf for the reference.


Installation of the Toolbox
1. Unzip https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip to FAT32 formatted SD card
2. Insert card into SD1 slot of the MIB
3. In the console run following commands:
/technisat/scripts/mount_emmc.sh
/technisat/scripts/enable_sd.sh
mount -t dos /dev/sd10t11 /dev/sdcard
ksh /dev/sdcard/install.sh

If "mount -t dos /dev/sd10t11 /dev/sdcard" will print error, enter
ls /dev/sd*
it will show you the list of mount point for SD cards. If you for example will see sd10t12 then do:
mount -t dos /dev/sd10t12 /dev/sdcard
ksh /dev/sdcard/install.sh
