yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] Paradoxxx:
Let us know dude. Could be ice to see that thingy work properly.

Btw, what's your build time on your i7 2600k? :D
[Galaxy S II Original Android Development] norpan111:
Damnit i really would like to install Ubuntu now but my wife would sell me to some rich perverts for pleasure and punishment :/
[Galaxy S II Original Android Development] Paradoxxx:
Ahahahaha. Poor you. Dual boot ftw !
[Galaxy S II Original Android Development] norpan111:
That's what she hates:p grub menu messing with her brain saying I've broken the PC
[Galaxy S II Original Android Development] Paradoxxx:
set it to one/two seconds and auto boot to windows like a bawss. :cool:
[Galaxy S II Original Android Development] bartoloandre98:
Damn women are only good for sandwiches,nothing else.

Sent from my SGS2
[Galaxy S II Original Android Development] Makrilli:
you could use virtual ubuntu for example vm virtualbox or VWware. But anyway it's going a little off topic in here
[Galaxy S II Original Android Development] pulser_g2:
Dual boot of B2G and Android working!

Thanks to gokhanmoral for helping out with it, because my attempts ended up failing close to the hurdle, but he got it all working!

Anyway, I am going to be posting builds which are b2g based on ICS. So you need to use the new siyah kernel (whenever that comes out), along with an ICS ROM.

You can use b2g or Android as your primary rom. The secondary will store its data on the internal sd, and it's system folder in the "wasted" 500MB "hidden" partition. Just how siyah does dual boot!

Anyway, that's today's update - dual boot android and b2g now possible without re flashing!

Thanks again, gokhanmoral :)
[Galaxy S II Original Android Development] rlorange:
Oh yeah Gecko and CM9! Now we're talking a really useful dual boot setup!

This really is exciting development, amazing work from GM and yourself. Siyah is now light years ahead of any other custom kernel.

3.2.2 with B2G support should be out in 24 hours at a guess so expect this thread to explode soon :)
[Galaxy S II Original Android Development] sam razzy:
oh my goshhhhh ♥
[Galaxy S II Original Android Development] julle131:
Can't wait. I hope you get your zip build out soon. Where will it land? To the link in first post?
[Galaxy S II Original Android Development] bartoloandre98:
According to their weekly notes they are planning to move to ics on the sgs2.
[Galaxy S II Original Android Development] pulser_g2:
Yeah, it's [ICS version] working fine on my S2.

Won't be posting B2G before tomorrow though... Got other more important things needing done right now :(

It won't be a zip yet, rather you'll put a file on the SD card, and flash a PDA via odin (which won't overwrite your stock ROM).
[Galaxy S II Original Android Development] bartoloandre98:
No problem pulser no rush,real life is more important. .Thanks for everything!!

Sent from my SGS2
[Galaxy S II Original Android Development] julle131:
Sounds nice. Real life > computer "life" ;).
[Galaxy S II Original Android Development] blizzari:
Problem is i can't get through the lockscreen.

Tried ''unlock''

And Swipin up, down, left and right nothing works
[Galaxy S II Original Android Development] julle131:
It is know bug atm. Just wsit till pulser posts new build.
[Galaxy S II Original Android Development] pulser_g2:
https://www.villainrom.co.uk/forum/threads/introduction-to-dual-boot-of-boot2gecko-b2g.5436/

There is a link to Siyah 3.2.1 with B2G support too, for anyone eager to try.

Not tested the dual boot, but GM has :)
[Galaxy S II Original Android Development] blizzari:
Tried already works perfect. Only some flickering, but else just great!
[Galaxy S II Original Android Development] pulser_g2:
Awesome. Everything working as expected etc?

Perhaps someone could take some screenies for this thread, being as I've not got time to :(
[Galaxy S II Original Android Development] kyle1b1:
Would be nice to see a few screenshots. Looking forward to this maturing a bit and in zip form.

Will be nice to have something a little different.
[Galaxy S II Original Android Development] sam razzy:
What's working and what's not? Is that the same as old one like data not working?
[Galaxy S II Original Android Development] pulser_g2:
Wifi works. I know that :)

Data should work in theory if you follow the upstream instructions for it...
[Galaxy S II Original Android Development] julle131:
Odin couldn't flash the dual-boot system image, and heimdall gave me error in 88%.

Failed to confirm end of file transfer sequence! hidden upload failed. command i used(in windows 7 machine): heimdall flash --hidden hiddenfs.img. Can you help me with this info?
[Galaxy S II Original Android Development] blizzari:
Yeah WLAN shows signal, but i dont get any connection. Whenever i go to google it say's could not connect [www.google.com]. And i cant shut down the WIFI or when i go to the setting's it does not show any connection. Bug or?
[Galaxy S II Original Android Development] pulser_g2:
Did it work after the ODIN flash? I've heard about Heimdall 1.3.2 having bugs, so maybe try 1.3.1?

If ODIN works though, might be best to just do it?

MD5s of the files in case you wish to check:

3b32dc8ebfc4ce51b41475ed957c49ad Boot2GeckoDualBootsystem.tar

cbd34036e7be4f993f519288d25e4faa data.img.zip
[Galaxy S II Original Android Development] pulser_g2:
No idea tbh. I don't follow development of B2G in enough detail. I was browsing the internet though last night, and this *should* be identical to what I was running :) I took the files, and packaged them up, and synced with the server :)
[Galaxy S II Original Android Development] julle131:
downgraded heimdall to 1.3.1, md5 matched... still same eror in 88%... Heimdall frontend gave error: firmware.xml is missing from the package.
[Galaxy S II Original Android Development] sam razzy:
Sorry my friend... I'm bizy on my exam... but I'll download this on Wednesday evening .. where can I find upstream instruction..? I can't find op
[Galaxy S II Original Android Development] pulser_g2:
Don't flash it as a heimdall firmware package - flash it manually in the second tab as HIDDEN partition :)
[Galaxy S II Original Android Development] julle131:
Thanks :). Seems i didn't know how to use heimdall after all...
[Galaxy S II Original Android Development] bartoloandre98:
Can't I flash boottogeckosystempartition using mobile Odin pro?

Its is saying no partition file found.

Sent from my SGS2 powered by cm9 love
[Galaxy S II Original Android Development] psx2pal:
I have problems with HIDDEN partition, too.

Odin i get a failure and i must reflash the kernel.

Heimall (Win7 64 Bit and Ubuntu 64 Bit) same as julle131 , it stops at 88%.

Edit: With heimdall 1.31 on ubuntu 12.04 64 Bit it works perfectly.
[Galaxy S II Original Android Development] julle131:
Hello. Its me again. I have over 9000 problems(or atleast so it feels :(). This time about gaia... I put the data.img to /sdcard/.secondrom, but gaia doesn't seem to load. I get to lockscreen, but when i unlock it, there is nothing. Does it require a long time for it to boot, or have i failed an easy step as this?
[Galaxy S II Original Android Development] pulser_g2:
Hmm... It's possible I messed something up tbh...

I need to look at it tomorrow or the day after :(
[Galaxy S II Original Android Development] psx2pal:
Jep, after lockscreen its black, only the statusbar is available.
[Galaxy S II Original Android Development] ROHIT345:
+1 can confirm its black screen after lock screen...
[Galaxy S II Original Android Development] julle131:
I'll try to get wubi running, so i can install it manually.
[Galaxy S II Original Android Development] pulser_g2:
Yeah. You can make install-gaia and it should be fine. I will need to work out how best to get a working data.img with the stuff pre-installed, since they stopped putting the offline cache into the built data.img.
[Galaxy S II Original Android Development] Makrilli:
The kernel and b2g installed with no problems. But it doesn't give me option to boot to secondary rom, maybe siyah 3.1.2 will work. I hope it will be out tomorrow morning so I can give it a shot
[Galaxy S II Original Android Development] psx2pal:
Hey, you must install B2G with the tutorial. Then you must swap with siyah recovery the two roms. After this compile B2G on your PC, but don't flash anything. Have you done it, go into B2G folder and do this with connected smartphone:

cd gaia
$ git pull origin master
$ cd ..

Then you can update Gaia on the phone with the following commands:

$ make install-gaia

After this gaia should be working. I think you can swap the roms again.
[Galaxy S II Original Android Development] Makrilli:
I did it like the tutorial said. Also siyah 3.2.2 didn't work. But I'll try today to flash b2g as primary and then swap roms.

Sent from my sgs2 running cm9
[Galaxy S II Original Android Development] mljjlm:
Also flashed with succes and transfered the files like in Pulser's tutorial, but the kernel won't show me the dual-boot-screen...
[Galaxy S II Original Android Development] pulser_g2:
Hmm... I will need to check how siyah decides if it's going to offer dual boot or not. As we've not added a cache.img file :p

EDIT: Yep OK, I know the issue I think. You need to put a cache.img into /sdcard/.secondrom for siyah to decide there are 2 ROMs...

File should be 100 MB EXT4 image if anyone wants to try :) Once it's there, dualboot should be offered
[Galaxy S II Original Android Development] mljjlm:
How would I create that from terminal? :-)
[Galaxy S II Original Android Development] gabx:
Great job to every one.

I am a few days late, as everything is set up on my box to build B2G, and was thinking doing today!

I will then use Vilain Rom ICS B2G build.

Does everyone knows which ICS stock Firmware has been used to build B2G ? Because of the bootloader issue with CM9 (I want to dual boot CM9/B2G), I was thinking building against I9100XXLPB_I9100OXXLP5_OXX (lower than LPH if I am correct).
[Galaxy S II Original Android Development] pulser_g2:
What bootloader issue?

In terms of B2G, it was XXLPQ that you're meant to use. Just do the make config-galaxy-s2-ics or whatever, and it syncs up the gonk-ics folder. Then check device/samsung/galaxys2/extractfiles.sh and it tells you which build to use.

In terms of bootloader, I'm using the old one which allows jig anyway... What's the issue with CM9 and bootloader btw?
[Galaxy S II Original Android Development] pulser_g2:
Hmmmmm....

Try this, be careful as it's a potentially dangerous command if not done right...

dd if=/dev/zero of=cache.img bs=1M count=100

mke2fs -F -T ext4 cache.img

Run that from your PC, you should get out a .img file you can put onto the device.

This MAY work from the phone, but be careful using dd and mke2fs :)
[Galaxy S II Original Android Development] Makrilli:
If that doesn't work you can just download that hiddenfs.img to your phone and rename that to cache.img and move to .secondrom. That worked for me :D but for me to gaia didn't work.

Sent from my sgs2 running cm9
[Galaxy S II Original Android Development] gabx:
From CM9 discussion thread |OP| instructions:

I am currently running CM9 (coming from CM7) + Syiah.

To build B2G, assuming my build environement is already set up (Linux), my plan was this following one:

nand backup CM9

Clone Primary ROM to Secondary

Full wipe

install stock Samsung ICS ROM

Root + flash Syiah Kernel

Build process following B2G wiki

So in this way, according to what I understand, flashing any Firmware > LPH could change the bootloader and make CM9 not booting anymore.

Am I wrong?
[Galaxy S II Original Android Development] pulser_g2:
You don't need to install the samsung rom at any point :p

You can extract it and pull the proprietary files from a folder on the hard drive :)
[Galaxy S II Original Android Development] julle131:
Gaia works after installing it with ubuntu machine.
[Galaxy S II Original Android Development] gabx:
OK, I see now.

Sticking to the B2G wiki, I thought I needed to install stock ICS Firmware on my device, then adb pulling nedded files.

I read LPQ and ZSLPF were the ref Firmware to build (even if some manged to build with other one when tweaking extract-file.sh ), so I was afraid installing LPQ would indeed leave me with a wrong bootloader and unable to boot anymore CM9!

In short, may you explain (or give pointer) how to build without installing ICS Samsung ROM on my device? As my build environment is already set up, I may wish to give a try to build myself.

First will try with Vilain ROM system and data image.

Again TY to you and Gokham for this new capability. I already tried B2G, and I do think this will be the next big thing. So dual booting CM9/B2G have been a secret dream for a while now.

In case more people want to try to build their own, here is a good pointer, from the B2G mailing list :

http://johnhammink.blogspot.ca/2012/05/part-3-updating-your-gingerbread.html
[Galaxy S II Original Android Development] umermajeed:
I tried dual booting with b2g with D4 which is a CM9 based ROM....installed siyah 3.2.2 but when I try installing the dual boot system image through odin, it fails...is there a way to find out what the problem is and how it can be fixed?
[Galaxy S II Original Android Development] Makrilli:
You have to flash it with heimdall

Sent from my sgs2 running cm9
[Galaxy S II Original Android Development] umermajeed:
When I load the file in heimdall it says firmware.xml missing from the package.
[Galaxy S II Original Android Development] pulser_g2:
Yup gokhan spotted my "ahem" deliberate mistake... I called the file in the tar "hiddenfs.img" rather than "hidden.img"

I'll fix it later, or use heimdall and tell it to flash JUST hidden.

Use the second tab to flash it, not the firmware package flasher. :)
[Galaxy S II Original Android Development] umermajeed:
Heimdall is not working for me...it doesn't detect my phone for some reason...I am guessing i can't just change the name of the image and install that...

---------- Post added at 12:43 PM ---------- Previous post was at 12:29 PM ----------

Got the phone to connect and tried installing as hidden...still didn't work...

Uploading HIDDEN

0%

1%

2%

3%

4%

.

.

.

79%

80%

81%

82%

83%

84%

85%

86%

87%

88%

ERROR: Failed to confirm end of file transfer sequence!

HIDDEN upload failed!

Ending session...

Rebooting device...

So, please let us know after uploading the new file.
[Galaxy S II Original Android Development] Makrilli:
What os are you using. Someone was using windows 7 and he had the problem. Then he flashed with ubuntu and it worked

Sent from my sgs2 running cm9
[Galaxy S II Original Android Development] psx2pal:
Use heimdall 1.3.1 then the 88 % error is gone. I have test it.

You can create the cache.img in the recovery menu. Go to dual boot options and then "clear cache 2ndRom". It's possible the the menuname is a little bit different. Then you have the cache.img .

But you must install gaia again.
[Galaxy S II Original Android Development] julle131:
I had that. Flash in second tab, heimdall 1.3.1.

@Makrilli I succeded to do it in win 7.
[Galaxy S II Original Android Development] Makrilli:
I get this when using make install-gaia:

Profile Ready: please run [b2g|firefox] -profile /home/makrilli/gaia/profile

/bin/sh: adb: not found

adb start-server

make: adb: Command not found

make: *** [install-gaia] Error 127

makrilli@ubuntu:~/gaia$

I'm gonna throw my laptop out of a window soon, any help?

I also guess that this is easy to solve but I'm complete noob with linux.
[Galaxy S II Original Android Development] julle131:
I'm on phone so i cant post links easily. Follow lazymans guide to install adb. After it adb should work without terminal being in its folder. Then run the make install-gaia. Link to guide

http://xdaforums.com/showthread.php?t=921169
[Galaxy S II Original Android Development] rlorange:
Am I correct in assuming that once the System part of B2G has been made into a CWM flash able zip it will be installable directly to 2nd rom hidden partition?
[Galaxy S II Original Android Development] Makrilli:
I had sdk installed and I also tried manually to start server but I got the same error. Is the offlinecache a image file, and if yes, could anyone upload it?
[Galaxy S II Original Android Development] M1cky:
Same question.
[Galaxy S II Original Android Development] julle131:
I dont think so. It is more propable to be installed to normal system partition, because it is so easy to put it to second system. Also, I dont think CWM can flash zips to hidden partition. Just remember that i can be wrong.

I can't access the computer i made it with, and im in school for the whole day, till tomorrow. Some random school thing. What i did was:

1. Install openjdk 6 from ubuntu software center.

2. installed some random libs because adb didn't run, just told that adb cant be found or smt.

then i got adb working. after that I put adb to work without terminal being in its folder with the guide. Then i run make install-gaia and the install worked.
[Galaxy S II Original Android Development] psx2pal:
Here use this guide, then you can compile gaia:

https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment

and

https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Building_B2G_for_Samsung_Galaxy_S2

The important commands (Important that B2G is installed and swap to primary rom, after this you can swap it again):

# Path to adb, must change
PATH=$PATH:/home/mozilla/gits/B2G/glue/gonk/out/host/linux-x86/bin
export PATH

#Clone B2G
git clone https://github.com/andreasgal/B2G.git

#Copy sgs2 Files, smartphone must be connected
mkdir sgs2-android
cd sgs2-android
adb pull /system system
adb pull /system/vendor vendor

#Make B2G
cd B2G
make sync
# Path to sgs2 Files
export ANDROIDFS_DIR=sgs2-android
make config-galaxy-s2
# or for ICS
make config-galaxy-s2-ics
make
# Connect sgs2
make install-gaia

For more infos, read the website.
[Galaxy S II Original Android Development] MemoryController:
Hmm b2g says invalid profile for data.img ..... Loads but not to gaia when using formatted data.img
[Galaxy S II Original Android Development] julle131:
You must "manually" install gaia. You need a linux pc for that.
[Galaxy S II Original Android Development] D4rKn3sSyS:
This looks amazing. Just a question, as it's based on Mozilla's source, it's WebGL rendering (either software or hardware), working on it's browser?. It would be interesting to have a native feature for this.

ps. Sorry for spaming the thread :)
[Galaxy S II Original Android Development] rauschkugl:
it's possible with siyah kernel to flash a zip file directly to the second rom partition (hidden partition).

it really would be great to get a complete zip file without having to do anything else after installing it.
[Galaxy S II Original Android Development] pulser_g2:
Gm has sent me one to test later. But it still needs gaia installed, so I want to figure that out
[Galaxy S II Original Android Development] runedrune:
Maybe its better not having this so easy to flash. If you can't do it the hard way you probably shouldn't be running something in its alpha stages.
[Galaxy S II Original Android Development] rauschkugl:
the noobs will try it anyway because they saw it on the kernel thread and then you'll have the thread cluttered with posts that it doesn't work and stuff. no way to avaoid this. but with an easy to install zip they wouldn't come and complain because they can't get their phone working anymore.

I studied informatics so wouldn't have a problem to set it up on my own i just don't have time and space to set up a vm with ubuntu at the moment.
[Galaxy S II Original Android Development] gabx:
Following instructions, I am able to dual boot CM9 and B2G.

When on B2G (second ROM), I don't have Gaia, so I need to make/install it.

I guess I shall I do it when my device is running B2G, Can someone confirm ?

EDIT : make/install Gaia went fine.

I have now a running dual boot CM9/B2G device.

TY for your work, Pulser.

B2G is very slow btw.
[Galaxy S II Original Android Development] pulser_g2:
yes
[Galaxy S II Original Android Development] gabx:
As edited, make-install went fine.

Now fully working GSM-wifi-sound.

System is slow still, Calls are ringing, I hear but they can't hear me.

TY again, I will keep this dual boot for long I think. I need now to finish my building environment in order to build B2G without the need of stock ICS abd pull from the device. I guess I have to extract the Firmware folders and cp rather adb, right?

If you have any short How-To, I will be pleased.
[Galaxy S II Original Android Development] pulser_g2:
1) be sure you're building for config-galaxy-s2-ics :)

2) Find the part in glue/gonk-ics/device/samsung/galaxys2/extractfiles.sh

DEVICE=galaxys2

COMMON=c1-common

MANUFACTURER=samsung

and add after it

ANDROIDFS_DIR=/home/build/Desktop/XXLPQ

where that folder contains a subfolder "system" containing the contents of the ROM. It will then happily pull from there :)
[Galaxy S II Original Android Development] gabx:
Thank you so much for the trick! I will try asap to build my own.

I am writing an easy to follow How-To in my thread, with using your own data.img file.

I am very excited by this dual boot. I Have been dreaming about it since long.
[Galaxy S II Original Android Development] android_isda_shit:
ok forget dual booting, please make this rom stable for daily, please, and does this rom

depend on internet connection? or will it work offline, will it make calls and stuff offline?
[Galaxy S II Original Android Development] pulser_g2:
Lmao.

I don't develop this. If you want to offer your services to Mozilla to improve it, feel free :)

I just make the builds :)

It's approaching alpha at some point in the near future, personally I think it's far from alpha tbh...

Once I post a zip based build, it should work offline, in terms of calls etc, though it comes untested and to be presumed broken
[Galaxy S II Original Android Development] android_isda_shit:
the first time i see the term "Lmao" on xda, anyways, how long do you think it will take and hows the battery life on this, is it better then GB?
[Galaxy S II Original Android Development] rauschkugl:
you're expecting something wrong. this is pre alpha, not even half of the stuff will work so you don't have to care about battery on it.
[Galaxy S II Original Android Development] kickassdave:
agreed.

This is not for you! Most things don't work at all, and as mentioned a few posts before you, it's also really slow. This is far from a daily working ROM. Very interesting though :)

I'm dying to try something different than the normal GB/Sammy ICS+CM9/AOKP/AOSP/MIUI/Dianxin roms that we currently have. Once this has working calls, and better speed, I'm sure there will be a whole of folk willing to give it a try.
[Galaxy S II Original Android Development] gabx:
For interested users, I write a quick How-To in the thread under my signature, post 3.

This step by step guide has been writen in the rush, but all steps are well described and work.

Hope it can help

---------- Post added at 07:18 AM ---------- Previous post was at 07:03 AM ----------

mozilla-dev-b2g@lists.mozilla.org : B2G mailing list. Go ahead, they are waiting for you dude!!
[Galaxy S II Original Android Development] gokhanmoral:
http://www.gokhanmoral.com/public/files/b2g.zip

1- install Siyahkernel 3.2.2 or later

2- reboot into recovery, dual-boot options, wipe 2ndROM data&cache

3- install the zip above to 2ndROM using dual-boot options menu

I may not have packed it properly.. some buttons do not work but it can connect to wifi and will give you an idea until pulser prepares a better pack.

warning: it will wipe your data during the installation. if you install it directly (not to 2ndROM but to your primary rom) do not compain about losing your data.
[Galaxy S II Original Android Development] bencairns:
Thx for the zip gokhan and pulsar. Looks very promising but gonna be hard to beat cm9. Will be interesting to see where development goes with this. Lets hope it dosnt die in the arse. Much rather dual boot with this and cm9 over a sammy rom
[Galaxy S II Original Android Development] bartoloandre98:
UI is like miui and @ Ben u can't say it won't beat cm9 as its not based on android,this is not a custom rom.