LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-24-2008, 12:12 PM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
linux-kbuild-2.6.24


I recently downloaded linux-image-2.6.24-rc8, because I needed to try to get my wireless (b43) to work better. It does work better now so I want to keep the kernel, but I cannot install linux-headers-2.6.24-rc8 without linux-kbuild-2.6.24. The big problem is that I cannot find linux-kbuild-2.6.24 at all. I can find this file 'linux-kbuild-2.6_2.6.24~rc5.orig.tar.gz' but it's not a '.deb' file, so I don't know what to do with it. (Also it's not 'rc8' I don't know if that matters.) I downloaded it and looked at it but it doesn't make much sense to me.

I don't expect to be able to use apt or dpkg, so does anybody have a good page on building linux-kbuild? Does it make an entry in the apt database on my computer? If I try to install it, will linux-headers-2.6.24 even install afterwards? Thanks in advance.

Last edited by radiodee1; 01-24-2008 at 12:14 PM.
 
Old 01-25-2008, 07:29 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
I found that 2.6.24 is available as stable kernel today. I suggest to get the full source and build from scratch. That way, you'll automatically get the headers too. From the commandline as root:
Code:
aptitude install build-essential less nano
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2
mkdir ~/kernel
cp linux-2.6.24.tar.bz2 ~/kernel/linux-2.6.24.tar.bz2
cd ~/kernel/
tar -xjf linux-2.6.24.tar.bz2
And away you go: config the kernel, make & install the image and the modules, build a matching RAM disk, update Grub/Lilo and reboot

PS: I know you've done kernelbuilds in the past but the elaboration is for relative new kernelbuilders
 
Old 01-26-2008, 11:18 AM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
Did I do something wrong? I downloaded the debian source file from experimental and installed it, using dpkg. Then I went to /usr/src/ and unpacked the .tar.bz2 file. I cd'd into the new directory. Then I copied the .config file from the /boot directory and ran 'make menuconfig' to see that everything was as it should be. Then (as root) I ran 'make-kpkg clean' and this command:

Code:
make-kpkg --initrd --append_to_version=-686dl1 kernel-image kernel-headers
Then I waited for the headers and kernel packages to be made. I installed them with dpkg, and now my system boots up into this new kernel, linux-image-2.6.24-rc8-686dl1, BUT I cannot build modules against the new kernel, or at least I've had terrible success at it so far. I know my account blurs over a few steps, but am I missing something? Is there something wrong with my headers? Any help would be appreciated. Thanks in advance...

Last edited by radiodee1; 01-26-2008 at 11:19 AM.
 
Old 01-26-2008, 05:11 PM   #4
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
Well, just to report back, I re-built the kernel and header files and re-installed them and this time they worked. I was able to compile several modules. Thanks Dutch Master and anyone who was reading this thread.
 
Old 01-28-2008, 11:41 PM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Good, glad you got it working. Just curious though, why did you stick with an rc version (and even the last one before becoming declared stable) of a kernel that's already marked 'stable' by the kernel dev's?
 
Old 01-29-2008, 04:34 AM   #6
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
I wanted to use the debian source package, and as of yesterday that was the only one I could find. It's not in experimental now. What are the benefits of using the one from Kernel.org over the debian one?

Last edited by radiodee1; 01-29-2008 at 04:39 AM.
 
Old 01-29-2008, 06:55 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I have this section in my /etc/apt/sources list that I uncomment when installing a Debian kernel from unstable to make sure to get all dependencies also for a truly Debian patched kernel.
Code:
##########################
##### Kernel Builder #####
##########################
#gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 29F335B3
#gpg --armor --export 29F335B3 | apt-key add -
#deb http://kernel-archive.buildserver.net/debian-kernel/ trunk main
By uncommenting that third line and uncommenting your unstable mirror in /etc/apt/sources list and do an "apt-get update" you'll be able to install linux-image-2.6.24-rc8, linux-kbuild-2.6.24, linux-headers-2.6.24-rc8 with whatever method you choose like apt, aptitude or synaptic and have all the latest Debian patches.
 
Old 01-30-2008, 05:34 AM   #8
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
Junior Hacker, I actually did that, but I couldn't get it to work. As of 1/28 or 1/29 there was no 'linux-kbuild-2.6.24' available, though. There is one now, but I've already built the kernel myself, so I'm not so worried about it. I'll try the kernel-archive thing again some other time.
 
  


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
Can kbuild execute non-kbuild makefiles? xuanadoo Linux - Newbie 0 10-15-2006 02:41 AM
2.6.17 fails to compile, kbuild.include not found rhauff Linux - Server 1 09-13-2006 06:28 AM
linux-kbuild-2.6.17 davcefai Debian 3 06-27-2006 03:28 PM
Any tools to help trace kbuild makefile?? knightk Linux - Software 0 10-19-2005 07:20 AM
kbuild error Barakanooz Linux - Hardware 0 10-04-2005 06:19 PM

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

All times are GMT -5. The time now is 05:37 AM.

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