Welcome to the Rockbox Technical Forums!
Quote from: pmp4 on August 07, 2022, 09:14:21 AMI found this url with "Spreadtrum Research Download Tool" source code (2.9.7007 version)That's some outdated version. Latest version can be downloaded from official web-site https://spdflashtool.com/category/research-tool. Tutorial how to use it: https://spdflashtool.com/tutorial/use-spd-research-toolI also saw instruction how to flash FullFlash .bin file with this tool (by default it requires .pac) https://4pda.to/forum/index.php?showtopic=625677&st=20#entry61083373Though it's in Russian (Краткий гайд по прошивке китайских телефонов на базе SpreadTrum SC6531) - let me know if you have any translation troubles.
I found this url with "Spreadtrum Research Download Tool" source code (2.9.7007 version)
Yeah, but the version I posted has the source code, unlike other last versions.
My current target is modify res.bin, recompress (using bzpwork) and write using UniFlash in .bin format.
Quote from: pmp4 on August 13, 2022, 11:13:44 AMYeah, but the version I posted has the source code, unlike other last versions.Latest source for all their tools is also posted on their website https://spdflashtool.com/source/spd-tool-source-codeQuote from: pmp4 on August 13, 2022, 11:13:44 AMMy current target is modify res.bin, recompress (using bzpwork) and write using UniFlash in .bin format. Ok but it seems Bilgus has troubles writing using UniFlash. So maybe ResearchTool would still be required.
Maybe write address is different, I dont know.
QuoteMaybe write address is different, I dont know.this is my guess as well, as I get to 'FDL running, may start interacting with flash memory'but a timeout once the write flash command is sentIve tried all three 6531A bins so at least none of them have bricked the device
fdl is just for read the flash and another values (kind of cpu and so on), but write flash can be done just with the boot mode, without fdl.
uniflash.py flash ./oldbin.bin -wf -nr -s 0x80000003 -t 6531A_norss
I might have to dig out a windows machine to try the spreadtrum flasher or my dev machine so I can run a windows vmI get to FDL running, may start interacting with flash memorywith two of the bins but the norss one never gets to that pointI read through your instructions and already had an incantation but unfortunately they never get past the command to enable flash writeCode: [Select]uniflash.py flash ./oldbin.bin -wf -nr -s 0x80000003 -t 6531A_norss
But the dump (read) flash command works in your machine?
Hm.. Reading https://chronovir.us/2021/12/18/Opus-Spreadtrum/ - 0x80000003 seems shouldn't be used when writing. It's some kind of marker and not real address...Just to iterate all possible cases you should try to rename working fdl files to `sc6530_something` so the following lines are executedhttps://gitlab.com/suborg/uniflash/-/blob/master/uniflash.py#L255-256So try something like renaming 6531A_Write_Full_Flash_1.bin -> sc6530_wff_0x34000000_single.binuniflash.py flash ./oldbin.bin -t sc6530_wfforuniflash.py flash -wf ./oldbin.bin -t sc6530_wff
Page created in 0.07 seconds with 18 queries.