View previous topic :: View next topic |
Author |
Message |
Antares-1 Tux's lil' helper
Joined: 02 Dec 2005 Posts: 105
|
Posted: Mon Dec 19, 2005 3:23 pm Post subject: [fglrx] No puedo compilar el modulo (Solucionado) |
|
|
Creo este TOPICO para solicitar ayuda con un error de construcción del modulo FGLRX, el topico anterior que cree voy a dejarlo para ayudas compilando el modulo de DRI, DRM lo como se llame solamente para el Kernel.
Intente ayer a la noche, bah, en realidad hoy a las 1:00 de la mañana... emerger los ati-drivers de una versión mas reciente. (Antes de escribir esto use la versión 8.12, ahora es la ati-drivers-8.14.13-r1).
Por las dudas, el Kernel es por defecto el que viene con la versión Gentoo 2005.1, un 2.6.12-r6 (SI NECESITO Crear un nuevo Kernel avisenme y pasenme las instrucciones para actualizarlo.)
Haciendo emerge ati-drivers no me tira el error anterior (Del topico anterior), pero si esto (Compila el modulo pero...)
Code: | * Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.12-gentoo-r6
* Checking for MTRR support enabled ... [ ok ]
* Checking for AGP support enabled ... [ !! ]
* You don't have AGP support enabled, the direct rendering
* will not work.
* Checking for DRM support disabled ... [ ok ]
* X11 implementation is xorg-x11.
>>> Unpacking source...
>>> Unpacking fglrx_6_8_0-8.14.13-1.i386.rpm
* Applying fglrx-2.6.12-pci_name.patch ... [ ok ]
* Applying fglrx-2.6.12-inter_module_get.patch ... [ ok ]
* Applying 8.8.25-via-amd64.patch ... [ ok ]
* Applying 8.8.25-smp.patch ... [ ok ]
* Applying 8.14.13-amd64.patch ... [ ok ]
>>> Source unpacked.
* Building the DRM module...
make: Entering directory `/usr/src/linux-2.6.12-gentoo-r6'
CC [M] /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agp3.o
CC [M] /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/nvidia-agp.o
CC [M] /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.o
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c: In function `__fgl_agp_init':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7629: warning: `pm_register' is deprecated (declared at include/linux/pm.h:106)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c: In function `__fgl_agp_cleanup':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7639: warning: `pm_unregister_all' is deprecated (declared at include/linux/pm.h:116)
CC [M] /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/i7505-agp.o
CC [M] /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.o
In file included from /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:130:
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.h:56:48: warning: backslash and newline separated by space
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.h:57:6: warning: backslash and newline separated by space
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.h:58:41: warning: backslash and newline separated by space
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c: In function `firegl_stub_putminor':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:513: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:568)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:515: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:565)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c: In function `firegl_stub_register':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:535: warning: `inter_module_register' is deprecated (declared at include/linux/module.h:564)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:566: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:568)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c: In function `__ke_verify_area':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:1443: warning: `verify_area' is deprecated (declared at include/asm/uaccess.h:105)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c: At top level:
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:2652: warning: initialization from incompatible pointer type
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:2870: warning: initialization from incompatible pointer type
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:2873: warning: initialization from incompatible pointer type
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:2874: warning: initialization from incompatible pointer type
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:2875: warning: initialization from incompatible pointer type
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/firegl_public.c:2877: warning: initialization from incompatible pointer type
LD [M] /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.o
Building modules, stage 2.
MODPOST
*** Warning: "agp_backend_release" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
*** Warning: "agp_copy_info" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
*** Warning: "agp_unbind_memory" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
*** Warning: "agp_allocate_memory" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
*** Warning: "agp_free_memory" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
*** Warning: "agp_backend_acquire" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
*** Warning: "agp_enable" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
*** Warning: "agp_bind_memory" [/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko] undefined!
CC /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.mod.o
LD [M] /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/fglrx.ko |
Configure el Xorg normalmente con el fglrxconfig, pero al inicializar me da este ERROR:
Quote: | FATAL: Error inserting fglrx.ko (El modulo y su path): Unknow simbol in module, or unknow parameter (See dmesg). |
Con dmesg:
Code: | fglrx: Unknown symbol agp_bind_memory
fglrx: Unknown symbol agp_enable
fglrx: Unknown symbol agp_backend_acquire
fglrx: Unknown symbol agp_free_memory
fglrx: Unknown symbol agp_allocate_memory
fglrx: Unknown symbol agp_unbind_memory
fglrx: Unknown symbol agp_copy_info
fglrx: Unknown symbol agp_backend_release |
DIRECT RENDERING: NO!
Last edited by Antares-1 on Tue Dec 20, 2005 8:50 pm; edited 1 time in total |
|
Back to top |
|
|
alexlm78 Veteran
Joined: 08 Dec 2003 Posts: 1265 Location: Guatemala,Guatemala
|
Posted: Mon Dec 19, 2005 3:55 pm Post subject: |
|
|
Una pregunta, como compilas tu kernel, pues el primer error es que no tienes soporte AGP, por lo tanto no se puede usar direct rendering
Nekki-Basara wrote: | Code: |
* Checking for AGP support enabled ... [ !! ]
* You don't have AGP support enabled, the direct rendering
* will not work.
|
|
intenta agregandolo al kernel y haslo de nuevo.
P.D. Tengo la impresion que compilas el kernel con Genkernel, creo que deberias hacerlo a pie, para saber con certeza como hacerlo.
te dejo este link de los distintos sabores de kernel que usa gentoo.
http://www.gentoo.org/doc/es/gentoo-kernel.xml _________________ "This is a different kind of world, you need a different kind of software"
Linux User# 315201
100% Chapin hecho en Guatemala |
|
Back to top |
|
|
t4d3o Tux's lil' helper
Joined: 18 Jan 2005 Posts: 79 Location: Cuenca
|
Posted: Mon Dec 19, 2005 4:48 pm Post subject: |
|
|
Hola, esto lo postee hace unos dias en otro foro, espero que te sirva de ayuda.
Lo primero es preparar el kernel:
Le damos soporte MTRR
Code: |
Processor type and features --->
[*] MTRR (Memory Type Range Register) support
|
Activamos como modulo agpgart y el modulo del chipset (este es opcional)
En la misma seccion hay que desactivar DRI ( Direct Rendering Manager )
Code: |
Device Drivers --->
Character devices --->
<M> /dev/agpgart (AGP Support)
< > ALI chipset support
< > ATI chipset support
< > AMD Irongate, 761, and 762 chipset support
< > AMD Opteron/Athlon64 on-CPU GART support
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
<M> NVIDIA nForce/nForce2 chipset support
< > SiS chipset support
< > Serverworks LE/HE chipset support
< > VIA chipset support
< > Transmeta Efficeon support
< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
|
Una vez compilado el kernel instalamos los ultimos ati-drivers.
Code: |
echo "x11-drivers/ati-drivers ~x86" >> /etc/portage/package.keywords
emerge ati-drivers
|
Una vez instalados cargamos con modprobe los modulos agp_gart, modulo_chip, fglrx.
En el fichero /etc/X11/xorg.conf debemos tener algo asi:
Code: | # === ATI device section ===
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor ===
#Option "NoDDC"
# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "no_dri" "no"
# === misc DRI settings ===
Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
Option "DesktopSetup" "(null)"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "ScreenOverlap" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
Option "CapabilitiesEx" "0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
# === Center Mode (Laptops only) ===
Option "CenterMode" "off"
# === Pseudo Color Visuals (8-bit visuals) ===
Option "PseudoColorVisuals" "off"
# === QBS Management ===
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
# === FSAA Management ===
Option "FSAAEnable" "no"
Option "FSAAScale" "1"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
# === Misc Options ===
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "no"
Option "ForceGenericCPU" "no"
BusID "PCI:2:0:0" # vendor=1002, device=4150
Screen 0
EndSection |
Despues de esto reiniciamos las X y cambiamos el opengl a nuestra tarjeta
Con esto deberiamos tener aceleracion por hardware con una ati, para comprobarlo
Code: | glxinfo | grep direct |
Debe aparecer esto:
direct rendering: Yes |
|
Back to top |
|
|
Antares-1 Tux's lil' helper
Joined: 02 Dec 2005 Posts: 105
|
Posted: Mon Dec 19, 2005 10:01 pm Post subject: |
|
|
Claro, lo que pasa es que utilizo el soporte AGPart del driver ATI y el DRM Tambien, pero voy a probar con lo que me tiro el capo recien y les digo.
Otra, no uso Genkernel, sino un Kernel compilado a mano.
Agregado: Anoche pude compilar por FIN el DRM. era un error muy simple, con la opción que me paso Tadeo ayer se pudo solucionar.
Tadeo mucha gracias por la ayuda. Un par de cositas: Me ralentizo un poco el proceso de Render por software porque corre a 24BPP la pantalla, y otra cosa, esta un poco INESTABLE. De hecho, cada vez que vuelvo a cargar el servidor X un pantallazo negro horrible. Pero por lo demas, bien. |
|
Back to top |
|
|
aj2r l33t
Joined: 11 Sep 2005 Posts: 705 Location: Granada/Andalucía/España
|
Posted: Thu Dec 22, 2005 11:00 am Post subject: |
|
|
¿Pantallazo negro significa que se te cualga el sistema? Si es así y usas el radeonfb lo mejor que puedes hacer es quitarlo y usar vesafb-tng o vesafb. Parece que fglrx no se lleva muy bien con radeonfb. |
|
Back to top |
|
|
Antares-1 Tux's lil' helper
Joined: 02 Dec 2005 Posts: 105
|
Posted: Thu Dec 22, 2005 4:31 pm Post subject: |
|
|
Pongo el el grub.conf vesafb o vesatng??? Porque si no me quita el Splash... y yo quiero mi Splash!!!
Bueno, en realidad quiero el de las chicas de Final Fantasy, el de Gentoo es solo para decir: AGUANTE GENTOO.
Yo antes tenia vesafb en el Grub.conf, pero me tiraba error conque no podia encontrar la imagen de 8BPP, una boludez. Ahora con vesa-tng no se como especificarlo, pero voy a probarlo. Decime como lo especifico y mañana te pongo los resultados.
Si, es pantallazo negro (Y ya los extrañaba desde Windows98...) |
|
Back to top |
|
|
aj2r l33t
Joined: 11 Sep 2005 Posts: 705 Location: Granada/Andalucía/España
|
Posted: Thu Dec 22, 2005 6:19 pm Post subject: |
|
|
Éstas son mis líneas para vesafb-tng:
title GNU/Linux
root (hd0,1)
kernel /vmlinuz root=/dev/hda6 video=vesafb:ywrap,mtrr,pmipal,1024x768-32@60 splash=silent,fadein,theme:livecd-2005.1 quiet CONSOLE=/dev/tty1
initrd (hd0,1)/fbsplash-livecd-2005.1 |
|
Back to top |
|
|
Antares-1 Tux's lil' helper
Joined: 02 Dec 2005 Posts: 105
|
Posted: Fri Dec 23, 2005 9:18 pm Post subject: |
|
|
Es casi igual que lo mio, pero es error del Theme livecd... es cuestion de que lo cambie por otro y cambie a vesafb para ver como responde. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|