PDA

View Full Version : Extracting files from a segment with SRPX signature, how?


Oki
8th September 2006, 02:17 PM
I am trying to extend the bepe's kitchen in order to include support for Mio A701 and Mio A700 (Scoter platform). Some of you are already aware of it.

Our DOC architecture is quite simple:
- DOC's static RAM: G3/G4 Initial Program Loader
- DOC BDK0 Binary partition that keeps the Bootloader
- DOC BDK1 Binary partition that keeps the Microsoft Initial Program Loader (also called SPL over these forums, isn't it)
- DOC BDTL0 TrueFFS partition that keeps the WM5. This partition is exactly 50MB (0x3200000 bytes). It is a MSFLSH50 image containing a 0x400 bytes header followed by 4 subpartitions.
- DOC BDTL1 TrueFFS partition that keeps the user data in a FAT32 filesystem.

BDTL0 has 4 subpartitions:
- Part00 Starts at offset 0x400 inside the MSFLSH50 image. Unknown format, it has 'SRPX' signature at offset 0x40.
- Part01 Unknown format, it has 'SRPX' signature at offset 0x40.
- Part02 IMGFS segment.
- Part03 segment with an empty FAT16 filesystem used for padding the size of 50MB required for the BDTL0_MSFLSH50 partition.


I can extract everything but those files stored in Part00 and Part01. IMGFS can be easily extracted and built with the IMGFS_tools by Mamaich.

In HTC devices the kernel and critical drivers are stored in 2 XIP chains, but these files do not seem to be XIP chains since they are compressed or encrypted. Thew SRPX signature is not very common, Buzz Lightyear talked about it here (http://forum.xda-developers.com/viewtopic.php?p=146526&highlight=srpx#146526):
hi willem,
hmm... I know, it's a problem...
wm5 compression signature is 'SRPX' (as far as I remember coz i'm 1 month away from it). it's XPRS other way around. XPRS is some standard compression. I guess it is also included in cecompress.dll from CEPB5.
...just a thought... maybe a bit of help...

is it also used in smartphones with wm5?

thanx
buzz
After that no one else has talked about this kind of segments or SRPX signature.

If you want to take a look at the unknown segments/subpartitions of the MSFLSH50 WM5 image then you can download a dump of Part00 and Part01 from here (http://www.megaupload.com/?d=R5BLY7FR).

I need to extract and insert files into this segments, can you help me with any related information about it please?

Thanks a lot,
Oki

buzz_lightyear
8th September 2006, 02:29 PM
Hi Oki,
where did yo dig that post about SRPX out, please :o)))
Anyway, i still have no info about that, but i'm wondering, what would you like to put inside...

Microsoft Initial Program Loader (also called SPL over these forums, isn't it)
:o))) it actually is SPL

buzz

Oki
8th September 2006, 03:05 PM
It is nice receiving a quick answer here. I have already posted this in your site. :oops:

It seems that Microsoft calls the SPL as MS IPL. It does not matter, in the MiTAC world bootloader is known as UBoot and has a nice menu for selecting the part that you want to flash so we only need to create a customized MSFLSH50 image and that's all, the OS is upgraded.

I want to create a customized image for my device so I need to apply the certmod.dll patch described by mamaich. Any other solution?

The kernel file, some critical DLLs and boot.rgu among other important files are in those two segments, so in order to create a customized OS I will need to access these files and replace them.

Let me ask you where did you found the SRPX signature? Is there any other device with this image format?

Thanks,
Oki

buzz_lightyear
8th September 2006, 03:45 PM
It is nice receiving a quick answer here. I have already posted this in your site. :oops:


:o)))) maybe because i was on this site, when i've got notification...

But i first answered at buzzdev.net :o))))) LOL

"Hi Oki,

so SRPX... :o)) i saw that very long time ago in some Himalaya WM5 ROM. i really can't remember, where exactly.

all i know is, that XPRS is a kind of compression, so i thought that time, that XPRS is actually SRPX other way around.

Then, as other things poped up, i somehow forgot about that totally :o))

CU
buzz"

jiggs
15th June 2007, 06:39 AM
Hello Oki,

The XDA Atom Life has MSFLASH50 format as well as SRPX signature for the kernel part. I was wondering what is the start of the segment for the MSFLASH50...? I couldn't seem to get msflshtool.exe to work with this ROM. It keeps on saying not a MSFLASH50 format.

BTW, your Scoter Kitchen tools worked on XDA ATOM, we are trying to port the files from XDA ATOM LIFE into our ROM... Fortunately you have covered this format so we can extract its contents...

Jiggs

scorpio16v
28th December 2007, 08:19 AM
Hello, and sorry for digging in this old thread. :)
I have a XDA Comet aka Atom Life and the XIP is SRPX compressed like Jiggs described.
I'm trying to update the Kernel.
I use the SRPX tools from Scoter kitchen. With MSFLSHTOOL i get 2 XIP and 1 imgfs part.
I use SRPX2XIP for the second part and the XIP is 1728 KB.
If I change back with XIP2SRPX the new part is only 1442 KB.
So I write back this part to my ROM image and the image doesn't boot.
Is this an error from SPRX tools or did I miss something ?
I can't find an other tool for that job. Google gives only a hint to "sushi-repeat-containing protein" but i guess that's not the information i realy need.:D
May be someone can enlighten me. :o
Attached a link to Atom Life XIP (If someone is interested)
http://rapidshare.com/files/79622471/LifeXIP.rar.html

tjlabais
29th December 2007, 05:11 AM
Hello, and sorry for digging in this old thread. :)
I have a XDA Comet aka Atom Life and the XIP is SRPX compressed like Jiggs described.
I'm trying to update the Kernel.
I use the SRPX tools from Scoter kitchen. With MSFLSHTOOL i get 2 XIP and 1 imgfs part.
I use SRPX2XIP for the second part and the XIP is 1728 KB.
If I change back with XIP2SRPX the new part is only 1442 KB.
So I write back this part to my ROM image and the image doesn't boot.
Is this an error from SPRX tools or did I miss something ?
I can't find an other tool for that job. Google gives only a hint to "sushi-repeat-containing protein" but i guess that's not the information i realy need.:D
May be someone can enlighten me. :o
Attached a link to Atom Life XIP (If someone is interested)
http://rapidshare.com/files/79622471/LifeXIP.rar.html

Did you do a hex comparison between old and new XIP? you could try dumping and rebuilding first without modifications, and see the difference. vivi was able to sort this thing with his asus p525.

scorpio16v
29th December 2007, 04:25 PM
vivi was able to sort this thing with his asus p525.

Thank you for the hint.
After comparing the Comet-, the Atom Life- and the rebuilded file, I'll try to hexedit the beginning and fill the end of the rebuilded file to match the right filesize.
Will report later.

edit:
after simply cosmetical changes with a hexeditor the files are identical.:)