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

How to enter and re-enter download mode (a5 pro cc) #6

Closed
trainingdummy opened this issue Jul 8, 2023 · 41 comments
Closed

How to enter and re-enter download mode (a5 pro cc) #6

trainingdummy opened this issue Jul 8, 2023 · 41 comments

Comments

@trainingdummy
Copy link

Hello! I'm attempting to install the drivers on a Hisense A5 Pro CC, but I'm having issues booting into Download Mode. Using the button combos, I've only managed to get Safe Mode, Recovery Mode, and a classic reboot. Using ADB, running adb reboot download does a classic reboot, and adb reboot bootloader brings up FastBoot Mode.

FastBoot seems the most promising, but I'm hesitant because of the USB ID mismatch. Instead of getting 1782 4d00 for Download Mode, I'm getting 18d1 4ee0 for FastBoot Mode. Will this still be a valid method? If not, could you provide more detailed instructions for booting into Download Mode specifically? Thanks so much!

@TomKing062
Copy link
Owner

a simple way
adb reboot autodloader
it will wipe splloader and go to fallback download
install libusb driver and change exec_addr to 0x3ee8

@trainingdummy
Copy link
Author

trainingdummy commented Jul 8, 2023

So far it seems to have frozen my phone. Is that normal while it's doing the wipe? Also, where will I change the exec_addr value once the driver is installed? I'm brand new to rooting, so apologies if these are typically simple questions.

Edit: Phone remains unresponsive, even to a hard reboot. Now what?

@TomKing062
Copy link
Owner

zadig

hard reset by key combination 10 second

@trainingdummy
Copy link
Author

The key combination isn't working right now. :/

@TomKing062
Copy link
Owner

it reset from download to download
phone won't boot until splloader write back to device

@trainingdummy
Copy link
Author

trainingdummy commented Jul 9, 2023

How do I write splloader back onto it, then? Since it's powered off, MTP is currently disabled and my computer can't find the phone.

Edit: Tried plugging it into another phone as well, but it had no reaction. They're not even trying to charge each other.

@TomKing062
Copy link
Owner

that is why i don't use autodloader

zadig - list all devices - find 1782 4d00

@trainingdummy
Copy link
Author

Found it. Which driver should I install, libusb-win32 or libusbK?

@trainingdummy
Copy link
Author

I've tried all four options, and none of them seem to do anything for the phone, despite saying successful installation. The only thing I've noticed is that the phone briefly disappears from Zadig if I attempt to reboot the phone with its buttons. It seems to be doing something, I just don't know what it is.

@trainingdummy
Copy link
Author

trainingdummy commented Jul 9, 2023

Here's my log file from installing the libusbK driver, if it helps. USB ID is 1782 4d00, as expected. Still haven't found where to change exec_addr to 0x3ee8, though.
Zadig.log

@TomKing062
Copy link
Owner

readme.txt in tool folder, 3 command

@trainingdummy
Copy link
Author

Cool, got that updated. Only the first one needed to be changed, it seems. Do I need to run something now?

spd_dump exec_addr 0x3ee8 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec write_part uboot uboot-mod.bin erase_part splloader reset

spd_dump exec_addr 0x3ee8 fdl spl-custom.bin 0x5500

spd_dump exec_addr 0x3ee8 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec write_part uboot uboot.bin write_part splloader spl.bin timeout 100000 write_part userdata userdata.bin reset

@TomKing062
Copy link
Owner

run one by one or rename .txt to .bat, double click

@trainingdummy
Copy link
Author

Tried the .bat method, but it doesn't seem to have done much. Seems to have gotten stuck in a loop on the first command. Here's the results.

libusb_control_transfer_ok
CHECK_BAUD FAIL
CHECK_BAUD FAIL
CHECK_BAUD FAIL
...

@trainingdummy
Copy link
Author

Also tried it with the WinUSB driver installed, same results.

@TomKing062
Copy link
Owner

