Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Mar 1998 23:20:08 -0500
From:      robert s bauer <rbauer01@worldnet.att.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Linux emulator
Message-ID:  <351F1D78.41C67EA6@worldnet.att.net>

next in thread | raw e-mail | index | archive | help
--
I have a question relating to the Linux emulator.
I am trying to run the Linux version of Netscape 4.04.

My system:
	FreeBSD v2.1.7 from the CDROM
	ASUS MB with Pentium 120
	32Mb Ram
	540 Mb EIDE hard disk (all FBSD)
	230 Mb Syquest SCSI external drive (used for /usr/local)
	12X Toshiba internal SCSI CDROM. 

What I did:
	1) copied ports/emulators/linux_lib from the CDROM to 
	   /usr/ports/emulators/linux_lib on the hard drive
	2) Ran make and make install to install the libs (verified 		   files
are in /compat/linux/lib).
	3) Changed /etc/sysconfig to specify linux="YES".
	4) Added the RESOLVE_HOST_CONF env variable (.profile)
	5) Rebooted the system (linux_emulator loaded as MOD 3)
results of modstat:
	Type     Id Off Loadaddr Size Info     Rev Module Name
	MISC      0   0 f0a4d000 0020 f0a54000   1 ibcs2_mod
	EXEC      1   3 f0a55000 0008 f0a56000   1 ibcs2_coff_mod
	DEV       2  33 f0a58000 0010 f0a5b02c   1 socksys_mod
	EXEC      3   4 f0a5d000 0018 f0a62000   1 linux_emulator
	MISC      4   0 f0a64000 0008 f0a65000   1 blank_saver
If I run netscape (linux version 4.04, I get Exec Format error:
wrong architechure.

In the HANDBOOK, it indicates a new kernel is required but in the
README.html in the linux_lib sources, it indicates it doesn't need
to be done anymore. I tried generating a new kernel.

I modified my kernel description to add options LINUX (was no entry
in LINT) and recompiled. Failed during compilation at
i386/machdep.c

	../../i386/i386/machdep.c:in function 'init386'
	../../i386/i386/machdep.c:1369:'Xlmux.syscall'
		undeclared (first use this function)
			.
			.

Tried options "LINUX" with same result.

Tried options "COMPAT_LINUX" and it compiled OK with kernel
slightly larger than the previous one. I then changed
/etc/sysconfig to linux="NO" and rebooted.

I get the same Exec Format error:wrong architechure when I run the
Linux port of netscape.

I loaded the lkm by running bin/linux and got the same error.

I downloaded the linux_lib files from ftp.freebsd.org and pkg_delete'd
linux_lib then make and make reinstall with the 
downloaded files.

Same error as above.

Changed back to the original kernel, set linux="YES" and rebooted.
Same error when trying to run Netscape 4.04.

Am I missing some details on how to use the emulator (I'm just 
typing in the linux binary name (ie netscape &)? Is there something
else needed or is this netscape package just not compatable with
this release of the emulator? I notice a /dev/lkm file but when I
MAKEDEV lkm or MAKEDEV.local lkm, I get an error indicating neither file
recognizes device lkm. Is the following correct?
(crw-r--r--  1 root  wheel   32,   0 Jun 17  1997 /dev/lkm)

Any help would be greatly appreciated.

	Thanks.

		Bob Bauer
		rbauer01@worldnet.att.net
Kx

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?351F1D78.41C67EA6>