Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,607 Members 52,931 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
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 8885
Posts: 3,294
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 3606
Posts: 3,990
Join Date: Jun 2011
Location: Behind you
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 8885
Posts: 3,294
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  
madman's Avatar
Senior Member
Thanks Meter 406
Posts: 1,462
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 3606
Posts: 3,990
Join Date: Jun 2011
Location: Behind you
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  
madman's Avatar
Senior Member
Thanks Meter 406
Posts: 1,462
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 3606
Posts: 3,990
Join Date: Jun 2011
Location: Behind you
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  
madman's Avatar
Senior Member
Thanks Meter 406
Posts: 1,462
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 2866
Posts: 9,968
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


XDA PORTAL POSTS

Return to Outer Space Outer Space with Ship Up Game

Since the release of Flappy Birds, we’ve had the “fortune” to see … more

Device Review: OnePlus One

Seemingly every day, there are a bunch of new devices being released. Some are budget devices and some are … more

Browse the Internet with the Innovative Atlas Web Browser

For the most part, Chrome, Firefox, and Dolphin Browser have no real rivals among … more

Choose from Over a Thousand Battery Styles with 3Minit Battery Mod

The battery style in stock Android looks pretty dull. It doesn’t … more