Subject: Sun4c Rev 2.x PROM console hack
To: None <port-sparc@NetBSD.ORG>
From: None <James.Graham@Schwab.COM>
List: port-sparc
Date: 08/08/1997 12:11:27
Several people have asked "What is this hack about which you keep
talking?", to which I am responding:

	This.

	It copies the console ROM code into RAM and redirects the
routine
	pointer to use the RAM code (hint:  ROM has wait states).

I installed this as fastcons in my bin and every time we got a new old
sun4c machine in (with a ROM rev 2.x), we ran it.

The results will truly floor you.  I guarantee it.  It's most impressive
when run on a CG6 (gx) frame buffer.  You can run this from UNIX-mode
:-)
and reboot, or you can type it in line by line minus the eeprom commands
and the first sets of quotes and the semicolons, and type 'reset' and
let
the machine do its thing.

Running from UNIX-land is probably quicker/easier.

#! /bin/sh -
eeprom 'nvramrc=probe-all install-console
ramforth
: cache-page dup pgmap@ cacheable swap pgmap! ;
up@ cache-page
here origin do i cache-page pagesize +loop
banner'
eeprom 'use-nvramrc?=true'
exit 0