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

Search This thread

airxtreme

Retired Recognized Developer
Feb 19, 2008
1,119
23
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! :eek:

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

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).
 
Last edited:

jagan2

Recognized Developer
Jul 8, 2009
2,234
1,994
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

Senior Member
Dec 30, 2008
339
51
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!
 
P

pongothemagnificent

Guest
Working like a charm on my kitchen, thanks mate.
 

SOHKis

Senior Member
Apr 29, 2008
579
158
VA
seems to be working great so far for me, thanks for the share airxtreme!
 

cyy998

New member
Apr 24, 2009
1
0
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.

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

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

Thank you very much
 

ted973

Senior Member
Feb 5, 2008
144
62
Beijing
A bug!
When i use LZX compression,the new imgfs.bin is larger than the imgfs.bin of XPR compression,but it is fast than before!Thx~
 

airxtreme

Retired Recognized Developer
Feb 19, 2008
1,119
23
same ask, I try it one time few days before, and old IMGFSFromDump make a booting rom, but your IMGFSFromDump cant make a booting rom, will try it later, thanks very much

I tried this on osKitchen and it worked fine, it should work on any kitchen that uses imgfsfromdump, probably your issue was caused by the LZH compression that didn't work with the included cecompr_nt.dll. Just use the cecompr_nt.dll that came with the kitchen and everything should be all right.