Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel linking to linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Chickpea
l33t
l33t


Joined: 03 Jun 2002
Posts: 846
Location: Vancouver WA

PostPosted: Thu Jun 06, 2002 8:23 pm    Post subject: kernel linking to linux Reply with quote

I am having trouble linking my new kernel to linux I have tried what I thought to be correct:

ln -sf new_kernel linux yet when I do a ls -l the old kernel is still linked tot he linux file.

So I am wondering: am I doing this incorrectly or is it because I did a stage 3 install?

All help appreciated.

Thanks
C
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Thu Jun 06, 2002 9:18 pm    Post subject: Reply with quote

Do this and all (should) be solved
Code:
cd /usr/src
mv linux linux.OLD
ln -s /path/to/new/kernel linux


Unless I misread the post.
:)
_________________
Postcount ++
Back to top
View user's profile Send private message
enesideme
n00b
n00b


Joined: 20 Apr 2002
Posts: 46
Location: france

PostPosted: Thu Jun 06, 2002 9:46 pm    Post subject: Reply with quote

you have to remove first the previous symbolik link. For instance rm /usr/src/linux if linux is the link to your kernel directory
and then ln -s /usr/src/linux-2xxx /usr/src/linux. But I would say you should not unpack the sources of your new kernel in /usr/src/ and make a link. It's better to unpack in your home directory for instance. Read the doc of the kernel. And what linus Torvalds said:

"I would suggest that people who compile new kernels should:

-not have a single symbolic link in sight (except the one that the kernel build itself sets up,namely the "linux/include/asm" symlink that is only used for the internal compile itself)

And yes this is what I do.My /usr/src/linux still has the old 2.2.13 header files,even though I haven't run a 2.2.13 kernel in a long time.But those headers were what glibc was compiled against,so those headers are what matches the library object files.
And this is actually what has been the suggested environement for at least the last five years. I don't know why the symlink business keeps on living on, like a bad zombie. pretty much every distribution still has that broken symlink and people still remember that the linux sources should go into "/usr/src/linux" even though that hasn't been true in a long time.

I hope it's clear enough
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum