Strona 1 z 1

Konfiguracja voodoo2 na Lenny'm i jak sprawdzić czy działa?

: 01 lutego 2008, 12:38
autor: supergrey
Mam stary sprzęt i na razie nie stać mnie na nowy,z resztą raczej nie potrzebuję większej mocy(ale nie zaszkodziła by ;-) ), tak czy inaczej problem polega na tym, że nie wiem jak skonfigurować voodoo2.

Czy mam tworzyć nową sekcję screen w xorg.conf (poniżej podaję zawartość aktualną)? Znalazłem gdzieś przez google jakiś przykładowy plik konfiguracji voodoo tak żeby utworzyć jeden pulpit na dwóch monitorach, ale mi zależy na tym żeby voodoo2 korzystało z tego samego monitora zamiennie z moją kartą ATI wtedy gdy chcę użyć 3dfxa. Sekcję z voodoo dopisywałem ręcznie według dokumentacji, więc jeżeli coś jest z nią nie tak, to również proszę o korektę.

Druga sprawa to sterownik... z tego co jest napisane na stronie X.org wynika, że są dwa rodzaje dla voodoo2 i jak rozumiem sterownik voodoo zawiera w sobie glide, a samego sterownika glide to nawet w repo Lennego nie ma. A nie jestem pewien czy ten sterownik włącza obsługę 3d czy nie (rozumiem,że to nie OpenGL tylko glide, ale na M$ win coś akceleruje, prawda?). Wiem, że jest coś takiego jak glide3, ściągnąłem ale jeszcze nie kompilowałem, bo w sumie nie wiem, czy to nie siedzi już w xserver-xorg-video-voodoo.

I po trzecie... jak sprawdzić czy voodoo2 jest już dobrze zainstalowane? Bo może nie wiem, a mam już wszystko oki :mrgreen:

A tak w tej chwili wygląda mój xorg.conf:

Kod: Zaznacz cały

# /etc/X11/xorg.conf (xorg 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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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 "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

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

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"ImPS/2"
EndSection

Section "Device"
	Identifier	"ATI Rage Pro Turbo"
	Driver		"ati"
	BusID		"PCI:1:0:0"
	Option		"UseFBDev"		"true"
EndSection

Section "Device"
	Identifier     "Voodoo2"
	Driver         "voodoo"
	BusID		"PCI:0:10:0"
	Option	"ShadowFB"	"false"
	Option	"NoAccel"	"false"
	Option	"ModeDebug"	"true"
EndSection

Section "Monitor"
	Identifier	"COMPAQ V500"
	Option		"DPMS"
	HorizSync	30-70
	VertRefresh	50-160
	Gamma		2
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI Rage Pro Turbo"
	Monitor		"COMPAQ V500"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection
Jeżeli ktoś wie co z tym fantem...

: 01 lutego 2008, 22:14
autor: Lu-CyfeR
Sprawdzić akcelerację można przy pomocy

Kod: Zaznacz cały

glxinfo | grep direct
w terminalu oczywiście oraz instalując pakiecik

Kod: Zaznacz cały

mesa-utils
i wydać polecenie standardowym użytkownikiem z konsoli

Kod: Zaznacz cały

glxgears

: 03 lutego 2008, 11:28
autor: supergrey
Nic z tego...

Kod: Zaznacz cały

glxinfo | grep direct
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
...mesa-utils mam zainstalowane, ale po wpisaniu glxgears pisze, że go nie found :) i nie wiem jak go doinstalować....

Ale doczytałem się,że w xorg ver7.3 jest już obsługa voodoo domyślnie. Tylko czy da się tak żeby zainstalować nowszego xorga pozostając na Lennym? I czy mi to nie wykrzaczy systemu? pzdr
...i dzięki za odp...

[ Dodano: 2008-02-14, 22:46 ]
Postanowiłem, że zrobię z tego tematu swego rodzaju bloga... inaczej mówiąc będę opisywał postępy w związku z "szamanem".
Wiem, że tego sprzętu już się raczej nie używa, ale pomyślałem, że wyjdzie z tego swego rodzaju HowTo dla kogoś kto by wpadł na "genialny" pomysł uruchomienia voodoo2 na debianie.
Przy czym muszę dodać, że ze względu na brak czasu nie wiem ile czasu zajmie mi ostateczne poprawne skonfigurowanie tego 3dfx'a, zwłaszcza, że bez tego swobodnie mogę pracować na linuksie. A i jeszcze trzeba wiedzieć, że trochi sam podstawiam sobie nogę, bo staram się nie instalować żadnego oprogramowania bezpośrednio z kompilacji, szczególnie jeżeli jest coś w repo. ;-)

