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

Loader for Motorola XT2117-1 #103

Open
joebobbio opened this issue Oct 17, 2024 · 14 comments
Open

Loader for Motorola XT2117-1 #103

joebobbio opened this issue Oct 17, 2024 · 14 comments

Comments

@joebobbio
Copy link

joebobbio commented Oct 17, 2024

Hi,

I'm looking for an EDL loader for my Motorola XT2117-1. I've found that there's a loader for a different variant of this device, the XT2117-4. I tried looking around for it myself, but didn't find much (I've never done this before.)

Any assistance would be great !

HWID:              0x0014d0e102e80000 (MSM_ID:0x0014d0e1,OEM_ID:0x02e8,MODEL_ID:0x0000)
CPU detected:      "SDM662"
PK_HASH:           0xabbcc86fe393b13d59e2a2ec944af26da3fa3d4b2a1ccd2fb383c73e0fffc30dc1736dcb2752e955a61421c349974f90
Serial:            0x7e458e73

sahara
sahara - [LIB]: Couldn't find a loader for given hwid and pkhash (0014d0e102e80000_abbcc86fe393b13d_[FHPRG/ENPRG].bin) :(
@RenateUSB
Copy link

Here there is only https://github.com/bkerler/Loaders/blob/main/lenovo_motorola/0000000002e80000_abbcc86fe393b13d_fhprg.bin and https://github.com/bkerler/Loaders/blob/main/lenovo_motorola/001360e102e80000_5adc6039dcb297d4_fhprg.bin. Try them explicitly. There is also https://mirrors.lolinet.com/firmware/lenomola/ but you will have to extract the "programmer" out of "single" in "blankflash". And all Motorola released Firehose loaders are restricted in what areas of flash you can access.

@joebobbio
Copy link
Author

Thanks for the quick reply :)
I'll give these a shot in a little while and report my findings. In advance though, how would I extract the programmer from the blankflash files ?

@RenateUSB
Copy link

Erm, I should get around to writing a utility, but if you give me a link to the blankflash or tell me the year and codename (like 2021 borneo) I'll just do it.

@joebobbio
Copy link
Author

joebobbio commented Oct 18, 2024 via email

@RenateUSB
Copy link

If it's 2021 borneo that first loader should work. It's what I use on mine. Just specify it explicitly.

@joebobbio
Copy link
Author

I tried both loaders and get this message:

Capstone library is missing (optional).
Keystone library is missing (optional).
Qualcomm Sahara / Firehose Client V3.60 (c) B.Kerler 2018-2022.
main - Using loader 001360e102e80000_5adc6039dcb297d4_fhprg.bin ...
main - Waiting for the device
main - Device detected :)
sahara - Protocol version: 2, Version supported: 1
main - Mode detected: sahara
sahara - 
------------------------
HWID:              0x0014d0e102e80000 (MSM_ID:0x0014d0e1,OEM_ID:0x02e8,MODEL_ID:0x0000)
CPU detected:      "SDM662"
PK_HASH:           0xabbcc86fe393b13d59e2a2ec944af26da3fa3d4b2a1ccd2fb383c73e0fffc30dc1736dcb2752e955a61421c349974f90
Serial:            0x7e458e73

sahara - Protocol version: 2, Version supported: 1
sahara - Uploading loader 001360e102e80000_5adc6039dcb297d4_fhprg.bin ...
sahara - 64-Bit mode detected.
sahara - Firehose mode detected, uploading...
sahara
sahara - [LIB]: Error: Cannot receive specified number of program headers
Connection detected, quiting.

@RenateUSB
Copy link

Nope, that second one will not work.
(Although the stupid nonsensical error reporting doesn't help.)

Clean reboot, only use the first one.
https://github.com/bkerler/Loaders/blob/main/lenovo_motorola/0000000002e80000_abbcc86fe393b13d_fhprg.bin

Only recently did I learn exactly how SBL versioning works.
My phone is SBL 1 so it will only work with the above.

@joebobbio
Copy link
Author

joebobbio commented Oct 19, 2024 via email

@RenateUSB
Copy link

The first one is SBL=1 and is identical to the one in https://mirrors.lolinet.com/firmware/lenomola/2021/borneo/blankflash/blankflash_borneo_usc_RZBS31.Q2-143-27-11-1.zip which despite its name is a 7zip file.

The second one is SBL=0

So, the question is, what is the SBL version of your device?

Unfortunately this Python stuff is patched not to ask.

Find on your computer line 222 like here: https://github.com/bkerler/edl/blob/master/edlclient/Library/sahara.py#L222
Edit line 222 delete the # and the spaces until this single line aligns with the next if.
Edit line 236 to say >= 2.0
Delete line 236 with the 3 x quote
Delete line 245 with the 3 x quote

Your line numbers may not be the same if you don't have the latest.

Clean reset, try to load the first loader.

@joebobbio
Copy link
Author

I did the patch, and it says my SBL version is 0xNone with the first loader.

Capstone library is missing (optional).
Keystone library is missing (optional).
Qualcomm Sahara / Firehose Client V3.60 (c) B.Kerler 2018-2022.
main - Using loader 0000000002e80000_abbcc86fe393b13d_fhprg.bin ...
main - Waiting for the device
main - Device detected :)
sahara - Protocol version: 2, Version supported: 1
main - Mode detected: sahara
sahara - 
------------------------
HWID:              0x0014d0e102e80000 (MSM_ID:0x0014d0e1,OEM_ID:0x02e8,MODEL_ID:0x0000)
PK_HASH:           0xabbcc86fe393b13d59e2a2ec944af26da3fa3d4b2a1ccd2fb383c73e0fffc30dc1736dcb2752e955a61421c349974f90
Serial:            0x7e458e73
SBL Version:       0xNone

sahara - Protocol version: 2, Version supported: 1
sahara - Uploading loader 0000000002e80000_abbcc86fe393b13d_fhprg.bin ...
sahara - 64-Bit mode detected.
sahara - Firehose mode detected, uploading...
sahara
sahara - [LIB]: Error: Cannot receive specified number of program headers
Connection detected, quiting.

@RenateUSB
Copy link

Thanks for trying.
We'll have to mark this up as ambiguous.
I should have posted you a patched file instead.

@joebobbio
Copy link
Author

joebobbio commented Oct 19, 2024 via email

@RenateUSB
Copy link

I sent you an email.

@joebobbio
Copy link
Author

joebobbio commented Oct 20, 2024 via email

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