From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 14:30:59 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40F2F16A4CE for ; Fri, 28 Jan 2005 14:30:59 +0000 (GMT) Received: from mailgate2.zdv.Uni-Mainz.DE (mailgate2.zdv.Uni-Mainz.DE [134.93.178.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA15B43D46 for ; Fri, 28 Jan 2005 14:30:58 +0000 (GMT) (envelope-from ohartman@uni-mainz.de) Received: from [134.93.180.218] (edda.Physik.Uni-Mainz.DE [134.93.180.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailgate2.zdv.Uni-Mainz.DE (Postfix) with ESMTP id 65C7B30000E8; Fri, 28 Jan 2005 15:30:57 +0100 (CET) Message-ID: <41FA4C8B.6030305@uni-mainz.de> Date: Fri, 28 Jan 2005 15:30:35 +0100 From: "O. Hartmann" Organization: Institut =?ISO-8859-15?Q?f=FCr_Geophysik?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-AT; rv:1.7.5) Gecko/20050102 X-Accept-Language: de-de, en MIME-Version: 1.0 To: saravanan ganapathy References: <20050128142024.73716.qmail@web51708.mail.yahoo.com> In-Reply-To: <20050128142024.73716.qmail@web51708.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at uni-mainz.de cc: freebsd-questions@freebsd.org Subject: Re: enable linux compatibility X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 14:30:59 -0000 saravanan ganapathy schrieb: >--- Xian wrote: > > > >>On Friday 28 January 2005 13:39, saravanan ganapathy >>wrote: >> >> >>>Hai >>> >>>I tried to enable linux compatibility on my >>> >>> >>freebsd >> >> >>>(5.3 Release)kernel by adding 'options >>> >>> >>COMPAT_LINUX' >> >> >>>in my kernel config file and recompiled the kernel >>>using this file.But even after, this is not >>> >>> >>enabled. >> >> >>>kldstat o/p shows as >>> >>># kldstat >>>Id Refs Address Size Name >>> 1 3 0xc0400000 5ef620 kernel >>> 2 14 0xc09f0000 537f0 acpi.ko >>> >>>The 'linux' command also not found. >>> >>>What may be the problem? >>> >>>Saravname of >>> >>> >>You need linux_enable="YES" in rc.conf at least. I >>can't remember if there is >>more to do. I'm sure someone else can help. >> >> >> > >I already added linux_enable="YES" in rc.conf. > >Sarav > > > > > If you put options COMPAT_LINUX in your kernel config file, Linux compatibility is already enabled and not shown in the list of loaded kernel modules! kldstat only reports thos modules are enabled as loadable module. With "options COMPAT_LINUX' Linuxulator is enabled forever as long as the kernel runs. A more sphisticated way is to run Linuxulator as a kernel loadable module. You should disable options COMAPT_LINUX in your configuration file and change the appropriate tag in /etc/rc.conf.local linux_enable="NO" -> linux_enable="YES".