This shows you the differences between two versions of the page.
— |
drm.fr [2022/04/16 12:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | Related : [[XWindow]] [[Radeon]] [[Debian]] [[dri]] [[IGP 320M]] | ||
+ | |||
+ | http://dri.sf.net/ | ||
+ | |||
+ | === [[GNU]]/[[Linux]] [[Debian]] & DRI Support for ATI [[Radeon]] [[IGP 320M]] on [[AmiloA]] [[Laptop]]=== | ||
+ | |||
+ | Default [[Debian]] package does not support dri for this card. | ||
+ | |||
+ | I have tried those compiled packages for [[Debian]] : | ||
+ | @ http://www.nixnuts.net/files/ | ||
+ | |||
+ | but it did not work on my [[AmiloA]] laptop | ||
+ | ([[Radeon]] [[IGP 320M]]), did i miss something ? | ||
+ | |||
+ | before i managed to make dri running on XFree86 3.3.99.14+ | ||
+ | @ http://who.is.free.fr/wiki/index.php?IGP%20320M | ||
+ | |||
+ | Here is what i did : | ||
+ | |||
+ | cat >> /etc/apt/source.list << EOF | ||
+ | deb http://www.nixnuts.net/files/ ./ | ||
+ | EOF | ||
+ | #EOF | ||
+ | |||
+ | |||
+ | apt-cache search dri-trunk | ||
+ | # xlibmesa-gl1-dri-trunk - Mesa 3D graphics library [[DRI trunk]] | ||
+ | # xserver-xfree86-dri-trunk - The XFree86 X server [[DRI trunk]] | ||
+ | apt-cache search drm-trunk | ||
+ | # drm-trunk-module-2.6.7-1-k7 - DRI CVS trunk DRM modules | ||
+ | # drm-trunk-module-2.6.8-1-k7 - DRI CVS trunk DRM modules | ||
+ | # drm-trunk-module-src - Source for the DRI CVS trunk DRM modules | ||
+ | |||
+ | |||
+ | |||
+ | ===[[Kernel]] 2.6.8=== | ||
+ | date ; uname -a | ||
+ | # Thu Oct 28 13:37:03 CEST 2004 | ||
+ | # Linux nrv 2.6.8-1-k7 #1 Thu Oct 7 02:47:47 EDT 2004 i686 GNU/Linux | ||
+ | |||
+ | apt-get -u remove xlibmesa-gl1-dri-trunk xserver-xfree86-dri-trunk \ | ||
+ | drm-trunk-module-2.6.8-1-k7 | ||
+ | |||
+ | apt-get -u install --reinstall xserver-xfree86 xlibmesa-dri xlibmesa-gl \ | ||
+ | xlibmesa-glu | ||
+ | |||
+ | apt-get -u install xlibmesa-gl1-dri-trunk xserver-xfree86-dri-trunk \ | ||
+ | drm-trunk-module-2.6.8-1-k7 kernel-image-2.6.8-1-k7 | ||
+ | |||
+ | # reboot | ||
+ | |||
+ | cat /proc/cmdline | ||
+ | # BOOT_IMAGE=26debian ro root=305 hdc=ide-scsi apm=power-off nomce resume=/dev/hda7 lang=fr alsa mem=nopentium i8042.nomux video=vram:64 | ||
+ | |||
+ | |||
+ | XFree86 -version 2>&1 | grep "Version" | ||
+ | # XFree86 Version 4.3.99.12 (DRI trunk) | ||
+ | # X Protocol Version 11, Revision 0, Release 6.6 | ||
+ | |||
+ | dmesg | ||
+ | # ... | ||
+ | # Linux agpgart interface v0.100 (c) Dave Jones | ||
+ | # radeon: no version for "struct_module" found: kernel tainted. | ||
+ | # radeon: Ignoring new-style parameters in presence of obsolete ones | ||
+ | # PCI: Unable to reserve mem region #1:4000000@f8000000 for device 0000:01:05.0 | ||
+ | # mtrr: 0xf8000000,0x4000000 overlaps existing 0xf8000000,0x200000 | ||
+ | # [[drm]] Initialized radeon 1.11.0 20020828 on minor 0: ATI Technologies Inc Radeon Mobility U1 | ||
+ | # [[drm]] Used old pci detect: framebuffer loaded | ||
+ | # ... | ||
+ | |||
+ | cat /var/log/XFree86.0.log | ||
+ | # ... | ||
+ | # XFree86 Version 4.3.99.12 (DRI trunk) | ||
+ | # Release Date: 10 September 2003 | ||
+ | # X Protocol Version 11, Revision 0, Release 6.6 | ||
+ | # Build Operating System: Linux 2.6.8-1-k7 i686 [[ELF]] | ||
+ | # Current Operating System: Linux nrv 2.6.8-1-k7 #1 Thu Oct 7 02:47:47 EDT 2004 i686 | ||
+ | # Build Date: 27 September 2004 | ||
+ | # Changelog Date: 10 September 2003 | ||
+ | # ... | ||
+ | # (WW) RADEON(0): Failed to set up write-combining range (0xf8000000,0x2000000) | ||
+ | # (WW) RADEON(0): Direct rendering not yet supported on IGP320/330/340/350, 7000, 9000 integrated chips | ||
+ | # ... | ||
+ | |||
+ | This last line of log is self explainable, | ||
+ | |||
+ | dpkg -S radeon_drv.o | ||
+ | # xserver-xfree86: /usr/X11R6/lib/modules/drivers/radeon_drv.o | ||
+ | # xserver-xfree86-dri-trunk: /usr/X11R6/lib/modules-dri-trunk/drivers/radeon_drv.o | ||
+ | |||
+ | strings /usr/X11R6/lib/modules/drivers/radeon_drv.o | ||
+ | # Direct rendering not yet supported on Radeon 9500/9700 and newer cards | ||
+ | # Direct rendering not yet supported on IGP320/330/340/350, 7000, 9000 integrated chips | ||
+ | |||
+ | strings /usr/X11R6/lib/modules-dri-trunk/drivers/radeon_drv.o | grep "not yet supported" | ||
+ | # Direct rendering not yet supported on Radeon 9500 and newer cards | ||
+ | |||
+ | [[ToDo]] ... | ||
+ | |||
+ | What i dont understand is why /usr/X11R6/lib/modules/drivers/radeon_drv.o | ||
+ | is loaded while it should be /usr/X11R6/lib/modules-dri-trunk/drivers/radeon_drv.o ? | ||
+ | |||
+ | |||
+ | As explained | ||
+ | file:///usr/share/doc/xserver-xfree86-dri-trunk/README.Debian | ||
+ | |||
+ | $EDITOR /etc/X11/XF86Config-4 | ||
+ | # ModulePath "/usr/X11R6/lib/modules" # in the File Section | ||
+ | |||
+ | ===DRI Crash=== | ||
+ | |||
+ | but once gdm starts my system freeze | ||
+ | |||
+ | cat /var/log/XFree86.0.log | ||
+ | # This is a pre-release version of XFree86, and is not supported in any | ||
+ | # way. Bugs may be reported to XFree86@XFree86.Org and patches submitted | ||
+ | # to fixes@XFree86.Org. Before reporting bugs in pre-release versions, | ||
+ | # please check the latest version in the XFree86 CVS repository | ||
+ | # (http://www.XFree86.Org/cvs). | ||
+ | # | ||
+ | # XFree86 Version 4.3.99.12 (DRI trunk) | ||
+ | # Release Date: 10 September 2003 | ||
+ | # X Protocol Version 11, Revision 0, Release 6.6 | ||
+ | # Build Operating System: Linux 2.6.8-1-k7 i686 [[ELF]] | ||
+ | # Current Operating System: Linux nrv 2.6.9-amiloa #8 Tue Nov 9 12:53:25 CET 2004 i686 | ||
+ | # Build Date: 24 November 2004 | ||
+ | # Changelog Date: 10 September 2003 | ||
+ | # Before reporting problems, check http://www.XFree86.Org/ | ||
+ | # to make sure that you have the latest version. | ||
+ | # Module Loader present | ||
+ | # Markers: (--) probed, (**) from config file, (==) default setting, | ||
+ | # (++) from command line, (====) notice, (II) informational,==== | ||
+ | # (WW) warning, (EE) error, (NI) not implemented, (??) unknown. | ||
+ | # (==) Log file: "/var/log/XFree86.0.log", Time: Wed Dec 1 22:14:29 2004 | ||
+ | # ... | ||
+ | # (II) LoadModule: "dri" | ||
+ | # (II) Loading /usr/X11R6/lib/modules-dri-trunk/extensions/libdri.a | ||
+ | # (II) Module dri: vendor="The XFree86 Project" | ||
+ | # compiled for 4.3.99.12, module version = 1.0.0 | ||
+ | # ABI class: XFree86 Server Extension, version 0.2 | ||
+ | # (II) Loading sub module "drm" | ||
+ | # (II) LoadModule: "drm" | ||
+ | # (II) Loading /usr/X11R6/lib/modules-dri-trunk/linux/libdrm.a | ||
+ | # (II) Module drm: vendor="The XFree86 Project" | ||
+ | # compiled for 4.3.99.12, module version = 1.0.0 | ||
+ | # ABI class: XFree86 Server Extension, version 0.2 | ||
+ | # (II) Loading extension XFree86-DRI | ||
+ | # (II) LoadModule: "glx" | ||
+ | # (II) Loading /usr/X11R6/lib/modules-dri-trunk/extensions/libglx.a | ||
+ | # (II) Module glx: vendor="The XFree86 Project" | ||
+ | # compiled for 4.3.99.12, module version = 1.0.0 | ||
+ | # ABI class: XFree86 Server Extension, version 0.2 | ||
+ | # (II) Loading sub module "GLcore" | ||
+ | # (II) LoadModule: "GLcore" | ||
+ | # (II) Loading /usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a | ||
+ | # Skipping "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_clip.o": No symbols found | ||
+ | # Skipping "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_norm.o": No symbols found | ||
+ | # Skipping "/usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a:m_debug_xform.o": No symbols found | ||
+ | # (II) Module GLcore: vendor="The XFree86 Project" | ||
+ | # compiled for 4.3.99.12, module version = 1.0.0 | ||
+ | # ABI class: XFree86 Server Extension, version 0.2 | ||
+ | # (II) Loading extension GLX | ||
+ | # (II) LoadModule: "GLcore" | ||
+ | # (II) Reloading /usr/X11R6/lib/modules-dri-trunk/extensions/libGLcore.a | ||
+ | # ... | ||
+ | # (II) LoadModule: "freetype" | ||
+ | # (II) Loading /usr/X11R6/lib/modules-dri-trunk/fonts/libfreetype.a | ||
+ | # <EOF> # might have not flushed before crashouep | ||
+ | |||
+ | |||
+ | |||
+ | cat /var/log/messages | ||
+ | # ... | ||
+ | # Dec 1 22:13:38 localhost syslogd 1.4.1#16: restart. | ||
+ | # Dec 1 22:13:38 localhost kernel: klogd 1.4.1#16, log source = /proc/kmsg started. | ||
+ | # Dec 1 22:13:38 localhost kernel: Inspecting /boot/System.map-2.6.9-amiloa | ||
+ | # ... | ||
+ | |||
+ | # Dec 1 22:14:10 localhost kernel: Linux agpgart interface v0.100 (c) Dave Jones | ||
+ | # Dec 1 22:14:11 localhost kernel: agpgart: Detected Ati IGP320/M chipset | ||
+ | # Dec 1 22:14:11 localhost kernel: agpgart: Maximum main memory to use for agp memory: 175M | ||
+ | # Dec 1 22:14:11 localhost kernel: agpgart: AGP aperture is 64M @ 0xf4000000 | ||
+ | # Dec 1 22:14:11 localhost pci.agent[[2766]]: ati-agp: loaded successfully | ||
+ | # ... | ||
+ | # Dec 1 22:14:15 localhost kernel: 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004) | ||
+ | # Dec 1 22:14:15 localhost pci.agent[[3074]]: 8139cp: loaded successfully | ||
+ | # Dec 1 22:14:15 localhost pci.agent[[3074]]: 8139too: already loaded | ||
+ | # Dec 1 22:14:15 localhost pci.agent[[3121]]: ohci1394: already loaded | ||
+ | # Dec 1 22:14:16 localhost pci.agent[[3183]]: ohci-hcd: already loaded | ||
+ | # Dec 1 22:14:16 localhost pci.rc[[2755]]: ignoring pci display device on 01:05.0 | ||
+ | # Dec 1 22:14:20 localhost kernel: parport0: PC-style at 0x378 (0x778) [[PCSPP,TRISTATE]] | ||
+ | # Dec 1 22:14:20 localhost kernel: parport0: irq 7 detected | ||
+ | # Dec 1 22:14:20 localhost kernel: lp0: using parport0 (polling). | ||
+ | # Dec 1 22:14:29 localhost kernel: apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) | ||
+ | # Dec 1 22:14:29 localhost kernel: apm: disabled on user request. | ||
+ | # Dec 1 22:19:27 localhost syslogd 1.4.1#16: restart. | ||
+ | |||
+ | === DRI alone does not crash=== | ||
+ | |||
+ | I removed all modules that were conflicting [[IRQ]] with [[dri]] , | ||
+ | |||
+ | cat /etc/modules | ||
+ | agpgart | ||
+ | radeon | ||
+ | |||
+ | cat /var/log/XFree86.0.log | ||
+ | # XFree86 Version 4.3.99.12 (DRI trunk) | ||
+ | # Release Date: 10 September 2003 | ||
+ | # X Protocol Version 11, Revision 0, Release 6.6 | ||
+ | # Build Operating System: Linux 2.6.8-1-k7 i686 [[ELF]] | ||
+ | # Current Operating System: Linux nrv 2.6.9-amiloa #8 Tue Nov 9 12:53:25 CET 2004 i686 | ||
+ | # (WW) RADEON(0): Failed to set up write-combining range (0xf8000000,0x2000000) | ||
+ | # (EE) RADEON(0): [[agp]] AGP failed to initialize. Disabling the DRI. | ||
+ | |||
+ | dmesg | ||
+ | # mtrr: 0xf8000000,0x2000000 overlaps existing 0xf8000000,0x200000 | ||
+ | # mtrr: 0xf8000000,0x2000000 overlaps existing 0xf8000000,0x200000 | ||
+ | # [[drm:radeon_cp_init]] *ERROR* radeon_cp_init called without lock held | ||
+ | # [[drm:radeon_unlock]] *ERROR* Process 1680 using kernel context 0 | ||
+ | |||
+ | Did I said that dri is not enabled again ? It could be using xorg (see [[dri]] ) | ||
+ | |||
+ | well I made it crash also while insmod'ing, rmmod'ing, restarting X | ||
+ | |||
+ | [[ToDo]] : | ||
+ | |||
+ | http://dri.sourceforge.net/cgi-bin/moin.cgi/DriTroubleshooting | ||
+ | |||
+ | http://www.linux-france.org/lug/gulliver/ml-archives/aout-2004/msg00148.html | ||
+ | |||
+ | === Compiling & Building [[Linux]] [[Kernel]] 2.6.9 Module on [[Debian]]=== | ||
+ | |||
+ | I will try out to compile dri on upcoming [[Debian]] [[Kernel]] | ||
+ | |||
+ | cd /usr/src | ||
+ | sudo apt-get install drm-trunk-module-src kernel-headers-2.6.9-1-k7 kernel-package debianutils | ||
+ | tar xvfz drm-trunk.tar.gz | ||
+ | cd /usr/src/kernel-headers-2.6.9-1-k7 | ||
+ | make-kpkg modules | ||
+ | # make[[4]]: Entering directory `/usr/src/kernel-headers-2.6.9-1-k7' | ||
+ | # CC [[M]] /usr/src/modules/drm-trunk/linux-2.6/i810_drv.o | ||
+ | # include/asm/string.h:224: error: `frol' undeclared (first use in this function) | ||
+ | # file:///usr/share/doc/drm-trunk-module-src/README.Debian | ||
+ | # file:///usr/share/doc/kernel-package/README.modules | ||
+ | |||
+ | sudo apt-get install kernel-source-2.6.9 | ||
+ | cd /usr/src && tar xvfj kernel-source-2.6.9.tar.bz2 | ||
+ | ln -fs kernel-source-2.6.9 linux | ||
+ | cd /usr/src/kernel-source-2.6.9 | ||
+ | make-kpkg modules-image | ||
+ | dpkg -i ../drm-trunk-module-2.6.9_2004.11.01-1_i386.deb | ||
+ | |||
+ | apt-get install xlibmesa-gl1-dri-trunk xserver-xfree86-dri-trunk \ | ||
+ | drm-trunk-module-2.6.9-1-k7 kernel-image-2.6.9-1-k7 | ||
+ | |||
+ | apt-get install xlibmesa-gl1-dri-trunk xserver-xfree86-dri-trunk | ||
+ | |||
+ | [[ToDo]] | ||
+ | |||
+ | # pre-install radeon modprobe agpgart # ??? | ||
+ | update-modules | ||
+ | |||
+ | |||
+ | ===MISC=== | ||
+ | |||
+ | http://qa.mandrakesoft.com/show_bug.cgi?id=9905 | ||
+ | |||
+ | http://qa.mandrakesoft.com/show_bug.cgi?id=12158 | ||