[ Dodano: 2008-02-14, 22:50 ]
...już wiem jak najłatwiej sprawdzić czy działa... w katalogu /usr/lib/glide2/bin lub /usr/lib/glide3/bin jest sporo programów testowych... pytanie teraz jak uruchomić sprzęt...

[ Dodano: 2008-06-14, 19:27 ]
W końcu znalazłem trochę czasu na zabawę z Voodoo :-D

Dowiedziałem się, że w Debianie sprawa jest prosta, wystarczy zainstalować te oto pakiety:

Kod: Zaznacz cały

device3dfx-source
glide2-bin
libglide2
skompilować device3dfx-source, a co za tym idzie utworzyć urządzenie /dev/3dfx i powinno działać...
...ale to wszystko teoria (najgorsze, że nie mogę znaleźć teraz tej strony na której to wyczytałem), w praktyce potrzeba jeszcze źródeł jądra, żeby skompilować odpowiedni moduł. Opis instalacji device3dfx-source jest w /usr/share/doc/device3dfx-source/README.Debian. Są nawet 2 sposoby ;P
Tak na wszelki wypadek wrzucam treść:

Kod: Zaznacz cały

device3dfx for Debian
=====================

This is the driver for a 3Dfx 3D graphics card. It is a kernel module
that you must compile to match your kernel. You must also create a
/dev/3dfx device in order for the Glide libraries to access your 3dfx
card.

The package build system has been rewritten and now supports debuild,
dpkg-buildpackage, old fashioned debian/rules targets and make-kpkg.


Using this package to make a module without using kernel-package
----------------------------------------------------------------

When you install the device3dfx-source package, it will provide
"/usr/src/device3dfx.tar.gz". Unpack it ("tar xzvf device3dfx.tar.gz"),
but you can unpack it in another place instead of /usr/src/, for example
I unpack it from ~/kernel, so my modules are all in ~/kernel/modules.

You can define some parameters when building the package, such as kernel
source directory, maintainer, revision, root cmd etc. Otherwise they will
be taken from kernel-package's config file or guessed if it doesn't exist.

It will look in /usr/src/linux for the kernel source, but you can point
it somewhere else by defining KSRC.

Example:

  cd ~/kernel/modules/device3dfx
  KSRC=~/kernel/linux dpkg-buildpackage -rfakeroot
  sudo dpkg -i ~/kernel/device3dfx-module-2.4.20_2003.05.16-1+custom_i386.deb
  debclean

If you object to building modules as root, try changing the group or
ownership of the /usr/src/modules tree to something you can write to
(chown it to you, or chgrp it to src, make it group writable and put
yourself in the src group). Make sure that debian/rules can figure out
the ROOTCMD parameter (e.g. in /etc/kernel-pkg.conf, or simply install
fakeroot) and it will do the compiling as you and the building using
$ROOTCMD (which can be fakeroot or sudo as you wish).


Using this package to make a module using kernel-package
--------------------------------------------------------

Install the package kernel-package, and make sure your kernel source
is accessible as /usr/src/linux.

As above, unpack the source code. Make sure you have write access to
"/usr/src", and unpack the archive there.
This will create the directory "/usr/src/modules/device3dfx".
Then go to "/usr/src/linux" and run "make-kpkg modules_image".
This should create the module in a package in "/usr/src", in the form
"device3dfx-module-KVERS_MODVERS+DVER_ARCH.deb". So install this
module and get fragging!

--
Original file by Steve Haslam <araqnid@debian.org>
Updated by Guillem Jover <guillem@debian.org>
Po zainstalowaniu źródeł jądra skopiowałem je do /usr/src/linux.
Probowałem najpierw drugim sposobem, bo wydawał mi się łatwiejszy, ale po

Kod: Zaznacz cały

make-kpkg modules-image
(w README.Debian jest błąd i podane jest modules_image) wywaliło mi, że:

Kod: Zaznacz cały

The UTS Release version in include/linux/version.h
     ""
does not match current version:
     "2.6.24"
Please correct this.
make: *** [modules-image] Błąd 2
A źródła jądra są tej samej wersji co jajko którego używam, dziwne... Pomyślałem,że to błąd make-kpkg i spróbowalem pierwszym sposobem. To otrzymałem w zamian:

Kod: Zaznacz cały

