Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,956 Members 48,288 Now Online
XDA Developers Android and Mobile Development Forum

Want more Storage? New bugfixed version 2.1 rc2!

Tip us?
 
tadzio
Old
(Last edited by tadzio; 24th October 2007 at 08:39 AM.) Reason: Bugfixed new release 2.1rc2; now with RecMod.exe
#1  
tadzio's Avatar
Senior Member - OP
Thanks Meter 8
Posts: 465
Join Date: Nov 2003
Location: Munich, Germany
Default Want more Storage? New bugfixed version 2.1 rc2!

Edit: New version available! Compatible with Kaiser, Titan, Artemis, Hermes etc.
New version 2.1rc2! This is a major upgrade to version 2.0 (and a bugfix to 2.1rc1). The ImgfsTools now support generating ROMs for Kaiser, Hermes, Titan, Artemis and probably quite some more. All Hermes-specific code was replaced with code working for all devices :)

The new version is attached to this post.

These are the screenshots of the original version. Have a look:



This is a completely unmodified LVSW edition WM6. It usually has 47 MByte Storage....

What happened? Well, the IMGFS partition (a.k.a. OS.nb) has 8 MByte free space. Until now it was not possible to shrink the IMGFS partiton and enlarge Storage in return, so that space was wasted.

This has changed - now also on the Kaiser!

I modified mamaich's ImgfsTools so that they now create the smallest possible OS.nb from a 'dump' directory, and also write the partition table and MSFLSH header matching the new size. The result is what you see above.

This is an excerpt from the ReadMe file from the new version 2.1rc2:


ImgFS Tools Version 2

================================================== ==============
(Current version: 2.1rc2)


What it is
==========

These little programs help you with cooking your own ROM. They allow you to unpack an OS.nb file into individual files as you'd find them on your device, and to re-pack them into a new OS.nb which you can flash to your device. Of course, betweem unpacking and re-packing, you'll want to add/modify/remove some of them. :)

The tools are enhanced versions of mamaich's imgfs_tools - a huge Thank You goes to mamaich for creating them, and also for releasing the source code!

The most significant enhancement is that the IMGFS inside the generated OS.nb is no longer of fixed size, but is as small as possible. This means: the more of the unpacked files you remove before re-packing, the smaller it'll get and consequently the bigger your Storage memory will become. Also, the tools are no longer device-specific and should also work other devices than the Hermes.

*** WARNING: ***
Before you flash a ROM created with these tools, make sure you know how to recover from a non-booting ROM! For Hermes and Kaiser, you should install a HardSPL before you use these tools! I accept no responsibility for bricked devices!


Supported devices
=================
These tools have been tested on HTC devices only, and are known to work on Hermes, Kaiser, Titan and Artemis. Other devices were not tested and may or may not work.
If you want to try, I will gladly support you. However, I cannot accept responsibility for bricked devices!


How it works
============

On a high level, this is the chain of actions needed to unpack OS.nb:

RUU-signed.nbh ---(*NBHExtract)---> OS.nb ---(NBSplit)---> OS.nb.payload -->
--(ImgfsFromNb)---> imgfs.bin ---(ImgfsToDump)---> 'dump' directory

At that stage, you will want to edit the 'dump' directory. I recommend using bepe's excellent *Package Tool for this.

The reverse process is:

'dump' directory ---(ImgfsFromDump)---> imgfs-new.bin ---(ImgfsToNb)--->
OS-new.nb.payload ---(NBMerge)---> OS-new.nb ---(*NBHGen)--->
RUU-signed-new.nbh

(The tools marked with '*' are not part of the ImgfsTools, but are also available for free from xda-developers.com. There is also one additional tool, NBInfo, in this package.)



Version History
===============

2007-10-17 2.1rc2
ROMs generated by 2.1RC1 would not boot if created with a certain combination of parameters. Fixed.


2007-10-14 2.1RC1
Major overhaul:
- All Hermes-specific assumptions (like the sector size being always 0x200) are now gone.
- "conservative" mode added to ImgfsToNb and NBMerge
- on devices that have only two MSFLSH flash regions, ImgfsToNb overwrote a few bytes in the XIP section, causing unpredictable results. This was fixed.
- Removed "-emu" support from NBSplit and NBMerge, as this didn't work with WM6 emulator images.


2007-03-18 2.0 RC 2
All tools now linked statically to the MS runtime library, no longer needs DLL. No other changes.

2007-03-18 2.0 RC 1
Initial Release. Starting with version 2 to not collide with mamaich's version numbers.

===================

Enjoy!

Cheers
tadzio
Attached Files
File Type: zip ImgfsTools 2.1rc2.zip - [Click for QR Code] (265.6 KB, 25128 views)
 
lpsi2000
Old
#2  
lpsi2000's Avatar
Senior Member
Thanks Meter 143
Posts: 2,435
Join Date: Jan 2004
Location: TriState
Great job tadzio,
Looking forward to this new tool.
AT&T Samsung Galaxy Note III(N900A)
Previous devices:
Samsung Galaxy S II, III, & Note II(i317)
Retired devices: AT&T Samsung Galaxy Note / Moto Atrix and SGS Captivate / HTC Leo(HD2) / AT&T Tilt 2/ HTC Fuze / HTC Advantage / I-Mate JasJam / JasJar / Pocket PC / XDA
Network: AT&T
OC/UV
825/850/875/900/925/950/975/1000/1025/1050/1075/1100/1125/1150/1200/1250/1275 -1800Mhz
 
