
Also what about the /usr/src/linux link ??? when you have multiple kernel you need to change the link if you want for exemple include sound support with alsa for this specific kernel. A way to change that automaticaly ???Q9. How do I install multiple kernel versions alongside one another without causing problems?
I can't get this to make sense._SkeLeToN_ wrote:Also what about the /usr/src/linux link ??? when you have multiple kernel you need to change the link if you want for exemple include sound support with alsa for this specific kernel. A way to change that automaticaly ???Q9. How do I install multiple kernel versions alongside one another without causing problems?
Bloody Bastard wrote: Q13. I just installed a new kernel and now I'm getting a panic at boot time trying to mount the root partition. How do I fix this?
First, you'll need to boot again using a previous kernel backup (or the installation CD, if you haven't made a backup of your kernel). Then, you must verify if your kernel configuration has the correct file system for your root partition. For example, if your / file system is ext3, you need to activate it in File Systems->Ext3 journalling file system support. Make sure it is not compiled as a module but inside the kernel. Compile your kernel again and install it following the regular instructions.
Couldn't think of any obvious pitfalls...rac wrote:phypor, for KC8 and KC9, can you add some stuff about how /lib/modules directories work, and potential pitfalls of having things conflicting in there?
If you have two kernels from the same source, but with different configs, they will share a directory in /lib/modules, which can hose things, making the "backup" kernel unbootable. Possible solutions include stashing /lib/modules stuff somewhere, changing the kernel version string in the source tree temporarily, etc. None of this matters when having kernels with different versions, but sometimes people try new configuration settings, but want to have a fallback, but they're using the same kernel version, and the fallback fails.phypor wrote:Couldn't think of any obvious pitfalls...
rac wrote:If you have two kernels from the same source, but with different configs, they will share a directory in /lib/modules, which can hose things, making the "backup" kernel unbootable. Possible solutions include stashing /lib/modules stuff somewhere, changing the kernel version string in the source tree temporarily, etc. None of this matters when having kernels with different versions, but sometimes people try new configuration settings, but want to have a fallback, but they're using the same kernel version, and the fallback fails.phypor wrote:Couldn't think of any obvious pitfalls...

Code: Select all
#!/bin/sh
# Enter the directory name of the kernel source in /usr/src
# to switch the symlink to
#
# Remember to run this before rebooting when switching kernels
# Usage
# bash# kernel-linkswap linux-2.4.20
rm -f /usr/src/linux
echo "Removed old symlink /usr/src/linux"
ln -s "/usr/src/$1" /usr/src/linux
echo "Added new symlink /usr/src/linux -> /usr/src/$1"

Yes that's exactly what I was talking about. Sorry if my post was confusing ...rac wrote:I think Skeleton is talking about the fact that some kernel module ebuilds (alsa, nvidia-kernel, lm-sensors) rely on /usr/src/linux pointing to the sources for the kernel to build with, and if that points to different sources than you're running, bad things happen.


Code: Select all
FILENAME USED UNTIL REASON GOING TO
========--------==========--------===============
bzImage.01 12/02/2002 Initial kernel
bzImage.02 12/03/2002 USB Mass Storage
bzImage.03 12/10/2002 Last one didn't work
bzImage.04 removed IDE-CDROM (for CDRW)
Code: Select all
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 20
EXTRAVERSION = -0
Code: Select all
boot from the LiveCD
mkdir /mnt/gentoo
mount /dev/hdxy (your existing-installation's root dir)
cd /tmp
tar -xvjpf /cdroot/nocompress/stage1-*.tbz2
cp -a /tmp/dev /mnt/gentoo/dev
umount /mnt/gentoo
reboot

Code: Select all
cd /usr/src/linux
cp .config ~/
rm -rf /lib/modules/{kernel name here}
make mrproper
cp ~/.config ./
make menuconfig
exit menuconfig
make dep && make clean bzImage modules modules_install
cp arch/{arch}/boot/bzImage /{boot}/bzImage