LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-18-2004, 02:33 PM   #16
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Original Poster
Rep: Reputation: 15

I hope you were using fglrx 3.2.8 driver, and that you were in the directory /lib/modules/fglrx/build_mod when you tried to patch, anyway, if you get that error the file name that you need to patch is /lib/modules/fglrx/build_mod/firegl_public.c.

I hope this helps...

Erol
 
Old 02-18-2004, 02:56 PM   #17
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Hey Erol I was using the fglrx 3.2.8 driver, and I was in the directory /lib/modules/fglrx/build_mod

I just downloaded the 3.7.0 driver too and the corresponding patch from that site... just incase.

Just to get this straight I copy both the patches to the /lib/modules/fglrx/build_mod dirrectory and apply both of them there.

Then follow the rest of your instructions??


Thanks for your help!

Adam
 
Old 02-18-2004, 03:03 PM   #18
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Original Poster
Rep: Reputation: 15
Well I hope you'll have better luck. I also tried 3.7.0 but I wasn't satisfied with it and I also read here that it's slower than 3.2.8.

If I can do anything more to help, feel free to ask.

Erol
 
Old 02-19-2004, 04:22 PM   #19
casimir
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
will this work with the 2.6.3 kernel?
 
Old 02-19-2004, 05:46 PM   #20
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Original Poster
Rep: Reputation: 15
I've updated to kernel 2.6.3 as soon as it was out.

So I have to say Yes, it works on kernel 2.6.3 without any problems.

Erol
 
Old 02-19-2004, 06:10 PM   #21
casimir
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
thanks

Erol,

Thank you for the info. I am going to try it now.
 
Old 02-20-2004, 01:29 PM   #22
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Hey Erol those patches go on alright but look at what happens when I run the ./make.sh

ATI module generator V 2.0
==========================
initializing...
build_date =Fri Feb 20 00:54:48 CET 2004
uname -a =Linux darkstar 2.6.2 #2 Wed Feb 18 16:44:06 CET 2004 i686 unknown unknown GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.6.2
uname -v =#2 Wed Feb 18 16:44:06 CET 2004
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)
.
drwxr-xr-x 139 root root 8192 Feb 19 13:34 /usr/include
.
total 41588
-rw-r--r-- 1 root root 567 Sep 3 02:12 2.4.22.nat.diff
drwxr-xr-x 2 root root 4096 Feb 19 13:34 ATI
lrwxrwxrwx 1 root root 11 Feb 18 15:40 linux -> linux-2.6.2
drwxr-xr-x 15 root root 4096 Aug 27 22:51 linux-2.4.22
drwxrwxr-x 19 1046 1046 4096 Feb 18 16:44 linux-2.6.2
-rwxr--r-- 1 root root 42509912 Feb 18 15:39 linux-2.6.2.tar.gz
drwxr-xr-x 7 root root 4096 Dec 12 2002 rpm
drwxr-xr-x 2 root root 4096 Sep 5 00:03 xfs-2.4.22
.
file /lib/modules/2.6.2/build/include/linux/agp_backend.h says: AGP=1
assuming default: SMP=0
assuming default: MODVERSIONS=0
.
CC=gcc
cc_version=3.2.3
found major but not minor version match for gcc and the ip-library
ls -l libfglrx_ip.a
lrwxr-xr-x 1 root root 18 Feb 20 00:54 libfglrx_ip.a -> libfglrx_ip.a.GCC3
.
probing for VMA API version...
cc_ret_vma_240 = 1
cc_ret_vma_253 = 0
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
doing Makefile based build for kernel 2.6.x and higher
ln -s ../libfglrx_ip.a.GCC3
echo agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
ln -s ../agp3.c
echo agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
ln -s ../nvidia-agp.c
echo agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
ln -s ../agpgart_be.c
echo agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
ln -s ../i7505-agp.c
echo agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
agp3.c nvidia-agp.c agpgart_be.c i7505-agp.c firegl_public.c
ln -s ../firegl_public.c
ln -s ../agp_backend.h
ln -s ../agp.h
ln -s ../firegl_public.h
make -C /lib/modules/2.6.2/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.2'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agp3.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/i7505-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2236: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2254: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2261: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2268: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2277: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3104: warning: `have_cpuid_p' defined but not used
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
Building modules, stage 2.
MODPOST
CC /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.2'
build succeeded with return value 0
.
duplicating results into driver repository...
target location: /lib/modules/fglrx
copying fglrx.ko
copying logfile of build
*** end of build log ***

What does that initialization from incompatible pointer type mean?? I tried following though the rest of the steps but I it only loads the mesa drivers no Direct Rendering

Thanks
Adam
 
Old 02-20-2004, 03:39 PM   #23
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Original Poster
Rep: Reputation: 15
when I do ./make.sh I get exactly the same warnings like you, so my guess is that's not the problem.

First I would suggest that you try when you've don with ./make.sh, do ./make_install and then

/sbin/modprobe/nvidia-agp
/sbin/modprobe/fglrx

If you get an error stating illegal characters in your modules, then you need to reboot, and you should edit your /etc/modprobe.conf and add the following line

install fglrx /sbin/modprobe --ignore-install fglrx && { /sbin/modprobe nvidia_agp; /bin/true; }

And in your /etc/rc.d/rc.modules add the following line

/sbin/modprobe fglrx

Then you have to reboot, since those modules need to be loaded at boot-time.

I hope this helps...

Erol
 
Old 02-20-2004, 03:49 PM   #24
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Thanks a lot man I will give it another go!

Adam
 
Old 02-21-2004, 06:56 AM   #25
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Hey Erol still no go

I followed your instructions and no error doing:
/sbin/modprobe/nvidia-agp
/sbin/modprobe/fglrx

I put those lines in my modprobe.conf just incase. Then I put the /sbin/modprobe fglrx in the rc.modules

Can I post you any of my config files/dmesg to help??

Still no direct rendering

Thanks again!
Adam
 
Old 02-21-2004, 07:05 AM   #26
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Original Poster
Rep: Reputation: 15
One thing is not clear to me? Did you or did you not get errors when typing

/sbin/modprobe nvidia-agp
/sbin/modprobe fglrx

if that worked out without errors and you can see that your modules are loaded with lsmod than you're ok, we can go further.

There's no point in putting those 2 lines in /etc/modprobe.conf, since you will load them with /etc/rc.d/rc.modules.

Let's take this step at a thime, first to get your modules compiled and loaded, then we will see what's (if anything) is wrong with config files.

Erol
 
Old 02-21-2004, 10:50 AM   #27
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Sorry for the confusion. No there were NO error messages when I did this:

/sbin/modprobe nvidia-agp
/sbin/modprobe fglrx


OK lsmod gives me the following:

Module Size Used by
snd_pcm_oss 49732 0
snd_mixer_oss 17792 1 snd_pcm_oss
uhci_hcd 29896 0
ehci_hcd 22976 0
ide_scsi 12356 0
snd_intel8x0 28996 0
snd_ac97_codec 60932 1 snd_intel8x0
snd_pcm 88640 2 snd_pcm_oss,snd_intel8x0
snd_timer 22848 1 snd_pcm
snd_page_alloc 9412 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 6400 1 snd_intel8x0
snd_rawmidi 21504 1 snd_mpu401_uart
snd_seq_device 7044 1 snd_rawmidi
snd 48580 9 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi, snd_seq_device
soundcore 7328 1 snd
nvidia_agp 5788 1
fglrx 202180 0
agpgart 27080 1 nvidia_agp
rtc 10984 0


It looks like both those modules are loaded right? Whats the next step?

Thanks
Adam
 
Old 02-21-2004, 01:23 PM   #28
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Original Poster
Rep: Reputation: 15
The next thing is fglrxconfig, and creating XF86free-4 file in /etc/X11, I think that you allready did this step, if not do it and start X.

in your console type fglrxinfo and post the results here, if you don't get a message that starts with:

OpenGL vendor string: ATI Technologies Inc.

This means if it says that your OpenGL is mesa,than your 3d acc. don't work.

And also please post the results of glxgears here.

then you need to reinstall dri. You can find out how to do that in my first post.
 
Old 02-21-2004, 01:55 PM   #29
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Ok I did the fglrxconfig. Unfortunatly I am at work. I have the results of glxinfo:

name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: ATI
client glx version string: 1.3
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_ATI_pixel_format_float,
GLX_ATI_render_texture
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 1 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x24 24 tc 1 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x25 24 tc 1 24 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x26 24 tc 1 24 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x27 24 dc 1 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x28 24 dc 1 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x29 24 dc 1 24 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x2a 24 dc 1 24 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None


If you need more info I will send you my fglrxinfo and glxgears info when I get home.

Adam
 
Old 02-21-2004, 02:23 PM   #30
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Original Poster
Rep: Reputation: 15
This tells me all that I wanted to know:

OpenGL version string: 1.3 Mesa 4.0.4

You need to download and reinstall DRI.

Than it should work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 09:56 PM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 02:24 PM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
fglrx, nforce2 mobo, kernel 2.6.2-rc3 thrice Slackware 1 12-22-2004 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration