most of the articles i read on kernel upgrading specifically state not to
untar the source into the /usr/src tree, and that untarring and doing all
preparation for the make should be done as a non-root user in your home
directory. you should su to root only for the final installation. a
successful make will create a linux-2.4.2 directory in your /boot dir, which
you just need to add as an option in /etc/lilo.conf.
i'm no expert on this at all. what's the advantage/risk of doing this in the
/usr/src directory?
I used this article as a guideline when I recently upgraded, and it worked
perfectly:
http://www.linux.com/live/newsitem.phtml?sid=117&aid=11762
note that they also use /usr/src, but if you read the comments at the bottom
of the page, somebody points out that this is wrong and the author agrees.
david
----- Original Message -----
From: "Statux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 01, 2001 10:39 PM
Subject: RE: kernel frustration
> > hmm,..it seems i don't have a directory /usr/src/linux or the directory
> > /usr/include/asm
>
> refer below
>
> > can you explain to me a different aproach to this,...step by
step,..since
> > i'm a little new to this...
>
> Here's my /usr/src directory:
>
> drwxr-xr-x 5 root root 1024 Feb 28 20:12 .
> drwxr-xr-x 21 root root 1024 Jun 8 2000 ..
> -rw-r--r-- 1 root root 13245 Aug 26 2000 .config
> lrwxrwxrwx 1 root root 12 Feb 28 20:12 linux ->
linux-2.2.18
> drwxr-xr-x 15 root root 2048 Jan 5 19:58 linux-2.2.18
> drwxr-xr-x 14 root root 2048 Feb 23 23:33 linux-2.4.2
> drwxr-xr-x 7 root root 1024 Jul 22 2000 redhat
>
> Note how I have linux-2.2.18 softlinked (with the link named 'linux') This
> is what /usr/src/linux is. The rest of it is explained below.
>
> Excerpt from my original reply:
>
> > set the following soft links as follows:
> >
> > lrwxrwxrwx 1 root root 28 Apr 21 2000
/usr/include/linux
> > -> /usr/src/linux/include/linux
> >
> > lrwxrwxrwx 1 root root 26 Apr 21 2000 /usr/include/asm
> > -> /usr/src/linux/include/asm
> >
> When you go to untar the linux kernel source, first put the archive in
> /usr/src. Then (in that directory) 'tar xvzf linux-2.4.2.tar.gz' or
> whatever version of code you have. You'll get a directory called 'linux'
> rename it to linux-2.4.2 (following version 2.4.2 as the example). Set set
> the links as follows:
>
> ln -s /usr/src/linux-2.4.2 /usr/src/linux
>
> then continue reading
>
> > ln -s /usr/src/linux/include/linux /usr/include/linux
> > ln -s /usr/include/asm /usr/src/linux/include/asm
> >
> > make sure /usr/src/linux is soft linked to the kernel that you're either
> > compiling or that is currently running (in that order.. the latter since
> > certain things compile against the kernel headers). So you should have
> > it linked to the 2.4.x kernel's source that you're dealing with (since
the
> > scripts in the kernel source tree reference things as linux and not
> > linux-2.4.whatever), etc.
>
> Hope this isn't too confusing :)
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list