Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,198 Members 47,831 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
-SGA- Old
#11  
Guest
Thanks Meter 0
Posts: n/a
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
 
ketut.kumajaya
Old
#12  
Recognized Developer
Thanks Meter 9,205
Posts: 3,461
Join Date: Apr 2011
Location: Bekasi

 
DONATE TO ME
Quote:
Originally Posted by -SGA- View Post
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
 
mdfzhi
Old
#13  
mdfzhi's Avatar
Senior Member
Thanks Meter 3,632
Posts: 4,014
Join Date: Jun 2011
Quote:
Originally Posted by -SGA- View Post
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
 
ketut.kumajaya
Old
#14  
Recognized Developer
Thanks Meter 9,205
Posts: 3,461
Join Date: Apr 2011
Location: Bekasi

 
DONATE TO ME
Quote:
Originally Posted by ketut.kumajaya View Post
I mean, all thread started by me

Quote:
Originally Posted by an0nym0us_ View Post
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: [ Click to Expand ]
 
madman
Old
(Last edited by madman; 16th January 2012 at 04:12 PM.)
#15  
Senior Member
Thanks Meter 409
Posts: 1,475
Join Date: Apr 2011
Location: 127.0.0.1
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
 
mdfzhi
Old
#16  
mdfzhi's Avatar
Senior Member
Thanks Meter 3,632
Posts: 4,014
Join Date: Jun 2011
Quote:
Originally Posted by madman_amit View Post
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.
 
madman
Old
#17  
Senior Member
Thanks Meter 409
Posts: 1,475
Join Date: Apr 2011
Location: 127.0.0.1
Quote:
Originally Posted by an0nym0us_ View Post
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
 
mdfzhi
Old
#18  
mdfzhi's Avatar
Senior Member
Thanks Meter 3,632
Posts: 4,014
Join Date: Jun 2011
Quote:
Originally Posted by madman_amit View Post
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.
 
madman
Old
#19  
Senior Member
Thanks Meter 409
Posts: 1,475
Join Date: Apr 2011
Location: 127.0.0.1
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
 
CallMeVentus
Old
#20  
CallMeVentus's Avatar
Recognized Contributor
Thanks Meter 2,867
Posts: 9,969
Join Date: Jul 2011
Location: Singapore

 
DONATE TO ME
Try using dsixda's Android Kitchen

Herpderp Adreno + Tegra.
Current phone: Sony Xperia SP LTE (C5303), Samsung Galaxy S Advance NFC (GT-I9070P)
Here's my Twitter. Follow me, block me, suit yourself.
Old phones: Galaxy R, Motorola Defy, Samsung Galaxy Ace, Motorola Backflip

Galaxy Ace newbie guide: http://forum.xda-developers.com/show....php?t=1225493

 
"The unholy offspring of lightning and death itself"

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes