2002-02-13 11:17:26 +03:00
|
|
|
.\" $NetBSD: compat_freebsd.8,v 1.13 2002/02/13 08:18:21 ross Exp $
|
1996-08-09 22:03:16 +04:00
|
|
|
.\" from: compat_linux.8,v 1.1 1995/03/05 23:30:36 fvdl Exp
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1995 Frank van der Linden
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed for the NetBSD Project
|
|
|
|
.\" by Frank van der Linden
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.Dd June 4, 1995
|
|
|
|
.Dt COMPAT_FREEBSD 8
|
1999-03-17 23:31:19 +03:00
|
|
|
.Os
|
1996-08-09 22:03:16 +04:00
|
|
|
.Sh NAME
|
1997-02-27 11:05:36 +03:00
|
|
|
.Nm compat_freebsd
|
1996-08-09 22:03:16 +04:00
|
|
|
.Nd setup procedure for running FreeBSD binaries
|
|
|
|
.Sh DESCRIPTION
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx
|
|
|
|
supports running
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
binaries.
|
2001-04-04 15:21:13 +04:00
|
|
|
Most binaries should work, except programs that use
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx Ns -specific
|
1998-04-28 08:07:04 +04:00
|
|
|
features.
|
|
|
|
These include i386-specific calls, such as syscons utilities.
|
1998-02-06 08:54:12 +03:00
|
|
|
The
|
|
|
|
.Fx
|
2001-04-04 15:21:13 +04:00
|
|
|
compatibility feature is active for kernels compiled
|
1996-08-09 22:03:16 +04:00
|
|
|
with the
|
1997-02-27 11:05:36 +03:00
|
|
|
.Dv COMPAT_FREEBSD
|
1996-08-09 22:03:16 +04:00
|
|
|
option enabled.
|
1997-02-27 11:05:36 +03:00
|
|
|
.Pp
|
1996-08-09 22:03:16 +04:00
|
|
|
A lot of programs are dynamically linked. This means, that you will
|
1998-02-06 08:54:12 +03:00
|
|
|
also need the
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
shared libraries that the program depends on, and the runtime
|
2001-09-06 03:47:15 +04:00
|
|
|
linker. Also, you will need to create a
|
|
|
|
.Dq shadow root
|
|
|
|
directory for
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
|
|
|
binaries on your
|
|
|
|
.Nx
|
|
|
|
system. This directory
|
1998-04-28 08:07:04 +04:00
|
|
|
is named
|
|
|
|
.Pa /emul/freebsd .
|
|
|
|
Any file operations done by
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
programs run under
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx
|
1998-04-28 08:07:04 +04:00
|
|
|
will look in this directory first.
|
|
|
|
So, if a
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
program opens, for example,
|
|
|
|
.Pa /etc/passwd ,
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx
|
|
|
|
will
|
1998-04-28 08:07:04 +04:00
|
|
|
first try to open
|
|
|
|
.Pa /emul/freebsd/etc/passwd ,
|
2001-09-06 03:47:15 +04:00
|
|
|
and if that does not exist open the
|
|
|
|
.Sq real
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /etc/passwd
|
|
|
|
file.
|
|
|
|
It is recommended that you install
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
packages that include configuration files, etc under
|
|
|
|
.Pa /emul/freebsd ,
|
1998-02-06 08:54:12 +03:00
|
|
|
to avoid naming conflicts with possible
|
|
|
|
.Nx
|
|
|
|
counterparts. Shared
|
1996-08-09 22:03:16 +04:00
|
|
|
libraries should also be installed in the shadow tree.
|
|
|
|
.Pp
|
1998-02-06 08:54:12 +03:00
|
|
|
Generally, you will need to look for the shared libraries that
|
|
|
|
.Fx
|
|
|
|
binaries depend on only the first few times that you install a
|
|
|
|
.Fx
|
|
|
|
program on your
|
|
|
|
.Nx
|
2001-09-06 03:47:15 +04:00
|
|
|
system. After a while, you will have a sufficient set of
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
2001-09-06 03:47:15 +04:00
|
|
|
shared libraries on your system to be able to run newly imported
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
|
|
|
binaries without any extra work.
|
1996-08-09 22:03:16 +04:00
|
|
|
.Ss Setting up shared libraries
|
1998-02-06 08:54:12 +03:00
|
|
|
How to get to know which shared libraries
|
|
|
|
.Fx
|
|
|
|
binaries need, and where
|
1996-08-09 22:03:16 +04:00
|
|
|
to get them? Basically, there are 2 possibilities (when following
|
1998-02-06 08:54:12 +03:00
|
|
|
these instructions: you will need to be root on your
|
|
|
|
.Nx
|
1998-04-28 08:07:04 +04:00
|
|
|
system to do the necessary installation steps).
|
2001-09-06 03:47:15 +04:00
|
|
|
.Pp
|
|
|
|
.Bl -enum -compact
|
|
|
|
.It
|
1998-02-06 08:54:12 +03:00
|
|
|
You have access to a
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
system.
|
|
|
|
In this case you can temporarily install the binary there, see what
|
|
|
|
shared libraries it needs, and copy them to your
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx
|
1998-04-28 08:07:04 +04:00
|
|
|
system.
|
|
|
|
Example: you have just ftp-ed the
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
binary of SimCity.
|
|
|
|
Put it on the
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
1996-08-09 22:03:16 +04:00
|
|
|
system you have access to, and check which shared libraries it
|
2001-09-06 03:47:15 +04:00
|
|
|
needs by running
|
|
|
|
.Sq ldd sim :
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width 123 -compact -offset indent
|
|
|
|
.It me@freebsd% ldd /usr/local/lib/SimCity/res/sim
|
|
|
|
.nf
|
|
|
|
/usr/local/lib/SimCity/res/sim:
|
2002-02-13 11:17:26 +03:00
|
|
|
-lXext.6 =\*[Gt] /usr/X11R6/lib/libXext.so.6.0 (0x100c1000)
|
|
|
|
-lX11.6 =\*[Gt] /usr/X11R6/lib/libX11.so.6.0 (0x100c9000)
|
|
|
|
-lc.2 =\*[Gt] /usr/lib/libc.so.2.1 (0x10144000)
|
|
|
|
-lm.2 =\*[Gt] /usr/lib/libm.so.2.0 (0x101a7000)
|
|
|
|
-lgcc.261 =\*[Gt] /usr/lib/libgcc.so.261.0 (0x101bf000)
|
1996-08-09 22:03:16 +04:00
|
|
|
.fi
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
You would need go get all the files from the last column, and
|
1998-04-28 08:07:04 +04:00
|
|
|
put them under
|
|
|
|
.Pa /emul/freebsd .
|
|
|
|
This means you eventually have these files on your
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx
|
|
|
|
system:
|
2001-09-06 03:47:15 +04:00
|
|
|
.Bl -item -compact
|
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd/usr/X11R6/lib/libXext.so.6.0
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd/usr/X11R6/lib/libX11.so.6.0
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd/usr/lib/libc.so.2.1
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd/usr/lib/libm.so.2.0
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd/usr/lib/libgcc.so.261.0
|
2001-09-06 03:47:15 +04:00
|
|
|
.El
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
1998-02-06 08:54:12 +03:00
|
|
|
Note that if you already have a
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
shared library with a matching major revision number to the first
|
2001-09-06 03:47:15 +04:00
|
|
|
column of the
|
|
|
|
.Ic ldd
|
|
|
|
output, you won't need to copy the file named
|
1998-04-28 08:07:04 +04:00
|
|
|
in the last column to your system, the one you already have should
|
|
|
|
work.
|
|
|
|
It is advisable to copy the shared library anyway if it is a newer version,
|
|
|
|
though.
|
|
|
|
You can remove the old one.
|
|
|
|
So, if you have these libraries on your system:
|
2001-09-06 03:47:15 +04:00
|
|
|
.Bl -item -compact
|
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd/usr/lib/libc.so.2.0
|
2001-09-06 03:47:15 +04:00
|
|
|
.El
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
|
|
|
and you find that the ldd output for a new binary you want to
|
|
|
|
install is:
|
|
|
|
.Pp
|
1998-04-28 08:07:04 +04:00
|
|
|
.nf
|
2002-02-13 11:17:26 +03:00
|
|
|
\-lc.2 =\*[Gt] /usr/lib/libc.so.2.1 (0x10144000)
|
1996-08-09 22:03:16 +04:00
|
|
|
.fi
|
|
|
|
.Pp
|
1998-04-28 08:07:04 +04:00
|
|
|
You won't need to worry about copying
|
2001-09-06 03:47:15 +04:00
|
|
|
.Pa /usr/lib/libc.so.2.1
|
|
|
|
too, because the program should work fine with the slightly older version.
|
1996-08-09 22:03:16 +04:00
|
|
|
You can decide to replace the libc.so anyway, and that should leave
|
|
|
|
you with:
|
2001-09-06 03:47:15 +04:00
|
|
|
.Bl -item -compact
|
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd/usr/lib/libc.so.2.1
|
2001-09-06 03:47:15 +04:00
|
|
|
.El
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
1998-02-06 08:54:12 +03:00
|
|
|
Finally, you must make sure that you have the
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
runtime linker and its config files on your system.
|
|
|
|
You should copy these files from the
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
|
|
|
system to their appropriate place on your
|
|
|
|
.Nx
|
1998-04-28 08:07:04 +04:00
|
|
|
system (in the
|
|
|
|
.Pa /emul/freebsd
|
|
|
|
tree):
|
2001-09-06 03:47:15 +04:00
|
|
|
.Bl -item -compact
|
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa usr/libexec/ld.so
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa var/run/ld.so.hints
|
2001-09-06 03:47:15 +04:00
|
|
|
.El
|
|
|
|
.It
|
1998-02-06 08:54:12 +03:00
|
|
|
You don't have access to a
|
|
|
|
.Fx
|
|
|
|
system. In that case, you
|
1996-08-09 22:03:16 +04:00
|
|
|
should get the extra files you need from various ftp sites.
|
|
|
|
Information on where to look for the various files is appended
|
|
|
|
below. For now, let's assume you know where to get the files.
|
|
|
|
.Pp
|
|
|
|
Retrieve the following files (from _one_ ftp site to avoid
|
2001-09-06 03:47:15 +04:00
|
|
|
any version mismatches), and install them under
|
|
|
|
.Pa /emul/freebsd
|
|
|
|
(i.e.
|
|
|
|
.Pa foo/bar
|
|
|
|
is installed as
|
|
|
|
.Pa /emul/freebsd/foo/bar ) :
|
|
|
|
.Bl -item -compact
|
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa sbin/ldconfig
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa usr/bin/ldd
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa usr/lib/libc.so.x.y.z
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa usr/libexec/ld.so
|
2001-09-06 03:47:15 +04:00
|
|
|
.El
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
2001-09-06 03:47:15 +04:00
|
|
|
.Ic ldconfig
|
|
|
|
and
|
|
|
|
.Ic ldd
|
|
|
|
don't necessarily need to be under
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /emul/freebsd ,
|
1996-08-09 22:03:16 +04:00
|
|
|
you can install them elsewhere in the system too. Just make sure
|
1998-02-06 08:54:12 +03:00
|
|
|
they don't conflict with their
|
|
|
|
.Nx
|
1998-04-28 08:07:04 +04:00
|
|
|
counterparts.
|
|
|
|
A good idea would be to install them in
|
|
|
|
.Pa /usr/local/bin
|
2001-09-06 03:47:15 +04:00
|
|
|
as
|
|
|
|
.Ic ldconfig-freebsd
|
|
|
|
and
|
|
|
|
.Ic ldd-freebsd .
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
1998-02-06 08:54:12 +03:00
|
|
|
Run the
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
ldconfig program with directory arguments in which the
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
2001-04-04 15:21:13 +04:00
|
|
|
runtime linker should look for shared libs.
|
1998-04-28 08:07:04 +04:00
|
|
|
.Pa /usr/lib
|
|
|
|
are standard, you could run like the following:
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width 123 -compact -offset indent
|
|
|
|
.It me@netbsd% mkdir -p /emul/freebsd/var/run
|
|
|
|
.It me@netbsd% touch /emul/freebsd/var/run/ld.so.hints
|
|
|
|
.It me@netbsd% ldconfig-freebsd /usr/X11R6/lib /usr/local/lib
|
|
|
|
.El
|
|
|
|
.Pp
|
2001-04-04 15:21:13 +04:00
|
|
|
Note that argument directories of ldconfig are
|
1998-04-28 08:07:04 +04:00
|
|
|
mapped to
|
|
|
|
.Pa /emul/freebsd/XXXX
|
|
|
|
by
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx Ns 's
|
|
|
|
compat code, and should exist as such on your system.
|
1998-04-28 08:07:04 +04:00
|
|
|
Make sure
|
|
|
|
.Pa /emul/freebsd/var/run/ld.so.hints
|
2001-04-04 15:21:13 +04:00
|
|
|
is existing when you run
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx Ns 's
|
|
|
|
ldconfig, if not, you may lose
|
|
|
|
.Nx Ns 's
|
2001-04-04 15:21:13 +04:00
|
|
|
.Pa /var/run/ld.so.hints .
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
2001-09-06 03:47:15 +04:00
|
|
|
.Ic ldconfig
|
|
|
|
should be statically
|
1996-08-09 22:03:16 +04:00
|
|
|
linked, so it doesn't need any shared libraries by itself.
|
1998-04-28 08:07:04 +04:00
|
|
|
It will create the file
|
2001-04-04 15:21:13 +04:00
|
|
|
.Pa /emul/freebsd/var/run/ld.so.hints .
|
1998-02-06 08:54:12 +03:00
|
|
|
You should rerun the
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
version of the ldconfig program each time you add a new shared library.
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
1998-02-06 08:54:12 +03:00
|
|
|
You should now be set up for
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
binaries which only need a shared libc.
|
|
|
|
You can test this by running the
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
2001-09-06 03:47:15 +04:00
|
|
|
.Ic ldd
|
|
|
|
on itself. Suppose that you have it installed as
|
|
|
|
.Ic ldd-freebsd ,
|
|
|
|
it should produce something like:
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width 123 -compact -offset indent
|
|
|
|
.It me@netbsd% ldd-freebsd `which ldd-freebsd`
|
|
|
|
.nf
|
|
|
|
/usr/local/bin/ldd-freebsd:
|
2002-02-13 11:17:26 +03:00
|
|
|
-lc.2 =\*[Gt] /usr/lib/libc.so.2.1 (0x1001a000)
|
1996-08-09 22:03:16 +04:00
|
|
|
.fi
|
|
|
|
.El
|
|
|
|
.Pp
|
1998-02-06 08:54:12 +03:00
|
|
|
This being done, you are ready to install new
|
|
|
|
.Fx
|
|
|
|
binaries.
|
|
|
|
Whenever you install a new
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
program, you should check if it needs shared libraries, and if so,
|
|
|
|
whether you have them installed in the
|
|
|
|
.Pa /emul/freebsd
|
|
|
|
tree.
|
|
|
|
To do this, you run the
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
2001-09-06 03:47:15 +04:00
|
|
|
version
|
|
|
|
.Ic ldd
|
|
|
|
on the new program, and watch its output.
|
|
|
|
.Ic ldd
|
|
|
|
(see also the manual page for
|
1998-04-28 08:07:04 +04:00
|
|
|
.Xr ldd 1 )
|
|
|
|
will print a list
|
1996-08-09 22:03:16 +04:00
|
|
|
of shared libraries that the program depends on, in the
|
2002-02-13 11:17:26 +03:00
|
|
|
form -l\*[Lt]majorname\*[Gt] =\*[Gt] \*[Lt]fullname\*[Gt].
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
2001-09-06 03:47:15 +04:00
|
|
|
If it prints
|
|
|
|
.Dq not found
|
2002-02-13 11:17:26 +03:00
|
|
|
instead of \*[Lt]fullname\*[Gt] it means that you need an extra library.
|
1998-04-28 08:07:04 +04:00
|
|
|
Which library this is, is shown
|
2002-02-13 11:17:26 +03:00
|
|
|
in \*[Lt]majorname\*[Gt], which will be of the form XXXX.\*[Lt]N\*[Gt]
|
|
|
|
You will need to find a libXXXX.so.\*[Lt]N\*[Gt].\*[Lt]mm\*[Gt] on a
|
1998-02-06 08:54:12 +03:00
|
|
|
.Fx
|
2001-09-06 03:47:15 +04:00
|
|
|
ftp site, and install it on your system.
|
2002-02-13 11:17:26 +03:00
|
|
|
The XXXX (name) and \*[Lt]N\*[Gt] (major
|
|
|
|
revision number) should match; the minor number(s) \*[Lt]mm\*[Gt] are
|
1996-08-09 22:03:16 +04:00
|
|
|
less important, though it is advised to take the most
|
|
|
|
recent version.
|
2000-06-22 02:06:33 +04:00
|
|
|
.Pp
|
2001-09-06 03:47:15 +04:00
|
|
|
.It
|
2000-06-22 02:06:33 +04:00
|
|
|
In some cases,
|
|
|
|
.Fx
|
|
|
|
binary needs access to certain device file.
|
|
|
|
For example,
|
|
|
|
.Fx
|
|
|
|
X server software needs
|
|
|
|
.Fx
|
|
|
|
.Pa /dev/ttyv0
|
2001-09-10 02:15:54 +04:00
|
|
|
for ioctls. In this case, create a symbolic link from
|
2000-06-22 02:06:33 +04:00
|
|
|
.Pa /emul/freebsd/dev/ttyv0
|
2001-09-10 02:15:54 +04:00
|
|
|
to a
|
2000-06-22 03:29:10 +04:00
|
|
|
.Xr wscons 4
|
|
|
|
device file like
|
2001-09-10 02:15:54 +04:00
|
|
|
.Pa /dev/ttyE0 .
|
|
|
|
You will need to have at least
|
|
|
|
.Cd options WSDISPLAY_COMPAT_SYSCONS
|
|
|
|
and probably also
|
|
|
|
.Cd options WSDISPLAY_COMPAT_USL
|
|
|
|
in your kernel (see
|
|
|
|
.Xr options 4
|
|
|
|
and
|
|
|
|
.Xr wscons 4 ) .
|
1996-08-09 22:03:16 +04:00
|
|
|
.El
|
2001-04-04 15:21:13 +04:00
|
|
|
.Ss Finding the necessary files
|
|
|
|
.Em Note :
|
1997-02-27 11:05:36 +03:00
|
|
|
the information below is valid as of the time this
|
|
|
|
document was written (June, 1995), but certain details
|
1996-08-09 22:03:16 +04:00
|
|
|
such as names of ftp sites, directories and distribution names
|
|
|
|
may have changed by the time you read this.
|
|
|
|
.Pp
|
1998-02-06 08:54:12 +03:00
|
|
|
The
|
|
|
|
.Fx
|
1998-04-28 08:07:04 +04:00
|
|
|
distribution is available on a lot of ftp sites.
|
|
|
|
Sometimes the files are unpacked, and you can get the individual
|
|
|
|
files you need, but mostly they are stored in distribution sets,
|
|
|
|
usually consisting of subdirectories with gzipped tar files in them.
|
|
|
|
The primary ftp sites for the distributions are:
|
2001-09-06 03:47:15 +04:00
|
|
|
.Bl -item -compact -offset indent
|
|
|
|
.It
|
|
|
|
.Pa ftp.freebsd.org:/pub/FreeBSD
|
|
|
|
.El
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
|
|
|
Mirror sites are described on:
|
2001-09-06 03:47:15 +04:00
|
|
|
.Bl -item -compact -offset indent
|
|
|
|
.It
|
|
|
|
.Pa ftp.freebsd.org:/pub/FreeBSD/MIRROR.SITES
|
|
|
|
.El
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
|
|
|
This distribution consists of a number of tar-ed and gzipped files,
|
|
|
|
Normally, they're controlled by an install program, but you can
|
2001-09-06 03:47:15 +04:00
|
|
|
retrieve files
|
|
|
|
.Dq by hand
|
|
|
|
too. The way to look something up is to retrieve all the files in the
|
1998-04-28 08:07:04 +04:00
|
|
|
distribution, and ``tar ztvf'' through them for the file you need.
|
|
|
|
Here is an example of a list of files that you might need.
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
2001-12-26 04:11:51 +03:00
|
|
|
.Bd -literal -offset indent
|
1996-08-09 22:03:16 +04:00
|
|
|
Needed Files
|
|
|
|
|
|
|
|
ld.so 2.0-RELEASE/bindist/bindist.??
|
|
|
|
ldconfig 2.0-RELEASE/bindist/bindist.??
|
|
|
|
ldd 2.0-RELEASE/bindist/bindist.??
|
|
|
|
libc.so.2 2.0-RELEASE/bindist/bindist.??
|
|
|
|
libX11.so.6.0 2.0-RELEASE/XFree86-3.1/XFree86-3.1-bin.tar.gz
|
|
|
|
libX11.so.6.0 XFree86-3.1.1/X311bin.tgz
|
|
|
|
libXt.so.6.0 2.0-RELEASE/XFree86-3.1/XFree86-3.1-bin.tar.gz
|
|
|
|
libXt.so.6.0 XFree86-3.1.1/X311bin.tgz
|
|
|
|
.\" libX11.so.3 oldlibs
|
|
|
|
.\" libXt.so.3 oldlibs
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2001-09-06 03:47:15 +04:00
|
|
|
The files called
|
|
|
|
.Dq bindist.??
|
|
|
|
are tar-ed, gzipped and split, so you can extract contents by
|
|
|
|
.Dq cat bindist.?? | tar zpxf - .
|
1996-08-09 22:03:16 +04:00
|
|
|
.Pp
|
1998-04-28 08:07:04 +04:00
|
|
|
Extract the files from these gzipped tarfiles in your
|
|
|
|
.Pa /emul/freebsd
|
|
|
|
directory (possibly omitting or afterwards removing files you don't
|
|
|
|
need), and you are done.
|
1996-08-09 22:03:16 +04:00
|
|
|
.Sh BUGS
|
1998-02-06 08:54:12 +03:00
|
|
|
The information about
|
|
|
|
.Fx
|
|
|
|
distributions may become outdated.
|