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

Hisense A7CC sdp_dump error #5

Closed
wood1978 opened this issue Jul 6, 2023 · 6 comments
Closed

Hisense A7CC sdp_dump error #5

wood1978 opened this issue Jul 6, 2023 · 6 comments

Comments

@wood1978
Copy link

wood1978 commented Jul 6, 2023

My A7CC USB ID "0x1782 0xd001" different with info/spreadtrum_flash-main_exec/spd_dump.c line:1028 "0x1782, 0x4d00". So get the below error:
D:\hisense_a7cc>spd_dump exec_addr 0x3f88 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec read_part teecfg 0 1M teecfg.bin read_part trustos 0 6M tos.bin read_part sml 0 1M sml.bin erase_part splloader reset
Waiting for connection (30s)
libusb_open_device failed

After changing the source code USB ID:
//device = libusb_open_device_with_vid_pid(NULL, 0x1782, 0x4d00);
device = libusb_open_device_with_vid_pid(NULL, 0x1782, 0xd001);

Get error:
$ ./spd_dump exec_addr 0x3f88 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec read_part teecfg 0 1M teecfg.bin read_part trustos 0 6M tos.bin read_part sml 0 1M sml.bin erase_part splloader reset libusb_control_transfer ok usb_recv failed : LIBUSB_ERROR_PIPE

PS: source code compiler with Cygwin environment.

Next will try spreadtrum_flash project suggest to rebuild:
https://github.com/ilyakurdyukov/spreadtrum_flash

@wood1978 wood1978 changed the title Hisense a5 pro CC Hisense A7CC sdp_dump error Jul 6, 2023
@wood1978
Copy link
Author

wood1978 commented Jul 6, 2023

USB ID different because into recovery mode not download mode.

Follow below step can into download mode:

  1. Power off the device.
  2. Run Zadig on PC and enable "Options->Log Verbosity->info".
  3. Plug in usb cable between PC and phone then wait for the screen to show charging battery.
  4. Push power + up + down at same time.
  5. After Zadig log shows find a new device and install the driver.
  6. After driver install run command in readme.txt.

@wood1978 wood1978 closed this as completed Jul 6, 2023
@wood1978
Copy link
Author

wood1978 commented Jul 6, 2023

Below list out unlock success process:
D:\hisense_a7cc>spd_dump exec_addr 0x3f88 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec read_part teecfg 0 1M teecfg.bin read_part trustos 0 6M tos.bin read_part sml 0 1M sml.bin erase_part splloader reset
libusb_control_transfer ok
CHECK_BAUD bootrom
BSL_REP_VER: "SPRD3\0"
CMD_CONNECT bootrom
current exec_addr is 0x3f88
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
dump_partition: teecfg+0x0, target: 0x100000, read: 0x100000
dump_partition: trustos+0x0, target: 0x600000, read: 0x600000
dump_partition: sml+0x0, target: 0x100000, read: 0x100000
Answer "yes" to confirm the "erase partition" command: yes

D:\hisense_a7cc>chsize teecfg.bin

D:\hisense_a7cc>chsize tos.bin

D:\hisense_a7cc>chsize sml.bin

D:\hisense_a7cc>spd_dump exec_addr 0x3f28 fdl fdl1-boot.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 fdl teecfg.bin 0x9401fe00 fdl tos.bin 0x9403fe00 fdl sml.bin 0x93fffe00 exec
libusb_control_transfer ok
CHECK_BAUD bootrom
BSL_REP_VER: "SPRD3\0"
CMD_CONNECT bootrom
current exec_addr is 0x3f28
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
SEND teecfg.bin
SEND tos.bin
SEND sml.bin
usb_recv failed : LIBUSB_ERROR_IO

D:\hisense_a7cc>spd_dump exec_addr 0x3f28 fdl fdl1-dl.bin 0x5500 fdl uboot-mod.bin 0x9efffe00 exec erase_part uboot_log write_part splloader spl.bin timeout 100000 write_part userdata userdata.bin reset
libusb_control_transfer ok
CHECK_BAUD bootrom
BSL_REP_VER: "SPRD3\0"
CMD_CONNECT bootrom
current exec_addr is 0x3f28
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
Answer "yes" to confirm the "erase partition" command: yes
file size : 0xe854
Answer "yes" to confirm the "write partition" command: yes
load_partition: splloader, target: 0xe854, written: 0xe854
file size : 0x2413c
Answer "yes" to confirm the "write partition" command: yes
load_partition: userdata, target: 0x2413c, written: 0x2413c

@Xinon232
Copy link

Xinon232 commented Jul 6, 2023

Would this be applicable to the Hisense A5 Pro CC as well?

@wood1978
Copy link
Author

wood1978 commented Jul 7, 2023

Would this be applicable to the Hisense A5 Pro CC as well?

Sorry, Only can confirm A7CC work.

@xucongyong
Copy link

Push power + up + down at same time.
not into download mode

@wood1978
Copy link
Author

wood1978 commented Aug 1, 2023

Need to check the driver install first then you will see the device in download mode by Zadig log.

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

3 participants