SP Flash Tools v6.2208 in Ubuntu 22.04

Adam Mateusz Brożyński - Jun 26 '22 - - Dev Community
  1. Install deps:
$ sudo apt install libqt5serialport5-dev python3-pyqt5.qtserialport
 python3-pyside2.qtserialport qtxmlpatterns5-dev-tools python3-pyside2.qtxmlpatterns libqt5xmlpatterns5-dev libqt5xmlpatterns5
Enter fullscreen mode Exit fullscreen mode
  1. Download source code from spflashtools.com to /tmp and extract it to /tmp:
$ cd /tmp
$ unzip -x ./SP_Flash_Tool_src_6.2208.zip
$ cd SP_Flash_Tool_src_6.2208
Enter fullscreen mode Exit fullscreen mode
  1. Edit /tmp/SP_Flash_Tool_src_6.2208/Build/defines-linux.mk and change qmake path to:
QMAKE                         := /usr/bin/qmake
Enter fullscreen mode Exit fullscreen mode
  1. Compile sources:
$ cd /tmp/SP_Flash_Tool_src_6.2208
$ make
$ cd /tmp/_Output/linux/debug/
$ chmod +x ./SPFlashToolV6.sh
Enter fullscreen mode Exit fullscreen mode
  1. Edit startup script SPFlashToolV6.sh and change library path as follows:
 LD_LIBRARY_PATH=$dirname:/usr/lib/x86_64-linux-gnu/
Enter fullscreen mode Exit fullscreen mode
  1. Start app:
$ ./SPFlashToolV6.sh
Enter fullscreen mode Exit fullscreen mode
  1. Remember to copy app dir /tmp/_Output/linux/debug/ somewhere else, so it won't be removed after reboot.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .