voodoo2 and linux kernel 2.6

Started by voed, 28 August 2006, 11:33:58

Previous topic - Next topic

voed

Hi,

I'm using v2 on linux 2.4 and everything is OK.:D
I've tried to use it on 2.6.8 and 2.6.15 and it's dont work.[:(!] (i compile and insert the module but the v2 is not detected at glide initialisation)

Is anyone using this card on 2.6 kernel [?]
i'm interesting for experience feedback.

Thanks.
 

dborca

QuoteOriginally posted by voed

Hi,

I'm using v2 on linux 2.4 and everything is OK.:D
I've tried to use it on 2.6.8 and 2.6.15 and it's dont work.[:(!] (i compile and insert the module but the v2 is not detected at glide initialisation)

Is anyone using this card on 2.6 kernel [?]
i'm interesting for experience feedback.

Thanks.
It works on 2.6.13.  Can you detail a bit?
Regards,
Daniel Borca

voed

Yes i will try to explain my problem. thanks for reply.:)

I use v2 with Debian Sarge (2.4 and 2.6.8) and ubuntu dapper (2.6.15)
I think there's no hardware incompatibility because i'm able to run test programs under Debain sarge 2.4.
But under Debian sarge 2.6.8 (and also Ubuntu Dapper 2.6.15), the test are down.

I follow these 3 steps :
a)    compiling and inserting the  module  3dfx.ko
b)    checking is /dev/3dfx is present
c)    running glide demo 'donut' and also /usr/lib/glide2/bin/test01

under Debian sarge 2.6.8
a)    OK
b)    OK devfs create it
c)    an error occured but i thinks it's a minor problem. a lib sould be bad or not correctly configurated.
and moreover i don't use very much sarge, i usually use dapper. thus, useless to spend many time for this.


under Ubuntu Dapper 2.6.15 that interests me to find out a solution !

a)    error vhen compiling /usr/src/modules/device3dfx/3dfx_driver.c (comming from device3dfx-source ubuntu dapper package version 2004.08.21-1)
to resolve the error i apply to 3dfx_driver.c this modification :
 # replacement of verify_area by access_ok
 sudo perl -pi'.orig' -e 's/verify_area/access_ok/' 3dfx_driver.c
and
 # replacement of remap_page_range by remap_pfn_range
 sudo perl -pi'.orig' -e 's/remap_page_range/remap_pfn_range/' 3dfx_driver.c

and then the module 3dfx is compiling and inserting without errors (only warning with doQueryFetch,doQueryUpdate,doQuery,doPIORead,doPIOWrite and doPIO functions)
 sudo modprobe 3dfx.ko
 lsmod |grep 3dfx
  3dfx                    6688  0

b)    ls -l /dev/3dfx
nothing ! i thinks that the responsable is udev (use by defaut with dapper)
so i create the device file manualy
 sudo mknod /dev/3dfx c 127 0

and then
 ls -l /dev/3dfx
  crw-r--r-- 1 root root 127, 0 2006-09-21 13:30 /dev/3dfx

c)     sudo ./donut
gd error (glide): _GlideInitEnvironment: libglide2x.so expected Voodoo, none detected
Could not initialize Glide.  Application Aborted.

and i notice also :
 sudo strace ./donut
[...]
open("/voodoo2", O_RDONLY)              = -1 ENOENT (No such file or directory)
open("/dev/3dfx", O_RDWR)               = -1 ENXIO (No such device or address)
iopl(0x3)                               = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd4000
write(1, "gd error (glide): _GlideInitEnvi"..., 86gd error (glide): _GlideInitEnvironment: libglide2x.so expected Voodoo, none detected
) = 86
write(1, "Could not initialize Glide.  App"..., 50Could not initialize Glide.  Application Aborted.

another test:
 sudo /usr/lib/glide2/bin/test01
   draws a diagonal line of points from top-left to bottom-right
   2.53
   Resolution: 640x480
   Press A Key To Begin Test.
   gd error (glide): _GlideInitEnvironment: libglide2x.so expected Voodoo, none detected
    test01: test01.c:94: main: Assertion `grSstQueryHardware( &hwconfig )' failed.
  Abandon


i don't understand why these errors appears ![:(]
 

Fresh Meat

2 Voed: and what games did you played???
Sorry for my bad english...
2xPIII 800EB/Iwill DBD100/2x256Mb ECC Registered/2xVoodoo2 SLI/2x80Gb Seagate 7200 :)

voed

i'm not able to play any games. i try the demos (as explain before).

if i try to launch quake 2 for example : sudo ./quake2 +set vid_ref glx


Added packfile ./baseq2/pak0.pak (3307 files)
Added packfile ./baseq2/pak1.pak (279 files)
Added packfile ./baseq2/pak2.pak (2 files)
execing default.cfg
execing config.cfg
Console initialized.

------- sound initialization -------
/dev/dsp: Broken pipe
Could not toggle.
------- Loading ref_glx.so -------
ref_gl version: GL 0.01
/usr/local/games/quake2/3dfxgl: cannot open shared object file: No such file or directory
ref_gl::R_Init() - could not load "3dfxgl"
------- Loading ref_soft.so -------
Warning: you have not yet configured your mouse type. If you have no mouse,
setting the type to `none' in /etc/vga/libvga.config will get rid of this
annoying message.
No mouse found
[svgalib: allocated virtual console #9]



i have the start screen (onto the 2D video card) but the game don't launch.
as you can see:
------- Loading ref_glx.so -------
ref_gl version: GL 0.01
/usr/local/games/quake2/3dfxgl: cannot open shared object file: No such file or directory
ref_gl::R_Init() - could not load "3dfxgl"

i think that udev don't create properly the device file /dev/3dfx but i don't known enything else.