Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,752 Members 39,728 Now Online
XDA Developers Android and Mobile Development Forum

IMGFSFromDump-TURBO v2.4.0 with file prefetching and multicore compression (19/09/10)

Tip us?
 
airxtreme
Old
(Last edited by airxtreme; 19th September 2010 at 04:47 AM.)
#1  
Retired Recognized Developer - OP
Thanks Meter 18
Posts: 1,119
Join Date: Feb 2008
Lightbulb IMGFSFromDump-TURBO v2.4.0 with file prefetching and multicore compression (19/09/10)

Yes, it's actually just as awesome as it sounds: multicore-multithreaded compression allows it to compress up to 2x faster on dualcores and 4x faster on quadcores but it's not just that, it also does realtime file prefetching while compressing, allowing imgfs to be built much faster even on singlecore machines and without causing any additional hard-drive overhead. The v2.2.2 version also allows selecting the compression (LZX/XPR/None) trough a command switch, overriding the compression setting dictated by the source imgfs file and finally removing the need of having to hexedit the original imgfs file to change compression type.

Remember to fasten your seat belts and turn off any electronic gadget, it's so fast your PC chassis could actually take off!

And remember, *use this at your own risk* I don't take responsibilities, especially if your computer chassis really takes off .

Command line syntax
ImgfsFromDump.exe [-compression <LZX/XPR/None>] [-freespace <NumberOfMegaBytes>] [-empty] [-verbose] <imgfs-in.bin> <imgfs-out.bin>

All parameters but the input and output file are optional so you can use the tool in ervius' and other kitchens without having any issue just by replacing the imgfsfromdump.exe file.

NOTE: Oskitchen already comes with customized versions of this tool so please do not replace the one oskitchen comes with.

Changelog
Version 2.1: faster and uses less ram

Version 2.2.2 version: allows selection of compression (also allows building ROMs with no compression and removes the 256mb IMGFS file size limit)

Version 2.2.3 version: compiled statically so it doesn't need any c++ runtime to work

Version 2.3.0 version: now more stable, no more hanging with None compression (I had it running in batch mode for days and it never gave an issue with it or other compressions), allows setting the free space (if you manage to use imageupdate) and allows creating empty imgfs.bin without requiring a dump folder (useful for reducing payloads)

(NEW!) Version 2.4.0TEST: implemented native support for unicode file names (used in stock Oboe ROMs).
 
jagan2
Old
#2  
jagan2's Avatar
Recognized Developer
Thanks Meter 174
Posts: 1,300
Join Date: Jul 2009

 
DONATE TO ME
Iam happy that iam replying first to this thread.

Hmm i have downloaded that and wanna see if that really that fast in my dual core pc.
 
WoZZeR999
Old
#3  
Senior Member
Thanks Meter 38
Posts: 343
Join Date: Dec 2008
Location: US, Michigan
Flashing with the new imgfsfromdump. I went from 1 minute and 3 seconds for a LZX compression to just 21.45 seconds. I did have to use a different cecompr_nt.dll then the one you supplied for lzx compression to work, but other than that, nice work!
pongothemagnificent Old
#4  
Guest
Thanks Meter 0
Posts: n/a
Working like a charm on my kitchen, thanks mate.
 
texture
Old
#5  
Senior Member
Thanks Meter 12
Posts: 528
Join Date: Mar 2008
cecompr_nt.dll in the zip file support both LZX and XPR compression or not?
 
airxtreme
Old
(Last edited by airxtreme; 4th January 2010 at 12:01 PM.)
#6  
Retired Recognized Developer - OP
Thanks Meter 18
Posts: 1,119
Join Date: Feb 2008
Quote:
Originally Posted by texture View Post
cecompr_nt.dll in the zip file support both LZX and XPR compression or not?
It shouldn't since it's an old version, just overwrite it with a more recent one.
 
SOHKis
Old
#7  
SOHKis's Avatar
Senior Member
Thanks Meter 152
Posts: 569
Join Date: Apr 2008
Location: VA
seems to be working great so far for me, thanks for the share airxtreme!
 
twopumpchump
Old
#8  
twopumpchump's Avatar
Recognized Developer / Retired Senior Moderator
Thanks Meter 355
Posts: 4,044
Join Date: Aug 2008
Location: Kentucky

 
DONATE TO ME
just tried this and damn it builds a rom fast
 
kidoucorp
Old
#9  
kidoucorp's Avatar
Retired Forum Moderator
Thanks Meter 26
Posts: 406
Join Date: Apr 2009
Location: Barcelona
Wow, amazing

Really improve the build process

Thanks for this
Samsung Galaxy SIII
Samsung Galaxy Tab 10.1 (P7510)
 
Mars.C
Old
#10  
Member
Thanks Meter 0
Posts: 32
Join Date: Jul 2009
THx Share

Tags
chassis, imgfsfromdump, multicore, multithread, taking off
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more

Create a Simple Custom Launcher from Scratch

When you are starting your journey intoany sort of development, it’s never easy at the … more

MediaTek Continues Steps Towards Being Developer-Friendly

Not too long ago MediaTek was very closed off towards the mobile developer … more