Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup the stock firmware fails #10

Closed
Belaial opened this issue Jun 12, 2023 · 2 comments
Closed

Backup the stock firmware fails #10

Belaial opened this issue Jun 12, 2023 · 2 comments

Comments

@Belaial
Copy link
Contributor

Belaial commented Jun 12, 2023

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 (#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.

@hn
Copy link
Owner

hn commented Jun 12, 2023

Try using python2, e.g. python2 ./rtltool.py ...

@Belaial
Copy link
Contributor Author

Belaial commented Jun 12, 2023

Forgot tom test that.... read about that here #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants