yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] ajayshah95:
I installed this once (just the alpha) and it worked.

However, after the introduction of the two new .zip files and the new instructions, I have flashed this rom again and it sticks at the Samsung boot screen with the yellow triangle, but does not show the boot animation.

I can boot into recovery using the Vol Up method and restore my backup, but cannot boot into this rom :(

Any help would be much appreciated, I have tried searching this thread and reading through the last few pages but everyone says repartition .pit, except my backup works fine and no data is inaccessible or corrupted, the rom just fails to boot.
[Galaxy S II General] Rueben_:
I think you also have to change the boot.img to get wifi as well as the .so file :)

http://xdaforums.com/showpost.php?p=28052712&postcount=91
[Galaxy S II General] Tuqano:
Why you don't read the *****d 1st page??!!:silly: Read OP and don't ask the same thinghs everytime!!!! I am not arrogant but a lot of people yet have asked this!! so read OP....just go to the first page!!! :good:
[Galaxy S II General] :
it fails on boot due to some reason (no idea) but the re-partition works to make it boot

i know but i must know how to edit the boot.img

got :

$ CC=arm-linux-androideabi-gcc make

arm-linux-androideabi-gcc -shared -Wl,-z,interpose -Wl,-soname,libhardware_legac y.wifi.so -o libhardware_legacy.wifi.so execs.o load_file.o wifi.o

process_begin: CreateProcess(NULL, arm-linux-androideabi-gcc -shared -Wl,-z,inte rpose -Wl,-soname,libhardware_legacy.wifi.so -o libhardware_legacy.wifi.so execs .o load_file.o wifi.o, ...) failed.

make (e=2): can't find the file

make: *** [libhardware_legacy.wifi.so] Fel 2
[Galaxy S II General] ajayshah95:
I did read it thanks, as well as searching this thread. Maybe I'm missing something or the OP is too technical for me but I followed the instructions exactly.

Sent from my GT-I9100
[Galaxy S II General] Rueben_:
I keep trying different methods for Ubuntu to extract it, this time suing the kitchen and get the error :

Working folder found

Android 'magic' header not found at start of boot.img
Checking if it exists elsewhere ...
Warning: Android header not found in boot.img (unsupported format)

Kernel found at offset 24061976 in boot.img
Making folder BOOT-EXTRACTED ...

Extracting kernel ...
Error: zImage is empty!
Extracting ramdisk ...
Error: No ramdisk folder found!
[Galaxy S II General] Tijmen:
If the OP is too technical or if you miss something in those rather clear instructions than this ROM isn't for you. This is not a working ROM, this is either a joint effort of developers to make things work and learn stuff, or a preview for the curious

and able

. But far from a daily driver for people "who know how to root".

So please lurk silently or wait for TeamHacksung.
[Galaxy S II General] Kronkels:
First Line Support??

I shure now how to root, I got in trouble many times, bricking my phone, always got it up and running again so I consider my self not a compleet noob, reading this topic from a to z I decided to keep as far away from this ROM as possible, would love to see JB running on my S2, but its to riscy.

Can understand people who flash it any how, they do just because they can download the ROM(is it a ROM??? don.t think so it is an pre pre pre Alpa off an hopefully working ROM in the far futere) Maybe the developpers, who are doing a great job in there efford and even bricking there one phone, should keep the download for them selfs to work on it and only release it when its sure it won't brick any phone when flashing it.

Just an idea, to stop this topic from ending up in a First Line Support for bricked S2's.
[Galaxy S II General] kmelkon:
this is a bit offtopic .. but can you point me to the sense 4 rom please ??:)
[Galaxy S II General] wess786:
Here you go

http://xdaforums.com/showthread.php?t=1704542&page=44
[Galaxy S II General] sgs2.5:
there is a discussion thread<--- for discussing wether or not a device will get JellyBean.

There's even a poll!

This thread (here) is for devs, numbercrunchers and hackers porting the beta to the S2!
[Galaxy S II General] cobhc:
To be fair, I don't think it was what you said that got to him, more the way you said it. That, and the use of bold letters and underlined text to make your post stand out even more probably made it seem worse than you intended.

Plus if you don't like what the developers here are working on, then you have no obligation to try the rom, and have no right to post negative comments in here.

Not getting on to you, just trying to make you see things from a different point of view :)
[Galaxy S II General] Jimbojib:
I've got ubuntu working but hte problem is getting it to recognise my files being there, shouldn't be too hard, it's just so slow
[Galaxy S II General] cobhc:
Cool, now is there anything I can do to help man?
[Galaxy S II General] Jimbojib:
If you can open the boot.img that'd be awesome. Needed to fix the wifi I think?