use power+up 10s to reset

@trainingdummy
Copy link
Author

The key combination reset is still not working, though it does enough to make Zadig deselect it.

@trainingdummy
Copy link
Author

As far as I can tell, it's a hard brick, not a soft brick, but Zadig's reaction is giving me hope that it's still recoverable somehow.

@TomKing062
Copy link
Owner

with working FDL1 and FDL2, there is no hard brick on unisoc

driver ok, tool ok, reboot and execute command

@trainingdummy
Copy link
Author

trainingdummy commented Jul 9, 2023

To clarify, I should reboot my computer and then run the .bat file again, or do I need to do anything with FDL1 and FDL2 somewhere as well?

Edit: Seems like the reboot is working so far, it's at least getting further than before.

@trainingdummy
Copy link
Author

It got stuck waiting for a connection on the third command, eventually closed itself out, and now it's back to the same loop as before.

@TomKing062
Copy link
Owner

TomKing062 commented Jul 9, 2023

my fault, reuploaded zip,(mistake a byte in uboot-mod)

reboot phone, execute all command again

@trainingdummy
Copy link
Author

Okay, reinstalled the package and ran things again after changing the first line to 0x3ee8. The .bat file seems to be running properly now, but it hasn't done anything noticeable to the phone. Still can't reboot it. Just to clarify, which driver should I be using, or does it matter? My options are WinUSB, libusb-win32, libusbK, and USB Serial. Thanks again for the help!

@trainingdummy
Copy link
Author

Also, not sure if this helps to narrow down the issue or not, but if I attempt to run the spd_dump.exe file, it begins to give me the recurring CHECK_BAUD FAIL message, and after that, the .bat file commands all do the same until I reboot.

@TomKing062
Copy link
Owner

power up down is 3f48
power up is 3ee8
driver use libusbk on win10+, winusb on win7

@trainingdummy
Copy link
Author

Okay, cool, I'm currently using the libusbK driver. Rebooting with power and up doesn't work, and neither does power, up, and down. Am I missing something there?

I may have also started in the middle of the process by accident, since again, I'm brand new to rooting devices. I started by trying to follow the steps under the Drivers tab, and I'm still not sure if I need to follow all the steps in all the tabs, or only certain ones that vary based on the method I'm using. What steps should I have already finished before trying to do this part?

@TomKing062
Copy link
Owner

the first and second command do the unlock
the third will recover device and wipe userdata
although command are different, #5 shows a successful process

phone won't boot until splloader write back to device

you said device deselect in zadig , that is exactly a reboot, don't expect device screen lightup

@trainingdummy
Copy link
Author

trainingdummy commented Jul 9, 2023

Okay, here's my log history for each command then, since they look a bit different compared to the logs in issue #5.
I assume the unexpected response (0xffffffff) line in the first command is where things are breaking.
ReadmeBat.log

And I'm glad to hear the device is theoretically operating as expected, since I thought we broke something.

To clarify, are these the five commands you're referring to? If so, which file are you editing there?

@TomKing062
Copy link
Owner

unexpected response seems not my part, maybe change usb cable and port.

yes, the guide is spl method, i compiled binaries directly for a5p(cc).

@trainingdummy
Copy link
Author

Ah, I think I found part of my issue. When I reinstalled the tool folder after you updated it, I didn't re-add the chsize and spd_dump files. For what it's worth, I installed the Ubuntu terminal on my Windows 10 laptop in order to run the commands on the home page. I wouldn't expect that to cause any issues, but it's possible that something went wrong there. It's also still throwing the same unexpected response with a new cord and port, even after adding those files back in, so there seems to be something else going on as well.

Also, would those commands act as a replacement to manually editing the compiler with spreadtrum? I haven't figured out the compiler stuff yet at all, so I just wanted to confirm whether I need to or not.

@trainingdummy
Copy link
Author

Hmm, it looks like the Ubuntu commands might not have worked properly. Checking out the spd_dump file, (converted to .txt so I could upload it), and while much of it is illegible, the parts that are human readable seem to indicate an error in the make. Gonna try to build it again and see if it does any better.
spd_dump.txt

@TomKing062
Copy link
Owner

TomKing062 commented Jul 10, 2023

spd_dump exec_addr 0x3ee8 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec write_part uboot uboot.bin write_part splloader spl.bin reset

3rd command without wipe data
curious about result

ubuntu way works on native installation and VMware

@trainingdummy
Copy link
Author

Here's the full result:

C:\Users\tdumm\Downloads\hisense_a5procc_spl>spd_dump exec_addr 0x3ee8 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec write_part uboot uboot.bin write_part splloader spl.bin reset
libusb_control_transfer ok
CHECK_BAUD bootrom
BSL_REP_VER: "SPRD3\0"
CMD_CONNECT bootrom
current exec_addr is 0x3ee8
SEND FDL1
EXEC FDL1
CHECK_BAUD FAIL
CHECK_BAUD FDL1
BSL_REP_VER: "Spreadtrum Boot Block version 1.1\0"
CMD_CONNECT FDL1
KEEP_CHARGE FDL1
SEND uboot-mod.bin
FDL2: incompatible partition
EXEC FDL2
file size : 0x9c7f4
Answer "yes" to confirm the "write partition" command: yes
unexpected response (0xffffffff)
load_partition: uboot, target: 0x9c7f4, written: 0x9c000
file size : 0xefe4
Answer "yes" to confirm the "write partition" command: yes
load_partition: splloader, target: 0xefe4, written: 0xefe4

@trainingdummy
Copy link
Author

trainingdummy commented Jul 10, 2023

Update: The phone is booting now? I've got the Vision OS screen and a backlight on. Translation says it's clearing, so I'm guessing it's doing a factory reset. Progress!

Edit: Yep, it just booted up and it's showing the initial setup steps. Neat.

@TomKing062
Copy link
Owner

TomKing062 commented Jul 10, 2023

seems uboot still has some check not disabled

Answer "yes" to confirm the "write partition" command: yes
load_partition: splloader, target: 0xefe4, written: 0xefe4

wrote spl back
though i think phone is not unlocked yet

@trainingdummy
Copy link
Author

I'm guessing that's due to the Ubuntu method I was attempting earlier. It saved the files in a different spot entirely, so I'm redoing that now.

@trainingdummy
Copy link
Author

Hmm, maybe not. Deleted and recreated the folder, copied the whole folder to my normal directory, and moved the two files into the hisense_a5procc_spl folder, then ran the first command. Now that the phone is working again, I tried it with both 0x3ee8 and 0x3f88 just to confirm, but in both cases, it timed out waiting for connection.

@trainingdummy
Copy link
Author

So, instead of running the Ubuntu commands, what would be the alternate method to create those spd_dump and chsize files?

@trainingdummy
Copy link
Author

Or maybe it is unlocked, actually. I went to toggle on the OEM Unlocking setting again, and it says Bootloader is already unlocked while showing itself toggled on. Is that what I'm looking for?

@TomKing062
Copy link
Owner

congratulation
i will upload fdl1 method as fallback for a5procc later

@trainingdummy
Copy link
Author

Now I'm stuck trying to get Magisk to work. I tried running the first command from the same cmd location at .../hisense_a5procc_spl to get the boot.img file, but it just timed out waiting for connection again.

@TomKing062 TomKing062 changed the title Download Mode vs FastBoot Mode Clarifications How to enter and re-enter download mode (a5 pro cc) Jul 11, 2023
@TomKing062 TomKing062 pinned this issue Jul 11, 2023
@TomKing062 TomKing062 unpinned this issue Aug 20, 2023
4bitFox added a commit to 4bitFox/hisense_a7cc that referenced this issue Apr 26, 2024
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