LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-24-2004, 07:13 AM   #1
TheRepublican
Member
 
Registered: Nov 2003
Location: The US of A
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
Slack 10 and ATI


I want to update my Slack 9.1 box to the new Slack 10, however 10 comes with the new x11-6.7.0-i486-4 package from x.org. Will the fglrx drivers work with this version, or do you even need them? Is the radeon or ati driver that comes with x.org as good as the fglrx drivers?

Last edited by TheRepublican; 06-24-2004 at 07:34 AM.
 
Old 06-24-2004, 10:12 AM   #2
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
The drivers will work with xorg.org, it's the kernel that I'm having troubles with. Trying to install the drivers for 2.6.7, but modprobe claims that it's an "Invalid module format" I'm going to see why it says this, but I sure hope I can use it....
 
Old 06-24-2004, 10:44 AM   #3
GodSendDeath
Member
 
Registered: Mar 2004
Posts: 71

Rep: Reputation: 15
It's an incorrect module format because the module was written for the 2.4* kernel series. Modules are written differently in 2.6*. I was just glancing by, but I would check to see if theres modules for the 2.6* kernel series. Writting LKM rootkits helped me realize this!

-GSD
 
Old 06-24-2004, 05:14 PM   #4
lubbus
LQ Newbie
 
Registered: Jun 2004
Distribution: slackware 9.1 w/dropline 2.6.1
Posts: 4

Rep: Reputation: 0
Check this link

http://kerneltrap.org/node/view/3298

hope it helps...
 
Old 06-24-2004, 10:17 PM   #5
HuMJohn
Member
 
Registered: Jun 2004
Location: California - home of Slackware
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
XOrg & Radeon Drivers

The stock drivers that are part of the xorg package run my ATI Radeon very nicely, thank you. I have a Radeon 9600 and I am using the stock, unmodified kernel and I have it running 1280x1024 24bit depth. The only modification that I made to the xorg.conf file (replaces the XF86Config file) was to include the ZAxisMapping line for the scroll wheel of the mouse. The xorg.conf file was installed in the /etc/X11 subdirectory. Of course, you could configure your own with 'xorgconfig' command.

Incidently, I have this thing running in a 1280x1024x16Mcolors vesa mode at bootup.

HuMJohn
 
Old 06-24-2004, 10:50 PM   #6
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Re: XOrg & Radeon Drivers

Quote:
Originally posted by HuMJohn
The stock drivers that are part of the xorg package run my ATI Radeon very nicely
Cool; so how do you use the stock drivers for an ATI card :)?

Do you think you'll get a performance gain by using proprietry drivers?

Steve
 
Old 06-24-2004, 11:00 PM   #7
TheRepublican
Member
 
Registered: Nov 2003
Location: The US of A
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
I went ahead and upgraded to slack 10 and am posting from my fluxbox desktop now. I answered my own question, the ATI drivers work fine. I am too using kernel 2.6.7, and have had now trouble installing or using. Steps I took:

download ATI fglrx 3.9.0 driver rpm
rpm2tgz fglrx*.rpm
installpkg fglrx*.tgz
cd /lib/modules/fglrx/build_mod
cp /root/ati-2.6.7.patch .
patch -p1 < ati-2.6.7.patch
sh make.sh
cd ..
sh make_install.sh
cd /etc/rc.d
vi rc.modules
Added line: /sbin/modprobe fglrx
restart
Configure fglrx drivers: fglrxconfig
Save to /etc/X11/xorg.conf
startx

The patch I used:

Code:
Common subdirectories: a/2.6.x and b/2.6.x

diff -puN a/agpgart_be.c b/agpgart_be.c

--- a/agpgart_be.c	2004-05-06 22:51:27.000000000 -0400

+++ b/agpgart_be.c	2004-06-17 12:44:19.000000000 -0400

@@ -1402,7 +1402,7 @@ unsigned long agp_generic_alloc_page(voi

     }

 #endif

 

-    atomic_inc(&page->count);

+    get_page(page);

     set_bit(PG_locked, &page->flags);

     atomic_inc(&agp_bridge.current_memory_agp);

 

