I had once hard times to discover how to setup a cv3d in NetBSD. It’s somewhat archaic since the gfxcard and the cv3d driver does not auto-detect the possible resolutions according to the monitor used. You will need to setup the modelines manually. Doing the initial setup and tests as root will make your life easier:
Add following line at the end of “/etc/rc.config”:
/usr/sbin/grfconfig /dev/grf7 /etc/cv3dmodes
This will configure the driver at startup with a set of gfx modes you defined before. Type “man grfconfig” at console for a more in-depth explanation.
Now create the file "/etc/cv3dmodes" containing some modelines (gfx modes) consisting of “num clk wid hi dep hbs hss hse ht vbs vss vse vt flags” entries per line, for 1280x1024x8 (for a monitor capable of 135MHz pixelclock) e.g.:
1 135000000 1280 1024 8 1280 1304 1472 1824 1024 1048 1060 1099 default
See
http://ftp.netbsd.org/pub/NetBSD-archive/NetBSD-1.5.2/amiga/INSTALL.X11 at the end of the document for some more modeline examples depending on the capabilities of the monitor. Only 8bit (256 colors) modes seems to work for me, 16,24,32bits produces gfx artifacts under NetBSD; Maybe a bug in the cv3dgrf driver.
Now go to your default home dir (just type cd) and create a file “.xserverrc” containing this line:
X –dev /dev/grf7 –mode 1 –flipPixels
This will instruct X-Windows to use the frame buffer of the cv3d card and to setup the buffer according to the modeline you selected (in our example the modeline 1).
Now restart NetBSD and start X-Windows with “startx”.
That's it!
-Leo24