Post Reply

[Q] Trying to understand kernel_galaxyace / arch / arm / mach-msm / acpuclock.c

-SGA-
15th January 2012, 04:39 PM   |  #11  
Guest
Thanks Meter: 0
 
n/a posts
After spending a lot of time looking at the CM7 oc kernel and the samsung source code, I wanted to merge some of the features I think are comparable or interesting. I've got the code I want in place using codebench for Arm11, but now have been trying to understand how to make that into a boot.img. I gave up after working on it all night. After reading about using adb to extract the ramdisk from the phone and merging them ect. Can you guys suggest anything?

Sent from my GT-S5830 using xda premium
16th January 2012, 07:46 AM   |  #12  
Recognized Developer
Flag Bekasi
Thanks Meter: 9,334
 
3,525 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Quote:
Originally Posted by -SGA-

After spending a lot of time looking at the CM7 oc kernel and the samsung source code, I wanted to merge some of the features I think are comparable or interesting. I've got the code I want in place using codebench for Arm11, but now have been trying to understand how to make that into a boot.img. I gave up after working on it all night. After reading about using adb to extract the ramdisk from the phone and merging them ect. Can you guys suggest anything?

Sent from my GT-S5830 using xda premium

http://forum.xda-developers.com/sear...archid=6840206
16th January 2012, 03:29 PM   |  #13  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,636
 
4,016 posts
Join Date:Joined: Jun 2011
Quote:
Originally Posted by -SGA-

After spending a lot of time looking at the CM7 oc kernel and the samsung source code, I wanted to merge some of the features I think are comparable or interesting. I've got the code I want in place using codebench for Arm11, but now have been trying to understand how to make that into a boot.img. I gave up after working on it all night. After reading about using adb to extract the ramdisk from the phone and merging them ect. Can you guys suggest anything?

Sent from my GT-S5830 using xda premium

u dont need to touch adb to extract ramdisk.
just extract it from stock kernel. read this thread
http://forum.xda-developers.com/show....php?t=1173427
16th January 2012, 03:54 PM   |  #14  
Recognized Developer
Flag Bekasi
Thanks Meter: 9,334
 
3,525 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Quote:
Originally Posted by ketut.kumajaya

http://forum.xda-developers.com/sear...archid=6840206

I mean, all thread started by me

Quote:
Originally Posted by an0nym0us_

u dont need to touch adb to extract ramdisk.
just extract it from stock kernel. read this thread
http://forum.xda-developers.com/show....php?t=1173427

Better option: http://forum.xda-developers.com/show....php?t=1241005, blackhawk-tools have automate script to unpack/repack boot.img .
The Following User Says Thank You to ketut.kumajaya For This Useful Post: [ View ]
16th January 2012, 04:09 PM   |  #15  
Senior Member
127.0.0.1
Thanks Meter: 410
 
1,484 posts
Join Date:Joined: Apr 2011
when i tried ramdisk of stock the things were not working...
things which i did was unpack stock boot.img and replace my build zImage and repack... do i need to do something extra too?
and also while compiling refering .cpio file in makemenu
Last edited by madman; 16th January 2012 at 04:12 PM.
16th January 2012, 04:14 PM   |  #16  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,636
 
4,016 posts
Join Date:Joined: Jun 2011
Quote:
Originally Posted by madman_amit

when i tried ramdisk of stock the things were not working...
things which i did was unpack stock boot.img and replace my build zImage and repack... do i need to do something extra too?

check module local version and make sure it match with kernel local version in defconfig.
also stock ramdisk doesnt enable init.d by default, so u might have problem if flashing onto rom that need init.d script support.
16th January 2012, 04:16 PM   |  #17  
Senior Member
127.0.0.1
Thanks Meter: 410
 
1,484 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by an0nym0us_

check module local version and make sure it match with kernel local version in defconfig.
also stock ramdisk doesnt enable init.d by default, so u might have problem if flashing onto rom that need init.d script support.

i made local version changes as you said in historical post too...
and about init.d support i was flashing it on stock so that shouldn't have that problem
16th January 2012, 04:28 PM   |  #18  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,636
 
4,016 posts
Join Date:Joined: Jun 2011
Quote:
Originally Posted by madman_amit

i made local version changes as you said in historical post too...
and about init.d support i was flashing it on stock so that shouldn't have that problem

if its stock rom with stock rfs filesystem u shouldnt have problem. wierd that u had problem

in general this is what need to be done.
1- unpack stock kernel ramdisk
2- cd into module dir in unpacked ramdisk dir, check its local version
3- modify kernel defconfig so its local version matches module local version
4- compile kernel
5- repack output zimage with earlier unpacked ramdisk.

if this should be flash into fresh stock rom with stock rfs filesystem, it should boot.
16th January 2012, 05:13 PM   |  #19  
Senior Member
127.0.0.1
Thanks Meter: 410
 
1,484 posts
Join Date:Joined: Apr 2011
almost tried it 5-6 times with no boot
progress stops at samsung galaxy ace..
will give it another try later.. even if stock kernel boots i can make further modifications to kernel as i am more interested towards kernel programming rather than rom or app making stuff
16th January 2012, 11:20 PM   |  #20  
CallMeVentus's Avatar
Recognized Contributor
Flag Singapore
Thanks Meter: 2,867
 
9,969 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Try using dsixda's Android Kitchen

Herpderp Adreno + Tegra.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in Galaxy Ace S5830 Android Development by ThreadRank