Subject: Re: port-arm32/6200: video intialization of Shark Rev 5
To: Erik E. Fair <fair@digital.clock.org>
From: Todd Vierling <tv@pobox.com>
List: netbsd-bugs
Date: 09/26/1998 11:02:53
On Fri, 25 Sep 1998, Erik E. Fair wrote:

: 	I have an unmodified Shark that I've hooked to a television
: 	with both S-Video and composite (RCA) jacks. When the device
: 	is first booted, the PROMs initialize the video, and it
: 	looks OK (overscanned, but OK) on a garden variety Sony TV.
: 
: 	Unfortunately, when the NetBSD kernel takes over, the video
: 	goes from working to not working in that the screen spins
: 	vertically (something that twiddling with the old "vertical
: 	hold" knob on a TV might fix, if mine had one...).
: 
: 	Why are the NetBSD kernel's video initialization parameters
: 	for this chip different than the PROMs?

Your options are:

- use ofcons instead of pccons,
- use X-Windows xdm over top of pccons with 31.5 x 60 scan rates,
  and don't see the boot messages.

At the current time there is no alternative.  That is because the default
SHARK console is pccons, who sets the video up for 80x25 VGA scan rate.
Some more detail:

The default OpenFirmware console opens up at 31.5 KHz horizontal, 60 Hz
vertical.  The composite output is precisely half the horizontal rate: 15.5
KHz horizontal, 60 Hz vertical, just what is needed for composite output.
In the Amiga world, it's much like DblNTSC vs. NTSC video.

The pccons console increases that rate, IIRC, to 35 KHz horizontal, which
completely throws off the half-rate video for composite (now 17.5 KHz).
Hence you see a messed up screen on your composite monitor/TV.

If you set your XF86Config file properly to a monitor that allows only 31.5
KHz by 60 Hz, you should get proper X display.  Unfortunately, if you switch
to ofcons such that you could see boot messages, you will lose the ability
to do X.

(Though you know this next part more than likely, for the benefit of other
readers:)  We're working on a replacement for all those console drivers on
the various ports, called nwscons.  It has support for a great variety of
video modes, including bitmapped as well as text.  We _hope_ to have it
working by 1.4; and after all, Shark support is only available in -current
right now.

: 	Inspect the FCode that initializes the CyperPro 2010 chip,
: 	and change the NetBSD/arm32 video driver to match.

This isn't really an alternative.  The pccons code would need more changes
to accomodate the differing screen.  (For one, the ofcons screen is 80x30.)
The video mode itself is simple to figure out.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)