Instalacja ATI - m-a, b

Ogólne pytania dotyczące systemu
puton
Posty: 12
Rejestracja: 28 grudnia 2007, 17:27
Lokalizacja: Wroc³aw

Instalacja ATI - m-a, błąd przy "build"

Post autor: puton »

Cześć.

Zgodnie z tematem - na świeżym lennym usiłuję zainstalować sterowniki do mojej karty graficznej (ATI X1650 256MB), korzystając z Poradnika Radexa.
Wszystko idzie zgodnie z założeniem - prawie. Przy komendzie:

Kod: Zaznacz cały

module-assistant a-i fglrx
(w tej wersji ładnie to wygląda, niebieskie okienko i w ogóle fajne duperele:>) otrzymuję informację o "build failed". Poniżej wkleiłem log z /var/cache/modass/fglrx-source.*buildlog*:

Kod: Zaznacz cały

/usr/bin/make  -f debian/rules clean
make[1]: Wejście do katalogu `/usr/src/modules/fglrx'
dh_testroot
rm -f configure-stamp
rm -f fglrx.ko fglrx.mod.c *.o libfglrx_ip.a
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
rm -rf patch
dh_clean
rm /usr/src/modules/fglrx/debian/control
rm /usr/src/modules/fglrx/debian/dirs
make[1]: Opuszczenie katalogu `/usr/src/modules/fglrx'
/usr/bin/make  -f debian/rules binary_modules
make[1]: Wejście do katalogu `/usr/src/modules/fglrx'
if [ -f /usr/src/modules/fglrx/debian/control.template ]; then \
		cat /usr/src/modules/fglrx/debian/control.template > /usr/src/modules/fglrx/debian/control; \
	fi
dh_testdir
touch configure-stamp
dh_testdir
/usr/bin/make -C /lib/modules/2.6.26-custom/source SUBDIRS=/usr/src/modules/fglrx modules
make[2]: Wejście do katalogu `/usr/src/linux-2.6.26'
  CC [M]  /usr/src/modules/fglrx/firegl_public.o
