DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.