supergrey@debian:~/kernel/modules/device3dfx$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: ustawianie CFLAGS na domyślną wartość: -g -O2
dpkg-buildpackage: ustawianie CPPFLAGS na domyślną wartość:
dpkg-buildpackage: ustawianie LDFLAGS na domyślną wartość:
dpkg-buildpackage: ustawianie FFLAGS na domyślną wartość: -g -O2
dpkg-buildpackage: ustawianie CXXFLAGS na domyślną wartość: -g -O2
dpkg-buildpackage: pakiet źródłowy device3dfx
dpkg-buildpackage: wersja pakietu źródłowego 2007.02.06-1
dpkg-buildpackage: źródła zmienione przez Guillem Jover <guillem@debian.org>
dpkg-buildpackage: architektura gościa i386
 fakeroot debian/rules clean
debian/build_config > debian/build.vars
debian/build_config: line 21: /usr/src/linux/include/linux/version.h: Nie ma takiego pliku ani katalogu
822-date: ostrzeżenie: Ten program jest przestarzały. Proszę używać "date -R".
sed -e 's/@KVERS@//g; s/@KDREV@/custom/g; s/@KEMAIL@/unknown@unconfigured.in.etc.kernel-pkg.conf/g; s/@KMAINT@/Unknown Kernel Package Maintainer/g; s/@DEBDATE@/Sat, 14 Jun 2008 17:52:14 +0200/g;' debian/control.in > debian/control
dh_testdir
dh_testroot
dh_clean
/usr/bin/make clean
make[1]: Wejście do katalogu `/home/supergrey/kernel/modules/device3dfx'
cc -include /usr/src/linux/include/linux/version.h -x c -o kver kver.c
cc1: error: /usr/src/linux/include/linux/version.h: Nie ma takiego pliku ani katalogu
kver.c: In function ‘main’:
kver.c:5: error: ‘UTS_RELEASE’ undeclared (first use in this function)
kver.c:5: error: (Each undeclared identifier is reported only once
kver.c:5: error: for each function it appears in.)
rm -f *.ko *.o *.mod.* .*.mod.* .*.cmd
rm -f kver.mak kver
make[1]: Opuszczenie katalogu `/home/supergrey/kernel/modules/device3dfx'
rm -f debian/build.vars
 dpkg-source -b device3dfx
dpkg-source: info: używania formatu źródeł "1.0"
dpkg-source: ostrzeżenie: katalog źródłowy "device3dfx" nie jest w postaci <pakiet_źródłowy> "device3dfx-2007.02.06"
dpkg-source: info: budowanie device3dfx w device3dfx_2007.02.06-1.tar.gz
dpkg-source: info: budowanie device3dfx w device3dfx_2007.02.06-1.dsc
 debian/rules build
debian/build_config > debian/build.vars
debian/build_config: line 21: /usr/src/linux/include/linux/version.h: Nie ma takiego pliku ani katalogu
822-date: ostrzeżenie: Ten program jest przestarzały. Proszę używać "date -R".
sed -e 's/@KVERS@//g; s/@KDREV@/custom/g; s/@KEMAIL@/unknown@unconfigured.in.etc.kernel-pkg.conf/g; s/@KMAINT@/Unknown Kernel Package Maintainer/g; s/@DEBDATE@/Sat, 14 Jun 2008 17:52:22 +0200/g;' debian/control.in > debian/control
dh_testdir
/usr/bin/make
make[1]: Wejście do katalogu `/home/supergrey/kernel/modules/device3dfx'
cc -include /usr/src/linux/include/linux/version.h -x c -o kver kver.c
cc1: error: /usr/src/linux/include/linux/version.h: Nie ma takiego pliku ani katalogu
kver.c: In function ‘main’:
kver.c:5: error: ‘UTS_RELEASE’ undeclared (first use in this function)
kver.c:5: error: (Each undeclared identifier is reported only once
kver.c:5: error: for each function it appears in.)
Missing /usr/src/linux/include/linux/version.h
Configure and install the kernel first
make[1]: *** [sanity] Błąd 255
make[1]: Opuszczenie katalogu `/home/supergrey/kernel/modules/device3dfx'
make: *** [build] Błąd 2
dpkg-buildpackage: niepowodzenie: debian/rules build zwrócił status błędu 2
Czyli mam nie skonfigurowane i niezainstalowane jądro :?:
Nie jestem ekspertem jeżeli chodzi o kompilację, ale wydaje mi się to dziwne... Może ktoś wie co z tym fantem... Jeżeli czegoś ważnego nie podałem, to proszę sie upomnieć ;) bo tak naprawdę nie bardzo wiem co powinienem jeszcze podać..

Dziwi mnie, że:

Kod: Zaznacz cały

cc1: error: /usr/src/linux/include/linux/version.h: Nie ma takiego pliku ani katalogu
:-/