LinuxSir.cn,穿越时空的Linuxsir!

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

http://zh.gentoo-wiki.com/HOWTO_DRI

[复制链接]
发表于 2006-3-25 01:05:35 | 显示全部楼层 |阅读模式
http://zh.gentoo-wiki.com/HOWTO_DRI
希望对大家有用

相比较doc,wiki更容易keep up-to-date
发表于 2006-3-25 21:49:46 | 显示全部楼层
开源ATI驱动部分还没有。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-25 22:00:34 | 显示全部楼层
我正在写这一篇
回复 支持 反对

使用道具 举报

发表于 2006-3-25 22:10:27 | 显示全部楼层
dri我遇到问题了。emerge x11-drm失败,仿佛和内核有关?
现在不知道该怎样选择内核、工具链了。

gentoo-sources-2.6.16:ALC880声卡不能正常工作

mm-sources-2.6.16_rc6-r2:gnome 2.14不能正常注销

gentoo-sources-2.6.15:gcc4.1下vmware不能配置内核模块。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-25 23:35:11 | 显示全部楼层
贴这些没用
贴错误信息
http://zh.gentoo-wiki.com/HOWTO_ATI_Open-Source_Drivers
差不多完整了
回复 支持 反对

使用道具 举报

发表于 2006-3-26 10:15:42 | 显示全部楼层
  1. 安装
  2. 启用"dri" USE flag
  3. # euse -D dri
复制代码
这一段有问题没有?这样用后反而把make.conf里的dri减掉了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-26 11:37:34 | 显示全部楼层
sorry, 笔误
回复 支持 反对

使用道具 举报

发表于 2006-3-26 12:25:29 | 显示全部楼层
ati 9550,试了一下
dmesg:
  1. [drm] Initialized radeon 1.24.0 20060225 on minor 0:
  2. [drm] Used old pci detect: framebuffer loaded
  3. mtrr: 0xd0000000,0x10000000 overlaps existing 0xd0000000,0x8000000
  4. mtrr: 0xd0000000,0x10000000 overlaps existing 0xd0000000,0x8000000
  5. mtrr: 0xd0000000,0x10000000 overlaps existing 0xd0000000,0x8000000
  6. mtrr: 0xd0000000,0x10000000 overlaps existing 0xd0000000,0x8000000
  7. agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
  8. agpgart: Putting AGP V3 device at 0000:00:00.0 into 4x mode
  9. agpgart: Putting AGP V3 device at 0000:01:00.0 into 4x mode
  10. [drm] Setting GART location based on new memory map
  11. [drm] Loading R300 Microcode
  12. [drm] writeback test succeeded in 1 usecs
  13. agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
  14. agpgart: Putting AGP V3 device at 0000:00:00.0 into 4x mode
  15. agpgart: Putting AGP V3 device at 0000:01:00.0 into 4x mode
  16. [drm] Loading R300 Microcode
复制代码

glxgears:
  1. ~ $ glxgears
  2. *********************************WARN_ONCE*********************************
  3. File r300_ioctl.c function r300Clear line 555
  4. CB_DPATH has been enabled.
  5. Please let me know if this introduces new instabilities.
  6. ***************************************************************************
  7. 7126 frames in 5.0 seconds = 1425.035 FPS
复制代码

没想象中的快:-)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-26 12:45:51 | 显示全部楼层
r300以上只有2D加速
wiki上的硬件列表样有提到
man radeon里也有
回复 支持 反对

使用道具 举报

发表于 2006-3-26 12:47:44 | 显示全部楼层
ati PCIE X600显卡,gentoo-sources-2.6.16、gcc4.1安装后出错了。

glxgears:
  1. *********************************WARN_ONCE*********************************
  2. File r300_ioctl.c function r300Clear line 555
  3. CB_DPATH has been enabled.
  4. Please let me know if this introduces new instabilities.
  5. ***************************************************************************
  6. drmRadeonCmdBuffer: -22 (exiting)
复制代码

dmesg:
  1. <6>[drm] Initialized drm 1.0.1 20051102
  2. PCI: Unable to reserve mem region #1:10000000@d0000000 for device 0000:01:00.0
  3. GSI 22 sharing vector 0xE9 and IRQ 22
  4. ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 233
  5. PCI: Setting latency timer of device 0000:01:00.0 to 64
  6. [drm] Initialized radeon 1.24.0 20060225 on minor 0:
  7. [drm] Used old pci detect: framebuffer loaded
  8. [drm] Setting GART location based on old memory map
  9. [drm] Loading R300 Microcode
  10. [drm] writeback test succeeded in 1 usecs
  11. [drm:r300_emit_3d_load_vbpntr] *ERROR* Offset failed range check (k=0 i=2) while processing 3D_LOAD_VBPNTR packet.
  12. [drm:r300_emit_packet3] *ERROR* r300_emit_raw_packet3 failed
  13. [drm:r300_do_cp_cmdbuf] *ERROR* r300_emit_packet3 failed
  14. [drm:r300_emit_3d_load_vbpntr] *ERROR* Offset failed range check (k=0 i=2) while processing 3D_LOAD_VBPNTR packet.
  15. [drm:r300_emit_packet3] *ERROR* r300_emit_raw_packet3 failed
  16. [drm:r300_do_cp_cmdbuf] *ERROR* r300_emit_packet3 failed
  17. [drm:r300_emit_3d_load_vbpntr] *ERROR* Offset failed range check (k=0 i=2) while processing 3D_LOAD_VBPNTR packet.
  18. [drm:r300_emit_packet3] *ERROR* r300_emit_raw_packet3 failed
  19. [drm:r300_do_cp_cmdbuf] *ERROR* r300_emit_packet3 failed
  20. [drm] Setting GART location based on old memory map
  21. [drm] Loading R300 Microcode
  22. [drm] writeback test succeeded in 1 usecs
  23. [drm:r300_emit_3d_load_vbpntr] *ERROR* Offset failed range check (k=0 i=2) while processing 3D_LOAD_VBPNTR packet.
  24. [drm:r300_emit_packet3] *ERROR* r300_emit_raw_packet3 failed
  25. [drm:r300_do_cp_cmdbuf] *ERROR* r300_emit_packet3 failed
复制代码

xorg.conf
  1. # File generated by xorgconfig.
  2. # **********************************************************************
  3. # Refer to the xorg.conf(5x) man page for details about the format of
  4. # this file.
  5. # **********************************************************************
  6. # **********************************************************************
  7. # Module section -- this  section  is used to specify
  8. # which dynamically loadable modules to load.
  9. # **********************************************************************
  10. #
  11. Section "Module"
  12. # This loads the DBE extension module.
  13.     Load        "dbe"          # Double buffer extension
  14. # This loads the miscellaneous extensions module, and disables
  15. # initialisation of the XFree86-DGA extension within that module.
  16.     SubSection  "extmod"
  17.       Option    "omit xfree86-dga"   # don't initialise the DGA extension
  18.     EndSubSection
  19. # This loads the font modules
  20. #    Load        "type1"
  21. #    Load        "speedo"
  22.     Load        "freetype"
  23. #    Load        "xtt"
  24. # This loads the GLX module
  25.     Load       "glx"
  26. # This loads the DRI module
  27.     Load       "dri"
  28. # This load the DRM module
  29.     Load       "drm"
  30. EndSection
  31. # **********************************************************************
  32. # Files section.  This allows default font and rgb paths to be set
  33. # **********************************************************************
  34. Section "Files"
  35. # The location of the RGB database.  Note, this is the name of the
  36. # file minus the extension (like ".txt" or ".db").  There is normally
  37. # no need to change the default.
  38. #    RgbPath        "/usr/share/X11/rgb"
  39. # Multiple FontPath entries are allowed (which are concatenated together),
  40. # as well as specifying multiple comma-separated entries in one FontPath
  41. # command (or a combination of both methods)
  42. #
  43. #
  44.     FontPath   "/usr/share/fonts/misc"
  45.     FontPath   "/usr/share/fonts/75dpi"
  46.     FontPath   "/usr/share/fonts/100dpi"
  47.     FontPath   "/usr/share/fonts/TTF"
  48.     FontPath   "/usr/share/fonts/Type1"
  49. #    FontPath   "/usr/lib/X11/fonts/local/"
  50. #    FontPath   "/usr/lib/X11/fonts/misc/"
  51. #    FontPath   "/usr/lib/X11/fonts/75dpi/:unscaled"
  52. #    FontPath   "/usr/lib/X11/fonts/100dpi/:unscaled"
  53. #    FontPath   "/usr/lib/X11/fonts/Speedo/"
  54. #    FontPath   "/usr/lib/X11/fonts/Type1/"
  55. #    FontPath   "/usr/lib/X11/fonts/TrueType/"
  56. #    FontPath   "/usr/lib/X11/fonts/freefont/"
  57. #    FontPath   "/usr/lib/X11/fonts/75dpi/"
  58. #    FontPath   "/usr/lib/X11/fonts/100dpi/"
  59. # The module search path.  The default path is shown here.
  60. #    ModulePath "/usr/lib/modules"
  61. EndSection
  62. # **********************************************************************
  63. # Server flags section.
  64. # **********************************************************************
  65. Section "ServerFlags"
  66. EndSection
  67. # **********************************************************************
  68. # Input devices
  69. # **********************************************************************
  70. # **********************************************************************
  71. # Core keyboard's InputDevice section
  72. # **********************************************************************
  73. Section "InputDevice"
  74.     Identifier        "Keyboard1"
  75.     Driver        "kbd"
  76.     Option "AutoRepeat" "500 30"
  77.     Option "XkbRules"        "xorg"
  78.     Option "XkbModel"        "pc101"
  79.     Option "XkbLayout"        "us"
  80. EndSection
  81. # **********************************************************************
  82. # Core Pointer's InputDevice section
  83. # **********************************************************************
  84. Section "InputDevice"
  85.     Identifier        "Mouse1"
  86.     Driver        "mouse"
  87.     Option "Protocol"    "IMPS/2"        # IntelliMouse PS/2
  88.     Option "Device"      "/dev/input/mice"
  89.     Option "ZAxisMapping"   "4 5 6 7"
  90. EndSection
  91. # **********************************************************************
  92. # Monitor section
  93. # **********************************************************************
  94. Section "Monitor"
  95.     Identifier  "Maya"
  96. # HorizSync is in kHz unless units are specified.
  97. # HorizSync may be a comma separated list of discrete values, or a
  98. # comma separated list of ranges of values.
  99. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
  100. # USER MANUAL FOR THE CORRECT NUMBERS.
  101.     HorizSync   31.5 - 64.3
  102. #    HorizSync        30-64         # multisync
  103. #    HorizSync        31.5, 35.2    # multiple fixed sync frequencies
  104. #    HorizSync        15-25, 30-50  # multiple ranges of sync frequencies
  105. # VertRefresh is in Hz unless units are specified.
  106. # VertRefresh may be a comma separated list of discrete values, or a
  107. # comma separated list of ranges of values.
  108. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
  109. # USER MANUAL FOR THE CORRECT NUMBERS.
  110.     VertRefresh 50-100
  111. EndSection
  112. # **********************************************************************
  113. # Graphics device section
  114. # **********************************************************************
  115. # Device configured by xorgconfig:
  116. Section "Device"
  117.     Identifier  "X600"
  118.     Driver      "radeon"
  119.     Option          "AGPMode" "4"
  120.     Option          "RenderAccel" "on"
  121.     Option          "EnablePageFlip" "True"
  122.     # This two lines are needed to prevent fonts from being scrambled
  123.     Option          "XaaNoScanlineImageWriteRect"
  124.     Option          "XaaNoScanlineCPUToScreenColorExpandFill"
  125.     BusID      "PCI:1:0:0"
  126.     #VideoRam    262144
  127.     # Insert Clocks lines here if appropriate
  128. EndSection
  129. # **********************************************************************
  130. # Screen sections
  131. # **********************************************************************
  132. # Any number of screen sections may be present.  Each describes
  133. # the configuration of a single screen.  A single specific screen section
  134. # may be specified from the X server command line with the "-screen"
  135. # option.
  136. Section "Screen"
  137.     Identifier  "Screen 1"
  138.     Device      "X600"
  139.     Monitor     "Maya"
  140.     DefaultDepth 24
  141.     Subsection "Display"
  142.         Depth       8
  143.         Modes       "1280x1024" "1024x768" "800x600" "640x480"
  144.         ViewPort    0 0
  145.     EndSubsection
  146.     Subsection "Display"
  147.         Depth       16
  148.         Modes       "1280x1024" "1024x768" "800x600" "640x480"
  149.         ViewPort    0 0
  150.     EndSubsection
  151.     Subsection "Display"
  152.         Depth       24
  153.         Modes       "1280x1024" "1024x768" "800x600" "640x480"
  154.         ViewPort    0 0
  155.     EndSubsection
  156. EndSection
  157. # **********************************************************************
  158. # ServerLayout sections.
  159. # **********************************************************************
  160. # Any number of ServerLayout sections may be present.  Each describes
  161. # the way multiple screens are organised.  A specific ServerLayout
  162. # section may be specified from the X server command line with the
  163. # "-layout" option.  In the absence of this, the first section is used.
  164. # When now ServerLayout section is present, the first Screen section
  165. # is used alone.
  166. Section "ServerLayout"
  167. # The Identifier line must be present
  168.     Identifier  "Simple Layout"
  169. # Each Screen line specifies a Screen section name, and optionally
  170. # the relative position of other screens.  The four names after
  171. # primary screen name are the screens to the top, bottom, left and right
  172. # of the primary screen.  In this example, screen 2 is located to the
  173. # right of screen 1.
  174.     Screen "Screen 1"
  175. # Each InputDevice line specifies an InputDevice section name and
  176. # optionally some options to specify the way the device is to be
  177. # used.  Those options include "CorePointer", "CoreKeyboard" and
  178. # "SendCoreEvents".
  179.     InputDevice "Mouse1" "CorePointer"
  180.     InputDevice "Keyboard1" "CoreKeyboard"
  181. EndSection
  182. Section "DRI"
  183.     Mode 0666
  184. EndSection
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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