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 (4)

Collapse
 
cm_0a6c9c875c31052ed5f610 profile image
CM

Edit /tmp/SP_Flash_Tool_src_6.2208/Build/defines-linux.mk
What is " /Build/defines-linux.mk " ?
Is that a directory I have to make?

L:/tmp/SP_Flash_Tool_v6.2228_Linux$ ls
99-ttyacms.rules Credits.txt 'How to Use.url' libflash.1.0.0.so libsla_challenge.so 'Official Website.url' plugins read_efuse.xml SPFlashToolV6.sh
console_mode.xsd Driver lib libimagechecker.1.0.0.so modemmanagercmd.sh option.ini readback_ui_bak.xsd SPFlashToolV6 write_efuse.xml

and change qmake path to:

Collapse
 
ordigital profile image
Adam Mateusz Brożyński

There is a Build folder with this file in sources:
Image description

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)