/usr/src/modules/fglrx/firegl_public.c: In function ‘__ke_get_ke_pte’:
/usr/src/modules/fglrx/firegl_public.c:2612: error: ‘NOPAGE_SIGBUS’ undeclared (first use in this function)
/usr/src/modules/fglrx/firegl_public.c:2612: error: (Each undeclared identifier is reported only once
/usr/src/modules/fglrx/firegl_public.c:2612: error: for each function it appears in.)
/usr/src/modules/fglrx/firegl_public.c: In function ‘__ke_get_vm_phys_addr’:
/usr/src/modules/fglrx/firegl_public.c:2640: error: ‘NOPAGE_SIGBUS’ undeclared (first use in this function)
/usr/src/modules/fglrx/firegl_public.c: In function ‘__ke_get_vm_page_table’:
/usr/src/modules/fglrx/firegl_public.c:2662: error: ‘NOPAGE_SIGBUS’ undeclared (first use in this function)
/usr/src/modules/fglrx/firegl_public.c: In function ‘KCL_TestAndClearPageDirtyFlag’:
/usr/src/modules/fglrx/firegl_public.c:2790: error: ‘NOPAGE_SIGBUS’ undeclared (first use in this function)
/usr/src/modules/fglrx/firegl_public.c: At top level:
/usr/src/modules/fglrx/firegl_public.c:3835: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3835: warning: initialization from incompatible pointer type
/usr/src/modules/fglrx/firegl_public.c:3853: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3853: warning: initialization from incompatible pointer type
/usr/src/modules/fglrx/firegl_public.c:3860: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3860: warning: initialization from incompatible pointer type
/usr/src/modules/fglrx/firegl_public.c:3867: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3867: warning: initialization from incompatible pointer type
/usr/src/modules/fglrx/firegl_public.c:3874: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3874: warning: initialization from incompatible pointer type
/usr/src/modules/fglrx/firegl_public.c:3881: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3881: warning: initialization from incompatible pointer type
/usr/src/modules/fglrx/firegl_public.c:3888: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3888: warning: initialization from incompatible pointer type
/usr/src/modules/fglrx/firegl_public.c:3897: error: unknown field ‘nopage’ specified in initializer
/usr/src/modules/fglrx/firegl_public.c:3897: warning: initialization from incompatible pointer type
make[3]: *** [/usr/src/modules/fglrx/firegl_public.o] Błąd 1
make[2]: *** [_module_/usr/src/modules/fglrx] Błąd 2
make[2]: Opuszczenie katalogu `/usr/src/linux-2.6.26'
make[1]: *** [build] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/modules/fglrx'
make: *** [kdist_image] Błąd 2 
Puter oparty o chipset Via, procu Sempron 2200 i 1Gb Ramu (może się przyda?).

Nie mam pojęcia, co z tym błędem zrobić. any suggestions?

Pozdrawiam, put.


edit:

Zauważyłem jeszcze jedną, dziwną jak dla mnie, rzecz. przy konfiguracji xservera:

Kod: Zaznacz cały

dpkg-reconfigure xserver-xorg
Na początku pyta o framebuffer jądra, po czym zadaje pytania dotyczące klawiatury i koniec. Nie wiem, z tego co pamiętam, ta konfiguracja składa się z wiekszej ilości elementów, jak choćby wybór GPU.

xorg.conf wklejam na potwierdzenie:

Kod: Zaznacz cały

 # xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"pl"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
	Option		"UseFBDev"		"true"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
EndSection
put.
yantar
Member
Posty: 1225
Rejestracja: 07 czerwca 2007, 21:15
Lokalizacja: Rzeszów

Post autor: yantar »

Takie bledy z zaladowaniem modulu fgrlx byly jakis czas temu (sam zreszta przemigrowalem na miesiac na otwarte z tego powodu). Wczoraj zaladowalem zamkniete z repozytoriow i wszystko poszlo gladko (testing).
Uzywasz krenela testinga czy sida?

Co do generowania niepelnego xorga jest to znany od jakiegos czasu problem i w zasadzie wszystkie rozwiazania sa polowiczne. Przez to trzymam kopie starszych xorgow i ewentualnie podmieniam.
(Skopiuj jakis poprawny z forum, pozmieniaj niektore wpisy zeby odpowiadaly twojej karcie i powinno byc ok)
puton
Posty: 12
Rejestracja: 28 grudnia 2007, 17:27
Lokalizacja: Wroc³aw

Post autor: puton »

właśnie dziś w nadziei poprawy sytuacji skompilowałem i zainstalowałem kernela 2.6.26.

a xorg.conf rzeczywiście mogę po prostu skopiować i dostosować, nie wpadłem na to :)

pytanie: jak "przejść" na otwarte sterowniki?

pozdrawiam, put
yantar
Member
Posty: 1225
Rejestracja: 07 czerwca 2007, 21:15
Lokalizacja: Rzeszów

Post autor: yantar »

Jesli masz juz w systemie paczki otwartych serownikow w zasadzie zmiana ogranicza sie do zastapienia w xorgu w sekcji Driver wpisu "fglrx" na "ati" i restarcie. (choc czasem moze byc jakis zgrzyt, przewaznie wtedy gdy w xorgu sa pododawane jakies wpisy majace "podkrecic karte", lub jakies zmiany w czestotliwosci odswierzania monitora)
Ze swojej strony nie polecam generowania pliku xorga przez

Kod: Zaznacz cały

aticonfig --initial
Osobiscie mialem z tym wiecej utrapienia, xorg jest nadpisywany zamiast robiony backup i generowany nowy (chyba, ze cos sie w tej kwestii zmienilo) ogolnie robi sie w nim bajzel. Lepiej imho miec na wszelki wypadek 2-3 pliki xorga i podmieniac szczegolnie jak sami cos w nim dodajemy lub modyfikujemy.
puton
Posty: 12
Rejestracja: 28 grudnia 2007, 17:27
Lokalizacja: Wroc³aw

Post autor: puton »

Otwarty sterownik w ogóle x'ów nie podnosił. Zrobiłem za to inaczej: po prostu uruchomiłem instalatora sterowników ati:

Kod: Zaznacz cały

sh ati-driver-installer-8-7-x86.x86_64.run
No i się "zainstalowało. Po czym:

Kod: Zaznacz cały

aticonfig --initial
(wybacz yantar, zrobiłem to zanim przeczytałem Twojego posta)

xorg.conf zmienił się w coś bardziej obiecującego:

Kod: Zaznacz cały

xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
	Identifier     "aticonfig Layout"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Files"
EndSection

Section "Module"
EndSection

Section "InputDevice"
	Identifier  "Generic Keyboard"
	Driver      "kbd"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "pl"
EndSection

Section "InputDevice"
	Identifier  "Configured Mouse"
	Driver      "mouse"
EndSection

Section "Monitor"
	Identifier   "Configured Monitor"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection


Section "Device"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Default Screen"
	Monitor    "Configured Monitor"
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	Monitor    "aticonfig-Monitor[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Niemniej jednak, pomimo ładniejszego xorg.conf i pomyślnej instalacji sterowników, po wprowadzeniu

Kod: Zaznacz cały

 fglrxinfo 
Widzę nadal coś takiego:

Kod: Zaznacz cały

puton@puton:~$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: [url]www.mesa3d.org[/url]
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (2.1 Mesa 7.0.4)
MESA! Ja już nie mam pomysłów jak to obejść teraz.

pozdr, put.
yantar
Member
Posty: 1225
Rejestracja: 07 czerwca 2007, 21:15
Lokalizacja: Rzeszów

Post autor: yantar »

Zaladowales modul?

Kod: Zaznacz cały

Debian~$ module-assistant prepare 
Debian~$ module-assistant update 
Debian~$ module-assistant a-i fglrx
Zrestartowales kompa?
puton
Posty: 12
Rejestracja: 28 grudnia 2007, 17:27
Lokalizacja: Wroc³aw

Post autor: puton »

Chyba zbyt długo tu siedzę :) moduł oczywiście nadal się nie ładuje. I nie mam pojęcia skąd wydłubać rozwiązanie problemu:/
yantar
Member
Posty: 1225
Rejestracja: 07 czerwca 2007, 21:15
Lokalizacja: Rzeszów

Post autor: yantar »

Bez zaladowanego modulu bedzie oczywiscie mesa bo co innego;].
Moge tylko powiedziec, ze nie kombinuje juz z takimi sprawami mixem lenny/sid bo pozniej nie idzie dojsc co z czego sie wzielo i dlaczego w systemie jest bubu ;]. Sugerowalbym dystrybucyjnego kernela z testing, tak samo modul i sterowniki z testinga nie ze strony ATI. (jak na tym zaskoczy to dopiero wtedy kombinuj z kompilowanym kernelem)
Mozesz tez pogrzebac troche po tematach na forum ktos mial chyba rozwiazanie na ten nieladujacy sie modul choc jak pamietam uzyl chyba sterow ze strony ATI. (tu juz odsylam do forumowej szukajki)
puton
Posty: 12
Rejestracja: 28 grudnia 2007, 17:27
Lokalizacja: Wroc³aw

Post autor: puton »

Podjąłem w końcu krok następujący: Zainstalowałem Etcha i z pomocą

Kod: Zaznacz cały

aptitude dist-upgrade
zaktualizowałem do wersji Lenny.

Według w/w poradnika udało mi się do końca doprowadzić proces instalacji fglrx.

Wszystko byłoby pięknie, gdyby nie drobny fakt, iż po restarcie X'ów zobaczyłem piękny, czarny ekran a puter zawisł jak przy windowsowym bluescreenie:P

Nie dam rady wkleić Xorg.0.log.old bo się nie mieści w poście. Może Xorg.conf coś Wam powie. Przypuszczam, że to może mieć coś wspólnego z rozdzielczością, czy czymś podobnym. Nie znam się na tym na tyle, póki co.

Kod: Zaznacz cały

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
	Identifier     "aticonfig Layout"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Files"
EndSection

Section "Module"
EndSection

Section "InputDevice"
	Identifier  "Generic Keyboard"
	Driver      "kbd"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "pl"
EndSection

Section "InputDevice"
	Identifier  "Configured Mouse"
	Driver      "mouse"
EndSection

Section "Monitor"
	Identifier   "Configured Monitor"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Device"
	Identifier  "Configured Video Device"
EndSection

Section "Device"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Default Screen"
	Monitor    "Configured Monitor"
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	Monitor    "aticonfig-Monitor[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Pozdrawiam, put.

EDIT

Właśnie dowiedziałem się, że może mieć to również coś wspólnego z faktem, iż moja karta graficzna posiada wyjścia VGA i DVI...monitor podpięty jest do VGA, a przypuszczalnie sygnał puszczany jest domyślnie na DVi. Chyba.
Czy istnieje jakiś wpis do Xorg.conf mogący zapobiec takim działaniom?

pozdr, put

[ Dodano: 2008-07-27, 12:56 ]
No dobra, problem z DVi i VGA nie był jednak istotny...wrzuciłem w xorg.conf odpowiednie rozdzielczości w sekcji Screen, Driver ustawilem jako fglrx.....reboot.

Po reboocie wklepuję w konsoli:

Kod: Zaznacz cały

fglrxinfo
I oto co mi wyskakuje:

Kod: Zaznacz cały

puton:/home/puton# fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: [url]www.mesa3d.org[/url]
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (2.1 Mesa 7.0.4)

Segmentation fault
xorg.conf wyglada tak:

Kod: Zaznacz cały

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"pl"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
	Option		"fglrx"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Configured Video Device"
	Monitor		"Configured Monitor"
DefaultDepth 24 
 SubSection "Display" 
 Depth 1 
 Modes "1280x1024" "1024x768" "800x600" "640x480" 
 EndSubSection 
 SubSection "Display" 
 Depth 4 
 Modes "1280x1024" "1024x768" "800x600" "640x480" 
 EndSubSection 
 SubSection "Display" 
 Depth 8 
 Modes "1280x1024" "1024x768" "800x600" "640x480" 
 EndSubSection 
 SubSection "Display" 
 Depth 15 
 Modes "1280x1024" "1024x768" "800x600" "640x480" 
 EndSubSection 
 SubSection "Display" 
 Depth 16 
 Modes "1280x1024" "1024x768" "800x600" "640x480" 
 EndSubSection 
 SubSection "Display" 
 Depth 24 
 Modes "1280x1024" "1024x768" "800x600" "640x480" 
 EndSubSection
EndSection
Jakies pomysly? modul fglrx przy pomocy module-assistant zaladowany poprawnie....

pozdrawiam, put.

PS. Ta walka jest uciążliwa:>
M
Posty: 36
Rejestracja: 07 listopada 2007, 13:50
Lokalizacja: Czêstochowa

Post autor: M »

Jeśli masz wersję Lenny z debianowym kernelem to zrób tak:
-zassaj sterowniki ze strony ATI
Następnie będąc w konsoli (wylogowując się i przełączając na konsolę)
-wywal wszystko co związane z fglrx

Kod: Zaznacz cały

aptitude search fglrx
-po zassaniu sterowników, nadaj im atrybut wykonywania (+x) i uruchom plik ze strony ATI a następnie potwierdzaj wszystko po kolei aż się sterowniki zainstalują. Powinien być po instalacji widoczny moduł fglrx.
Sprawdzasz poleceniem

Kod: Zaznacz cały

lsmod
-następnie

Kod: Zaznacz cały

aticonfig --initial i aticonfig --overlay-type=Xv
i wykonaj restart komputera. Powinno śmigać wspomaganie sprzętowe.
Ja niestety walczę z nowym kernelem i sterownikami 8.7 ale na razie to walka z wiatrakami.
ODPOWIEDZ