PDA

View Full Version : Driver ATI, perchè l'ho fatto ...............


stefanoxjx
16-09-2005, 08:50
Ciao a tutti, inizio subito con :muro: mea culpa mea culpa............... :muro:
Mi sono preso la rogna di installare i driver ati proprietari ad un amico che sotto mio consiglio usa debian (SID, ma questo non sotto mio consiglio).
Premetto che i driver ati li ho insallati nel mio notebook seguendo la guida di stanchina e non ho avuto problemi.
In questo caso però, ho ricompilato il kernel 2.6.12-5 preso da kernel.org ed ho iniziato a seguire la solita guida di stanchina.
Il problema è questo:

alberto:/usr/src/fglrx-installer-8.16.20# dpkg-buildpackage -b -rfakeroot -tc -uc -D
dpkg-buildpackage: source package is fglrx-installer
dpkg-buildpackage: source version is 8.16.20-1
dpkg-buildpackage: source changed by Flavio Stanchina <flavio@stanchina.net>
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
dh_testdir
#dh_testroot
dh_clean
rm -fr usr opt lib etc
rm -fr extra_src
debian/rules build
dh_testdir
rpm2cpio fglrx_4_3_0-8.16.20-1.i386.rpm | cpio -i -d -f "./lib/modules/fglrx/fglrx.*.o" --no-preserve-owner
64907 blocks
# move licenses away from binary dir
if [ ! -d usr/share/doc/fglrx ]; then \
mkdir -p usr/share/doc/fglrx; \
mv usr/X11R6/bin/LICENSE.* usr/share/doc/fglrx; \
fi
# remove exec bit from files that don't deserve it
find usr/X11R6/include \
usr/X11R6/lib \
usr/share usr/src -type f | xargs chmod -x
find lib -not -name "*.sh" -type f | xargs chmod -x
find lib -name "*.sh" -type f | xargs chmod +x
# extract panel source
mkdir -p extra_src/panel
tar xfzC usr/src/ATI/fglrx_panel_sources.tgz extra_src/panel
patch -d extra_src/panel -p1 -i /usr/src/fglrx-installer-8.16.20/debian/patches-8.16.20/panel.diff
patching file ATITVOExtensions.c
patching file FGLRXExtensions.c
patching file Makefile
# build panel source
make -C extra_src/panel QTDIR=/usr/share/qt3
make[1]: Entering directory `/usr/src/fglrx-installer-8.16.20/extra_src/panel'
gcc -c -g -O2 -fno-strength-reduce -funsigned-char -Dlinux -DFGLRX_USE_XEXTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/X11R6/include -I. -I./include_dummy FGLRXExtensions.c
FGLRXExtensions.c: In function 'ExtGetDriverData':
FGLRXExtensions.c:184: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness
gcc -c -g -O2 -fno-strength-reduce -funsigned-char -Dlinux -DFGLRX_USE_XEXTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/X11R6/include -I. -I./include_dummy ATITVOExtensions.c
g++ -c -O2 -fno-strength-reduce -funsigned-char -Wall -W -Dlinux -DFGLRX_USE_XEXTENSIONS -DFGLRX_OGL_INFO -DQT_NO_STL -I/usr/share/qt3/include -I. -I./include_dummy main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:31: error: expected type-specifier before 'QWindowsStyle'
main.cpp:31: error: expected `)' before 'QWindowsStyle'
main.cpp:31: error: no matching function for call to 'QApplication::setStyle(int*)'
/usr/share/qt3/include/qapplication.h:89: note: candidates are: static void QApplication::setStyle(QStyle*)
/usr/share/qt3/include/qapplication.h:90: note: static QStyle* QApplication::setStyle(const QString&)
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/usr/src/fglrx-installer-8.16.20/extra_src/panel'
make: *** [extra_src/panel/fireglcontrol] Error 2

Che voi sappiate, ci sono problemi con il kernel 2.6.12-5 e i driver ati?
Ho sbagliato qualcosa io?
Da quello che ho capito, il problema nasce con le librerie qt3, però risultano installate.
Che posso fare?
Prometto che non lo farò mai più :sofico:

Grazie.

Makmast
16-09-2005, 09:22
ma non puoi usare il semplice installer che c'è sul sito ati??

ryu hayabusa
16-09-2005, 09:57
Note: If a Linux 2.6.11 or newer kernel was built with CONFIG_AGP enabled, the kernel AGP frontend is required to load the fglrx kernel module. To identify whether your kernel was built with CONFIG_AGP enabled, look for CONFIG_AGP=y in the kernel config file, or if the 'agpgart' module loaded.


