LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 07-14-2004, 01:08 AM   #1
AlgebraicSpore
LQ Newbie
 
Registered: Jun 2004
Location: Brunswick, ME
Distribution: Debian
Posts: 15

Rep: Reputation: 0
Radeon 9600 Pro 2.6.6 Works, 2.6.7 doesn't


Sorry for another post about the fglrx drivers but it seems I am having a problem that I have not found the post for, if there is one please point me to it. I am running Debian Testng on a KT600 chipset with a Radeon 9600 Pro 256 MB video card.

I downloaded the drivers from the ATI website and then changed the rpm into a .deb using alien.
I then installed it using dpkg and built and configure the module by running sh make.sh in /lib/modules/fglrx/build_mod/ and then running sh make_install.sh in /lib/modules/fglrx/ after loading the module and fglrxconfig it worked fine and has been working fine for about 2 months on 2.6.6.

However I recently updated to 2.6.7 and tried the same process that I used on installing the drivers under 2.6.6 but now when I run the command sh make.sh in the build_mod folder I get the following output:

ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.7/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.7'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `agp_generic_alloc_page':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:1405: error: structure has no member named `count'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `ali_alloc_page':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:4416: error: structure has no member named `count'
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.7'
make: *** [kmod_build] Error 2
build succeeded with return value 0
ln: `./fglrx.ko': File exists
duplicating results into driver repository...
cp: cannot stat `fglrx.ko': No such file or directory
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================

I really do not know what is behined the error messages besides someone referencing a variable count out of context in the driver code, and I have no idea how to fix this.

Any help would be much apperciated.
-Spore
 
Old 07-14-2004, 08:21 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Are you sure that you need to fix it? The process does complete and instruct you to run the install script to install the module.

Have you tried that? Does it work?

It may very well be a non-critical (or even completely unimportant) error that has no bearing on the correct building or installing of the driver, and I wouldn't worry about it until I had reason to believe that it was something else.

Hope this helps.
 
Old 07-14-2004, 12:20 PM   #3
AlgebraicSpore
LQ Newbie
 
Registered: Jun 2004
Location: Brunswick, ME
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
I forgot to put the output of what happens when I run the make_install.sh script. Here it is:

*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository.
(see readme.txt for more details.)

As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.

failed.

*********************************************************************************************
**********************************************FIX***********************************************

I got it fixed by editng the code as follows:

In file /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c change the following:

line 1405 count to _count
line 4416 count to _count

in file /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c change the following

line 2013 count to _count

HTH
Spore

Last edited by AlgebraicSpore; 07-14-2004 at 02:14 PM.
 
Old 07-14-2004, 02:36 PM   #4
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Glad you got it fixed, but what possessed you to make those particular changes in that particular way?

In other words, please provide a link to the source of this fix, so others can know if it would help with problems they might have.

Myself, I'd just like to read the thread/article/whatever where this is suggested-- always looking to learn .
 
Old 07-14-2004, 06:36 PM   #5
AlgebraicSpore
LQ Newbie
 
Registered: Jun 2004
Location: Brunswick, ME
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
The error messages pointed to the bad code, there was another one that came up after I made the first to changes that was about the firegl_public.c file that showed a similar error.

/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `agp_generic_alloc_page':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:1405: error: structure has no member named `count'

/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function `ali_alloc_page':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:4416: error: structure has no member named `count'

I found what to change the name to on a thread from the linux mailing list here:

http://www.uwsg.iu.edu/hypermail/lin...05.2/1095.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Radeon 9600 Pro and fglrx fizzmahon Linux - General 3 11-13-2005 08:17 AM
problem with Radeon 9600 pro mr_al Suse/Novell 6 06-28-2005 08:47 AM
Tv out with radeon 9600 pro? Braveheart1980 Linux - Hardware 0 06-26-2004 08:12 PM
Radeon 9600 Pro with Suse 9.0 asteroidblitz Linux - Hardware 6 12-29-2003 07:31 AM
RedHat 9 + Radeon 9600 Pro? Masta-G Linux - Hardware 13 08-01-2003 11:10 PM


All times are GMT -5. The time now is 08:44 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration