FORUMS
Remove All Ads from XDA

LolBoot xD SGS2 dualboot - NEW 12.12.11: Easy-Setup App v2.51

1,043 posts
Thanks Meter: 775
 
By HellcatDroid, Senior Member on 6th August 2011, 08:39 AM
Post Reply Email Thread
(I wasn't really sure if this might fit into "Development", so I put it here, maybe a mod will move it, if it's a dev topic )

Anyways, here we go, I DUALBOOTED two different, independant ROMs on the S2

Video of dualboot in action: http://www.youtube.com/watch?v=l9-V_6Ua_D0

** THIS IS NOT (YET) COMPATIBLE **
** WITH ICS (ANDROID 4.0.x) ROMS! **

-- this goes for custom ROMs as well as stock ROMs --
Icey Sammich compatibility will be added once Sammy released their ICS kernel sources.

Quote:


!!! There now is an app for more convinient and easy setup of the dualboot !!!

(04.11.2011) DualBoot setup app v2.00: http://forum.xda-developers.com/show...7&postcount=94

(12.12.2011) App has been updated to 2.51, lot's of good new stuff! >> Free Version -- Donate Version <<


First off:
This is only a little experiment I did like "c'mon, has to be possible" - this is NOT (at least yet) tweaked for usability and anything the like, just a humble experiment.
That said, don't flame me if things are rather complexicated to do this ATM.
Maybe I'll come up with a more userfriendly way of setting this up, maybe someone else does, maybe no one does.

Also now that I found a base on what to do, there might be different ways (more easy ones maybe) to set this up, I'll keep toying around with it.


But let's cut to the chase, shall we

So, how was this set up? I'll give a brief rundown of what I did:

I edited a few .rc files in the initramfs of the kernel to make it actually perform a full boot when recovery mode was triggered and to fire up recovery mode when in battery-charging mode.
I also edited a few mounts in the boot .rc for the 2nd OS (in "recovery" mode) to use different partitions for /system and /data, so that we'd end up with really independant installs.

What partitions did I missuse for that:
  • partition 12 (mostly unused, only when installing a stock ROM AFAIK) for /system - that's a neat choice IMO as p12 is 512MB in size, just as p9 where /system usually sits on
  • partition 7 (which is usually /cache) for /data
    gives us only 100MB of user data space, but for now that's OK, as said, it's only an experiment on how such a thing could be done.
  • with the original partition for /cache "gone", I mounted a tmpfs for it.
    So the OS still has a usable /cache

Then I set up the two OSes:
(dualboot kernel not yet flashed)

Launchprep part 1:
  • I made a CWM backup of my normal installation I was running (stock XXKG6 at the time).
  • I installed DevNull-Test AOSP as to it's instructions
  • Some su'ed voodoo via a terminal while having the 2nd OS (the DevNull AOSP one, in this case) installed - best done in recovery mode via ADB:
    rm -Rf /cache/*
    cp -Rp /data/* /cache/
    dd if=/dev/block/mmcblk0p9 of=/dev/block/mmcblk0p12 bs=4096

That did "set up" the 2nd OS to where it's supposed to go.


Launchprep part 2:

Then, "advanced restore" of the backup made a few minutes earlier:
- boot
- system
- data

Reboot


At this point OS #1 is running again and OS #2 is sitting in hiding, prepared to roll - so, let's roll:

Flashed the modified "dualboot kernel" (via an App or Odin or magic, doesn't matter).


---> DONE <---
reached the point to where everything works as shown in the video.


As said above already, yes it needs some manual work to set it up, yes there's a lot of things that might not work, yes there are other/better ways to set it up.

It's only a humble experiment - lot's of space for improvement.
Maybe you like it - for those who do, I wanted to share this

Attached to this post you find the modified kernel I used, it's based on my v1.20 custom kernel (see sig) but with the above mentioned changes.
Attached Files
File Type: rar LolBoot_SGS2dualboot-experiment-kernel.rar - [Click for QR Code] (6.84 MB, 2585 views)
The Following 54 Users Say Thank You to HellcatDroid For This Useful Post: [ View ] Gift HellcatDroid Ad-Free
 
 
6th August 2011, 08:49 AM |#2  
Senior Member
Flag Coventry
Thanks Meter: 34
 
More
I've seen the video m8, this is totally different approach, ur giving this device a new dimension. love u "in a straight way" hahaa
The Following 2 Users Say Thank You to drreality For This Useful Post: [ View ] Gift drreality Ad-Free
6th August 2011, 10:09 AM |#3  
Senior Member
Thanks Meter: 58
 
More
there currently an app called Bootmanager which also handle up to quadruple booting. But sadly currently only support HTC phones.

http://www.appbrain.com/app/bootmana...x2.bootmanager

well, one can hope!
The Following User Says Thank You to sunwee For This Useful Post: [ View ] Gift sunwee Ad-Free
6th August 2011, 10:49 AM |#4  
Senior Member
Thanks Meter: 379
 
More
Thanks OP this is an awesome concept! Very happy to see you posted it with a video! and nice boot animation!
6th August 2011, 02:37 PM |#5  
HellcatDroid's Avatar
OP Senior Member
Flag Cologne Area
Thanks Meter: 775
 
Donate to Me
More
Quote:
Originally Posted by sunwee

there currently an app called Bootmanager which also handle up to quadruple booting. But sadly currently only support HTC phones.

Yeah, that's the thing.... that app is HTC only.... but we have Samsung S-II and want dualboot as well.

I'm already brainstorming on how to enhance the actual usability of this, i.e. flashing a 2nd OS directely to it's place instead of first installing it to the main system partition. But there is problems when /data is not mounted to the original partition, at least stock doesn't like it on initial boot.... well, well....
The Following User Says Thank You to HellcatDroid For This Useful Post: [ View ] Gift HellcatDroid Ad-Free
6th August 2011, 11:56 PM |#6  
Tricky103's Avatar
Inactive Recognized Developer
Flag Exeter, UK
Thanks Meter: 746
 
Donate to Me
More
That is great. Going to use this for sure. This should be in development for sure.

Congratulations already.

Sent from my GT-I9100 using Tapatalk
The Following User Says Thank You to Tricky103 For This Useful Post: [ View ] Gift Tricky103 Ad-Free
7th August 2011, 06:06 AM |#7  
Senior Member
Thanks Meter: 32
 
More
This is impressive bro sure will use it
but i want to ask one thing
SD card needed for this or not ?
7th August 2011, 08:17 AM |#8  
jackleung's Avatar
Inactive Recognized Developer
Flag USA
Thanks Meter: 48
 
More
That would be really cool (and definitely should goes to original development). Does it work with CM7/MIUI + custom rom?
7th August 2011, 08:53 AM |#9  
HellcatDroid's Avatar
OP Senior Member
Flag Cologne Area
Thanks Meter: 775
 
Donate to Me
More
Quote:
Originally Posted by vikas776

SD card needed for this or not ?

No, so far this completely works with all internal storage.

But I have a few ideas I have yet to try to get mounted from other places - like images in /sdcard for example (I *so* hope that'll work.... )
The Following User Says Thank You to HellcatDroid For This Useful Post: [ View ] Gift HellcatDroid Ad-Free
7th August 2011, 10:34 AM |#10  
Tricky103's Avatar
Inactive Recognized Developer
Flag Exeter, UK
Thanks Meter: 746
 
Donate to Me
More
Hi

Does this kernel include any of the Hellcat kernel tweaks or are they work in progress.

Sent from my GT-I9100 using Tapatalk
7th August 2011, 10:42 AM |#11  
HellcatDroid's Avatar
OP Senior Member
Flag Cologne Area
Thanks Meter: 775
 
Donate to Me
More
Quote:
Originally Posted by Tricky103

Does this kernel include any of the Hellcat kernel tweaks or are they work in progress.

I made this build based on my v1.20 custom kernel, so it has everthing that one has - plus the touchfix already
The Following User Says Thank You to HellcatDroid For This Useful Post: [ View ] Gift HellcatDroid Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes