More info
Right, I was not having any luck last night with getting a boot, i think it may have something to do with parttion table, anyway i gave at 4am and hit the sack, this morning i decided to go back to my full dump (the first thing i did once if got the device flashed with the qualcom 8660_msimage.mbn with gives you full emmc access and a diagnostic com port)
anyway i kept going over the partiotn0.mbn file supplied by some of the zips/firmware
i kept saying to my self that is already patched , so i decided to hunt for my original ebr,
well i found it
with you qualcomm device in emmc sd-card mode
do
dd if=fulldump of=ebr-test-dump.bin skip=208801 count=100
count may not be as high as 100, but i wanted to grab extra data and then cut it off using my hex editor,
i then wrote it back to the phone using
dd if=ebr-test-dump.bin of=/dev/sdc seek=208801 bs=512
now my mbr i wrote using the partiton0.mbn file with
dd if=partition0.mbn of=/dev/sdc bs=512 count=1
i was greeted with this from fdisk -l /dev/sdc
this exactly matches the pit file i recovered, i think i now have the information to build a correct rawpartition0.xml,
we wont need the patch0.xml file anymore as we actually have our mbr and ebr files now,
there is a possibility the first 3 partitions could be wrong but after looking at data @ 208801 in the raw backup i think they are right, the location was correct thats for sure.
now i am going to restore dd copies of the sbl etc,
Right, I was not having any luck last night with getting a boot, i think it may have something to do with parttion table, anyway i gave at 4am and hit the sack, this morning i decided to go back to my full dump (the first thing i did once if got the device flashed with the qualcom 8660_msimage.mbn with gives you full emmc access and a diagnostic com port)
anyway i kept going over the partiotn0.mbn file supplied by some of the zips/firmware
i kept saying to my self that is already patched , so i decided to hunt for my original ebr,
well i found it
with you qualcomm device in emmc sd-card mode
do
dd if=fulldump of=ebr-test-dump.bin skip=208801 count=100
count may not be as high as 100, but i wanted to grab extra data and then cut it off using my hex editor,
i then wrote it back to the phone using
dd if=ebr-test-dump.bin of=/dev/sdc seek=208801 bs=512
now my mbr i wrote using the partiton0.mbn file with
dd if=partition0.mbn of=/dev/sdc bs=512 count=1
i was greeted with this from fdisk -l /dev/sdc
Code:
Disk /dev/sdc: 15.8 GB, 15758000128 bytes
1 heads, 32 sectors/track, 961792 cylinders, total 30777344 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 204800 102400 c W95 FAT32 (LBA)
/dev/sdc2 * 204801 205800 500 4d QNX4.x
/dev/sdc3 205801 208800 1500 51 OnTrack DM6 Aux1
/dev/sdc4 208801 208801 0 5 Extended
/dev/sdc5 212992 213991 500 47 Unknown
/dev/sdc6 221184 225279 2048 45 Unknown
/dev/sdc7 229376 234375 2500 4c Unknown
/dev/sdc8 237568 258047 10240 48 Unknown
/dev/sdc9 262144 263143 500 46 Unknown
/dev/sdc10 270336 271335 500 5d Unknown
/dev/sdc11 278528 279527 500 91 Unknown
/dev/sdc12 286720 307199 10240 93 Amoeba
/dev/sdc13 311296 511999 100352 c W95 FAT32 (LBA)
/dev/sdc14 516096 522239 3072 4a Unknown
/dev/sdc15 524288 530431 3072 4b Unknown
/dev/sdc16 532480 538623 3072 58 Unknown
/dev/sdc17 540672 741375 100352 8f Unknown
/dev/sdc18 745472 751615 3072 59 Unknown
/dev/sdc19 753664 759807 3072 5a Unknown
/dev/sdc20 761856 767999 3072 5b Unknown
/dev/sdc21 770048 790527 10240 ab Darwin boot
/dev/sdc22 794624 815103 10240 60 Unknown
/dev/sdc23 819200 839679 10240 94 Amoeba BBT
/dev/sdc24 843776 3911679 1533952 a5 FreeBSD
/dev/sdc25 3915776 8114175 2099200 a6 OpenBSD
/dev/sdc26 8118272 8736767 309248 a8 Darwin UFS
/dev/sdc27 8740864 9005055 132096 a9 NetBSD
/dev/sdc28 9011200 10035199 512000 95 Unknown
/dev/sdc29 10035200 30777343 10371072 90 Unknown
this exactly matches the pit file i recovered, i think i now have the information to build a correct rawpartition0.xml,
we wont need the patch0.xml file anymore as we actually have our mbr and ebr files now,
there is a possibility the first 3 partitions could be wrong but after looking at data @ 208801 in the raw backup i think they are right, the location was correct thats for sure.
now i am going to restore dd copies of the sbl etc,