Would the LG G4 Fare Well With The Snapdragon 808?

The LG G4 has a lot to prove, given that last year’s LG G3 was among the best … more

CyanogenMod 12.1 for Android One

Android One devices once again got a pretty stable release of Android 5.1. XDA Recognized … more

DexPatcher: Patch Android APKs Using Java

You’ve probably seen or installed modified applications, be it a patched dialer for your … more

Is Cloud Storage Ready to Replace External Storage?

With more and more OEMs ditching SD cards on their flagships, cloud storage is … more
Post Reply Subscribe to Thread Email Thread

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

3rd January 2010, 06:02 PM |#1  
OP Retired Recognized Developer
Thanks Meter: 19
1,119 posts
Join Date:Joined: Feb 2008
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.

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).
Last edited by airxtreme; 19th September 2010 at 04:47 AM.
3rd January 2010, 06:08 PM |#2  
jagan2's Avatar
Recognized Developer
Thanks Meter: 196
1,310 posts
Join Date:Joined: 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.
4th January 2010, 03:00 AM |#3  
Senior Member
US, Michigan
Thanks Meter: 38
343 posts
Join Date:Joined: Dec 2008
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!
4th January 2010, 06:59 AM |#4  
Thanks Meter: 0
n/a posts
Working like a charm on my kitchen, thanks mate.
4th January 2010, 08:09 AM |#5  
Senior Member
Thanks Meter: 12
528 posts
Join Date:Joined: Mar 2008
cecompr_nt.dll in the zip file support both LZX and XPR compression or not?
4th January 2010, 11:49 AM |#6  
OP Retired Recognized Developer
Thanks Meter: 19
1,119 posts
Join Date:Joined: Feb 2008
Originally Posted by texture

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.
Last edited by airxtreme; 4th January 2010 at 12:01 PM.
4th January 2010, 03:45 PM |#7  
SOHKis's Avatar
Senior Member
Flag VA
Thanks Meter: 157
575 posts
Join Date:Joined: Apr 2008
seems to be working great so far for me, thanks for the share airxtreme!
4th January 2010, 04:01 PM |#8  
twopumpchump's Avatar
Recognized Developer / Retired Senior Moderator
Flag Kentucky
Thanks Meter: 359
4,053 posts
Join Date:Joined: Aug 2008
Donate to Me
just tried this and damn it builds a rom fast
4th January 2010, 07:05 PM |#9  
kidoucorp's Avatar
Retired Forum Moderator
Flag Barcelona
Thanks Meter: 28
409 posts
Join Date:Joined: Apr 2009
Wow, amazing

Really improve the build process

Thanks for this
5th January 2010, 03:49 AM |#10  
Thanks Meter: 0
32 posts
Join Date:Joined: Jul 2009
THx Share

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes