Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] install nvidia driver and virtualbox for two kernels
Date: Sun, 15 Nov 2009 10:12:44
Message-Id: 200911151039.27666.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] install nvidia driver and virtualbox for two kernels by Zhang Jun
1 On Sunday 15 November 2009 04:06:27 Zhang Jun wrote:
2 > Hi list,
3 >
4 > I want to keep two kernels in my pc, but have some problems on video
5 > card driver and vbox:
6 >
7 > pc ~ # cd /lib/modules/
8 > pc modules # ls
9 > 2.6.28-tuxonice-r10-tuxonice 2.6.30-tuxonice-r6
10 > pc modules # uname -r
11 > 2.6.28-tuxonice-r10-tuxonice
12 > pc modules # eix -I nvidia
13 > [I] x11-drivers/nvidia-drivers
14 > Available versions: 71.86.09!s ~71.86.11!s 96.43.13!s
15 > 173.14.20!s ~173.14.20-r1!s 180.60!s ~185.18.36!s ~185.18.36-r1!s
16 > ~190.29!s ~190.42-r2!s ~190.42-r3!s {acpi custom-cflags gtk
17 > kernel_FreeBSD kernel_linux multilib userland_BSD}
18 > Installed versions: 180.60!s(21ʱ18·Ö12Ãë 2009Äê08ÔÂ16ÈÕ)(acpi
19 > kernel_linux -custom-cflags -gtk -multilib)
20 >
21 > ### and I want to install nv driver for another kernel by hand (not emerge)
22 >
23 > pc modules # sh
24 > /usr/portage/distfiles/NVIDIA-Linux-x86-180.60-pkg0.run -a -K -k
25 > "2.6.30-tuxonice-r6"
26 > Verifying archive integrity... OK
27 > Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86
28 > 180.60.....................................................................
29 > ...........................................................................
30 >
31 > ERROR: No NVIDIA driver is currently installed; the
32 > '--kernel-module-only' option can only be used to install the NVIDIA
33 > kernel module on
34 > top of an existing driver installation.
35 >
36 >
37 >
38 >
39 > the same problem will be in virtaulbox-modules, though I have not tested.
40 >
41 >
42 > how can I install nv driver and vbox-modules for two kernels ?
43 > thanks!
44 >
45
46 Why are you trying to do it by hand? Just use emerge and let portage take care
47 of all the housekeeping for you:
48
49 - emerge module-rebuild
50 - run module-rebuild populate
51
52 - point /usr/src/linux at the source for the kernel you want to build for
53 - run module-rebuild rebuild
54 - repeat for each kernel
55
56 The ebuild/driver package is smart enough to install kernel modules in the
57 correct directory in /lib/modules/ when you do it this way/
58
59 --
60 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] install nvidia driver and virtualbox for two kernels Zhang Jun <gb2313@×××××.com>