Gentoo Archives: gentoo-amd64

From: Daniel Iliev <danny@××××××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] kernel recompile?
Date: Tue, 31 Oct 2006 17:37:57
Message-Id: 4547887E.4030606@ilievnet.com
In Reply to: Re: [gentoo-amd64] kernel recompile? by Sean
1 Sean wrote:
2 >
3 > Since my gcc upgrade all my modules fail on boot with an error of
4 > version magic '2.6.16-gentoo-r9 SMP gcc-4.1' should be
5 > '2.6.16.16-gentoo-r9 SMP gcc-3.4'
6 >
7 > However when I try to start the rebuild of my kernel it stops just
8 > after starting with the line
9 >
10 > 'if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F
11 > System.map 2.6.16-gentoo-r9; fi'
12 >
13 > any ideas on the cause?
14
15
16 cp /usr/src/linux/.config /usr/src/ # preserve the configuration
17 cd /usr/src/linux/
18 make mrproper # this puts the kernel source tree in a state as if it
19 was just extracted
20 cp /usr/src/.config . # restore the configuration
21 make && make modules_install
22
23 Then do what you do to install your new kernel. For example I have 2
24 boot entries:
25
26 - "Gentoo" (default after 5 seconds) with kernel "/boot/bzImage"
27 - "Test" with kernel "/boot/bzTest"
28
29 So the commands in my case are:
30
31 cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/bzTest
32 cp System.map /boot
33 lilo
34
35 When I compile a new kernel, I first try it with "Test" and if it works,
36 a do
37 cp /boot/bzTest /boot/bzImage && lilo # to make it default boot option
38
39
40 After you are ready with the new kernel and it boots OK (no module
41 problems etc.) you'll have to emerge nvidia-drivers...again.
42
43
44 In fewer words: Recompile the kernel to solve its problems and then
45 emerge nvidia-drivers.
46
47 HTH
48
49 --
50 Best regards,
51 Daniel
52
53
54 --
55 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] kernel recompile? Sean <tech.junk@×××××××.net>