Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,145 Members 44,862 Now Online
XDA Developers Android and Mobile Development Forum

[27th Jun][Sense] INT2SD, a new D2EXT method (added Alex-V GB HD INT2SD-S)

Tip us?
 
Proz0r
Old
(Last edited by Proz0r; 29th June 2012 at 07:07 AM.)
#1  
Proz0r's Avatar
Senior Member - OP
Thanks Meter 238
Posts: 277
Join Date: Oct 2010
Location: Zagreb
Default [27th Jun][Sense] INT2SD, a new D2EXT method (added Alex-V GB HD INT2SD-S)

Progress update and INT2SD implementation request form!
With holidays starting, and more free time on my hands, I've decided to revive this project. Having my hard drive fail on me recently, and losing the request log, it has become obvious that I need a new system of handling requests, and it is here. If you have requested a ROM before, please send a request again, via this form.
Please submit all further requests via this form!

---

This is the INT2SD thread for Sense ROMs and their developers and users.
INT2SD thread for AOSP ROMs

What is INT2SD?
INT2SD doesn't use symlinks. It mounts ext partition on your SD to /data, thus eliminating the need for the mtd5 userdata partition. This makes the mtd5 userdata partition unneeded. It is used in conjunction with the fatsys HBOOT (more info later on), allowing most of the vital parts of a ROM to stay on the system partition without the need to symlink half of it to the SD due to memory shortage.

For now, there is only one ROM here, but more will come! If you wish to see INT2SD in your favorite ROM or in your own ROM, please post here!



INT2SD-S - "Speed" (default as of 29th Jun)

Main characteristics:
  • /data on SD ext, /data/data on internal
  • /data/data limited to 280 MB (probably enough for more than 100 user apps)
  • noticeably faster on slower cards
  • for use with CM7r2 HBOOT
Description:
The new "speed" flavour mounts ext to /data and userdata to /data/data, achieving great speed while still retaining excellent storage capabilities. It's used with the CM7r2 HBOOT. This is now the default flavour, offering great speed while still being able to hold a hefty amount of apps.


INT2SD-M - "Mass" (discontinued)

Main characteristics:
  • /data on SD ext
  • number of apps is only limited by ext size
  • requires a faster card
  • for use with fatsys HBOOT
Description:
The classic "mass" flavour mounts ext to /data, thus eliminating the need for the mtd5 userdata partition. It has proven to be slow even on some of the faster cards. Due to INT2SD-S being able to hold a very high number of applications, and still being much faster, this flavour is discontinued.


FAQ

For users: How to get this in your favorite ROM
For ROM developers: How to get this implemented in your ROM
Please fill out this form.

Cross-device implementations
For now, no. You may submit requests, but I won't be able to fulfill them for a while. I have quite a lot of real life work on my plate, not to mention a list of Desire ROMs I have to tend to. After that's done, I'll be happy to try blind-porting it to whichever device you wish, but my priority are Desire ROMs, primarily because it's a lot easier to implement INT2SD into ROMs for a phone I already have.

Universal update zips
Also, no. Each ROM is different, and due to the nature of INT2SD, it is simply not possible to make a one-for-all universal update zip. Every ROM requires tending to its peculiarities, especially Sense ROMs, and I would rather not take the change of trying to make one and end up with a flashable bootloop zip.