Either way it's useful
[Galaxy S II General] cobhc:
Where are you hitting snags opening it?
[Galaxy S II General] Tijmen:
Gave up on audio? Or would that too be in the boot.img? Would love to help, but need to finish a lot of work before my holiday saturday. :D

Could set up a Ubuntu environment and let you VNC into it, though...
[Galaxy S II General] :
Whatever you can do or not is ok your interested,
[Galaxy S II General] Jimbojib:
Well I've got it in my linux workspace but I dunno what to open it with
[Galaxy S II General] cobhc:
I'm assuming the standard unyaffs didn't work?
[Galaxy S II General] Jimbojib:
I haven't tried, someone else might've
[Galaxy S II General] cobhc:
Post a link to the boot.img and I'll have a go at it?
[Galaxy S II General] Jimbojib:
https://dl.dropbox.com/u/22901704/Android/boot.img
[Galaxy S II General] cobhc:
Just read that unyaffs doesn't work on boot.img only system and recovery. Looking at a kitchen now that's supposed to be able to extract the boot.img.
[Galaxy S II General] Jimbojib:
I thought they did but only ones created in a certain way
[Galaxy S II General] ChristosTzan:
When will be released without any problems?
[Galaxy S II General] cobhc:
Please don't ask for ETA's. It may be sorted tonight, or a month from now, nobody knows. Just keep watching and waiting :)

---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------

Not sure, I've seen posts around XDA stating that unyaffs doesn't work on boot.img files. Mine just tells me it's a broken image file.
[Galaxy S II General] Jimbojib:
I just unzipped the .zip and put it in my dropbox.

Gonna try the kitchen then?
[Galaxy S II General] cobhc:
Edit: Scrap all that.

I have a kitchen that will extract boot.img-kernel and boot.img-ramdisk.gz from a given boot.img.

Is that what we're looking for?
[Galaxy S II General] prbassplayer:
Thread cleaned. Guys play nice. If something doesn't belong, report it do not add to it.

Cheers
[Galaxy S II General] Jimbojib:
Pretty much
[Galaxy S II General] cobhc:
Seems to work for the included boot.img that comes with it, but not for the boot.img you provided. Maybe the perl script isn't compatible, seems like an old kitchen. Also is the boot.img protected/encrypted in any way?
[Galaxy S II General] Jimbojib:
Not that I know of I can't remember which we're using but it might be the CM9 one, so probably not
[Galaxy S II General] sgs2.5:
after some fails opening boot.img :p and eventually looking for strings my best guess is that it's an LZMA compressed kernel. no luck mounting it though...

The most usefull stuff in there; (besides JB :good:

Uncompressing Linux...

decompressor returned an error

done, booting the kernel.

LZMA data is corrupt

Does that help anyone?
[Galaxy S II General] cobhc:
Didn't manage to get it extracted myself either. Damn, this is frustrating!

Edit: Tried a few more things and getting either no such file or directory when running a perl script to unpack the boot.img, or getting an "Android Magic not found in boot.img" error. I'm going to bed now, hope someone figures something out soon. Maybe a member of teamhacksung would be kind enough to share how to extract the boot.img.

G'night guys.
[Galaxy S II General] ChristosTzan:
we can remove navigation bar???
[Galaxy S II General] androidlover287:
Seriously

Eventually Yes, but we have more Important things to sort out, such as Wifi and bluetooth and audio (Audio is the most important)
[Galaxy S II General] :
Got it working with a really spectacularly ugly hack.

Download the attached tarball and build it (you'll need an Android standalone toolchain) with

Code:

CC=arm-linux-androideabi-gcc make You'll get a libhardware_legacy.wifi.so --

install that in /system/lib

. (

You could also cheat and use the prebuilt binary in the tarball

...) Then move /system/bin/app_process to /system/bin/app_process.real and /system/bin/netd to /system/bin/netd.real, and install the app_process and netd shell scripts in the tarball in their place.

For the curious: instead of hex-editing libhardware_legacy (which may not be sufficient, since you're not allowed to change the length of strings when you do so), or building it from source (risky since we don't have Jelly Bean source for it), we're providing our own copies of the relevant wifi functions in libhardware_legacy_wifi and using LD_PRELOAD to override the functions in libhardware_wifi.

so we don't have to compile, but we should put the so file in system/lib and eventually it will make wifi work (i can't say if our boot.img is already edited for this)
[Galaxy S II General] sgs2.5:
wooah !

Wooah ! Great find !
[Galaxy S II General] :
thats what i was talking about only need to find the way to extract the boot.img
[Galaxy S II General] kcir2012:
Help please!

Hi, it is my first time being here and I followed the procedure, step by step, but my S2 don´t have cellular signal :( I don´t know why... is there a solution? Thanks
[Galaxy S II General] :
yes you took the older zip ;) which doesn't work with cellular data,
[Galaxy S II General] stormtroopercs:
maybe you should remove the old builds and put up the new ones? anyways im trying out the wifi fix right now :) so excited
[Galaxy S II General] :
i don't have link for new zip
[Galaxy S II General] stormtroopercs:
here i made a zip with all of the new stuff.. i'll upload it soon
[Galaxy S II General] lys2002123:
I've tried to open the boot.img but it wasn't.

So I opened it with hex editor-which called 'Bless' in Ubuntu-, I found that there wasn't any magic number of archive format. I found nothing. 1f 8b 08 as a cpio gunzip, bzip, 7zip, and even LZMA wasn't included in boot.img..:confused:

and, why does this kernel not support "cat /proc/mtd"?

I tried to extract kernel and ramdisk directly from my phone which jb installed, but there is no way to do that:mad:
[Galaxy S II General] fishingfon:
I can have a go to extract the boot.img if you want, I extracted a boot.img from a galaxy nexus ics rom yesterday.

Let me know if u want me to try

And would I just get the boot.img out if the alpha rom on the first page? Or is the an updated one I need?

Corey
[Galaxy S II General] :
I can't say why it doesn't, seems like its protected
[Galaxy S II General] lys2002123:
Then...there is no way to seperate ramdisk from bootimage?
[Galaxy S II General] fishingfon:
I just tried to decompile the boot.img but the terminal say that the android magic is missing :-\

I have tried on Linux and windows but to no avail

Corey
[Galaxy S II General] xxr0x0rxx:
Great news LSD (if you dnt mind the acronym :P)... your hard work has paid off finally...

Thanks a million for this !! Hope it tests out perfectly ..
[Galaxy S II General] groggrog:
Bricked?

Hey I just flashed the alpha and upon first boot after CWM the device doesn't even power on. I pulled the battery a couple times, plugged it in, just dead. Anything else I can try or have I bricked it? Not the end of the world if I did, I took the risk, just wondering if anybody has another trick to get it to power up.

Thanks
[Galaxy S II General] stormtroopercs:
getting this error again with the wifi fix nothing else :/

E/BandwidthController( 2654): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256

E/BandwidthController( 2654): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256

stuck at boot logo

---------- Post added at 03:26 AM ---------- Previous post was at 03:21 AM ----------

can you get into download mode?
[Galaxy S II General] groggrog:
Nope :-(
[Galaxy S II General] stormtroopercs:
weird did you interrupt the flash? you cant have a brick just by flashing in cwm :p
[Galaxy S II General] groggrog:
Didn't interrupt it at all. It finished, I chose the menu option to reboot, and that was it. Maybe I'll let it sit a while and it'll come back, who knows. I just bought it last week so am thinking I could exchange it at the store even though I messed with it. I mean if it doesn't even power on, they won't even know I rooted it.
[Galaxy S II General] lys2002123:
Agree with you.

Go and say it just messed up after firmware update via Kies.

Your sgs2's bootloader might be broken so there is no way to confirm what you have done.
[Galaxy S II General] groggrog:
Ok will try that tomorrow. Thanks very much for the help and advice!
[Galaxy S II General] fishingfon:
Did u make sure it had enough charge left before you flashed it?

And have u tried using a usb jig to get it in to download mode?

Corey
[Galaxy S II General] bpear96:
The way samsung does there kernels, its very hard to just decompile/extract them. Your best bet, is to get the source code from the CM github, and reapply all patches there, plus whatever you wanted to do.
[Galaxy S II General] groggrog:
It was at about 100% when I did it, and plugged in to an AC outlet. I don't have a usb jig and don't think it'd work in this case because it says "As long as there is something on the screen, the jig should work for you." I've got nothing on the screen.
[Galaxy S II General] droidage89:
hi people uhm I found this

http://www.itechpost.com/articles/3218/20120703/galaxy-s2-s3-jelly-bean-custom-rom.htm

And was just about to flash it until I found this thread with the exact same download files and procedure, basically has the site got it wrong and ill completely blow my s3 out of the water if I attempt it?

Thankyou
[Galaxy S II General] fishingfon:
Have u tried cleaning the connectors on the battery and phone?.

Corey
[Galaxy S II General] lys2002123:
Then bpear96, there isn't any way to seperate kernel with ramdisk at this rom's boot.img?
[Galaxy S II General] jarari2:
Are you trying to port kernels for GT-I9100 on SHW-M250S? Nice!
[Galaxy S II General] lys2002123:
Nope, there are just few difference between gt and shw.

Partition difference and NFC, DMB(Mobile TV Broadcasting in Korea) supports.

If we do repartition wit PIT file for i9100, every kernel and rom for i9100 is able to be flashed on m250s.
[Galaxy S II General] jarari2:
edit:Wait, so are you trying to seperate ramdisk from kernel and replace it with korean one? I think I saw a post saying korean version can use Siyah on stock kernel if ramdisk part is fixed.
[Galaxy S II General] lys2002123:
No, I want to extract ramdisk to modify it.

If I flash the jb rom and reboot it, it refuses to recognise partition and fails to boot. So I have to flash pit manually. That's why.
[Galaxy S II General] jarari2:
Ah, yeah. I had that problem too. So that means if ramdisk part is fixed, we can reboot the phone without problem?
[Galaxy S II General] lys2002123:
Not definitely, but it has worth to do because we have many issues to fix.

I sended you a pm, so read and reply it plz.
[Galaxy S II General] DrunkFuX666:
Yes you probably will... flashing a s2 port on a s3 is never a good idea...

Tho I don't understand why you would take such a huge risk with a brand new phone anyway considering this is causing lots of bricks as it is... and if your not sure about flashing what on what... I doubt you will know what to do if you run into some serious problems...

Also the site states this port is "stable"... clearly they dont know what they talking about since half the things don't even work still and this is Far from usable for a daily driver...

Sent from my Galaxy ICSII
[Galaxy S II General] djevrek:
"Want to get your hands on Android 4.1, Jelly Bean? Starting in mid-July, we’ll begin rolling out over-the-air updates to Galaxy Nexus, Motorola Xoom and Nexus S, and we’ll also release Jelly Bean to open source. " from https://plus.google.com/104629412415657030658/posts/CP6q7Dok3t7
[Galaxy S II General] haralampije2:
To je stari post druze vidi datum.

can someone confirm is boot.img protected ?

goood work guys, ceep it on.
[Galaxy S II General] lys2002123:
Open the boot.img with hex editor.

You cannot find any magic number of archive format.

So there is no tool to unpack, maybe.
[Galaxy S II General] cobhc:
It's strange. I tried a lot of guides last night to unpack the boot.img, even using guides supposedly for CyanogenMod and it still didn't want to work. Sometimes felt like the perl script wasn't even finding the file. I'll have a play again in a bit and see if I can find any more information.
[Galaxy S II General] :
Its almost same file except the link goes to first alpha preview and we got stuffs working after that
[Galaxy S II General] elinho:
Guys! You are doing a great work!

I cant wait for a stable release. Donation will be made!
[Galaxy S II General] cobhc:
Don't bet on a stable release, the developers will try their best, but it's not a given that everything will work before sources are released.
[Galaxy S II General] nguyentuyen1090hd:
This can not be used for 9100G?

This can not be used for 9100G?

---------- Post added at 08:10 AM ---------- Previous post was at 08:04 AM ----------

This can be used for the 9100G?
[Galaxy S II General] usandthem1973:
I don't think so. I think the CPU is not the same, so, you'll probably get a brick. A lot of i9100 users have gotten a brick with this port as it is right now and I don't want to think what could happen to your i9100G.
[Galaxy S II General] :
Guys unless we ain't able to unpack boot image i have to say this will be the full release until we gets a unpacked boot image as wifi and Bluetooth needs to be linked in boot image, same as audio i think :(

But yeah we would probable have to build the boot image from scratch with the new included fixes

Now i feel stupid as i didn't thought about That earlier
[Galaxy S II General] cobhc:
That's not stupid man. Don't worry about it. I'll put some research into the boot.img thing and see where we end up :-)
[Galaxy S II General] Tijmen:
Already tried this?

http://forum.cyanogenmod.com/topic/30996-how-to-extract-bootimg/

for OFFSET in `od -A d -tx1 boot.img | grep '1f 8b 08' | awk '{print $1}'`; do dd if=boot.img bs=1 skip=$OFFSET of=initramfs-$OFFSET.gz; done

i currently don't have a Linux environment at my disposal, but it might be worth a try.
[Galaxy S II General] cobhc:
I tried that within Cygwin last night, but had problems. I will try again though.
[Galaxy S II General] xxr0x0rxx:
Great to hear that ... so this means that you have figured out what was wroing that caused Wifi/audio issues and drafted resolutions for them.. just need to get Cm9 github and create a new kernel from scratch to incorporate all these ..

right ??
[Galaxy S II General] elinho:
I want a Galaxy Nexus so bad right now... hahah
[Galaxy S II General] lys2002123:
Open the boot.img with hex editor and find 1f 8b 08... If it exists, why do guys are struggle with that?

I've found that there is no magic number which is known generally.
[Galaxy S II General] :
Because that one is useless because you can't repack it what i know :rolleyes:
[Galaxy S II General] cobhc:
That string does exist in the boot.img, but we're still unable to unpack it. Can you offer advice as to how to unpack it since you say we shouldn't struggle if 1F 8B 08 exists in it?

---------- Post added at 09:34 AM ---------- Previous post was at 09:30 AM ----------

Ok, just tried that again, and it extracts a file called "initramfs-3535952.gz" is this what we need?
[Galaxy S II General] :
Oh post how you did i got some can't make file don't remember but extract that package but now the tricky part, how do you re pack :rolleyes:
[Galaxy S II General] cobhc:
I used the command given by gangsterjoop within the Cygwin command line I installed. I can try repacking it using the perl scripts I have, hopefully repacking won't present the same problems.

Do you want me to upload the file I got from running that command?
[Galaxy S II General] lys2002123:
Ok then can you give me a boot.img which includes that magic number, please?

My boot image which extracted from JellyBeanAlpha.zip does not contains that.
[Galaxy S II General] cobhc:
I grabbed it from a CM9 nightly I had on my computer, I was merely testing out the theory.
[Galaxy S II General] lys2002123:
Ah..

I said about how to extract boot image which is included in jellybeanalpha.zip.

Then, cm9's ramdisk is same with this rom's?

Or, you are going to modify that(cm9's ramdisk) and repack with jb kernel?
[Galaxy S II General] :
Its the same as cm9 just with some edits to make data and it to boot, and i think we can solve the recovery problem

Edit sorry about the outdated op but I've been have sleep problem and going to work early and my bed time isn't that early , i work from 7-4 and i do focus more to set up my working environment instead of update op

( yes i got a pc to install Linux on. If you you think i should use some other Linux based os for developing just tell me, right now its ubuntu, again sorry for bad updates
[Galaxy S II General] cobhc:
the boot.img from the JellyBeanAlpha.zip doesn't contain the Magic Number, but the CM9 boot.img I tried definitely contains it...
[Galaxy S II General] :
Because it has not the same values change one string whole hex details that's made for extract cm9 boot image is changed
[Galaxy S II General] amitmiz:
I have just had a look in the build.prop

there are those lines in CM9 RC1 build prop :

whereas in your rom you didn't changed the galaxy nexus build.description and fingerprint

I am not a developer but why don't you try to replace those lines..eventhough they refers to android 4.0.3.. CM9 uses them even though its 4.0.4.
[Galaxy S II General] cobhc:
Ah, ok then. Seems the changes made remove the magic number from the img. I'm getting confused now as to what we can do.
[Galaxy S II General] :
Can someone write what block in cm9 everything installed to?

Look In to updater script
[Galaxy S II General] cobhc:
Contents of update-script

http://pastebin.com/x5m3fFjS
[Galaxy S II General] :
And that was from cm9?
[Galaxy S II General] Gammelgustav:
What about updating OP's Downloads?

(bpear's-jellybeanalpha2 is latest isn't it?)

Sent from my GoaTrip Galaxy S2
[Galaxy S II General] :
Yes as of now ,
[Galaxy S II General] cobhc:
Yep :)
[Galaxy S II General] :
Ok will take a lock at it from a computer but as i see is that jb is installed on different blocks than it should be the problem that causes the errors on cwmr when going to recovery
[Galaxy S II General] xxr0x0rxx:
What I miss ? What I miss ?

Seems like there is some new development here ??

Is Wifi/Audtio working now ?

Please let me know if I can contribute in anyway. I know I'm not gud at hacking and stuff , but I can do test things if needed...
[Galaxy S II General] :
To get wifi we need to make new boot image which does have updated lib for wifi and it should link to the hack provided in system/lib also some string needs to be added
[Galaxy S II General] edint3000:
for sdcard try replacing system/bin/vold
[Galaxy S II General] :
I probably missed that :D my bad
[Galaxy S II General] edint3000:
Well try it :D what are you waiting for :D

edit: not working just like that :(
[Galaxy S II General] :
I was at work no can do at work:thumbup: anyhow i don't remember if i was able to access all my files is it external or internal that doesn't show up
[Galaxy S II General] edint3000:
External is working and internal is not ...