*BSD News Article 61595


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!tank.news.pipex.net!pipex!peer-news.britain.eu.net!newsfeed.ed.ac.uk!edcogsci!richard
From: richard@cogsci.ed.ac.uk (Richard Tobin)
Subject: Re: Linux emulator problem?
Message-ID: <DMwA6n.5x1.0.macbeth@cogsci.ed.ac.uk>
Organization: HCRC, University of Edinburgh
References: <DMH1Bq.GAG.0.macbeth@cogsci.ed.ac.uk> <4fvuof$75e@news.bu.edu> <DMuK09.59v.0.macbeth@cogsci.ed.ac.uk>
Date: Sat, 17 Feb 1996 00:47:11 GMT
Lines: 24

In article <DMuK09.59v.0.macbeth@cogsci.ed.ac.uk> I wrote:
>In article <4fvuof$75e@news.bu.edu> mi@aldan.bu.edu (Mikhail Teterin) writes:

>>Do you have the LINUX_COMPAT (or COMPAT_LINUX) option
>>in the kernel's config file?  modload does not say a
>>word (linux_init(), IMHO, should check if kernel has
>>the Linux support built-in)...

>Surely you only need to load the linux module if it's *not* built in?

Having looked at the code, I now see that this is not the case and
that Mikhail is quite right.  You need to both build a kernel with
COMPAT_LINUX and load the linux module.

This is a little counter-intuitive (especially since as Mikhail says
loading the module gives no warning when the kernel doesn't support
it), and the code enabled by COMPAT_LINUX is so small that I would
have thought it made sense to enable it by default.

-- Richard
-- 
"Hither turn thy steps, hither come to thy death and for Camilla
receive due guerdon!  Shalt thou, even thou, die by Diana's darts?"
                                              [Virgil, Aeneid X1 855-7]