From owner-freebsd-questions Mon Jul 15 14:52:54 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA19802 for questions-outgoing; Mon, 15 Jul 1996 14:52:54 -0700 (PDT) Received: from arl-img-5.compuserve.com ([149.174.217.135]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA19790 for ; Mon, 15 Jul 1996 14:52:49 -0700 (PDT) Received: by arl-img-5.compuserve.com (8.6.10/5.950515) id RAA21367; Mon, 15 Jul 1996 17:51:46 -0400 Date: 15 Jul 96 17:49:09 EDT From: Mark Ovens <100104.10@CompuServe.COM> To: questions Subject: Building a Linux compatible kernel - How ? Message-ID: <960715214909_100104.10_EHQ37-1@CompuServe.COM> Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I am trying, without success, to build a FreeBSD kernel with Linux compatibility. I have installed the package linux_lib-1.0 which seems to come with only the following brief instructions :- These libraries are part of the linux compatibility options for FreeBSD. To get linux compat working you will need 1) A linux binary such as doom, Wingz, or maple 2) a kernel with ``options LINUX_COMPAT'' in the config file 3) these libraries 4) the linux compat lkm (ie run /usr/bin/linux) then run the linux binary. I added the "LINUX_COMPAT" option to the config file, I also tried "COMPAT_LINUX" as other options which include "COMPAT" are of the format "COMPAT_xxxxx", but in both cases the Makefile produced contained no reference to "linux", except for the options line. I would expect the build to include some or all of the files in /usr/src/sys/i386/linux. Also, the instruction 4), " the linux compat lkm (ie run /usr/bin/linux)" is puzzling me. There is no file called "linux" in /usr/bin, or anywhere else on my system (there is an executable "linux_mod" but that just produces the error "Exec format error. Wrong Architecture" which all Linux programs seem to give. I am at a loss as to how to make it all work. Any help would be greatly appreciated. Regards, Mark Ovens (100104.10@compuserve.com)