From owner-freebsd-doc Sat Sep 16 19:26:13 1995 Return-Path: owner-doc Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA17769 for doc-outgoing; Sat, 16 Sep 1995 19:26:13 -0700 Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA17738 for ; Sat, 16 Sep 1995 19:26:05 -0700 Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id TAA00342 for ; Sat, 16 Sep 1995 19:26:02 -0700 Prev-Resent: Sat, 16 Sep 1995 19:26:01 -0700 Prev-Resent: "docs@freefall " Received: from freefall.freebsd.org (freefall.cdrom.com [192.216.222.4]) by time.cdrom.com (8.6.12/8.6.9) with ESMTP id HAA19127 for ; Sat, 16 Sep 1995 07:37:22 -0700 Received: from localhost (daemon@localhost) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id HAA29716 ; Sat, 16 Sep 1995 07:26:15 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id HAA29703 for stable-outgoing; Sat, 16 Sep 1995 07:26:14 -0700 Received: from id.slip.bcm.tmc.edu (root@hou35.onramp.net [199.1.137.163]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id HAA29693 for ; Sat, 16 Sep 1995 07:26:09 -0700 Received: (from rich@localhost) by id.slip.bcm.tmc.edu (8.6.12/8.6.9) id JAA00514; Sat, 16 Sep 1995 09:26:01 -0500 Date: Sat, 16 Sep 1995 09:26:01 -0500 From: Rich Murphey Message-Id: <199509161426.JAA00514@id.slip.bcm.tmc.edu> To: stable@freefall.FreeBSD.org Subject: linux compatibility in -stable Reply-to: rich@lamprey.utmb.edu Resent-To: docs@freefall.FreeBSD.org Resent-Date: Sat, 16 Sep 1995 19:26:01 -0700 Resent-Message-ID: <340.811304761@time.cdrom.com> Resent-From: "Jordan K. Hubbard" Sender: owner-doc@FreeBSD.org Precedence: bulk I just thought I'd mention that Soren's linux compatibility works just fine in -stable. Thanks David!! -stable is missing the directory /usr/src/lkm/linux. Can we add it from the FreeBSD-current source tree? I'll look at writing a man page, but meanwhile here's my notes. Rich Running Linux binaries on FreeBSD 2.1 (aka -stable): Install a kernel whose configuration file contains: options "COMPAT_LINUX" options SYSVSHM [you need SYSVSHM if you test the emulator using xdoom.] Get a copy of the directory /usr/src/lkm/linux from the FreeBSD-current source tree. Install the loadable kernel module (LKM) and /usr/bin/linux: cd /usr/src/lkm/linux make all install load the LKM (as root): linux get the linux runtime libraries: mkdir /compat/linux cd /compat/linux ncftp ftp.freebsd.org:pub/FreeBSD/2.0.5-RELEASE/xperimnt/linux-emu/linux-emu.tar.gz tar xzf linux-emu.tar.gz rm -rf usr lkm Note that the README there says to unpack linux-emu.tar.gz in the root directory. The emulator will work just fine if unpack it in /compat/linux instead. Also, you only need the shared libraries from this tar archvive since you've already installed the LKM and /usr/bin/linux. To test it, install linux doom: ncftp ftp.freebsd.org:pub/FreeBSD/2.0.5-RELEASE/xperimnt/linux-emu/linux-doom-1.8.tar.gz tar xzf linux-doom-1.8.tar.gz cd doom-1.8 ./xdoom See also: ftp.freebsd.org:/home/ftp/pub/FreeBSD/2.0.5-RELEASE/xperimnt/linux-emu/README /usr/src/sys/i386/ibcs2/README.iBCS2 NetBSD-current/src/share/man/man8/compat_linux.8