Kernel build: "I am confused by this discrepancy, and am halting."
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.
Kernel build: "I am confused by this discrepancy, and am halting."
Hello,
I'm trying to build a new kernel. I currently have the default kernel included when I recently installed the system (SID): 2.6.26
I'm trying to build kernel 2.6.27.1 and get the following error:
debian:/usr/src/linux# make-kpkg --revision=linux-2.6.27.1 kernel_image kernel_headers
I note that you are using the --revision flag with the value
linux-2.6.27.1.
However, the ./debian/changelog file exists, and has a different value
2.6.
I am confused by this discrepancy, and am halting.
I'm not sure what is happening. I don't remember getting this error on other SID systems when I've tried to do the same thing.
From what source are you building? The kernel.org guys have 2.6.27.7 as latest stable release. If you build from the Debian source, did you apply all patches available?
Thanks for your response. This is a learning exercise for me- its been a while since I've installed a new kernel from scratch. I downloaded 2.6.27.1 from kernel.org so that I could try my hand at configuring it, building it, installing it and then patch it up to version 2.6.27.7 Hope this info helps.
1. You need to start out with 'make-kpkg clean', then double-check to see that the 'timestamp' files no longer exist (I can't remember the names of these timestamp files now).
2. Create your config file; the best way is:
- copy /boot/config-whatever to the source directory as .config
- run 'make oldconfig' and configure the kernel - NOTE: 'make', *not* 'make-kpkg'
- make a copy of that .config file somewhere else in case all your effort is ruined if you make a mistake and make-kpkg nukes the file
3. Invoke the config via make-kpkg - here you call "make-kpkg config" with all other options for revisions and so on; since you should already have done the config in (2), this should run through pretty quick and just generate a few config and timestamp files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.