Subject: NetBSD/i386 runs Linux svgalib binaries
To: None <netbsd-announce@NetBSD.ORG>
From: None <>
List: netbsd-announce
Date: 08/28/1995 17:23:44
As you might know, NetBSD-current/i386 has been capable of running Linux
binaries since February now, bringing you the joy of playing linuxxdoom.
Yesterday (August 28th), I checked in some stuff that should make svgalib
Linux binaries work reasonably well on NetBSD/i386.

There are some bad, bad hacks in it, some of which I thought of (or had
been suggested to me) some time ago, but I felt so guilty about doing this
that it took me about 3 months, a trauma and professional help to check
this in ;)

A few things that people need to know when running Linux svgalib binaries:

1). You need to have pcvt configured in the kernel.
2). The binaries need root permissions to be able to mess with the I/O ports
    (just as they need that under Linux)
3). You need a [/emul/linux]/usr/local/lib/libvga.config file to configure
    the svga library. Look either in the svgalib distribution or on the
    nearest Linux system you can find how it should look like.
4). Make the following links in /emul/linux/dev:
    ttyS? -> /dev/tty0?
    console -> /dev/tty (WARNING: this trick will work for svgalib binaries,
                         but may have strange results for others)
    mouse -> {whatever serial port your mouse is on)
5). VT switching won't work with binaries that use the keyboard stuff in
    the Linux svgalib. This may be fixed in the near future. For now, it's
    explicitly disabled to prevent trouble.
6). You may get strange results if you run, for example, XFree in one VT, 
    and a Linux svgalib binary in another, when, say XFree is using
    some chipset-specific extended mode, and svgalib is using some default
    VGA mode. There isn't much the emulation can do about that.

Yes, you can now also play the svgalib version of Doom (linuxsdoom)
for those of you who are _still_ playing that (geez ;-)).

Let me know if there are any problems. There are a few things that need
a bit of work still.

- Frank
                  Frank van der Linden,
	       Use NetBSD, it's Unix, it's free and works on:
      i386+, Mac, Amiga, HP300, Sun3, Sun4c, PC532, DEC Alpha, DEC MIPS
              Work in progress: Vax, Atari and a host of others