jasjamming
Old
#3  
jasjamming's Avatar
Senior Member
Thanks Meter 1
Posts: 1,246
Join Date: Nov 2006
Location: In the Basement
Quote:
Originally Posted by tadzio View Post
Have a look:



This is a completely unmodified LVSW edition WM6. It usually has 47 MByte Storage....

What happened? Well, the IMGFS partition (a.k.a. OS.nb) has 8 MByte free space. Until now it was not possible to shrink the IMGFS partiton and enlarge Storage in return, so that space was wasted.

This has just changed!

I modified mamaich's ImgfsTools so that they now create the smallest possible OS.nb from a 'dump' directory, and also write the partition table and MSFLSH header matching the new size. The result is what you see above.

This currently runs on my TyTN with boot loader 1.10 OliPro. I haven't had a chance to test it with other configurations, but I see no reason why it shouldn't work.

I do not plan to offer any cooked ROMs myself, as there are many excellent chefs in this forum already. But I would think a new approach to ROM cooking may emerge: make a ROM as small as at all possible, removing anything that users may not want, and turn every removed feature into a .cab that users can install to Storage (bepe's excellent Package Tool makes this very simple!). This will give maximum flexibility without wasting any memory.

Give me one more day to write up the documentation, and then I'll upload the new Imgs Tools version.

Cheers
Daniel
sounds great man,

once your instructions are posted I will use this technique for Black version 1.2.

Well Done,

Cheers,
HTC Touch HD (BLAC120)
HSPL1.56 OliNex
ROM: Black Martini v1.1 (its quicker than my Focus ST 300+ HP)

 
pof
Old
#4  
pof's Avatar
Retired Moderator
Thanks Meter 62
Posts: 3,571
Join Date: Mar 2005
Location: Barcelona

 
DONATE TO ME
Well done man
 
hatori
Old
#5  
hatori's Avatar
Senior Member
Thanks Meter 20
Posts: 199
Join Date: Jan 2005
Waiting for your great work....
 
xultar
Old
#6  
xultar's Avatar
Senior Member
Thanks Meter 1
Posts: 331
Join Date: Aug 2003
Location: Atlanta, GA
Quote:
Originally Posted by tadzio View Post
Have a look:



This is a completely unmodified LVSW edition WM6. It usually has 47 MByte Storage....

What happened? Well, the IMGFS partition (a.k.a. OS.nb) has 8 MByte free space. Until now it was not possible to shrink the IMGFS partiton and enlarge Storage in return, so that space was wasted.

This has just changed!

I modified mamaich's ImgfsTools so that they now create the smallest possible OS.nb from a 'dump' directory, and also write the partition table and MSFLSH header matching the new size. The result is what you see above.

This currently runs on my TyTN with boot loader 1.10 OliPro. I haven't had a chance to test it with other configurations, but I see no reason why it shouldn't work.

I do not plan to offer any cooked ROMs myself, as there are many excellent chefs in this forum already. But I would think a new approach to ROM cooking may emerge: make a ROM as small as at all possible, removing anything that users may not want, and turn every removed feature into a .cab that users can install to Storage (bepe's excellent Package Tool makes this very simple!). This will give maximum flexibility without wasting any memory.

Give me one more day to write up the documentation, and then I'll upload the new Imgs Tools version.

Cheers
Daniel

Brilliant! Truly BRILLIANT!
AT&T Tilt 8925 (HTC) Kaiser
Super CID
 
Penske MB
Old
#7  
Penske MB's Avatar
Senior Member
Thanks Meter 0
Posts: 362
Join Date: Feb 2007
Location: California
good job!!!!
Cingular/AT&T Tilt
Rom: NoThrills WM 6.1 V3
Radio: 1.65.20.29
Cingular/AT&T 8525
Rom: TNT.19199 Professional
Apple iphone 8GB
Firmware Version: 1.1.4 ziphone 3.0
BaseBand: 04.04.05_G
 
casperkid
Old
#8  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Jun 2006
Location: Sydney
That would be great findings for upcoming roms. For curiosity sake, are there any initials for increasing phone storage from extended rom. Cheers.
 
Alcibiade
Old
#9  
Senior Member
Thanks Meter 95
Posts: 1,829
Join Date: Dec 2006
Location: New York
That's just great... We're all going to run for the smallest ROM possible ! Even maybe strip out Windows Media Player (We all use other players...) and some of the useless aplications (Who uses Solitaire or Bubble Breaker ?)
 
lindseyp
Old
#10  
Member
Thanks Meter 0
Posts: 35
Join Date: Nov 2006
Location: Tokyo
who uses Solitaire or Bubble Breaker

Hey. Don't knock it till you've tried it!


But I still wouldn't mind if it was in a .cab

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more

Secrecy App Goes Open Source, New LG Android Wear Device! – XDA Developer TV

Secrecy encryption app goes open source! That and much … more

Pushbullet Updated with SMS Send Ability

Pushbullet is one of thoseapplications that every Android lover should have installed on his or … more

[OTA] Nvidia Shield Tablet Receives its First Update

The Nvidia Shield Tabletis the latest toy from one of the largest desktop graphics … more