New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
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  
Senior Member
Thanks Meter 3638
Posts: 1,492
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
 
an0nym0us_
Old
#13  
an0nym0us_'s Avatar
Senior Member
Thanks Meter 2918
Posts: 3,670
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  
Senior Member
Thanks Meter 3638
Posts: 1,492
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 394
Posts: 1,416
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
 
an0nym0us_
Old
#16  
an0nym0us_'s Avatar
Senior Member
Thanks Meter 2918
Posts: 3,670
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 394
Posts: 1,416
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
 
an0nym0us_
Old
#18  
an0nym0us_'s Avatar
Senior Member
Thanks Meter 2918
Posts: 3,670
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 394
Posts: 1,416
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 2661
Posts: 9,311
Join Date: Jul 2011
Location: Singapore
Try using dsixda's Android Kitchen

Herpderp Adreno + Tegra.
TeamCooper:
www.teamcooper.net



GitHub:
Personal: www.github.com/EmoBoiix3
CyanMobile: www.github.com/CyanMobile
TeamFun (a.k.a GingerDX): www.github.com/TeamFun

Read this if you are new to your Galaxy Ace





"My friends are my power, and I'm theirs!"
"I am the boy with the heart of pure light."


XDA PORTAL POSTS

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more