LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1064|回复: 5

opensuse11.2在virtualbox中安装显示驱动失败

[复制链接]
发表于 2009-11-14 19:31:27 | 显示全部楼层 |阅读模式
log:


Installing VirtualBox 3.0.10 Guest Additions, built Thu Oct 29 14:19:56 CET 2009

Testing the setup of the guest system

Building test kernel module vboxadd_test...

Makefile:25: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
grep: /usr/src/linux/include/linux/version.h: 没有那个文件或目录
make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/tmp/selfgz817817767/module/test SRCROOT=/tmp/selfgz817817767/module/test 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)

  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /tmp/selfgz817817767/module/test/.tmp_versions ; rm -f /tmp/selfgz817817767/module/test/.tmp_versions/*

  WARNING: Symbol version dump /usr/src/linux-2.6.31.5-0.1/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/tmp/selfgz817817767/module/test
/tmp/selfgz817817767/module/test/Makefile:25: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
grep: /usr/src/linux/include/linux/version.h: 没有那个文件或目录
  gcc -Wp,-MD,/tmp/selfgz817817767/module/test/.test.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.4/include -Iinclude  -I/usr/src/linux-2.6.31.5-0.1/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 -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -I/usr/src/linux/include -I/tmp/selfgz817817767/module/test/ -I/tmp/selfgz817817767/module/test/include -I/tmp/selfgz817817767/module/test/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)"  -c -o /tmp/selfgz817817767/module/test/test.o /tmp/selfgz817817767/module/test/test.c
/tmp/selfgz817817767/module/test/test.c:1: error: code model ‘kernel’ not supported in the 32 bit mode
/tmp/selfgz817817767/module/test/test.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/tmp/selfgz817817767/module/test/test.o] 错误 1
make[1]: *** [_module_/tmp/selfgz817817767/module/test] 错误 2
make: *** [vboxadd_test] 错误 2

Building the test kernel module vboxadd_test failed.
Giving up due to the problems mentioned above.
 楼主| 发表于 2009-11-14 19:33:47 | 显示全部楼层
Makefile:25: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
grep: /usr/src/linux/include/linux/version.h: 没有那个文件或目录

我已经安装了源里的kernel-source, 怎么会没有version.h呢?
回复 支持 反对

使用道具 举报

发表于 2009-11-15 15:49:04 | 显示全部楼层
安装    * 编译器 gcc,
    * 程序 make 和
    * 包 kernel-source
    * 包 kernel-syms
    * 11.2
          o package kernel-desktop-devel

到/usr/src/linux下
make cloneconfig
make modules_prepare

version.h就有了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-15 20:54:45 | 显示全部楼层
好了,谢。

但kwin还是开不了特效。虚拟机中是否可以开特效的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-15 22:51:52 | 显示全部楼层
我的xorg.conf

/.../
# SaX generated X11 config file
# Created on: 2009-11-15T22:42:11+0800.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "Files"
  FontPath     "/usr/share/fonts/misc:unscaled"
  FontPath     "/usr/share/fonts/local"
  FontPath     "/usr/share/fonts/75dpi:unscaled"
  FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/URW"
  FontPath     "/usr/share/fonts/Speedo"
  FontPath     "/usr/share/fonts/PEX"
  FontPath     "/usr/share/fonts/cyrillic"
  FontPath     "/usr/share/fonts/latin2/misc:unscaled"
  FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/Type1"
  FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/share/fonts/baekmuk:unscaled"
  FontPath     "/usr/share/fonts/japanese:unscaled"
  FontPath     "/usr/share/fonts/kwintv"
  FontPath     "/usr/share/fonts/truetype"
  FontPath     "/usr/share/fonts/uni:unscaled"
  FontPath     "/usr/share/fonts/CID"
  FontPath     "/usr/share/fonts/ucs/misc:unscaled"
  FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/misc:unscaled"
  FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/Type1"
  FontPath     "/usr/share/fonts/misc/sgi:unscaled"
  FontPath     "/usr/share/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"
EndSection

Section "ServerFlags"
  Option       "AllowMouseOpenFail" "on"
  Option       "ZapWarning" "on"
EndSection

Section "Module"
  Load         "glx"
  Load         "extmod"
  Load         "dbe"
  Load         "dri"
EndSection
                                                
Section "InputDevice"
  # Driver "kbd" will be disabled unless 'Option "AutoAddDevices" "off"'
  # is set in "ServerFlags" section.
  Driver       "kbd"
  Identifier   "Keyboard[0]"
  Option       "rotocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "microsoftpro"
  Option       "XkbRules" "xfree86"
EndSection


Section "InputDevice"
  Driver       "vboxmouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "9"
  Option       "Device" "/dev/input/mice"
  Option       "InputFashion" "Mouse"
  Option       "Name" "Virtual Box Pointer"
  Option       "rotocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  # Driver "mouse" will be disabled unless 'Option "AutoAddDevices" "off"'
  # is set in "ServerFlags" section.
  Driver       "mouse"
  Identifier   "Mouse[3]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "ImPS/2 Generic Wheel Mouse"
  Option       "rotocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
  DisplaySize  517 323
  HorizSync    29-48
  Identifier   "Monitor[0]"
  ModelName    "1024X768@60HZ"
  Option       "DPMS"
  Option       "referredMode" "1920x1080"
  VendorName   "--> VESA"
  VertRefresh  42-60
  UseModes     "Modes[0]"
EndSection


Section "Modes"
  Identifier   "Modes[0]"
EndSection


Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1920x1080" "1680x1050" "1600x1024" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "1920x1080" "1680x1050" "1600x1024" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1920x1080" "1680x1050" "1600x1024" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "1920x1080" "1680x1050" "1600x1024" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection


Section "Device"
  BoardName    "VirtualBox Graphics Adapter"
  Driver       "vboxvideo"
  Identifier   "Device[0]"
  Screen       0
  VendorName   "InnoTek Systemberatung GmbH"
EndSection



Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  InputDevice  "Mouse[3]" "SendCoreEvents"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection


Section "DRI"
    Group      "video"
    Mode       0660
EndSection

Section "Extensions"
  Option       "Composite" "0"
EndSection
回复 支持 反对

使用道具 举报

发表于 2009-11-15 23:01:50 | 显示全部楼层
没试过,貌似需要一个VirtualBox的Addon CD..
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表