Amiga.org

The "Not Quite Amiga but still computer related category" => Alternative Operating Systems => Topic started by: Munchkin on January 27, 2009, 03:17:49 PM

Title: NetBSD users?
Post by: Munchkin on January 27, 2009, 03:17:49 PM
Anyone else here that's playing with NetBSD on their Amiga(s)?

I tried an older version some time back but never got it to work but now I've fully installed the 4.0 version and it boots and runs fine.

Only got one problem though. When I try to start x I get an error message and then it opens it up in some resolution that my old 1084 can't handle so it's only a garbled display and I'm forced to reset.

grfcv3d: monitor definition not ok

Since I have no experience with NetBSD I don't know where to edit these definitions so I can get X to start through my CV/3D.

Anyone got a clue?
Title: Re: NetBSD users?
Post by: cv643d on January 27, 2009, 05:06:25 PM
Tjena,

I was thinking of running NetBSD on one of my A1200 in my server room (closet).

I think it displays DBLPAL maybe?
Title: Re: NetBSD users?
Post by: Munchkin on January 27, 2009, 05:10:23 PM
Tjenis! Det nicket klingar bekant! ;)

I guess it's something like that. Unusable anyway so I need to find out how to get x to open on my cv3d instead. It's initialized since I have the console on it.

I know exactly how to do this in Linux but NetBSD isn't Linux so.. :)
Title: Re: NetBSD users?
Post by: Leo24 on January 27, 2009, 07:01:26 PM
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
Title: Re: NetBSD users?
Post by: Munchkin on January 27, 2009, 07:08:16 PM
Thanx!

Just what I needed to know. Now I just have to get back to how vi works, gotten so used to the ease with nano in linux.  :-P

Title: Re: NetBSD users?
Post by: Floid on March 16, 2009, 02:55:18 AM
nano is in pkgsrc (/editors), so if it's a "must have," give it a shot.  If you don't have networking or patience I'm sure there must be a binary package somewhere.

I'm no real fan of vi but forcing yourself to get comfortable enough not to curse at it is useful... sort of like being able to put up with edlin (!) on older PCs. ;)