Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
More than 1 kernel
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
VeXocide
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 131
Location: Netherlands, the

PostPosted: Wed Dec 08, 2004 9:20 am    Post subject: More than 1 kernel Reply with quote

I would like to install 2 kernels (gentoo-dev-sources (which i have now) and the gentoo-sources). But what sould i do with the System.map file ?, and what sould /usr/src/linux point to ?
Back to top
View user's profile Send private message
eqxro
n00b
n00b


Joined: 28 Nov 2004
Posts: 67
Location: In a warm place

PostPosted: Wed Dec 08, 2004 9:40 am    Post subject: Reply with quote

To build my kernel, I issue a make menuconfig; make; make modules_install; make install. The latter make takes care of System.map, vmlinux, kernel, config files, so when I swap the kernels, the system.map always points to the running kernel. Ditto for kernel.h & config, so your only worry is to have the two kernels set up right in the boot loader.

/usr/src/linux should point to the kernel you use more frequently. This is only needed when compiling kernel-source dependent apps (or drivers, like the NVIDIA module), as they expect to find in /usr/src/linux the sources used to compile the running kernel.

Sometimes you can pass options to the compiling scripts to use an alternate /usr/src/linux* directory.

A word of advice... when switching kernels, if using the NVIDIA driver, you'd have to reinstall the module whenever you switch, as the module built on the previous kernel would fail to initialize on the new kernel, therefore needing to reinstall the driver, which implies uninstallation of the previous driver. 8O
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Dec 08, 2004 9:42 am    Post subject: Reply with quote

The system.map file is only useful after a kernel dump; it contains the symbol names so you can do a proper trace of the core dump afterwards.
Not needed for normal operation.

As for the symlink: /usr/src/linux must always point to the kernel you are working on.
Not the one you are running - that is irrelevant.
If it doesn't point to the kernel you are currently compiling then everything will pretty much.. break.

I would also suggest renaming the kernel to something descriptive, i.e. my kernels are called kernel-2.6.9-r6-1 and kernel-2.6.9-r6-2, with their associated configs saved as config-2.6.9-r6-1 and -2.
Adjust grub.conf to match.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
VeXocide
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 131
Location: Netherlands, the

PostPosted: Wed Dec 08, 2004 9:46 am    Post subject: Reply with quote

I don't like the make install (i'd rather do it myself), the kernel already has a descriptional name, but can you have like 2 system.maps like System.map-Kernel-2.4.something and System.map-Kernel-2.6.5 ?

Oh, and i'm not using Nvidia or anything so that souldn't be a problem
Back to top
View user's profile Send private message
bet1m
l33t
l33t


Joined: 04 Dec 2004
Posts: 631
Location: Kosova/Prishtine

PostPosted: Wed Dec 08, 2004 11:33 am    Post subject: Reply with quote

dont copy system.map :)
I never copy

- bet1m
Back to top
View user's profile Send private message
VeXocide
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 131
Location: Netherlands, the

PostPosted: Wed Dec 08, 2004 3:36 pm    Post subject: Reply with quote

k, so that's solved :), tnx
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