LINUX.ORG.RU

nvidia & virtualbox на kernel-2.6.30


0

0

После обновления ядра до 2.6.30 не устанавливаются драйвера nvidia и не собирается модуль для virtualbox. Собственно вот ошибки:
1. Nvidia
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 185.18.14.
-> There appears to already be a driver installed on your system (version: 180.
51). As part of installing this driver (version: 185.18.14), the existing d
river will be uninstalled. Are you sure you want to continue? ('no' will ab
ort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.30-ARCH/build'
-> Kernel output path: '/lib/modules/2.6.30-ARCH/build'
ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

2. Vbox:
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.30-ARCH/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include -Iinclude -I/usr/src/linux-2.6.30-ARCH/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm -I/lib/modules/2.6.30-ARCH/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -D"DEBUG_HASH=27" -D"DEBUG_HASH2=27" -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
In file included from include/linux/slab.h:153,
from /tmp/vbox.0/linux/../SUPDrvInternal.h:101,
from /tmp/vbox.0/linux/SUPDrv-linux.c:37:
include/linux/slub_def.h:13:29: error: trace/kmemtrace.h: Нет такого файла или каталога
In file included from include/linux/slab.h:153,
from /tmp/vbox.0/linux/../SUPDrvInternal.h:101,
from /tmp/vbox.0/linux/SUPDrv-linux.c:37:
include/linux/slub_def.h: В функции ‘kmalloc_large’:
include/linux/slub_def.h:236: ошибка: неявная декларация функции ‘trace_kmalloc’
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Ошибка 1
make[1]: *** [_module_/tmp/vbox.0] Ошибка 2
make: *** [vboxdrv] Ошибка 2

Kernel hacking -> Tracers -> Trace SLAB allocations включено.
Ума не приложу, куда копать. Помогай, уважаемый ALL ;)


нет исходников ядра
вот и не собирается

Sylvia ★★★★★
()
Ответ на: комментарий от Sylvia

Доброго всем утра :)

root@arch build]# ls -la
итого 11832
drwxr-xr-x 18 root root 4096 Июн 10 23:51 .
drwxr-xr-x 4 root root 4096 Июн 10 23:41 ..
-rw-r--r-- 1 root root 67670 Июн 10 23:40 .config
-rw-r--r-- 1 root root 55126 Июн 10 23:40 Makefile
-rw-r--r-- 1 root root 358560 Июн 10 23:40 Module.symvers
drwxr-xr-x 4 root root 4096 Июн 10 23:40 arch
drwxr-xr-x 2 root root 4096 Июн 10 23:40 block
drwxr-xr-x 3 root root 4096 Июн 10 23:40 crypto
drwxr-xr-x 75 root root 4096 Июн 10 23:40 drivers
drwxr-xr-x 59 root root 4096 Июн 10 23:40 fs
drwxr-xr-x 14 root root 4096 Июн 10 23:40 include
drwxr-xr-x 2 root root 4096 Июн 10 23:40 init
drwxr-xr-x 5 root root 4096 Июн 10 23:40 kernel
drwxr-xr-x 2 root root 4096 Июн 10 23:40 lib
drwxr-xr-x 2 root root 4096 Июн 10 23:40 mm
drwxr-xr-x 40 root root 4096 Июн 10 23:40 net
drwxr-xr-x 2 root root 4096 Июн 10 23:40 samples
drwxr-xr-x 12 root root 4096 Июн 10 23:30 scripts
drwxr-xr-x 6 root root 4096 Июн 10 23:40 security
drwxr-xr-x 19 root root 4096 Июн 10 23:40 sound
drwxr-xr-x 2 root root 4096 Июн 10 23:40 usr
-rwxr-xr-x 1 root root 11551518 Июн 10 23:40 vmlinux
[root@arch build]#

pastor
() автор топика
Ответ на: комментарий от pastor

решилось копированием $srcdir/include/trace в /lib/modules/2.6.30-ARCH/build/include

pastor
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.