Subject: Re: Name-Server / CV643D
To: None <wwt5491@ritvax.isc.rit.edu>
From: None <mparson@smartdna.com>
List: port-amiga
Date: 10/30/1997 23:17:16
In message <yam7242.2781.138094000@alpha.isc.rit.edu>, you write:
> >You'll have cv643d support in NetBSD-1.3 kernels, and there will be x11r6.3 
> >for this.

> X11r6.3, great! OK, gonna ask again, can anyone out there that has
> NetBSD and X11 working on a PicassoIV let me know how to set mine up?
> The only responses I have got in the past are the "Yea, I have it
> working" type, but no help in ho w to make mine go. I had one got the
> compiled 1.2.1 kernel working that supported the PicassoIV, but never
> figured out X11 and toasted everything because it wasn't any use in that

I understand your frustration, I wish I had had some better documentation
when I was trying to make it work the first time too...

My setup:

A3000/030-25
16 Megs FAST
2 Megs Chip
P-IV
NetBSD 1.2
ViewSonic Optiquest V775 17" monitor

I understand that the format for this file has changed with the newer
releases, but the concept should still be the same.

I'm doing this from memory, it has been a few months since I got this up
and running, so please forgive any mistakes =)

Here is how I got it:

First, set up all your video modes under AmigaDOS using Picasso-96.

Then choose the modes that you want to use under NetBSD/X11, keep in mind
that you can only use 8 bit (256 color) modes.

One of the menu choices is 'print config'  When you select this, it will
open a new window and print out a line of numbers.  Take the info that
was printed out and save it to a directory that you mount under NetBSD.

You'll wind up with lines that look something like:

# 1024x768 256colors  64kHz  79Hz   active
x 85014193 1024 768 8 1016 1408 2304 10680 10648 767 772 777 799 798
# Width 1024 Height 768 Depth 8 Flags 24
# H:Total 1336 Blanksize 0 SyncStart 48 SyncSize 112 Skews 0 0
# V:Total 800 Blanksize 0 SyncStart 4 SyncSize 5
# Clock 95 ClockDivide 32 PixelClock 85014193 
# 1024 768 8 1336 0 48 112 800 0 4 5 85014193

# 1152x900 256colors  57kHz  60Hz   active
x 85014193 1152 900 8 1144 1536 1856 11960 11928 899 905 909 936 935
# Width 1152 Height 900 Depth 8 Flags 24
# H:Total 1496 Blanksize 0 SyncStart 48 SyncSize 40 Skews 0 0
# V:Total 937 Blanksize 0 SyncStart 5 SyncSize 4
# Clock 95 ClockDivide 32 PixelClock 85014193 
# 1152 900 8 1496 0 48 40 937 0 5 4 85014193

The lines you need are the ones that begin with an 'x'

x 85014193 1024 768 8 1016 1408 2304 10680 10648 767 772 777 799 798
x 85014193 1152 900 8 1144 1536 1856 11960 11928 899 905 909 936 935

Then, just replace the 'x' with a number, I used '1' and '2':

1 85014193 1024 768 8 1016 1408 2304 10680 10648 767 772 777 799 798
2 85014193 1152 900 8 1144 1536 1856 11960 11928 899 905 909 936 935

The 9th and 10th columns are 8 times the size that theity should be,  I
think there is a way to tell X to deal with this, but I just corrected
it in the file to give me:

1 85014193 1024 768 8 1016 1408 2304 1335 1308 767 772 777 799 798
2 85014193 1152 900 8 1144 1536 1856 1495 1491 899 905 909 936 935

Save this file off as something like /etc/grfmodes, then put a line that
reads

/usr/sbin/grfconfig /dev/grf3 /etc/grfmodes 

In /etc/rc.local, you'll want to run that from the command line to make
sure that it works...  Then run

X -dev /dev/grf3 -mode 1

  or

X -dev /dev/grf3 -mode 2  

or 3/4/5, whatever numbers show up in a:

grfconfig /dev/grf3

And see if you get X11 up in the res that you specified.

If you get the X11 grey hash background after a few moments (it can take
a while on slower amigas) and a mouse cursor that you can move around, 
hit Control-Alt-Backspace to quit X and go back to the text console.

Next, edit /usr/local/X11R6.1/lib/X11/xinit/xinitrc to reflect your new
video mode.

To start up X11, just login and run 'startx' from the shell prompt, or
put the appropriate config lines in /usr/local/X11R6.1/lib/X11/xdm/Xservers 
and use the xdm login (run xdm from the shell prompt as root).

> state. I'd like to try out a PCB design program I found for it... In the
> meantime, I'm also waiting for the "in development" X-server for Linux,
> as I did get X11 working on it once but the FBD screens were so
> small-res I could only open an x-term with 9 lines fillin g the screen.
> :/ Not much more useful than no X at all. Thanks for any HELP anyone can
> give, I'm a unix-newbie and don't really know much about getting i t all
> setup the first time.
> 
> Bill

That should get you on your way, have fun!

--
Michael Parson
News Admin
SMART Technologies, Inc.