Closed Belaial closed 1 year ago
Try using python2, e.g. python2 ./rtltool.py ...
Forgot tom test that.... read about that here https://github.com/hn/ginlong-solis/issues/2 now when you mentioned it.
New error,
python2 ./rtltool.py -p /dev/ttyUSB0 gf Traceback (most recent call last): File "./rtltool.py", line 9, in <module> import serial ImportError: No module named serial
Will try and Google that one also, maybe I can solve something myself :)
EDIT
pip install pyserial
mentions it as already installed, but for python 3.10 as I see it, so probably some issues with me having both python 2 and 3, will Google some more.
EDIT2
After some Google it seems not to optimal to try and run both python 2 & 3 under the same Fedora 37, might just spin up a older Debian to dump the stock firmware.
I will close this ticket, the error is on my side for sure and not with the project at all.
Trying to backup the stock firmware fails for me, to the best of my knowledge I have followed the instructions so need to ask for help...
I am quite sure I am able to "Set the MCU to UART boot mode (https://github.com/hn/ginlong-solis/issues/9)" since the stick does not start flashing all it's LEDs, only power LED is lit (if the stick boots regularly all the LEDs light up) if I try and read the stick with
sudo screen /dev/ttyUSB0 115200
I only get a continuous "spamming line" of "????????????" so I guess the baud rate might be wrong in this mode, I have tried 9600 also but that gives nothing.
Once in the mode where only the power LED is lit I try to run
./rtltool.py -p /dev/ttyUSB0 rf 0x8000000 0x800000 solis-s3-firmware-1012f.bin
But I get the following error
./rtltool.py -p /dev/ttyUSB0 rf 0x8000000 0x800000 solis-s3-firmware-1012f.bin File "/home/test/Desktop/solis/./rtltool.py", line 56 print 'Error: Open %s, %d baud!' % (port, baud) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
I am using the rtltool linked in the guide ( https://github.com/pvvx/RTL0B_SDK/blob/master/mkb/rtltool.py )
Any idea what I could be doing wrong? I have also tried with the stick not connected and the same error appears so I guess there is something wrong with my rtltool.py or the arguments I am trying to pass.