LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2001, 01:43 AM   #1
fireforge
LQ Newbie
 
Registered: Mar 2001
Posts: 1

Rep: Reputation: 0
Unhappy


In README of kernel 2.4£¬the author said¡°Do NOT use the /usr/src/linux area! This area has a (usually incomplete) set of kernel headers that are used by the library header files.They should match the library, and not get messed up by whatever the kernel-du-jour happens to be.¡± What "match the library" mean?

In the newest Kernel Howto(v2.3, 23 Feb 2001), it mentioned that we should unpack the kernel tarball to /usr/src/linux. That confused me. Which is right?

If the directory /usr/src/linux/include is used by application compiling, i think we shoud put the new kernel's include to /usr/src/linux/include. But when should we do this? Before or after kernel compiling?

Does anyone know this? Thanks.

Flint Fireforge
 
Old 03-16-2001, 03:13 AM   #2
bretthoward
Member
 
Registered: Mar 2001
Location: Klamath Falls
Posts: 62

Rep: Reputation: 15
I created a folder called /usr/src/linux-2.4.2 and then made /usr/src/linux a symlink that pointed to the aforementioned folder then I ran tar zxvf <kernel source> and it auto extracted to the /usr/src/linux directory from there I did the make mrproper; make menuconfig;make dep;make bzImage;make modules;make modules_install;make bzlilo sequence and things are working great for me! I'm running the kernel very happily execpt for the fact that it dosen't allow me to use IPchains anymore and I can't seem to get IPtables to install properly but from what I see once its installed its VERY similar to IPchains but thats getting off topic! Hope this helps you in your quest for a new kernel!
 
Old 03-19-2002, 02:18 PM   #3
jupp
LQ Newbie
 
Registered: Mar 2002
Posts: 4

Rep: Reputation: 0
Just to mention something... The howtos never mention anything about the .config file. This is the file that contains the information for all the kernel modules that are currently configured in your presently running kernel. Make sure you save this file somewhere else, because running 'make mrproper' will delete it.
Let me tell you why this is important.. Supposed your current kernel is running perfectly fine, you got sound, you got support for all your lan interfaces, etc... Now supposed that you want to add iptables support to your kernel, so you do.

make mrproper; make xconfig; do changes you want; make dep;
make clean; make bzImage; move image into place, edit lilo.conf ,etc...

Well, doing this will add iptables to the kernel, but will have no other modules configured. That means that when your machine reboots from the new kernel, you will have no sound, no support for you lan cards, etc... The only way to keep all your old modules is by reading the .config file after running 'make config' or 'make xconfig'

By the way, if your .config file is gone, run 'make oldconfig' to generate the .config file based on your presently running kernel.

Hope this helps,
Joseph
 
  


Reply


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
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
SiS on board sound stops working when upgrading alsa? + kernel question? mr.gizm0 Linux - Software 3 03-21-2005 10:46 AM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 07:00 AM
upgrading the Linux kernel question.. oasisbhrnw99 Linux - Newbie 1 10-26-2004 07:10 PM
Upgrading Question from 9.1 to 10 surfduke Mandriva 4 06-20-2004 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:50 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