Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-16-2006, 05:35 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
Kernel source: setting up without compiling

Hi all!
I am a Linux Newbie...and please note the capital N! ;-)

I am running Debian with kernel 2.6.8. I am setting up the kernel sources in order to be used to install new drivers/modules/whatever. I know I don't have to perform a FULL kernel compilation, but just the very first step...

...this is what I did so far:
1) downloaded the kernel-source-2.6.8 package
2) uncompressed the tar.gz file in the /usr/src dir
3) created a symbolic link to linux
4) copied the .config file from boot/config...
5) ??? What is the next step?

I remember I did execute a long command stating something like 'make ... oldconfig ...' but I cannot find it...I mean, I know I have to do another step in order to use the newly downloaded sources but I don't know what I have to do...

What is the missing step? Any ideas?

thank you all for your time.
Old 01-16-2006, 05:49 AM   #2
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 56
Without compiling? I don't get it!? You mean without reconfiguring all?

To take your oldconfig:

cp /boot/good_config /usr/src/linux
optional: make oldconfig
make menuconfig
Then to compile
as root:
make install
make modules_install
or using debian method:
as normal user:
fakeroot make-kpkg clean && fakeroot make-kpkg --append-to-version=.Jan2005 kernel_image
then as root:
cd ..
dpkg -i kernel_imagexxxxxx.deb

Last edited by nx5000; 01-16-2006 at 05:53 AM.
Old 01-16-2006, 05:54 AM   #3
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
You only need kernel header package to compile new module (driver), e.g nvidia, entire kernel source is unnecessary.

apt-get install kernel-headers-`uname -r`

later version's name may be changed from `kernel' to `linux' such as linux-headers-2.6.14-2-686.
Old 01-16-2006, 05:55 AM   #4
LQ Newbie
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you pal,

well, I actually meant without reconfiguring all! My bad...

I think yours are the lines I was looking for!

Thank you again.
Gio ;-)
Old 01-16-2006, 06:35 AM   #5
LQ Newbie
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
T.Hsu thank you so much...your tip worked great!

Gio ;-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Configuring and Compiling Kernel Source Ti22 Linux - Software 2 12-28-2005 10:04 AM
does compiling from source avoid kernel version probs? disorderly Linux - Newbie 1 03-25-2005 04:28 PM
Compiling Kernel and other source code davegermiquet Conectiva 2 01-26-2005 06:01 PM
Compiling Kernel From Source: Uh Oh Linux24 Linux - Newbie 5 09-10-2004 02:40 PM
ati driver compiling with wrong kernel source madcow007 Linux - Hardware 7 02-15-2004 10:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 PM.

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