I believe there is still some work left to be done, as the method is not final.
Hi All,
It's come to my attention that not all the hexloaders are the same for the 8660, ive seen different behavior in the wild from the two different loaders i have,
I've attached them in case anyone want to try. I renamed them based on the strings found inside, each one has a different build.
Also it seems that the SBL1 of the loader can be jammed and then controled more than we knew, the emmcrecover tool only make a small amount of use of this loader, and it's triggered on every boot, not just when the bootloaders fail. I am trying to get my hands on the proof and copies of the loaders source via a contact in china.
Also in the spirit of sharing, i've also attached a few tools for digging into the partitions, any one who has used util-linux or util-linux-ng will know the tools, all i've done is compiled them statically for arm (arm5 but runs on arm5 to 11).
I hope this will further the work done here.
I suggest all users who have a copy of the various hex files floating around just run the linux command strings on the file and note it's build details
example below
Code:
darkspr1te@devbox:~/Downloads/Samsung/hexloaders$ strings M8660AAABQNLGM313142-EMMCBLD.HEX | grep "jos_bus\.c"
*D:\Builds\M8660AAABQNLGM313142\modem_proc\core\wiredconnectivity\hsusb\core\src\jos\jos_bus.c
the tools i've included are
lsblk
sfdisk
partx
blkid
I've found these tools to be very handy in my current work, sfdisk most of all, in my debrick system it's able to create a complete partition table on the device while in SD card mode (8660_msmimage) from a previous copy, I dd's null over the entire partition beforehand so that now partition table info was left.
a quick
cat part-e160l-.txt | sfdisk /dev/sdb
and i had my partition, no messing with partition0.bin or the like.
/offtopic
I am also currently working on a program that will grab copies of the table, loaders (currently only samsung with root) but i hope to expand that support and include a export to QPST option as I have almost nailed down the .xml format (key is the partition name assigns it's type, not it's LABEL)
But first, I have to finish learning Java and my Pascal/COBOL background keeps getting in the way.
:laugh:
darkspr1te