We're hiring! Apply Now

Hovatek Forum MOBILE Android Sp flash tool error: status_ufs_err

Sp flash tool error: status_ufs_err

Sp flash tool error: status_ufs_err

Pages (2): 1 2 Next
ProgCore
ProgCore
ProgCore
Enthusiastic Member
7
19-07-2024, 03:59 PM
#1



Hello everyone, 
I’m trying to unbrick xiaomi poco m3 pro 5g (M2103K19PG) by flashing stock rom via sp flash tool. First of all i’m doing auth bypass after that when i’m trying to flash firmware, i’m getting error: STATUS_UFS_ERR (0xC0040060) . What is causing this error, i unable to find any solutions related to this error on google. I’m using windows 10 64x and tried different sp flash tools version with same result
Attached Files
.jpeg
IMG_2325.jpeg
Size: 985.84 KB / Downloads: 7
maxpayne
maxpayne
maxpayne
Intern
4,101
23-07-2024, 09:19 AM
#2
(19-07-2024, 03:59 PM)ProgCore Hello everyone, 
I’m trying to unbrick xiaomi poco m3 pro 5g (M2103K19PG) by flashing stock rom via sp flash tool. First of all i’m doing auth bypass after that when i’m trying to flash firmware, i’m getting error: STATUS_UFS_ERR (0xC0040060) . What is causing this error, i unable to find any solutions related to this error on google. I’m using windows 10 64x and tried different sp flash tools version with same result

If you're using bypass ( https://www.hovatek.com/forum/thread-46342.html ) then you don't need to load an auth file. Also use the default DA in SP flash tool.
Share the error message after these steps.
You could also just flash with mtk client https://www.hovatek.com/forum/thread-40866.html

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
ProgCore
ProgCore
ProgCore
Enthusiastic Member
7
23-07-2024, 05:56 PM
#3
If you're using bypass ( https://www.hovatek.com/forum/thread-46342.html ) then you don't need to load an auth file. Also use the default DA in SP flash tool.
Share the error message after these steps.
You could also just flash with mtk client https://www.hovatek.com/forum/thread-40866.html


Hi, thank you for your reply. You are right about auth file. I just was trying in different ways, but usualy i don’t using it. I tried with different DA files aswell. All the time i’m getting same error. Today i tried on linux, but still, same error. 
Thanks for your suggestions, i’m thinking to  flash by mtkclient, but I only find how to flash separate partitions. But how i can easily flash whole ROM? This method did not use scatter file like SPFT.
This post was last modified: 23-07-2024, 05:59 PM by ProgCore.
justshez
justshez
justshez
Intern
2,428
24-07-2024, 10:30 AM
#4
(23-07-2024, 05:56 PM)ProgCore If you're using bypass ( https://www.hovatek.com/forum/thread-46342.html ) then you don't need to load an auth file. Also use the default DA in SP flash tool.
Share the error message after these steps.
You could also just flash with mtk client https://www.hovatek.com/forum/thread-40866.html


Hi, thank you for your reply. You are right about auth file. I just was trying in different ways, but usualy i don’t using it. I tried with different DA files aswell. All the time i’m getting same error. Today i tried on linux, but still, same error. 
Thanks for your suggestions, i’m thinking to  flash by mtkclient, but I only find how to flash separate partitions. But how i can easily flash whole ROM? This method did not use scatter file like SPFT.

Use MTK Client to disable secure boot then use SP Flash tool to flash

See @ https://www.hovatek.com/forum/thread-46342.html

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
ProgCore
ProgCore
ProgCore
Enthusiastic Member
7
24-07-2024, 01:31 PM
#5



(24-07-2024, 10:30 AM)justshez Use MTK Client to disable secure boot then use SP Flash tool to flash

See @ https://www.hovatek.com/forum/thread-46342.html

Thanks for your reply. As I said before i’m getting error when using sp flash tool. Here i’m attaching the photo.[Image: w0cdbPa.jpeg]
This post was last modified: 24-07-2024, 01:36 PM by ProgCore.
maxpayne
maxpayne
maxpayne
Intern
4,101
25-07-2024, 03:26 PM
#6
(24-07-2024, 01:31 PM)ProgCore ..

Copy your boot.img into the mtkclient folder and run this

Code:

python mtk.py w boot_a boot_a.img
This post was last modified: 25-07-2024, 03:27 PM by maxpayne.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
ProgCore
ProgCore
ProgCore
Enthusiastic Member
7
25-07-2024, 03:36 PM
#7
(25-07-2024, 03:26 PM)maxpayne
(24-07-2024, 01:31 PM)ProgCore ..

Copy your boot.img into the mtkclient folder and run this

Code:

python mtk.py w boot_a boot_a.img

Thanks for suggestion. Is it safe to write boot.img image on boot_a partition? I mean there is different names? Partition on device have a suffix _a in name
ProgCore
ProgCore
ProgCore
Enthusiastic Member
7
25-07-2024, 04:44 PM
#8
(25-07-2024, 03:36 PM)ProgCore Thanks for suggestion. Is it safe to write boot.img image on boot_a partition? I mean there is different names? Partition on device have a suffix _a in name


I checked scatter file and find that boot.img  is written to boot_a partition. So I decided to try what you suggested. First i copied boot.img from FW to mtcklient directory. Then run a command: [python mtk w boot_a boot.img] and got error same as in SPFT: UFS error (0xc0040060). 

[Image: VQ0hicE_d.webp?maxwidth=1520&fidelity=grand]
ProgCore
ProgCore
ProgCore
Enthusiastic Member
7
26-07-2024, 04:30 PM
#9
Also i tried to erase some partitions and get same error, probably erasing means writing operation with zeros. But i can successfully read from partitions. Does it mean UFS memory is somehow protected? It looks like it’s in read only state. Is there some things which i can check?
maxpayne
maxpayne
maxpayne
Intern
4,101
30-07-2024, 09:47 PM
#10
(26-07-2024, 04:30 PM)ProgCore Also i tried to erase some partitions and get same error, probably erasing means writing operation with zeros. But i can successfully read from partitions. Does it mean UFS memory is somehow protected? It looks like it’s in read only state. Is there some things which i can check?

Download and extract this zip [ Login to download]
Do the auth bypass
Load the scatter file, preloader, auth and download agent from the extracted folder and try to flash only preloader

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Pages (2): 1 2 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
Join us
WhTlYt