-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
[MT8512/MT8113] stage2 mmc_write command not working #1332
Comments
Sounds stupid, but adding a delay before rebooting the device might be worth a shot. We had similar issues with the Fire TV Stick 4K, and the delay seemed necessary to let the data flush to the eMMC. |
Hi, thanks for reporting, but I have let the device wait for a very long time before resetting after the write command and it didn't seem to do much either. Thanks anyway! |
I see. If you can dump the GPT, you could create a scatter file and try using SP Flash Tool's Write Memory option with the generic DA. Just make sure to run mtkclient's payload option first to disable DAA. |
DAA isn't enabled on the chip according to mtkclient |
Preloader usually lies about DAA, SBC, and SLA. On all my Amazon devices, it claims they're off, but in reality, they're enabled. |
From what we have discovered, secure boot might be disabled, but we know it at least checksums the bl2 image upon loading and it refuses to boot if the sum is not a match. |
Hi,
I have bricked my Kobo Libra Colour (MT8113/MT8512 SoC) by writing a modified bl2 image to flash thinking that SBC/DAA were disabled. It turns out it was not the case, even if mtkclient said they were:
I am now stuck at these glorious lines from the brom:
I have the exact same issues as @enthdegree when it comes to stage2 preloader reading (probably because the preloader is stored in flash): #1289
I am able to boot MTK_DA_V5.bin successfully up until the
DA verify pass and jump to DRAM
step, after which it hangs. I get the same[LIB]: No emmc info, can't parse existing preloaders.
errors as enthdegree.I have since been (quite desperately) searching for solutions, since I only need to write one byte back for the BL2 image to be valid against its signature once again - and for my device to be unbricked. I discovered that there was some
msdc_pio_write
function in this file:mtkclient/src/stage2/drivers/sd.c
Lines 145 to 226 in e80f288
stage2.py
, maybe also because of what I am experiencing. I tried to send the following commands over USB serial:Of course,
hex_data
(512 bytes) has been modified for this issue just in case but I think you get the idea.I can see that it is successfully receiving the data I want to write:
But, when I reboot, none of it has been preserved and it just seems like it has never written anything to the MMC (the devices still puts itself in DL mode in BROM and I am able to verify with
that the sector I wanted to write to was not touched at all).
Any ideas why this doesn't work? I joined to this issue the MTK DA logs which say that boot area write protection isn't enabled either.
Thanks a lot for your time! :)
mtk_da_logs.txt
The text was updated successfully, but these errors were encountered: