-
Notifications
You must be signed in to change notification settings - Fork 21
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
ver expected #2
Comments
While I am sure I'm not qualified to debug this. I tried doing the following. diff --git a/spd_dump.c b/spd_dump.c
index 8f1a77e..4781e33 100644
--- a/spd_dump.c
+++ b/spd_dump.c
@@ -1068,8 +1068,11 @@ int main(int argc, char **argv) {
encode_msg(io, BSL_CMD_CHECK_BAUD, NULL, 1);
send_msg(io);
ret = recv_msg(io);
- if (recv_type(io) != BSL_REP_VER)
+ int x = recv_type(io);
+ if (x != BSL_REP_VER) {
+ printf("recv_type(io): 0x%x\n",x);
ERR_EXIT("ver expected\n");
+ }
DBG_LOG("BSL_REP_VER: ");
print_string(stderr, io->raw_buf + 4, READ16_BE(io->raw_buf + 2)); And I tried the same
Even the number of bites is different, it seems. Maybe I'm doing something wrong ? |
Note: I'm not pressing any boot key as I wasn't able to locate any key that makes a difference in the delay time before boot. |
This is what happens if you turn on without holding the boot key or haven't found the right one. |
Means timeout, the device is not responding. Which is normal if you haven't enabled boot mode, because you aren't holding the right boot key. I can find the boot key from the firmware for this phone model, but I didn't find this firmware on the internet. |
Before looking for a boot key, check the chip model. Pull out the battery and connect to USB, if after a few seconds it shows that charging is in progress - this is SC6531E (look for a boot key without a battery), if not - it means SC6531DA (for which it is more difficult to look for a boot key, because you need to pull out the battery every time). I found on the internet that some models require pressing two keys at the same time, but I did not come across such. |
You can use an OTG adapter or a special boot cable to bypass the boot key. |
Thank you for the explanation. Is there a chance you can add this to the README ?
Unfortunately, the fact that it's not available is why I am trying to dump it. However, while looking, I was able to find this website which contains some USB drivers (and I'm assuming that they can be helpful in retrieving the firmware without having to know the boot key). I think I will look into that as a last resort. |
Drivers will not help you avoid the boot key, only a boot cable (or an OTG adapter) can help. This site is telling you bullshit, because they have generic Spreadtrum drivers, not specific to this model. What you can see from the filenames. |
This doesn't seem to be the case. The screen flashes for a split second and gets black again before flashing again and so on. I'm assuming this is how SC6531DA behaves.
I did exactly that this time and was able to determine the boot key (which is the number "1").
Awesome! Thank you. |
These drivers are for use with Spreadtrum's flashing tools, which will also require you to know the boot key or use a boot cable. |
I would like to learn more about how this is done if possible. |
I'm not sure about this, the SC6531DA just won't connect via USB when plugged in without a battery. I don't remember if the screen is flashing.
You can find |
This is explained in the Readme:
|
Okay, thank you. |
I tried running this on Energizer Energy E12 (which has a Spreadtrum SC6531E according to the specifications). and I got
ver expected
as an output.The output seems to be from this ERR_EXIT.
Does this mean that the chipset in the specification page is not the correct one ?
If I understand correctly, this error message is printed if the data received is not in the correct format ?
I should note that I didn't try any other firmware dumper other than this. I will comment here if I ever did.
The text was updated successfully, but these errors were encountered: