Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
romracer
Old
#151  
romracer's Avatar
Recognized Developer - OP
Thanks Meter 1037
Posts: 464
Join Date: Apr 2010
Location: Kansas City

 
DONATE TO ME
Here is a stock ICS kernel based on UCLE2 with my ramdisk tweaks. I'll bring the rest of my changes over once Samsung releases the official sources (usually shortly after official AT&T release).

The ramdisk supports init.d (assuming you have busybox installed), boot animations and adb runs as root. Those are the most commonly requested. The boot animation should be called "bootanimation.zip" in /system/media (none is provided, you'll just see a shimmering Android logo without one).

Flash in CWM like usual. I usually flash kernels twice with a 15 second pause or so in between. Then wait about 30 seconds to 1 minute before rebooting (just to make sure the block device for the boot.img has saved its data to NAND).
Attached Files
File Type: zip kernel-ics-UCLE2.zip - [Click for QR Code] (5.84 MB, 92 views)
Samsung Galaxy S III



(old) Samsung Galaxy S2 Skyrocket
(old) Motorola Atrix 4G
(old) HTC Desire
(old) Google Nexus One
The Following 11 Users Say Thank You to romracer For This Useful Post: [ Click to Expand ]
 
hedpe
Old
#152  
Senior Member
Thanks Meter 11
Posts: 209
Join Date: Jan 2008
Hey romracer,

Could you include a script or guide on how to build your kernel? I have been following this guide, but I'm a little nervous about Step 10 in creating the boot.img. I don't want to create a bad kernel or brick my phone. That guide is supposedly also for the i727, but I want to be sure.

I extracted initramfs directly from your boot.img. Then, I built your kernel (using msm8660_celox_usa_att_rev02_defconfig) to get the kernel modules (*.ko) and the kernel zImage.

Then, the guide provided a link to these mkbootfs scripts: http://www.mediafire.com/?w06d1m6n1dgo4op ... I want to confirm these are the proper scripts to use.

Then it says:
Code:
./mkbootfs initramfs | gzip > ramdisk.gz
mkbootimg-sg2x --kernel zImage --ramdisk ramdisk.gz --cmdline "androidboot.hardware=qcom msm_watchdog.appsbark=0 msm_watchdog.enable=1 loglevel=4" -o boot.img --base 0x40400000 --pagesize 2048
But, I'm a little bit nervous about that --base 0x40400000 parameter.

It'd be great if you could verify that guide or include your initramfs and scripts in your github kernel repo.

Thanks a bunch!
 
droid512
Old
#153  
droid512's Avatar
Senior Member
Thanks Meter 101
Posts: 822
Join Date: Jan 2011
Location: Austin
Rom, did you ever get a chance to look into that slide to wake mod i messaged you about? The creator of the the mod wanted me to have you email him (bponury@gmail.com) so he can give you the source
 
romracer
Old
(Last edited by romracer; 28th May 2012 at 05:35 PM.)
#154  
romracer's Avatar
Recognized Developer - OP
Thanks Meter 1037
Posts: 464
Join Date: Apr 2010
Location: Kansas City

 
DONATE TO ME
Quote:
Originally Posted by hedpe View Post
Hey romracer,

Could you include a script or guide on how to build your kernel? I have been following this guide, but I'm a little nervous about Step 10 in creating the boot.img. I don't want to create a bad kernel or brick my phone. That guide is supposedly also for the i727, but I want to be sure.

I extracted initramfs directly from your boot.img. Then, I built your kernel (using msm8660_celox_usa_att_rev02_defconfig) to get the kernel modules (*.ko) and the kernel zImage.

Then, the guide provided a link to these mkbootfs scripts: http://www.mediafire.com/?w06d1m6n1dgo4op ... I want to confirm these are the proper scripts to use.

Then it says:
Code:
./mkbootfs initramfs | gzip > ramdisk.gz
mkbootimg-sg2x --kernel zImage --ramdisk ramdisk.gz --cmdline "androidboot.hardware=qcom msm_watchdog.appsbark=0 msm_watchdog.enable=1 loglevel=4" -o boot.img --base 0x40400000 --pagesize 2048
But, I'm a little bit nervous about that --base 0x40400000 parameter.

It'd be great if you could verify that guide or include your initramfs and scripts in your github kernel repo.

Thanks a bunch!
That guide looks to be mostly how I do it. I use split_bootimg.pl to break down boot.img into the kernel and a ramdisk archive. I like split_bootimg.pl because it will print the kernel command line for you (for copying/pasting later). I break down the ramdisk with:
Code:
mkdir ramdisk ; cd ramdisk ; gzip -dc ../*-ramdisk.gz | cpio -i
I don't know what mkbootimg-sg2x is; I use what I thought was the standard "mkbootimg". The guide mentions needing that -sg2x one because of the ramdisk, but the command line provided (mkbootimg command line, not kernel command line) does not have anything special that I see. That base address is correct. You can find our base address in the kernel source in the defconfig file; its the CONFIG_PHYS_OFFSET variable. I use the following command to copy my kernel modules - hell of a lot easier than all those individual ones :
Code:
find . -name '*.ko' -exec cp {} $INITRAMFSDIR/lib/modules/ \;
The only thing I do that I don't see in that guide is the following command after the boot.img is built to change a magic number (Rogers is 90h or "\\x90"):
Code:
echo -ne \\x80 | dd conv=notrunc bs=1 count=1 of=boot.img seek=22
Maybe that's what mkbootimg-sg2x does? In my experience, if you don't do that then your phone will not boot. You'll see the Samsung logo and then the screen will blip and it will reboot. You can fix it by just booting into recovery and flashing another kernel (or fixing your kernel and reflashing it). It's not a brickable mistake.

Quote:
Originally Posted by droid512 View Post
Rom, did you ever get a chance to look into that slide to wake mod i messaged you about? The creator of the the mod wanted me to have you email him (bponury@gmail.com) so he can give you the source
Sorry, I did not. I'll review your post. Edit: emailed him.
Samsung Galaxy S III



(old) Samsung Galaxy S2 Skyrocket
(old) Motorola Atrix 4G
(old) HTC Desire
(old) Google Nexus One
The Following 3 Users Say Thank You to romracer For This Useful Post: [ Click to Expand ]
 
jembot
Old
#155  
Senior Member
Thanks Meter 12
Posts: 123
Join Date: Oct 2007
Question Rogers i727

Hi, i just got a shiny new Skyrocket but it's the Rogers version (i727R)

Can i use this kernel safely on my device? It has AT&T written all over it in the discussions. I saw a post requesting for an "i727R version of the GB kernel" but i think it was not answered yet.

Any help is appreciated.

Thanks!
*** Please click THANKS if this post helped in any way. ***

Phone 1: Samsung Galaxy Note II (GT-N7100) Grey
ROM: PhoeniX Rom v8.0
OS: JB 4.1.2
Kernel: Stock XXDMB2

Phone 2: Samsung Galaxy S3 LTE (SGH-I747) Garnet
ROM: Stock JB
OS: JB 4.1.1
Kernel: Stock UCDLK3
 
onearmedscissor
Old
#156  
onearmedscissor's Avatar
Senior Member
Thanks Meter 125
Posts: 624
Join Date: Mar 2006
Quote:
Originally Posted by jembot View Post
Hi, i just got a shiny new Skyrocket but it's the Rogers version (i727R)

Can i use this kernel safely on my device? It has AT&T written all over it in the discussions. I saw a post requesting for an "i727R version of the GB kernel" but i think it was not answered yet.

Any help is appreciated.

Thanks!
Yes if you have gingerbread based ROM
The Following User Says Thank You to onearmedscissor For This Useful Post: [ Click to Expand ]
 
jembot
Old
#157  
Senior Member
Thanks Meter 12
Posts: 123
Join Date: Oct 2007
Quote:
Originally Posted by onearmedscissor View Post
Yes if you have gingerbread based ROM

Clicked Thanks!
*** Please click THANKS if this post helped in any way. ***

Phone 1: Samsung Galaxy Note II (GT-N7100) Grey
ROM: PhoeniX Rom v8.0
OS: JB 4.1.2
Kernel: Stock XXDMB2

Phone 2: Samsung Galaxy S3 LTE (SGH-I747) Garnet
ROM: Stock JB
OS: JB 4.1.1
Kernel: Stock UCDLK3
The Following User Says Thank You to jembot For This Useful Post: [ Click to Expand ]
 
droid512
Old
#158  
droid512's Avatar
Senior Member
Thanks Meter 101
Posts: 822
Join Date: Jan 2011
Location: Austin
Quote:
Originally Posted by romracer View Post

Sorry, I did not. I'll review your post. Edit: emailed him.
Did he reply? Also have you looked into mohans ics kernel or the hercules source?

CM9 Skyrocket
 
romracer
Old
#159  
romracer's Avatar
Recognized Developer - OP
Thanks Meter 1037
Posts: 464
Join Date: Apr 2010
Location: Kansas City

 
DONATE TO ME
Quote:
Originally Posted by droid512 View Post
Did he reply? Also have you looked into mohans ics kernel or the hercules source?

CM9 Skyrocket
His mod only works for the touchscreen driver specific to the Evo phone, which is not the same as ours.

I have downloaded the hercules source, but I haven't had time to dig into it too much yet. Hopefully this weekend.
Samsung Galaxy S III



(old) Samsung Galaxy S2 Skyrocket
(old) Motorola Atrix 4G
(old) HTC Desire
(old) Google Nexus One
The Following 2 Users Say Thank You to romracer For This Useful Post: [ Click to Expand ]
 
droid512
Old
#160  
droid512's Avatar
Senior Member
Thanks Meter 101
Posts: 822
Join Date: Jan 2011
Location: Austin
What is different from menu unlock in cm9 to menu then home then back then search in a slide

CM9 Skyrocket

 
Post Reply+
Tags
galaxy s ii, kernel, rom, samsung, skyrocket
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...