lo hai fatto?
basta con sti driver del ca**** , aspettiamo le prox release che è meglio :)

VegetaSSJ5
16-09-2005, 10:15
cioè fammi capire. cosa succede se hai l'agpgart abilitato?

stefanoxjx
16-09-2005, 10:45
Note: If a Linux 2.6.11 or newer kernel was built with CONFIG_AGP enabled, the kernel AGP frontend is required to load the fglrx kernel module. To identify whether your kernel was built with CONFIG_AGP enabled, look for CONFIG_AGP=y in the kernel config file, or if the 'agpgart' module loaded.


lo hai fatto?
basta con sti driver del ca**** , aspettiamo le prox release che è meglio :)

Come dalla guida di Stanchina, ho messo CONFIG_AGP=m

ryu hayabusa
16-09-2005, 11:10
nessun utente deve impazzire per far andare driver scadenti come questi..
ennesima risposta ; gioca su win e aspetta la prossima release , e che qualcuno
ce la mandi buona :cry:

stefanoxjx
16-09-2005, 11:30
Tramite il file make.sh che trovo dentro alla cartella dei driver, sono riuscito a generare fglrx.ko, solo che:

alberto:~# modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.12.5-ati/misc/fglrx.ko): Operation not permitted

:cry:

ryu hayabusa
16-09-2005, 12:05
parti in modalità recovery

digita la passw di root

rmmod radeon ( rimuovi il vecchio modulo radeon)
modprobe fglrx

ok?

stai attento a come fai la configurazione con fglrxconfig , sopratutto per il mouse..
:)

stefanoxjx
16-09-2005, 13:26
parti in modalità recovery

digita la passw di root

rmmod radeon ( rimuovi il vecchio modulo radeon)
modprobe fglrx

ok?

stai attento a come fai la configurazione con fglrxconfig , sopratutto per il mouse..
:)

Ma il modulo radeon già non c'è in memoria :confused:

alberto:~# ps -A
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 ksoftirqd/0
3 ? 00:00:00 events/0
4 ? 00:00:00 khelper
5 ? 00:00:00 kthread
7 ? 00:00:00 kacpid
90 ? 00:00:00 kblockd/0
116 ? 00:00:00 pdflush
117 ? 00:00:00 pdflush
118 ? 00:00:00 kswapd0
119 ? 00:00:00 aio/0
704 ? 00:00:00 kseriod
801 ? 00:00:00 ata/0
804 ? 00:00:00 scsi_eh_0
805 ? 00:00:00 scsi_eh_1
852 ? 00:00:00 kjournald
1798 ? 00:00:00 udevd
2037 ? 00:00:00 shpchpd_event
2086 ? 00:00:00 khubd
3620 ? 00:00:00 dhclient
3625 ? 00:00:00 portmap
3778 ? 00:00:00 syslogd
3781 ? 00:00:00 klogd
3793 ? 00:00:00 cupsd
3813 ? 00:00:00 dbus-daemon-1
3818 ? 00:00:02 hald
3825 ? 00:00:00 dirmngr
3838 ? 00:00:00 inetd
3874 ? 00:00:00 sshd
3899 ? 00:00:00 zvbid
3924 ? 00:00:00 famd
3929 ? 00:00:00 atd
3932 ? 00:00:00 cron
3944 ? 00:00:00 kdm
3958 tty1 00:00:00 getty
3961 tty2 00:00:00 getty
3962 tty3 00:00:00 getty
3963 tty4 00:00:00 getty
3964 tty5 00:00:00 getty
3969 tty6 00:00:00 getty
3982 ? 00:00:00 XFree86
4015 ? 00:00:00 kdm
4053 ? 00:00:22 kdm_greet
4059 ? 00:00:00 sshd
4062 pts/0 00:00:00 bash
4079 pts/0 00:00:00 ps

ryu hayabusa
16-09-2005, 15:28
nn t preoccup x questo e fai come t ho consigliato.. :)
riavvia e modalità recovery ..

sai a me diceva che non lo trovava sto disgraziato :mad: , ma poi
quando digitavo modprobe fglrx andava-- :D

stefanoxjx
16-09-2005, 16:16
nn t preoccup x questo e fai come t ho consigliato.. :)
riavvia e modalità recovery ..

sai a me diceva che non lo trovava sto disgraziato :mad: , ma poi
quando digitavo modprobe fglrx andava-- :D

Ti so dire domani, devo attendere che il mio amico torni dal lavoro, perchè ho fatto tutto tramite ssh e quindi mi diventa un po' difficile avviare in modalità recoveri via ssh :D