DEV Community

Adam Mateusz Brożyński
Adam Mateusz Brożyński

Posted on

SP Flash Tools v6.2208 in Ubuntu 22.04

  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.

Top comments (2)

Collapse
 
maruf2183 profile image
Maruf Raju

not understand this line
$ cd /tmp/SP_Flash_Tool_src_6.2208
$ make
$ cd /tmp/_Output/linux/debug/
$ chmod +x ./SPFlashToolV6.sh

I tryied ./make.sh but not worked showed permission denied

Collapse
 
joshuarith profile image
MrRith

make is a command that you should have installed in your system, try installing build-essentials by using sudo apt install build-essentials, that should give you the make command (if not, install cmake and make with apt)