Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Dec 1996 23:01:11 -0600
From:      "Eric L. Hernes" <erich@lodgenet.com>
To:        asami@cs.berkeley.edu (Satoshi Asami)
Cc:        erich@lodgenet.com, erich@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-ports@freefall.freebsd.org
Subject:   Re: cvs commit: ports/games/doom - Imported sources 
Message-ID:  <199612190501.XAA22101@jake.lodgenet.com>
In-Reply-To: Your message of "Wed, 18 Dec 1996 20:45:36 PST." <199612190445.UAA04370@silvia.HIP.Berkeley.EDU> 

next in thread | previous in thread | raw e-mail | index | archive | help
Satoshi Asami writes:
> * do you have the linuxulator loaded?  `pat' is a linux binary and the
> * kernel is trying to run it as a shell script.  Can I assume that
> * this will be loaded, or should I go through some contortions to
> * check modstat and call /usr/bin/linux if necessary?
>
>I see.  Yes, I would say so.  Or at least print out a message and quit 
>before it gets there.
>
>I'm not too up to full speed with the Linux emulator stuff, does it
>require special things in the kernel (I tried it and it worked on our
>machines, but I can't tell if that's generic enough)?  If not, I
>suggest you put in a modstat | grep || /usr/bin/linux pipeline.

The detection is a bit trickier :(  There is a kernel option
COMPAT_LINUX (I think) that will build the compat stuff staticly
in the kernel.  If you don't specify COMPAT_LINUX, you can
modload and still get linux emulation.  On my SMP kernel, I build
everything statically, so the `modstat |grep || /usr/bin/linux' will
fail with multiply defined symbols.  The program will just work.  On
my standard UP kernel, I use the lkm's so the pipline would be fine.
Maybe it should do something like `pat <args> || (/usr/bin/linux; pat <args>)'
to test the emulator?

>
>Satoshi

eric.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612190501.XAA22101>