@@ -1449,7 +1449,7 @@ void agp_generic_destroy_page(unsigned l

     put_page(page);

     UnlockPage(page);

 #else /* AGPGART_2_4_19 */

-    atomic_dec(&page->count);                                                 

+    __put_page(page);                                                 

     clear_bit(PG_locked, &page->flags);                                       

     wake_up(&page->wait);                                                     

 #endif /* AGPGART_2_4_19 */

@@ -4413,7 +4413,7 @@ static unsigned long ali_alloc_page(void

     if (page == NULL)

         return 0;

 

-    atomic_inc(&page->count);

+    get_page(page);

     set_bit(PG_locked, &page->flags);

     atomic_inc(&agp_bridge.current_memory_agp);

 

@@ -4509,7 +4509,7 @@ static void ali_destroy_page(unsigned lo

     put_page(page);

     UnlockPage(page);

 #else /* AGPGART_2_4_19 */

-    atomic_dec(&page->count);

+    __put_page(page);

     clear_bit(PG_locked, &page->flags);

     wake_up(&page->wait);

 #endif /* AGPGART_2_4_19 */

diff -puN a/firegl_public.c b/firegl_public.c

--- a/firegl_public.c	2004-03-17 17:00:29.000000000 -0500

+++ b/firegl_public.c	2004-06-17 12:44:54.000000000 -0400

@@ -2010,7 +2010,7 @@ static __inline__ vm_nopage_ret_t do_vm_

     pMmPage = virt_to_page(kaddr);

 #endif /* LINUX_VERSION_CODE < 0x020400 */

 

-    atomic_inc(&(pMmPage->count));  /* inc usage count of page */

+    get_page(pMmPage);  /* inc usage count of page */

 

 #if LINUX_VERSION_CODE >= 0x020400

   //  __KE_DEBUG3("vm-address 0x%08lx => kernel-page-address 0x%p\n",

@@ -2052,7 +2052,7 @@ static __inline__ vm_nopage_ret_t do_vm_

     // Don't increment page usage count, cause ctx pages are allocated

     // with drm_alloc_pages, which marks all pages as reserved. Reserved

     // pages' usage count is not decremented by the kernel during unmap!!!

-    atomic_inc(&(pMmPage->count)); /* inc usage count of page */

+    get_page(pMmPage); /* inc usage count of page */

 #endif

 

 #if LINUX_VERSION_CODE >= 0x020400
Hopefully this will help some of your problems.
 
Old 06-25-2004, 08:38 AM   #8
HuMJohn
Member
 
Registered: Jun 2004
Location: California - home of Slackware
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
Re: XOrg & Radeon Drivers ( post #6)

quote:Originally posted by HuMJohn
The stock drivers that are part of the xorg package run my ATI Radeon very nicely


Cool; so how do you use the stock drivers for an ATI card ?

Do you think you'll get a performance gain by using proprietry drivers?

Steve


I am not sure about proprietary drivers. I never had a need for the speed, under Linux. I use Linux, here, for just about ev erything except playing games. The only other time I need non-Linux is when I am working for my employer and am here at my home office, and the job has to be done under, say Windows or something. (Usually this is a cross-platform development.)

So, the stock xorg drivers work just fine for me, as they come packaged with the xorg included in the 10.0 (and it's Release Candidates, before the final.)

HuMJohn
 
Old 06-25-2004, 02:39 PM   #9
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
tried everything

ok ive seen many a patch for this problem and I have yet to be successful. I am running :

1. Slackware 10 (fresh install off iso)
2. recompiled 2.6.7 kernel (agpgart, radeon driver compiled as mod)
3. Xorg (current version)

i just tried that said patch above and an error message came back up about line 16 ---- which ironically is blank

please help !!!!
 
Old 06-25-2004, 04:22 PM   #10
HuMJohn
Member
 
Registered: Jun 2004
Location: California - home of Slackware
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
Line 16..............which file? The xorg.conf file? The radeon driver source file? the xinitrc file?

(I assume that you did run xorgconfig script to set up the xorg.conf file. If so, please help fill in the blanks by psoting the entire error, please.)
 
Old 06-25-2004, 04:40 PM   #11
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
so terribly sorry to leave that open for misunderstanding. i mean Republicans post of the above patch
 
Old 06-25-2004, 06:26 PM   #12
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Is it just me, or does it look like TheRepublican's patch looks incomplete? I'm seeing an Endif toward the beginning, but no If. I know those are just comments helping explain what part of the file is what, but I see no { for the } to close....

Edit:

Nevermind, I found out where he got the patch from, and it seems there's enough people that confirm that it works.

Last edited by r_jensen11; 06-25-2004 at 06:36 PM.
 
Old 06-25-2004, 06:30 PM   #13
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
I'm not exactly sure how patches work, but I'd guess that since it's a diff, the full statement isn't particularly necessary -- simply changes. What's the point of a patch if entire statements need be defined, rather than the differences?

Besides, it looks as if it works, regardless. I'm about to test it out myself

--Shade
 
Old 06-25-2004, 07:18 PM   #14
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
ok

so now ive gotten the patch to work with the 3.7 fglrx drivers. my next questions are

1. that writes to the file XF86Config-4, which doesnt help at this point ?
2. is there a way to load the fglrx module instead of the radeon mod that ive been using ?

again, TIA to all that have contributed to each other
 
Old 06-25-2004, 07:48 PM   #15
nirvanix
Member
 
Registered: May 2003
Location: Calgary, Canada
Distribution: Arch Linux
Posts: 194

Rep: Reputation: 30
working

I did get my ATI fglrx (v3.9.0)/kernel 2.6.7/xorg 6.7 setup working following TheRepublicans instructions. Thanks TR! Only thing I didn't need to do is add the sbin/modprobe fglrx to rc/modules because when you start x it looks at the xorg.conf file and sees the fglrx module named so it modprobes it for you.

By the way I want to clarify something about the default xorg/XFree radeon driver vs the ATI driver as I've seen the confusion: the default driver is very good for 2D but quite slow for 3D. If you're going to play Quake/UT etc you should use the ATI driver and if you don't play these games then stick with the default.
 
  


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
ati card in slack slackwarebilly Linux - Hardware 0 07-18-2005 02:45 PM
New ATI Xorg Drivers On Slack 10.1 sepz Linux - Hardware 9 03-12-2005 04:33 PM
Slack 10.1, ATI nForce and 2.6 Zarnce Slackware 2 02-09-2005 10:25 AM
Slack 9.1 and ATI 9000M celticselph Linux - Laptop and Netbook 0 11-29-2004 12:11 PM
Another ATI and Slack Problem baronvonmarlon Linux - Hardware 11 09-06-2004 06:22 AM


All times are GMT -5. The time now is 03:28 AM.

Main Menu
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