yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] HellcatDroid:
Hm, yeah, that sounds like something didn't work.... make sure you run those commands as root, i.e. "su" as very first command (I'll add that to the first post).

Give me a direct link to the ROM and I'll try it.

Make take a few days though as I'm away from my computer a lot because of work the next two days, but I'll try once time permits.

Well yeah, and this still is in highly experimental stage, if I (or someone else) should ever get this to more stable and reliable state, I'll make an easy to use installer/setup tool ;)

But I got a few other ideas on setting it up I have to try first....
[Galaxy S II General] Tricky103:
http://goo.gl/2uZCh

This is the complete rom. Only 47mb. I thought you would like the whole rom :)
[Galaxy S II General] motodude:
May be someday WINDOWS Mo 7 and Android on our sweet beast
[Galaxy S II General] Tricky103:
Hi

I tried again with Aosp Dev-null. I still get this error "cp: can't stat '/data/*': No such file or directory "

after running this command line " cp -Rp /data/* /cache/ "

Any Ideas ?

It still doesn't boot if I press 3 button it brings up the boot logo and then black screens until it boots to the 1st partition.
[Galaxy S II General] HellcatDroid:
Thanks for the link, will download and try as soon as time permits.

Also, try this command sequence, I got an idea what the issue maybe might be, give it a shot:

su
rm -Rf /cache/*
busybox cp -Rp /data/* /cache/
dd if=/dev/block/mmcblk0p9 of=/dev/block/mmcblk0p12 bs=4096

(use "busybox cp" instead of plain "cp", maybe it helps)

And some update on my ongoing thoughts for those interested:

- got an idea on how to make a more easy to use App for prepping and setting up the dualboot environment

- managed to do a neat thing I didn't really think it would work: issued a "mount" command and the OS thought it was mounting a partition of the internal flash (/dev/block/mmcblk0p12 in this test, but was testing for later on actually doing it with p9 - you might see where I'm headed here ;)) but instead of the partition it actually mounted from an .img file! (loopback) :D

i.e. "mount /dev/block/mmcblk0p12 /somedir" actually mounted "/somepath/someimage.img" to "/somedir" instead of the partition from /dev/block/... :cool: (you just gotta love Linux and it's flexible way of handling things....)

NOW, imagine /dev/block/mmcblk0p9 (the partition carrying the system) and p10 (data) being (kinda) transparently mounted from an IMAGE FILE :eek:

I "only" have to find a way to sneak this in before init starts mounting stuff.

If there's a way to do THAT.... unlimited multiboot from OS images, anyone?

(so far this is kinda dreaming, but would be cool to get it working :D)
[Galaxy S II General] InnAl:
That's definitely another great piece of software. I will downgrade my kernel to try it out by taking the free version and making a donation directly to you HellcatDroid.

Danke, Super Sache!
[Galaxy S II General] :
Would really like to try this; very impressive and fun. And I could finally try Cyanogen.

But I'm a bit worried that redirecting cache to a tmpfs could impact performance on the first OS? Not really sure what it is used for/how much memory the tmpfs would use/if it would influence boot up times.

I didn't see any mention of this in the thread yet, but apologies if I missed something.
[Galaxy S II General] grabczyng:
Great App got Donate ver. keep working !!

only little question! where i made mistake, when i'm on my secondary rom (stock) i can't install no app from Market?

It's says "Not enough memory" or something like this !

Regards
[Galaxy S II General] HellcatDroid:
Yeah, the data space for the secondary OS is rather.... "small", a stock ROM as secondary pretty much uses all available space already just for the default data and settings.

I am puzzling on finding / using some other space for the secondary OS' /data.

Now that the app update is finished, I can spend some time on the kernel again.
[Galaxy S II General] simone201:
Siyah always updated sources are on bitbucket:

bitbucket.org/gokhanmoral/siyahkernel

Anyway, very good job mate! ;)

Inviato dal mio GT-I9100 usando Tapatalk
[Galaxy S II General] punshkin:
Hi,

this is a great App! i want to try it but i have 2 questions

1) is the 2nd ROM partition affected by nandroid backups?

-will a nandroid backup include the backup?

-if i restore from a nandroid that i did before making the 2nd OS, will the 2nd ROM be gone?

2) can someone please tell me the comands i need to know?

-boot first ROM

-boot second ROM

-boot into recovery

thanks
[Galaxy S II General] mix1234:
Now if only I could dual boot the ICS rom that's out and my Galnet MIUI Rom. Life would be fantastic.
[Galaxy S II General] HellcatDroid:
Only the /data part is affected as it's stored on /cache, so a backup from before installing the secondary OS will overwrite it.

Just use the backup an restore functions of the app for the secondary OS.
[Galaxy S II General] maddada:
sorry for not reading.
[Galaxy S II General] HellcatDroid:
Can you PLEASE learn to read?
[Galaxy S II General] khaidzir:
can i used LolBoot xD SGS2 dualboot at s2 G version???
[Galaxy S II General] HellcatDroid:
Nope, sorry.

The "G" needs different kernels.
[Galaxy S II General] rekans:
Hi, any chance to get ICS as secondary ROM? I give it a shot but as I thought we need a new patched kernel for that ;)

There are some new ICS ROMs (also zipalign) and also a Cf-Root XXP2 kernel, I don't know if this may be the way.
[Galaxy S II General] HellcatDroid:
Need kernel sources for ICS to make a dualboot kernel for it.
[Galaxy S II General] punshkin:
Hi,

I installed miui Rom as secondary and it was unable to connect to wifi

Is this a known thing or do you want me to get a logcat?

If you get sources for ics kernel I guess both Roms have to be ics, right?
[Galaxy S II General] HellcatDroid:
what kernel are you using for MIUI? What kernel does it usually use?

WiFi issues are usually (kernel)driver related.

As of now, either both ROMs would need to be ICS, or you simply change kernels before reboot.

But ICS kernel source is not to expected way past official ICS release anyways, so nothing to be worried about right now.
[Galaxy S II General] punshkin:
I installed the dualboot modified siyah kernel you have included in the app.

Miui usually comes with its own kernel (I think + it's probably close to the cyanogenmod kernel ) Version but the standalone siyah kernel is said to work with miui
[Galaxy S II General] Snowscar:
this is really cool, i really wanted to try it till i saw all the manual requirements. Anyways good work mate, hope we see an app that will one day allow us to choose 2 restores from CWM and setup a dual boot
[Galaxy S II General] HellcatDroid:
Hm, I'll try to see what's up with the MIUI issue.

You mean backups you made with CWM with "two restores"?

Nah, wouldn't make sense to add that IMO.

You can already choose a CWM .ZIP (or stock ROM .TAR for that matter) to directely set up the secondary OS without touching the currently installed (primary) one.
[Galaxy S II General] Lost.soul:
I had the same issue with wifi I solved ig by setting up a static IP instead of dhcp (not exactly a solution but meh :p ) I onlh tried on my home network though not sure if it os router specific.

I made sure that if isnt something related to encryption bscause I tried everything (open network with no mac address and no dice)

What happens is the wifi gets stuck trying to optain an ip address and loops until the ap gets mRked as disabled.

Note: I tried it on miui stable 2.3.7 not ics
[Galaxy S II General] tripstermcgee:
hey guys sorry but this might be a dumb question. i installed this on my att sgs2 and was wondering if any harm could come from useing it on a att version running miui. cause i guess i patched a kernal from the help screen and now my ohone wont go into recovery or turn on.... any help?
[Galaxy S II General] Thialala:
HI HellCat,

This is just awesome and after tried the free version, I'm currently downloading the donate version. I have some questions. I guess it's already but a bit lazy to browse all pages :).

How to install another rom over one the OS ( primary and secondary) once the dualboot set? Thanks in advance.
[Galaxy S II General] HellcatDroid:
It doesn't work on the AT&T S2, the kernels are incompatible and the app should also refuse to run on the AT&T S2.

If you circumvent that check and/or patch the kernels for the ATTS2 I'm sorry but you're on your own.

I don't have an ATTS2 nor do I have access to one, so I can't help with that model.

To install a new secondary just run one of the secondary install options again (also running the wipe/clear one prior to install if neccessary).

To install a new primary, backup the secondary using the app's functions and install the new primary using the usual ways then restoring the secondary if it got affected (like on stock ROM installs via Odin where partition 12 is overwritten).
[Galaxy S II General] tripstermcgee:
alright thanks, at least i now know it might have been this i messed up on.
[Galaxy S II General] Thialala:
Hi, I wasn't able to make it work with Turbkey and MIUI roms. Known issues or solution ? I used thé twiste methods with no succès
[Galaxy S II General] tenkaishy:
Hi there,

I really like the idea of this! But I have a question, what are the row with which I can use this? Because I tried last time with villain rom and cyanogenmod and I had to go on Odin to make my phone work again (maybe I did something wrong, that it isn't rom incompatibility).

Sorry for this question, but are there specific roms? Thanks
[Galaxy S II General] HellcatDroid:
I haven't tested all the ROMs out there (barely got time at the moment to work on this at all) so it's basically just try'n'see.

However, the primary ROM should ALWAYS be able to boot unless you kill it.

It's also highly suggested *NOT* to use any "reboot to recovery" functions of root apps to reboot to the secondary while testing.

Once you know it works, no problem doing that, but not as long as you're still testing if things go well.

If you THEN get stuck always booting to the secondary, just flash a non-dualboot kernel via kTool or any other root app you like while running on the secondary and reboot.
[Galaxy S II General] Thialala:
Hi hellcat,

I can confirm that dualboot works only with rom stock+ custom rom. But not custom rom+ custom rom. Can you please have a look on that if you have time. Thanks in advance. I like your tool.
[Galaxy S II General] HellcatDroid:
Will try custom+custom and look at what happens when I get the time, later this or sometime next week.

Can't really think about a reason why it shouldn't work, we'll see....
[Galaxy S II General] Thialala:
Ok thanks a lot.
[Galaxy S II General] cwestpha:
Seems lolBoot 2.51 killed my S II. Used it with the Siyah based custom kernel option to try and boot a AOSP based secondary ROM with a Samsung based primary. Seems the Kernel didn't take since whenever I boot up the phone after the samsung post screen I just get a blank screen with the menu and back buttons lit up. Tried booting normal to primary ROM and same thing, recovery same thing, download mode ditto. Luckily I have a full CMW and other backups made on removable media of the original state, but I cant get into download mode to flash a .tar using Odin so I can get to a working CMW for restoring the image.

Any ideas?

Update: never mind, had to pull the battery a few times and then I was able to get into Download mode. x.x
[Galaxy S II General] HellcatDroid:
Even though it flashes kernels and stuff, this app doesn't even remotely go anywhere near the areas where the bootloaders or similar things are.

In other words: It's impossible to break Download Mode with it, no matter what you do.

Just FYI.

Also (as said somewhere earlier) do NOT use "reboot to recovery" functions of rootapps as long as you're not 120% sure the secondary OS boots properly.

// EDIT

WHAAAAAA :eek:

Just had a few testruns, and it looks like that that if you run the app while running a stock kernel (or a custom one with very few added stuff, haven't pinpointed the exact cause yet) the install of the secondary OS (at least out of a CWM ZIP, that was what I was trying just now) fails.

First flashing one of the app supplied kernels, rebooting, THEN install the second OS turned out to be working with same setups.

I got vacation comming up in a few days, so I'll have time to look into it, find the cause and update the app.

I'm also going to tinker around with the kernels again, trying to get it a bit more compatible, stable, w/e you wanna call it.

:)
[Galaxy S II General] TimAnd:
I also have problems with WiFi on SGS2 with both OSes.

My primary OS is stock Android 2.3.4, and my secondary OS is Miuiandroid_SGS2-1.12.23. My kernel is 2.6.35.14-Siyah-v2.2-DulabootMOD.

After I changed WPA2 from TKIP to AES, or just due to AP reboot, Android WiFI somehow started to work. But Miuiandroid WiFI doesn't work at all.

"As of now, either both ROMs would need to be ICS, or you simply change kernels before reboot."

Please explain, if ICS is Android 4.0, why is this? How can we change kernels? I change kernels via ODIN, but if I revert back to CF-Root, which I used before, dual boot will not work. This, and questions about Siyah version, would be useful as FAQ on the first post.

There is an issue how to make an update of secondary Miuiandroid. It seems it's not possible from within Miuiandroid, it says recovery not available. So I didt it from LolBoot update, and it went fine.

There is a problem I noticed, I can't connect SGS2 to Kies, says "Reconnect in Samsung Kies mode". I suspect it's due to changed kernel. Although I have 2.3.4. I'm not offered an update.
[Galaxy S II General] vinvam:
I had this exact same issue with an MIUI build that's supposed to work on the siyah kernel. Luckily I have unlimited data! :D

I also ran into a lack of system memory. Has there been any progress in expanding the second OSs partition?

Overall, a great app/mod and I look forward to future versions!
[Galaxy S II General] hunter2k:
I have a good question for you sir Hellcat! Currently got lightening mod 6.1+ cm7 running, now I forgot to install Google apps for cm7 which is my secondary, now how do I get into recovery for the secondary rom to install the googleapps zip file? Also when cm 9 stable comes out which is the easiest way to update my secondary rom?
[Galaxy S II General] HellcatDroid:
Power down, plug in USB or AC => recovery.

Will, however, not work for installing CWM ZIPs into the secondary - unless the updater script in the ZIP is edit to point to the proper flash partitions.

Yeah, none.

ICS isn't supported yet.

Have to wait for Samsung to release ICS kernel sources for stock ROMs and CM or Siyah or w/e for AOSP ROMs.
[Galaxy S II General] bhavinpatel95:
Look's interesting, gonna try this out :D
[Galaxy S II General] Lost.soul:
hellcat, a quick question, not sure if this is possible just thinking out loud..

If we format the sd card as ext2/ext3 with the needed partitions, is it possible to install the secondary os there? Thus maybe creating proper sizing and fixing the issue with the memory?
[Galaxy S II General] HellcatDroid:
Hmm, at least worth a try.

I am just wondering what happens when you mount the storage to the PC....

Well, only one way to find out ;):D
[Galaxy S II General] MemoryController:
Hmm maybe we could have a native ubuntu arm dist as secondary using the mainstream kernel...??? :)
[Galaxy S II General] HellcatDroid:
We'd need a full set of drivers for it....
[Galaxy S II General] josepetit:
oh god..really nice..!!
[Galaxy S II General] HellcatDroid:
Good news, tried to boot the secondary off the ext. SDCard - and it looks well!

Got some kernel related issues to sort out, so can't check too much at the moment, but at least the secondary boots and has it's own /data - all on the ext. SD :D

Cache is also supposed to be on the ext. SD, so not only is that seperate from the primary, but also big enough for like the market downloads and those things (or at least so I hope).

But can't check on that ATM due to the kernel (driver) issues I have to sort first - I might change the whole kernel handling alltogether.... gotta try a few things.
[Galaxy S II General] reonho:
Would not boot....

can anyone help me here?:( i removed the secondary rom with lolboot but did not change back the kernel. Then i assumed that recovery was back to normal again so i used the backup function in clockworkmod. my phone is now stuck on the "samsung galaxy s2" with the yellow warning triangle. Pls help guys i dont want to end up with a brick. i cannot get into recovery even when charging. However i can still get into download mode and am about to flash with odin.

Any help is much appreciated as i'd hate to start from stock rom all over again.

Thanks in advance..
[Galaxy S II General] HellcatDroid:
Just flash a non-dualboot kernel via Odin.

Kernel alone is enough, no need to flash a whole ROM.
[Galaxy S II General] reonho:
Thanks a lot, phone is back to normal...
[Galaxy S II General] xRipleyx:
hi i want to dual boot miui and villian rom so I did a backup through CWM of miui, then flashed villian rom and installed your lolboot app. when i press "cache current OS installation for later setup as secondary boot" a warning comes up saying "the system you are about to cache for being setup as secondary boot is larger than the available space on the flash partition it will be installed on"

what should i do?

Thankyou
[Galaxy S II General] HellcatDroid:
Not much.

Delete stuff on /system until it fits or use another ROM.
[Galaxy S II General] Lost.soul:
You just made my day!!

If you need a guinea pig am weigh to be your loyal test subject :D
[Galaxy S II General] HellcatDroid:
:D oh this is going to be COOL :cool:

Not only did I finally manage to get standalone native commandline executables to be compiled, I also managed to access the screencontent/framebuffer and hardware keys.

i.e. things are going to change!

I'll make it that upon recovery button combo you'll get a BOOTMENU where you can choose which OS (1st or 2nd) to "activate" (that OS will then always be booted on normal power on, untill changed again in the bootmenu) or to actually go to recovery (which will solve the "can't access actual recovery anymore" problem!).

Maybe I'll even manage to make use the touch properly, but that's a "maybe" as of now.

Gotta do some lowlevel codings now (like my own text renderer and image loading/displaying) and will make a POC video for some teasage ;)

// EDIT

Ohyes, and as stated earlier, the secondary OS will also be installable onto the external SD-Card - once and for all solving SPACE issues, so /data and /cache will be big enough on the secondary too.

The new methods I am going to implement would (in theory!) also allow for like three, four, five or twelve OSes - I just have to check if I can use a partition table on the ext. SD that's NOT msdos style, like GPT or similar.

When the S2 "understands" those and we could make more than 4 partitions on the SD.... yay :D

If not, it'll just stay a dualboot - cool enough ;)
[Galaxy S II General] Thialala:
Great. Looking forward to it. I'm following you dayly :-D .
[Galaxy S II General] Lost.soul:
So a bootmenu like grub? Could we then boot several kernels? IE: your kernel for stock based and siyah for the others :D
[Galaxy S II General] HellcatDroid:
Way more simple, but basically something like that, yeah :D

Yeah, the way I have it planned so far is that when you select which system to use, it will reflash the kernel to apply "the setting".

I will also add an option so that it knows if to flash my or the Siyah based kernel for the selected choice.

I.e. you can configure for example "OS 1 = stock based kernel, OS 2 = Siyah based kernel", when you then select "OS2" in the menu it'll flash a Siyah based kernel that always boots the 2nd OS, then you go back to recovery, choose "OS1" and it will flash a stock based kernel that always boots the 1st OS.

And of courese the will be the 3rd option "just launch recovery".

// EDIT

Here's what I'm toying around with.

I know the graphics are not amazing, it's pretty much all "placeholders" to just have something to use.

Also, keep in mind, this all happening in recovery mode! :D

(click for full res. view)
[Galaxy S II General] Lost.soul:
This is looking way cool! Can't wait

:D
[Galaxy S II General] wurzelsepp3:
Amazing work!

I can't wait to try this.
[Galaxy S II General] knightofdenmark:
Use a usb jig if downloadmode don't work. Can be bought for about 1$ each at ebay

sent from my sgs2

kp8 4.0.3
[Galaxy S II General] Thialala:
Awesome. Looking forward too.
[Galaxy S II General] HellcatDroid:
Got a "browsable" testbuilt of the bootmenu working tonight.

Here's a small vid of it in action:

http://www.youtube.com/watch?v=AjZLWO83F1c

(don't forget, all in recovery mode :cool:)
[Galaxy S II General] Thialala:
:-D. Great. When are you going to release ?
[Galaxy S II General] snowblind2142:
Im on here every day too ;)

cant wait to get this rocking mate. legend ;)
[Galaxy S II General] mekhonte:
Howto completely get back to stock?

Great work:)

I wanna give it a shot but before that I want to know howto get back to were I came (now driving Stock firmware + siyah 2.6.7+ kernel)

That would be a great idea if you change siyah ver2.2 to latest one :D
[Galaxy S II General] HellcatDroid:
It would be great idea if people would READ the previous pages of the thread where all those things are answered :p

When I get to building the new dualboot kernels (a lot of things will change with the bootmenu - again, see previous pages of this thread) I will check what's the latest source availabel for Siyah.
[Galaxy S II General] mekhonte:
sorry, my bad.:o
[Galaxy S II General] RaPiiDe:
Thank for this amazing app ! I've tried to use CM9+MIUI as dual boot but it's not working. After installation of both of them (I've tried with this tutorial : http://phonemantra.com/2012/01/how-to-dual-boot-android-on-samsung-galaxy-s-ii/), if I try to boot with the first one (CM9), after the Samsung logo, my screen is black (only key are lightning).

If I try to boot the second (MIUI), after the Samsung logo, there is the bootanimation... but bootloop... :(

If someone knows why that's happening, thank you to help me ! :D
[Galaxy S II General] stormtroopercs:
I believe its not possible with cm9 because of no kernel sources so there isn't a dual boot kernel for cm9. Not even custom kernels with just cm9. ;)
[Galaxy S II General] Lost.soul:
Yeah cm9 is ics meaning kernel 3.0 doesn't work
[Galaxy S II General] HellcatDroid:
Yep, as mentioned only about 816 times so far: no Sammy ICS kernel sources, no ICS dualboot; We get Sammy ICS kernel sources, we get ICS dualboot :p

But in the meantime I'll be busy anyways, for those who missed it, a short rundown of the changes to come with the next update:

secondary OS on ext. SD Card (not yet sure if optional to how/where it's put so far or if I completely switch over)

recovery mode button-trigger will no longer boot secondary system, instead it will give a (boot)menu (POC demo here: http://www.youtube.com/watch?v=AjZLWO83F1c) where you can choose which OS is "active" or launch actual recovery (this also solves "can't reach recovery anymore" :))

normal boot/power-on (no button pressed) now always boots the OS selected "active" in above's menu until changed again

as above's OS choosing is done by flashing a statically patched kernel that always boot the same (selected) OS instead of setting an option and having the kernel decide on boot, you can have a different kernel per OS, e.g. stock based kernel for primary and Siyah based for secondary; you only need to set this once during initial setup and when "activating" the other OS the kernel of choice is used.

This also prepares for ICS, as using this method is going to allow the dualboot of one GB and ICS ROM :cool:

I think (hope) that the move to ext. SD and the new method to "set the current OS" will improve stability, usability and fix some other issues (like space and market crashes hopefully).

:)