Go Back   xda-developers > Development and hacking > Development and Hacking

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th September 2006, 02:17 PM
Oki's Avatar
Oki Oki is offline
Junior Member
 
Join Date: Jul 2006
Location: Barcelona
Posts: 23
Default Extracting files from a segment with SRPX signature, how?

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:
Quote:
Originally Posted by buzz_lightyear
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.

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
__________________
MiTAC Scoter (Mio A701)
UBoot R48
CE image Oki|025 Crossbow edition [WM5 OS 5.1.422 build 15698.3.5]
GSM KY3,LQ
GPS 3.1.00.12-MitacGSW3EER00-GSW3.2.0-C35ENG
Reply With Quote
Sponsored Links

  #2  
Old 8th September 2006, 02:29 PM
buzz_lightyear's Avatar
buzz_lightyear buzz_lightyear is offline
Moderator
 
Join Date: Jun 2004
Location: Slovakia
Posts: 1,505
Default

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...

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

buzz
__________________
http://buzzdev.net
The home of many interesting things...
Upcoming site testing. You can join the test too
Reply With Quote

  #3  
Old 8th September 2006, 03:05 PM
Oki's Avatar
Oki Oki is offline
Junior Member
 
Join Date: Jul 2006
Location: Barcelona
Posts: 23
Default

It is nice receiving a quick answer here. I have already posted this in your site. ops:

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
__________________
MiTAC Scoter (Mio A701)
UBoot R48
CE image Oki|025 Crossbow edition [WM5 OS 5.1.422 build 15698.3.5]
GSM KY3,LQ
GPS 3.1.00.12-MitacGSW3EER00-GSW3.2.0-C35ENG
Reply With Quote

  #4  
Old 8th September 2006, 03:45 PM
buzz_lightyear's Avatar
buzz_lightyear buzz_lightyear is offline
Moderator
 
Join Date: Jun 2004
Location: Slovakia
Posts: 1,505
Default

Quote:
Originally Posted by Oki
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"
__________________
http://buzzdev.net
The home of many interesting things...
Upcoming site testing. You can join the test too
Reply With Quote

  #5  
Old 15th June 2007, 06:39 AM
jiggs's Avatar
jiggs jiggs is offline
Senior Member
 
Join Date: Jan 2006
Posts: 954
Default For Oki: SRPX signature found on ATOM LIFE

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
__________________
ATOM WM6 AKU0.7.1 (retired)
XDA II TofClock WM6 AKU0.7
Effective XDA-DEV Search Engine
If you don't like what I say, go to THIS
Reply With Quote

  #6  
Old 28th December 2007, 08:19 AM
scorpio16v scorpio16v is offline
Senior Member
 
Join Date: Oct 2006
Posts: 233
Default request for other srpx-tool

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.
May be someone can enlighten me.
Attached a link to Atom Life XIP (If someone is interested)
http://rapidshare.com/files/79622471/LifeXIP.rar.html
__________________
HTC Dream - OČ Germany

Last edited by scorpio16v; 28th December 2007 at 02:48 PM..
Reply With Quote

  #7  
Old 29th December 2007, 05:11 AM
tjlabais's Avatar
tjlabais tjlabais is offline
Senior Member
 
Join Date: Oct 2007
Posts: 210
Default

Quote:
Originally Posted by scorpio16v View Post
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.
May be someone can enlighten me.
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.
__________________
XDA II -> XDA Atom -> Dopod 810 -> Dopod 838 pro -> Samsung i900(16GB)
Ipaq 512 #UUF edition | WM6 v.2.05.03 RUU WITH SKU ID HACK
ROM Kitchen Utensils
Reply With Quote

  #8  
Old 29th December 2007, 04:25 PM
scorpio16v scorpio16v is offline
Senior Member
 
Join Date: Oct 2006
Posts: 233
Default

Quote:
Originally Posted by tjlabais View Post
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.
__________________
HTC Dream - OČ Germany

Last edited by scorpio16v; 29th December 2007 at 04:44 PM..
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:16 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.