Why don't you just publish instructions on how to implement INT2SD for devs to use?
Quote:
Originally Posted by Proz0r View Post
You can take a look at the modified ROM and you will find 3 new files in /system/etc, dalchk, fsck and sleep. These files are executed by init.rc because of my modifications to it. You can also decompile the boot.img and use a tool such as diff or diffuse (a GUI for diff) and check the differences between it and the unmodified init.rc from Alex's standard, D2EXT ROM. However, his ROM required another init.d script to move weather animations to /data, and modifications to the updater-script to flash everything that would normally be flashed to /data, to be flashed to /sd-ext. Sounds simple enough, right? Well, it's actually not quite as simple. When I have first implemented INT2SD to CyanogenMod 7, all I had to do was edit a few lines and add those three scripts. There was not a single ROM (and there are a few unreleased ones which I've worked on) to which I could apply a "standard" procedure. Each ROM required further modifications on its own and being the one who devised INT2SD, I know what I should look out for in order to avoid catastrophical bugs. ROM developers do not. This is why I do NOT offer support for "homemade" INT2SD implementations. Every ROM has its own peculiarities that need tending to and INT2SD implementations need to be very flexible to allow the ROM to work in conjunction with it. Sure, everything could go great, but INT2SD is extremely easy to implement horribly wrong and have huge bugs and even unbootable systems, and without knowing what the dev did to put it in their ROM, it is next to impossible for me to troubleshoot and fix. It would probably end up with me having to implement it myself either way in most cases and having angry developers and possibly users on my hands being pissed at me for doing a bad job and releasing a ****ty product, when the problem was just a typo in init.rc. That's why I have not nor will I release instructions for devs on how to implement it themselves.


Before you download!
Although it is for the best part bug free, INT2SD is still a fairly fresh project so I'm looking for as much input as I can get to fix possible bugs I haven't yet uncovered. If you try a ROM featuring INT2SD, please be sure to comment in this thread on your experience, even if it works great or doesn't work at all. If you wish to further support the project, there is a donate button in my signature. Although a nice sign of support and appreciation, donations are not obligatory!
Due to /data/data being on the SD, a high-class card is recommended.
Another thing is the HBOOT, fatsys. You must flash it before flashing any of the INT2SD Sense ROMs.


fatsys HBOOT

bravo_alphaspl-fatsys.img
MD5: 2272c1cb06f8eb743aa1c0ad4c3fa36b

PB99IMG-fatsys.zip
MD5: 4d6b2e74c241361237df047bfed5ff08

INT2SD Sense ROMs require a special HBOOT, fatsys. This special HBOOT has 427 MB dedicated for /system, 5 MB for /cache and 5 MB for /data and there is probably no ROM without INT2SD that would work on it properly. It was made so that the largest part of Desire's internal memory can be used for quick access to vital system files by storing them in /system instead of symlinking them to /sd-ext, therefore slowing the entire system down. There is still plenty of space for your apps if you make a large enough SD ext partition, since SD ext gets mounted to /data and the real, 5 MB mtd5 userdata partition goes unused. So, /data on SD ext, huge /system and no symlinks! Before flashing a Sense INT2SD ROM, make sure you have flashed the fatsys HBOOT!


Download
Thanks to Ante0 for hosting the files!
INT2SD implemented in:
Alex-V1.8 GB Sense HD INT2SD-M fatsys (Thread | Download)
Alex-V1.8 GB Sense HD INT2SD-S CM7r2 (Thread | Download in a minute)
Runnymede AIO 6.1.1 Beta (Thread)


Current bugs:
-

To do list for the next version:
-

Credits (alphabetically):
Alex-V - providing me with the first Sense ROM to implement INT2SD in
Ante0 - providing proper hosting for the zips
brabo, GShellz admin - huge help with bash scripts implemented in the ROMs
CM - a base ROM for implementing the method in
Droidzone - suggestions, help with HBOOTs
Hacre - massive assistance as well, kicking me to try and realise the main idea and for coming up with names "INT2SD" and "fatsys"
JieeHD - help with compiling/decompiling the boot.img files and his excellent guides on FYA
Pulser_g2 - massive assistance, ideas on the reboot bug and hosting
Richard Trip - making GingerVillain which now has a version featuring INT2SD
snq- - pointing out a huge typo and saving me multiple hours of pointless work
ubuntubhoy - a kick in the arse I needed
... and everyone else in the #villainrom IRC channel for help and mental support! Thank you all, and everyone I forgot to mention (PM!).


Disclamer: I'm not responsible if something goes wrong and wreaks havoc upon you, your phone, your card, any part of your phone, your friends, your family, your close or distant relatives and/or your pet, but I will gladly provide assistance if it does.
Device: Samsung Galaxy S III (GT-I9300)
The Following 27 Users Say Thank You to Proz0r For This Useful Post: [ Click to Expand ]
 
blackhawk_LA
Old
#2  
Senior Member
Thanks Meter 142
Posts: 606
Join Date: Dec 2010
I'm not a dev at all, but I think this tool can help you: a too for making coustoms hboot by _thalamus
http://thalamus-hacking.blogspot.com...otsupdate.html

I have been using for months without any problem
The Following User Says Thank You to blackhawk_LA For This Useful Post: [ Click to Expand ]
 
Droidzone
Old
(Last edited by Droidzone; 2nd January 2012 at 08:35 PM.)
#3  
Droidzone's Avatar
Recognized Developer
Thanks Meter 2,192
Posts: 5,470
Join Date: Sep 2010
Location: Kerala

 
DONATE TO ME
Well, if you manage to learn how to reverse engineer and manipulate hboot, do share.. You might want to ask thalamus. I read that he'd done it.

Edit: Ah blackhawk_LA has already posted that.

@blackhawk_LA, is there an open source version of this tool?

 
Proz0r
Old
#4  
Proz0r's Avatar
Senior Member - OP
Thanks Meter 238
Posts: 277
Join Date: Oct 2010
Location: Zagreb
Quote:
Originally Posted by blackhawk_LA View Post
I'm not a dev at all, but I think this tool can help you: a too for making coustoms hboot by _thalamus
http://thalamus-hacking.blogspot.com...otsupdate.html

I have been using for months without any problem
Awesome, thanks! Wish there was a Linux version of it, luckily, I have Windows in dual-boot so I'll whip something up in a minute!


Quote:
Originally Posted by Droidzone View Post
Well, if you manage to learn how to reverse engineer and manipulate hboot, do share.. You might want to ask thalamus. I read that he'd done it.

Edit: Ah blackhawk_LA has already posted that.

@blackhawk_LA, is there an open source version of this tool?
Yeah, I'm interested in how this works too.
 
blackhawk_LA
Old
#5  
Senior Member
Thanks Meter 142
Posts: 606
Join Date: Dec 2010
Quote:
Originally Posted by Droidzone View Post
@blackhawk_LA, is there an open source version of this tool?
I don't know, I just found that tool and start using it, I can't do anything more
 
Proz0r
Old
#6  
Proz0r's Avatar
Senior Member - OP
Thanks Meter 238
Posts: 277
Join Date: Oct 2010
Location: Zagreb
@blackhawk_LA

Have you ever had any issues with the application? It's making a very important part of the system and if any errors would occur, it would be a catastrophe, which is why I am a bit apprehensive towards this program.
The Following User Says Thank You to Proz0r For This Useful Post: [ Click to Expand ]
 
Chaosz-X
Old
#7  
Chaosz-X's Avatar
Senior Member
Thanks Meter 1,808
Posts: 753
Join Date: Jan 2011

 
DONATE TO ME
Make HBOOTS with it which have the same sizes as the HBOOTs from Alpharev, compare MD5, if they match, it's probably safe. Then you should be good to go to make a custom HBOOT with it
The Following User Says Thank You to Chaosz-X For This Useful Post: [ Click to Expand ]
 
blackhawk_LA
Old
#8  
Senior Member
Thanks Meter 142
Posts: 606
Join Date: Dec 2010
Never had any issue, I have used it very carefully to make at least 10 different custom hboots, and my phone is still alive
More statistics are needed to say it's completely safe but I think thalamus did a perfect job
The Following User Says Thank You to blackhawk_LA For This Useful Post: [ Click to Expand ]
 
ckpv5
Old
#9  
ckpv5's Avatar
Recognized Contributor
Thanks Meter 8,866
Posts: 6,885
Join Date: Feb 2008
Location: Kuala Lumpur

 
DONATE TO ME
I can say the program is very safe... have a dozen of custom hboots with it... no problem at all.
And looking forward to your INT2SD for sense..
 
msandeep
Old
#10  
Junior Member
Thanks Meter 2
Posts: 29
Join Date: Jan 2011
Location: New Delhi
here you go..

http://www.multiupload.com/N0B1RHYFPW

The Following User Says Thank You to msandeep For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes