*BSD News Article 59332


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!bloom-beacon.mit.edu!gatech!newsfeed.internetmci.com!news.sprintlink.net!news.icon.net!ns1.icon.net!chew
From: chew@ns1.icon.net (0001-Admin(0001))
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Gettin Linux emulator to work -- Help!
Date: 11 Jan 1996 20:39:49 GMT
Organization: (ICON) InterConnect Online, Inc.
Lines: 40
Message-ID: <4d3sil$hut@news.icon.net>
NNTP-Posting-Host: ns1.icon.net
X-Newsreader: TIN [version 1.2 PL2]

I've not have much luck getting Linux emulator to work correctly in
RELEASE-2.1.0   I've untar the linux_lib-1.0.tgz into the /lib 
directory. And loaded the Linux comptat mod via the following command
# modload -e linux_init /lkm/linux_mod.o, it loaded successfully and
return the ID :-

BASH # modload -e linux_init /lkm/linux_mod.o
Linux emulator installed
Module loaded as ID 0

modstat confirm the the above :-
bash# modstat
Type     Id Off Loadaddr Size Info     Rev Module Name
EXEC      0   3 f09e4000 0018 f09e9000   1 linux_emulator

But when I try running a little c code compiled with GNU cc in Linux
it return result in core dump :-
bash# ./hello
Bus error (core dumped)

hello.c was a nobrainer :-
ns5:/tmp# more hello.c
void main()
{
        printf("Hello World compiled in Linux\n\n");
}

Is there something that I missed along the way ? and how compatible
is the linux_mod.o Linux kernel load module emulator ? I've read it even
runs Dooms...but why not a one line no brainer :(

Any help or suggestion is Highly appreciated :)


Wes Chew
chew@ns1.icon.net

++++++++++++++++++++++++++
Power by FreeBSD since 2.0 
++++++++++++++++++++++++++