LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-28-2006, 11:07 AM   #1
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
What does "make-kpkg kernel_source" do?


Essentially what I want to know is whether or not "make-kpkg kernel_source" will apply the Debian cramfs patches to a vanilla kernel from kernel.org.

I want to know this because I need, specifically, a custom compiled kernel 2.6.13 for my laptop (to have all the hardware properly supported). However I can't find any Debian packages for this kernel source.

I downloaded the vanilla 2.6.13.5 kernel sources from kernel.org and compiled it using "make-kpkg kernel_image", however it gave me a warning about the Debian cramfs initrd patches.

So to get around this I disabled initrd in the kernel and compiled in the necessary disk drivers and root filesystems. But this leaves me without the initrd support for Bootsplash.

What I would like to be able to do is:

-download vanilla kernel 2.6.13.5 from kernel.org
-run "make-kpkg kernel_source" on it to produce a cramfs patched kernel
-install the debian patched 2.6.13.5 sources
-configure it with initrd support
-re-compiled and configure bootsplash

Thanks!
 
Old 08-29-2006, 12:26 PM   #2
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
To add intrid add this option make-kpkg --initrd kernel_image
 
Old 08-29-2006, 04:06 PM   #3
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Original Poster
Rep: Reputation: 30
Yeah, I know how to build an initrd kernel image, the problem is if I am using vanilla kernel source from kernel.org (instead of a Debian kernel source package), it doesn't have the cramfs patches that are required by "make-kpkg" to make an initrd kernel image.
 
Old 08-29-2006, 06:34 PM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Quote:
Essentially what I want to know is whether or not "make-kpkg kernel_source" will apply the Debian cramfs patches to a vanilla kernel from kernel.org.
No, I don't think so. Last time I checked it makes a .deb package of the source as it is, including anything you have changed/removed/added. It will not apply any patches or change it in any way.

You have two options, both of which involve finding old packages somewhere. I have never done this myself but I am almost certain there are repositories of old, obsolete packages around but I don't know where, hopefully someone here will.

1. find the linux-source-2.6.13 deb. This package will have the cramfs patches and ALL of the other debian patches applied. Then continue compiling and installing. If you don't want all of the other patches, just the cramfs one then...

2. find the linux-patch-debian-2.6.13 deb. This will dump all of the debian patches for 2.6.13 in /usr/src/kernel-patches/. Find the cramfs patch and apply it to your vanilla sources and continue compiling and installing etc...

Hope this is what you looking for.
 
Old 08-30-2006, 11:14 AM   #5
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
Hope this is what you looking for.
It is. Thanks.

I've also found some other information regarding the cramfs thing. It looks like if I edit /etc/kernel-img.conf, I can tell kernel-package to only use mkinitrd (instead of yaird or mkinitramfs) like so:

ramdisk = /usr/sbin/mkinitrd

and then edit the mkinitrd config to *not* use cramfs. Then I would be able to compile an initrd kernel from the vanilla source and would not require the cramfs patch.

Does that make sense or am I way off base?

Thanks again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
window maker "make" / "make install" problem xiekke Fedora 2 08-08-2007 10:55 AM
Constant errors during "make" or "make install" with SUSE 10.1 Alpha 4 TehFlyingDutchman Linux - Software 3 12-30-2005 06:25 PM
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3) Duukkis Debian 14 05-23-2004 03:58 AM
make-kpkg errors "multiple instances" rickenbacherus Linux - Software 0 06-06-2003 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration