143415SnewtonThis is a SysVR4 emulator derived from work done as part of the NetBSD
243415SnewtonProject by Christos Zoulas.  It has been ported to FreeBSD by Mark Newton.
343415Snewton
443415SnewtonTo use it:
543415Snewton
649268Snewton1.  Choose one of:
776185Sschweikh      a.  Add "device streams" to your kernel config file and rebuild,
849268Snewton          reboot; or
949268Snewton      b.  Build and install the streams module in /sys/modules/streams
1043415Snewton
1143415Snewton2.  Build and install the svr4 module in /sys/modules/svr4
1243415Snewton
1369349Ssheldonh3.  Type "kldload svr4" to start it up.
1443415Snewton
1543415Snewton4.  Grab compat_sol26.tar.gz or compat_svr4.tar.gz from
1643415Snewton    http://www.freebsd.org/~newton/freebsd-svr4 and install them in
1743415Snewton    /compat/svr4
1843415Snewton
1943415Snewton5.  Run "sh SVR4_MAKEDEV all" in /compat/svr4/dev
2043415Snewton
2149268Snewton6.  Mount a Solaris/x86 v2.6 or v7 CD-ROM on /cdrom (also works with 
2249268Snewton    v2.4 and v2.5.1, but you need different symlinks in /compat/svr4)
2343415Snewton
2449268Snewton7.  Brand any executables you want to run, and/or set the
2549268Snewton    kern.fallback_elf_brand sysctl to 'SVR4' to establish this as the
2649268Snewton    default emulator for unbranded executables.
2743415Snewton
2849268Snewton8.  See if your SysVR4 programs work.
2943415Snewton
3043415SnewtonIt's early days yet, folks -- You'll probably have trouble getting 100%
3143415Snewtonfunctionality out of most things (specifically, poll() on a socket doesn't
3243415Snewtonlook like it works at the moment, so Netscape doesn't work (among other
33267734Sgavinthings)).  Patches will be appreciated.
3443415Snewton
3549268Snewton   - Mark Newton
3643415Snewton     newton@atdot.dotat.org
3743415Snewton
3850477Speter$FreeBSD$
39