You are not logged in.
[HOW-TO] Ati Radeon & Kernel 2.6
Updated on new ati-drivers 4.3.0
[CONTENTS]
1.1 Requirements
2.0 Compiling Kernel
2.1 Configuring Bootloader [GRUB]
3.0 Building & Generating modules
3.1 Pacthing modules
3.2 Compiling modules
3.3 Adding modules boot runlevel
4.0 fglrxconfig
4.1 Xorg.conf NEW!!
[1.1] Requirements
(All Intel & AMD users)
1. Ati Radeon 9xxx (Mine 9600 Sapphyre pro)
2. Kernel 2.8.x (Current 2.8.1)
3. wget, rpmunpack, cpio
4. PKGBUILD [FILE]
5. ati-drivers.install [FILE]
6. fglrx-2.6-vmalloc-vmaddr.patch New!!!
Those are code for listed files:
PKGBUILD New!!!
pkgname=ati-drivers
pkgver=3.11.1
pkgrel=1
pkgdesc="Proprietary (binary) drivers for ATI Radeon Cards."
url="www.ati.com/support/driver.html"
depends=('xfree86')
install="$pkgname.install"
source=(http://www2.ati.com/drivers/linux/fglrx-4.3.0-$pkgver.i386.rpm)
#md5sums=('9f7802ee0bbdeb5172673027056e789d')
# build-time deps: rpmunpack, cpio, gzip
build() {
cd $startdir/pkg
rpmunpack < $startdir/src/fglrx-4.3.0-$pkgver.i386.rpm | gzip -d | cpio -idmuv
chmod 755 -R .
mv opt/kde3 opt/kde
mkdir -p opt/gnome/share
mv usr/share/gnome/apps/ opt/gnome/share
rm -rf usr/share/gnome
usr/share/applnklib/modules/fglrx/{fglrx*.o,fglrx_info.txt}
usr/X11R6/bin/LICENSE.{GPL,QPL}
usr/X11R6/bin/*.bz2
}
ati-drivers.install New!!!
post_install() {
cat << EOF
NOTE
----
To create an fglrx module for your system, do:
cd /lib/modules/fglrx/build_mod
./make.sh
cd ..
./make_install.sh
Make sure you have your full kernel tree at /usr/src/linux
Then initialize "fglrxconfig" to create an XF86Config
for your graphics card.
EOF
}
post_upgrade() {
/bin/true
}
pre_remove() {
/bin/true
}
op=$1
shift
$op $*
fglrx-2.6-vmalloc-vmaddr.patch New!!!
--- firegl_public.c 2004-03-17 17:00:29.000000000 -0500
+++ /lib/modules/fglrx/build_mod/firegl_public.c 2004-07-18 16:09:46.000000000 -0500
@@ -2010,8 +2010,8 @@
pMmPage = virt_to_page(kaddr);
#endif /* LINUX_VERSION_CODE < 0x020400 */
- atomic_inc(&(pMmPage->count)); /* inc usage count of page */
-
+// atomic_inc(&(pMmPage->_count)); /* inc usage count of page */
+ get_page(pMmPage);
#if LINUX_VERSION_CODE >= 0x020400
// __KE_DEBUG3("vm-address 0x%08lx => kernel-page-address 0x%pn",
// address, page_address(pMmPage));
[2.0] Compiling kernel
<*> MTRR
e poi
<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
< > Intel i865 chipset support
< > NVIDIA nForce/nForce2 chipset support
< > SiS chipset support
< > Serverworks LE/HE chipset support
<M> VIA chipset support
< > Transmeta Efficeon support
[*] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
< > 3dfx Banshee/Voodoo3+
< > 3dlabs GMX 2000
< > ATI Rage 128
< > ATI Radeon
< > Matrox g200/g400
< > SiS video cards
make dep && make clean bzImage modules modules_install
[/code]
when finished,mount boot partition (if not already mounted)
[code]
mount /boot
[/code]
and copy kernel image to the boot directory, so the new kernel loads after computer restart. Pay attention to not overwrite existent kernels images in boot partition. For security issues rename it as ***_new.
[code]
cp arch/i386/boot/bzImage /boot/vmlinuz_new
[/code]
[2.1] Configuring Bootloader [GRUB]
Edit your boot-loader config file.
I currently use grub instead of lilo.
[code]
nano /boot/grub/menu.lst
[/code]
Add a new sub-menu (this is an example) Check on the forum how to set-up a bootloader).
[code]
# (0) Arch Linux
title Arch Linux [/boot/vmlinuz_new]
root (hd0,3)
kernel (hd0,1)/vmlinuz_new root=/dev/discs/disc0/part4 ro
[/code]
REBOOT
[3.0] Building ati-drivers
Make a directory under /var/abs/local called ati
[code]
mkdir /var/abs/loca/ati
[/code]
copy in it the two files PKGBUILD ati-drivers.install
[code]
cp /path/to/file/PKGBUILD /var/abs/local/ati
cp /path/to/file/ati-drivers.install /var/abs/local/ati
[/code]
start building package
[code]
makepkg -c
[/code]
if all goes well, this will be the output
[code]
[root@CippaLippa ati]# makepkg -c
==> Making package: ati-drivers
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> .......
==> .......
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .PKGINFO file...
==> Copying install script...
==> Generating .FILELIST file...
==> Compressing package...
==> Cleaning up...
==> Finished making: ati-drivers (Tue Feb 10 15:11:13 CET 2004)
[root@CippaLippa ati]#
[/code]
It downloads necessary files and generates a file called ati-drivers-3.9.x.pkg.tar.gz
Install it using:
[code]
pacman -A ati-drivers-3.x.x.pkg.tar.gz
[/code]
This installation generates a folder in /lib/modules/fglrx
Change directory
[code]
cd /lib/modules/fglrx
[/code]
[3.1] Pacthing modules
To patch modules simply copy the two files .patch listed on top in this directory. Intel users must only install fglrx-2.6-vmalloc-vmaddr.patch, AMD users both.
[code]
cp /path/to/patch/fglrx-2.6-vmalloc-vmaddr.patch /lib/modules/fglrx
[/code]
change directory
[code]
cd build_mod
[/code]
to patch the file firegl_public.c
[code]
patch -b firegl_public.c ../fglrx-2.6-vmalloc-vmaddr.patch
[/code]
It's time to compile the modules
[code]
sh make.sh
[root@CippaLippa build_mod]# sh make.sh
ATI module generator V 2.0
==========================
initializing...
probing for VMA API version...
cleaning...
patching...
...
...
...
...
make[1]: Leaving directory `/usr/src/linux-2.6.x
build succeeded with return value 0
duplicating results into driver repository...
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================
[/code]
change directory as you see on screen
[code]
cd /lib/modules/fglrx
[/code]
and compile in
[code]
sh make_install.sh
[/code]
if will be no errors in output, module fglrx were perfectly compiled in /lib/modules/2.6.x/kernel/drivers/char/drm/ and named "fglrx.ko"
[3.2] Adding modules boot runlevel
open /etc/rc.conf
[code]
nano /etc/rc.conf
[/code]
go to line MODULES= and add
[code]
agpgart via-agp fglrx rtc <== make sure always in this order
[/code]
(if your motherboard is "VIA" equipped, else check what do you have: the same configured in kernel under /dev/agpgart (AGP Support)
[4.0] fglrxconfig
Ati-drivers comes with a modified xf86config, utility to generate XF86config files.
Run
[code]
fglrxconfig
[/code]
and a welcome screen appear
[code]
==============================================================================
ATI - FIRE GL - BE THE CREATOR
==============================================================================
This program will create the ATI "XF86Config-4" file
- based on your selections - for the below listed boardtypes...
- ATI Radeon 8500 / 9100
- ATI FireGL 8700 / 8800 / E1
- ATI FireGL T2
- ATI Radeon 9000
- ATI Radeon 9200
- ATI Radeon 9500
- ATI Radeon 9600
- ATI Radeon 9700
- ATI Radeon 9800
- ATI FireGL Z1 / X1 / X2
- ATI Mobility M9
- ATI Mobility FireGL 9000
- ATI Mobility M9PLUS
The "XF86Config-4" file usually resides in /etc/X11.
Press [Enter] to continue, press 'q'&[Enter] or [Ctrl]+'c' to abort.
[/code]
follow the on-screen steps leaving default settings. Configure only mouse, keyboard, screen frequencies and resolution. At least when prompt for:
[code]
External AGPGART module:
..
..
external agpgart module execute this on the commandline (as root):
/sbin/insmod agpgart
or alternatively configure your system to auto load the module.
Do you want to use the external AGP GART module (y/n)? [y]
[/code]
be sure to answer "YES".
[4.1] Xorg.cong New!!!
Xorg configuration file, resides in /etc/X11.
It is XF86config renamed and Will replace soon it, with the new video system based on Xorg.
This is my xorg.conf file:
[code]
Section "dri"
Mode 0666
EndSection
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "freetype"
Load "glx" # libglx.a
Load "dri" # libdri.a
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
ModulePath "/usr/X11R6/lib/modules"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "it"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/usbmouse"
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 31-96
VertRefresh 55-160
Option "DPMS"
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
EndSection
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
#Option "NoDDC"
Option "no_accel" "no"
Option "no_dri" "no"
Option "DesktopSetup" "0x00000000"
Option "MonitorLayout" "AUTO, AUTO"
Option "IgnoreEDID" "off"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "ScreenOverlap" "0"
Option "NoTV" "yes"
Option "TVStandard" "NTSC-M"
Option "TVHSizeAdj" "0"
Option "TVVSizeAdj" "0"
Option "TVHPosAdj" "0"
Option "TVVPosAdj" "0"
Option "TVHStartAdj" "0"
Option "TVColorAdj" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
Option "Capabilities" "0x00000000"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "CenterMode" "off"
Option "PseudoColorVisuals" "off"
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
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"
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "no"
Option "ForceGenericCPU" "no"
BusID "PCI:1:0:0" # vendor=1002, device=4150
Screen 0
EndSection
Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultDepth 24
#Option "backingstore"
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600"
ViewPort 0 0 # initial origin if mode is smaller than desktop
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Server Layout"
Screen "Screen0"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
[/code]
REBOOT
Start in X with kde, gnome or othet window manager.
If X does not start you maybe made something wrong, retry from the beginning. Else if it starts, check if DRI os working
[code]
fgl_glxgears
[/code]
if it is working, a rotating cube will appear in a new windows, and if it is so.....
ENJOY
**SORRY FOR MY ENGLISH **
Offline
darksides,
Thanks so much for posting this *lengthy*, and no doubt, time-consuming HOW-TO. I'm sure it took a great deal of time, and will be of great use to a lot of people here.
In fact, I have an ATI Radeon Mobility M6 in my notebook (a Gateway 450SX4), and when I'm ready to move to the 2.6.x kernel, your post should come in very handy.
Thanks again for taking the time to provide this. We can never have too much documentation.
Arch 0.6 - Kernel 2.6.5 - Fluxbox 0.9.8
Offline
Nice work! Have you thought of posting this under the wiki username and adding a link to this post:
http://bbs.archlinux.org/viewtopic.php?t=2250
That way people can find it and can edit it if they find a problem.
Dusty
Offline
Nice work! Have you thought of posting this under the wiki username and adding a link to this post:
http://bbs.archlinux.org/viewtopic.php?t=2250
That way people can find it and can edit it if they find a problem.
Dusty
I'm doing it now, Tanks
Offline
This is a fantastic resource, thanks very much.
But I am having trouble with the ati-drivers PKGBUILD.
makepkg -c runs into this problem:
.........
./usr/share/gnome/apps/fireglcontrol.desktop
./usr/share/icons/ati.xpm
./usr/share/pixmaps/ati.xpm
./usr/src/ATI/fglrx_panel_sources.tgz
./usr/src/ATI/fglrx_sample_source.tgz
21763 blocks
usr/X11R6/bin/LICENSE.GPL: line 2: syntax error near unexpected token `('
usr/X11R6/bin/LICENSE.GPL: line 2: ` The Qt GUI Toolkit is Copyright (C) 1994-2000 Trolltech AS.'
==> ERROR: Build Failed. Aborting...
Could I get some advice on how to deal with this please?
Offline
Edit the file PKGBUILD, the last line
mv usr/share/gnome/apps/ opt/gnome/share
rm -rf usr/share/gnome usr/share/applnk lib/modules/fglrx/{fglrx*.o,fglrx_info.txt} usr/X11R6/bin/LICENSE.{GPL,QPL} usr/X11R6/bin/*.bz2
goes on the same line
This is a fantastic resource, thanks very much.
But I am having trouble with the ati-drivers PKGBUILD.
makepkg -c runs into this problem:.........
./usr/share/gnome/apps/fireglcontrol.desktop
./usr/share/icons/ati.xpm
./usr/share/pixmaps/ati.xpm
./usr/src/ATI/fglrx_panel_sources.tgz
./usr/src/ATI/fglrx_sample_source.tgz
21763 blocks
usr/X11R6/bin/LICENSE.GPL: line 2: syntax error near unexpected token `('
usr/X11R6/bin/LICENSE.GPL: line 2: ` The Qt GUI Toolkit is Copyright (C) 1994-2000 Trolltech AS.'
==> ERROR: Build Failed. Aborting...Could I get some advice on how to deal with this please?
Only line
rm -rf usr/share/gnome usr/share/applnk lib/modules/fglrx/{fglrx*.o,fglrx_info.txt} usr/X11R6/bin/LICENSE.{GPL,QPL} usr/X11R6/bin/*.bz2
should be one long line or writtens as
rm -rf usr/share/gnome usr/share/applnk /
lib/modules/fglrx/{fglrx*.o,fglrx_info.txt} /
usr/X11R6/bin/LICENSE.{GPL,QPL} /
usr/X11R6/bin/*.bz2
Edit the file PKGBUILD, the last line
mv usr/share/gnome/apps/ opt/gnome/share rm -rf usr/share/gnome usr/share/applnk lib/modules/fglrx/{fglrx*.o,fglrx_info.txt} usr/X11R6/bin/LICENSE.{GPL,QPL} usr/X11R6/bin/*.bz2
goes on the same line
Offline
rm -rf usr/share/gnome usr/share/applnk / lib/modules/fglrx/{fglrx*.o,fglrx_info.txt} / usr/X11R6/bin/LICENSE.{GPL,QPL} / usr/X11R6/bin/*.bz2
Those need to be 's. They escape the newline character to tell bash not to evaluate it as the end of a command.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
ooooops,
thanks for the correction
darksides wrote:rm -rf usr/share/gnome usr/share/applnk / lib/modules/fglrx/{fglrx*.o,fglrx_info.txt} / usr/X11R6/bin/LICENSE.{GPL,QPL} / usr/X11R6/bin/*.bz2
Those need to be 's. They escape the newline character to tell bash not to evaluate it as the end of a command.
Thanks, I have successfully run the ati-drivers package now.
But can I warn other users who may be as careless as me :shock: :shock:
that in cutting and pasting the end of the PKGBUILD it is possible to make an error which deletes the entire filesystem! It just happened to me.
Luckily I was quickly able to restore my installation from an image made earlier this morning, so just lost a few emails.
Maybe the PKGBUILD shown in this HOWTO could be edited so that it can just be cut and pasted into a text file without any need for further tinkering; that would make it a little more idiot-proof :oops:
Offline
What you mean with:"deleted entire filesystem"?
Now PKGBUILD should be right for everyone.
Thanks, I have successfully run the ati-drivers package now.
But can I warn other users who may be as careless as me :shock: :shock:
that in cutting and pasting the end of the PKGBUILD it is possible to make an error which deletes the entire filesystem! It just happened to me.Luckily I was quickly able to restore my installation from an image made earlier this morning, so just lost a few emails.
Maybe the PKGBUILD shown in this HOWTO could be edited so that it can just be cut and pasted into a text file without any need for further tinkering; that would make it a little more idiot-proof :oops:
Offline
What you mean with:"deleted entire filesystem"?
Well, everything was rapidly disappearing from my KDE desktop, no applications would open, error messages about deleting files were flying through the console, and it was evident from the hard drive activity that my entire installation, or something close to it, was being deleted. When I rebooted, grub could not locate its conf file, so evidently the /boot directory had gone!
I am not complaining; I know it was my fault and I must have been too quick with the cutting and pasting. I just wanted to warn others to be more careful than I was.
Unfortunately I am still having problems with the rest of the procedure.
After successfully making the ati-drivers, the next difficulty I had was with the patches.
Here is the output from running the fglrx-2.6-vmalloc-vmaddr.patch:
[root@arch fglrx]# cd build_mod/
[root@arch build_mod]# patch -b firegl_public.c ../fglrx-2.6-vmalloc-vmaddr.patch
(Patch is indented 1 space.)
patching file firegl_public.c
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 129.
1 out of 1 hunk FAILED -- saving rejects to file firegl_public.c.rej
I then tried again using the vmalloc patch I got from the rage3d forum and which looked identical. This appeared to work, but reported only that Hunk#1 succeeded; I don't know if there was supposed to be a hunk#2 ?
I proceeded to the fglrx-3.2.8-fix-amd-adv-spec.patch, and again got an error:
[root@arch build_mod]# patch -b firegl_public.c ../fglrx-3.2.8-fix-amd-adv-spec.patch
(Patch is indented 1 space.)
patching file firegl_public.c
Hunk #1 FAILED at 3108.
1 out of 1 hunk FAILED -- saving rejects to file firegl_public.c.rej
However, when I read the patch, I noticed that it stated:
/* the kernel already does provide a fix for the AMD Athlon
..so as I have an Athlon 1900XP I decided to continue despite the failure of the patch to install.
I was able to complete the remaining instructions without any more errors. However, when I came to reboot, although X appeared to start, the screen was blank. I have tried replacing the XF86Config-4 again with a working version previously configured with fglrxconfig, but which did not use the external agpgart module. This did not help. I also tried disabling all the new modules in case they were causing any conflict, but still I get a blank screen.
Examining my XFree86.0.log, I can see these lines:
(II) Primary Device is: PCI 01:00:0
(WW) fglrx: No matching Device section for instance (BusID PCI:1:0:1) found
(--) Chipset ATI RV350 AP (R9600) found
and further down:
(WW) fglrx(0): board is an unknown third party board, chipset is supported
Otherwise, the log looks good.
Finally, the kdm.log ends with a similar line to the above quote from the XFree86.0.log:
(WW) fglrx: No matching Device section for instance (BusID PCI:1:0:1) found
I would be grateful for any pointers as to what could be wrong. Could it be due to the failure of the AMD patch?
Offline
What kernel are You using?
- loosing the system config files isn't due to ati-drivers installation, (the makepkg works in /var/abs/local)
- Whithout amd-patch and vmalloc.patch you wont be able to install these drivers.
- If you have:
[root@arch fglrx]# cd build_mod/
[root@arch build_mod]# patch -b firegl_public.c ../fglrx-2.6-vmalloc-vmaddr.patch
(Patch is indented 1 space.)
patching file firegl_public.c
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 129.
1 out of 1 hunk FAILED -- saving rejects to file firegl_public.c.rej
you must delete /lib/modules/fglrx forlder and restart operation from the beginning of How-To.
You may also decide to apply the 2 patch by hands, editing firegl_public.c.
Offline
Using kernel 2.6.2
I'm starting over again but now cannot get the PKGBUILD to complete. I had this problem this morning as well, but after editing the PKGBUILD file did eventually get it to complete. This is the output of makepkg -c using the PKGBUILD as posted:
[root@Arch2 ati]# makepkg -c
==> Making package: ati-drivers (Wed Feb 11 16:11:02 GMT 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Downloading fglrx-glc22-4.3.0-3.2.8.i586.rpm
--16:11:02-- http://www2.ati.com/drivers/linux/fglrx … 8.i586.rpm
=> `fglrx-glc22-4.3.0-3.2.8.i586.rpm'
Resolving www2.ati.com... 62.25.100.58, 62.25.100.32
Connecting to www2.ati.com[62.25.100.58]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4,365,039 [audio/x-pn-realaudio-plugin]100%[====================================>] 4,365,039 55.23K/s ETA 00:00
16:12:27 (50.80 KB/s) - `fglrx-glc22-4.3.0-3.2.8.i586.rpm' saved [4365039/4365039]
==> Validating source files with MD5sums
fglrx-glc22-4.3.0-3.2.8.i586.rpm ... Passed
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
./lib/modules/fglrx/build_mod/2.6.x/Makefile
./lib/modules/fglrx/build_mod/agp.h
./lib/modules/fglrx/build_mod/agp3.c
./lib/modules/fglrx/build_mod/agp_backend.h
./lib/modules/fglrx/build_mod/agpgart.h
./lib/modules/fglrx/build_mod/agpgart_be.c
./lib/modules/fglrx/build_mod/firegl_public.c
./lib/modules/fglrx/build_mod/firegl_public.h
./lib/modules/fglrx/build_mod/i7505-agp.c
./lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC2
./lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC3
./lib/modules/fglrx/build_mod/make.sh
./lib/modules/fglrx/build_mod/nvidia-agp.c
./lib/modules/fglrx/fglrx.2.4.18-17.7.x.o
./lib/modules/fglrx/fglrx.2.4.18-17.8.0.o
./lib/modules/fglrx/fglrx.2.4.20-6-SMP.o
./lib/modules/fglrx/fglrx.2.4.20-6.o
./lib/modules/fglrx/fglrx.2.4.21-1.1931.2.349.2.2.ent-SMP.o
./lib/modules/fglrx/fglrx.2.4.21-1.1931.2.349.2.2.ent.o
./lib/modules/fglrx/fglrx.2.4.21-1.1931.2.349.2.2.entbigmem-SMP.o
./lib/modules/fglrx/fglrx_info.txt
./lib/modules/fglrx/make_install.sh
./opt/kde3/share/applnk/fireglcontrol_kde3.desktop
./usr/X11R6/bin/LICENSE.GPL
./usr/X11R6/bin/LICENSE.QPL
./usr/X11R6/bin/fgl_glxgears
./usr/X11R6/bin/fglrx_xgamma
./usr/X11R6/bin/fglrxconfig
./usr/X11R6/bin/fglrxinfo
./usr/X11R6/bin/fireglcontrol.qt2.gcc2.96.bz2
./usr/X11R6/bin/fireglcontrol.qt3.gcc3.2.bz2
./usr/X11R6/bin/fireglcontrol.qtstatic.gcc2.96.bz2
./usr/X11R6/include/X11/extensions/fglrx_gamma.h
./usr/X11R6/lib/libGL.so.1.2
./usr/X11R6/lib/libfglrx_gamma.a
./usr/X11R6/lib/libfglrx_gamma.so.1.0
./usr/X11R6/lib/modules/dri/fglrx_dri.so
./usr/X11R6/lib/modules/drivers/fglrx_drv.o
./usr/X11R6/lib/modules/linux/libfglrxdrm.a
./usr/include/GL/glxATI.h
./usr/share/applnk/fireglcontrol.kdelnk
./usr/share/gnome/apps/fireglcontrol.desktop
./usr/share/icons/ati.xpm
./usr/share/pixmaps/ati.xpm
./usr/src/ATI/fglrx_panel_sources.tgz
./usr/src/ATI/fglrx_sample_source.tgz
21763 blocks
/usr/bin/makepkg: line 23: usr/share/applnklib/modules/fglrx/fglrx*.o: No such file or directory
usr/X11R6/bin/LICENSE.GPL: line 2: syntax error near unexpected token `('
usr/X11R6/bin/LICENSE.GPL: line 2: ` The Qt GUI Toolkit is Copyright (C) 1994-2000 Trolltech AS.'
/usr/bin/makepkg: line 25: usr/X11R6/bin/fireglcontrol.qt2.gcc2.96.bz2: cannot execute binary file
==> ERROR: Build Failed. Aborting...
[root@Arch2 ati]#
I seem to be going backwards!
Offline
I got the PKGBUILD to complete by running together the last set of instructions onto one line.
But now the ati-drivers install is giving an error:
sh-2.05b# pacman --upgrade ati-drivers-3.2.8-1.pkg.tar.gz
loading package data... done.
checking for file conflicts... done.
upgrading ati-drivers... done.
var/lib/pacman/local/ati-drivers-3.2.8-1/install: line 32: syntax error: unexpected end of file
I got the same error on my first attempt this morning, but ignored it because pacman -Q indicates that the package did install. Do I need to worry about the syntax error at the end of the file and if so, what can I do about it?
Offline
I can report success!
I did not find a way around the syntax error reported in my last post, but as ati-drivers appeared to be installed I pressed on anyway.
Hit the same error as before with the vmalloc patch, but again used the substitute described above and checked it had worked.
Again the same error as before with the AMD patch, but made the changes manually. This was clearly why my installation failed first time round.
Thereafter, all went normally and the drivers are operational.
Offline
Don't worry, the ati-drivers.install file, indicates only the new created directory and how to correctly compile modules. Modules will be compiled in any case.
I got the PKGBUILD to complete by running together the last set of instructions onto one line.
But now the ati-drivers install is giving an error:
I got the same error on my first attempt this morning, but ignored it because pacman -Q indicates that the package did install. Do I need to worry about the syntax error at the end of the file and if so, what can I do about it?
Offline
/usr/bin/makepkg: ./PKGBUILD: line 19: syntax error near unexpected token `|'
/usr/bin/makepkg: ./PKGBUILD: line 19: `| cpio -idmuv'
==> Making package: ati-drivers (Fri Feb 13 03:14:39 PST 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Using local copy of fglrx-glc22-4.3.0-3.2.8.i586.rpm
==> Validating source files with MD5sums
fglrx-glc22-4.3.0-3.2.8.i586.rpm ... Passed
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
/usr/bin/makepkg: line 536: build: command not found
==> ERROR: Build Failed. Aborting...
can someone tell me why am i getting this error?
Note i have installed rpmunpack and cpio.
Offline
Check your PKGBUILD, on line 19 it terminated with "|": it should be
this portion goes all on a single line.
rpmunpack < $startdir/src/fglrx-glc22-4.3.0-$pkgver.i586.rpm | gzip -d | cpio -idmuv
/usr/bin/makepkg: ./PKGBUILD: line 19: syntax error near unexpected token `|' /usr/bin/makepkg: ./PKGBUILD: line 19: `| cpio -idmuv' ==> Making package: ati-drivers (Fri Feb 13 03:14:39 PST 2004) ==> Checking Runtime Dependencies... ==> Checking Buildtime Dependencies... ==> Retrieving Sources... ==> Using local copy of fglrx-glc22-4.3.0-3.2.8.i586.rpm ==> Validating source files with MD5sums fglrx-glc22-4.3.0-3.2.8.i586.rpm ... Passed ==> Extracting Sources... ==> Removing existing pkg/ directory... ==> Starting build()... /usr/bin/makepkg: line 536: build: command not found ==> ERROR: Build Failed. Aborting...
can someone tell me why am i getting this error?
Note i have installed rpmunpack and cpio.
Offline
I got as far as sh make.sh (finally, lol, kept screwing up) and now, when i try to run that command, i get:
[root@localhost build_mod]# sh make.sh
ATI module generator V 2.0
==========================
initializing...
probing for VMA API version...
check results are inconsistent!!!
none of the probed versions did succeed.
aborting module build.
what did I do wrong? I'm using the latest kernel 2.6.3 (i think). Any help would be appreciated
post your kenel-config.
I got as far as sh make.sh (finally, lol, kept screwing up) and now, when i try to run that command, i get:
[root@localhost build_mod]# sh make.sh
ATI module generator V 2.0
==========================
initializing...
probing for VMA API version...
check results are inconsistent!!!
none of the probed versions did succeed.
aborting module build.what did I do wrong? I'm using the latest kernel 2.6.3 (i think). Any help would be appreciated
Offline
I got as far as sh make.sh (finally, lol, kept screwing up) and now, when i try to run that command, i get:
[root@localhost build_mod]# sh make.sh
ATI module generator V 2.0
==========================
initializing...
probing for VMA API version...
check results are inconsistent!!!
none of the probed versions did succeed.
aborting module build.what did I do wrong? I'm using the latest kernel 2.6.3 (i think). Any help would be appreciated
I'm having the same problem!
If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing. 1 Corinthians 13:2
Offline
I had the same problem until I switched to the new 3.7.0 drivers that were just released. Took quite a bit but I just got it going (the following is my differences from the original instructions)
I modified the PKGBUILD file to be like this:
# Contributor: Manolis Tzanidakis <mtzanidakis@freemail.gr>
pkgname=ati-drivers
pkgver=3.7.0
pkgrel=1
pkgdesc="Proprietary (binary) drivers for ATI Radeon Cards."
url="www.ati.com/support/driver.html"
depends=('xfree86')
install="$pkgname.install"
source=(http://www2.ati.com/drivers/linux/fglrx-glc22-4.3.0-$pkgver.i386.rpm)
md5sums=('7dd12340a2b8525b3a9fa1f310e06141')
# build-time deps: rpmunpack, cpio, gzip
build() {
cd $startdir/pkg
rpmunpack < $startdir/src/fglrx-glc22-4.3.0-$pkgver.i386.rpm | gzip -d | cpio -idmuv
chmod 755 -R .
mv opt/kde3 opt/kde
mkdir -p opt/gnome/share
mv usr/share/gnome/apps/ opt/gnome/share
rm -rf usr/share/gnome
usr/share/applnklib/modules/fglrx/{fglrx*.o,fglrx_info.txt}
usr/X11R6/bin/LICENSE.{GPL,QPL}
usr/X11R6/bin/*.bz2
}
the md5sum, the link and package version were what I changed.
The next thing different is do not have do not have Direct Rendering Manager enabled in the kernel it may or may not cause a problem with your card being recognized but since it is not needed disabling it is a good idea.
[ ] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
If you get errors about an Unknown Symbol in modules when you try ./make_install.sh look at dmesg and if you see that it is have_cpuid_p that is the problem apply this patch:
diff -Nurp ../fglrx-orig/build_mod/firegl_public.c build_mod/firegl_public.c
--- ../fglrx-orig/build_mod/firegl_public.c 2003-07-11 11:42:06.000000000 +0000
+++ build_mod/firegl_public.c 2003-08-03 16:15:57.447117216 +0000
@@ -3050,33 +3050,6 @@ static int __init have_cpuid_p(void)
int __ke_amd_adv_spec_cache_feature(void)
{
- char vendor_id[16];
- int ident;
- int family, model;
-
- /* Must have CPUID */
- if(!have_cpuid_p())
- goto donthave;
- if(cpuid_eax(0)<1)
- goto donthave;
-
- /* Must be x86 architecture */
- cpuid(0, &ident,
- (int *)&vendor_id[0],
- (int *)&vendor_id[8],
- (int *)&vendor_id[4]);
-
- if (memcmp(vendor_id, "AuthenticAMD", 12))
- goto donthave;
-
- ident = cpuid_eax(1);
- family = (ident >> 8) & 0xf;
- model = (ident >> 4) & 0xf;
- if (((family == 6) && (model >= 6)) || (family == 15)) {
- return 1;
- }
-
-donthave:
return 0;
}
Hope this helps someone
Offline
Ok, my problem has changed since i tried the latest ATI drivers.
This is what i get now:
i get all the way to sh make_install.sh and i get:
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel module
FATAL: Error inserting fglrx (/lib/modules/2.6.3/kernel/drivers/char/drm/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)
failed.
dmesg prints out this:
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
fglrx: Unknown symbol module_refcount
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
fglrx: Unknown symbol module_refcount
Any ideas?
A few questions:
What hardware do you have?
what kernel? (type uname -r to find out)
What patches have you applied?
I did the patches by editing the files by hand I dont know how much difference that makes. I tried to track down info on your error but unfortunatly the pages I turn up are not in english
Offline