On Sunday 15 November 2009 04:06:27 Zhang Jun wrote: > Hi list, > > I want to keep two kernels in my pc, but have some problems on video > card driver and vbox: > > pc ~ # cd /lib/modules/ > pc modules # ls > 2.6.28-tuxonice-r10-tuxonice 2.6.30-tuxonice-r6 > pc modules # uname -r > 2.6.28-tuxonice-r10-tuxonice > pc modules # eix -I nvidia > [I] x11-drivers/nvidia-drivers > Available versions: 71.86.09!s ~71.86.11!s 96.43.13!s > 173.14.20!s ~173.14.20-r1!s 180.60!s ~185.18.36!s ~185.18.36-r1!s > ~190.29!s ~190.42-r2!s ~190.42-r3!s {acpi custom-cflags gtk > kernel_FreeBSD kernel_linux multilib userland_BSD} > Installed versions: 180.60!s(21时18分12秒 2009年08月16日)(acpi > kernel_linux -custom-cflags -gtk -multilib) > > ### and I want to install nv driver for another kernel by hand (not emerge) > > pc modules # sh > /usr/portage/distfiles/NVIDIA-Linux-x86-180.60-pkg0.run -a -K -k > "2.6.30-tuxonice-r6" > Verifying archive integrity... OK > Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 > 180.60..................................................................... > ........................................................................... > > ERROR: No NVIDIA driver is currently installed; the > '--kernel-module-only' option can only be used to install the NVIDIA > kernel module on > top of an existing driver installation. > > > > > the same problem will be in virtaulbox-modules, though I have not tested. > > > how can I install nv driver and vbox-modules for two kernels ? > thanks! >
Why are you trying to do it by hand? Just use emerge and let portage take care of all the housekeeping for you: - emerge module-rebuild - run module-rebuild populate - point /usr/src/linux at the source for the kernel you want to build for - run module-rebuild rebuild - repeat for each kernel The ebuild/driver package is smart enough to install kernel modules in the correct directory in /lib/modules/ when you do it this way/ -- alan dot mckinnon at gmail dot com