Official TWRP Recovery Lands on Micromax Canvas Magnus

With the recent release of Android One, Micromax and MediaTek released fully buildable … more

Update Overload: SuperSU Heavily Updated

There are apps and apps out there. Very few can reach the level of popularity required to stay at … more

Lollipop Leak Available for the Sprint Galaxy S5

Since the Android 5.0Lollipop’s official release not too long ago, we’ve seen … more

CPU Spy Gets an Android Lollipop Makeover

At some point in the distant past, you probably heard of CPU Spy for Android by XDARetired … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP -SGA-

-SGA-
15th January 2012, 05: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, 08:46 AM   |  #12  
Recognized Developer
Flag Bekasi
Thanks Meter: 9,398
 
3,542 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, 04:29 PM   |  #13  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,714
 
4,047 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, 04:54 PM   |  #14  
Recognized Developer
Flag Bekasi
Thanks Meter: 9,398
 
3,542 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, 05:09 PM   |  #15  
Senior Member
127.0.0.1
Thanks Meter: 410
 
1,488 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 05:12 PM.
16th January 2012, 05:14 PM   |  #16  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,714
 
4,047 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, 05:16 PM   |  #17  
Senior Member
127.0.0.1
Thanks Meter: 410
 
1,488 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, 05:28 PM   |  #18  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,714
 
4,047 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, 06:13 PM   |  #19  
Senior Member
127.0.0.1
Thanks Meter: 410
 
1,488 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
17th January 2012, 12:20 AM   |  #20  
CallMeVentus's Avatar
Recognized Contributor
Flag Singapore
Thanks Meter: 2,870
 
9,971 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 Search this Thread
Search this Thread:

Advanced Search
Display Modes