Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jun 1995 11:06:59 -0700
From:      Amancio Hasty <hasty@star-gate.com>
To:        hackers@freebsd.org
Subject:   Doom & FreeBSD 2.0.5
Message-ID:  <199506041806.LAA00618@star-gate.com>

next in thread | raw e-mail | index | archive | help
> Hi,
> 
> Is the linux emulation also available to 2.0.5 (as patches) or
> is it just for -current? If not, would it be difficult to integrate 
> into the 2.0.5 sources?

>2.0.5 *IS* current.  You need to get the linux libraries for whatever
>program you want to run though, and compile your kernel with the
>COMPAT_LINUX option.

Soren Said:
Look at:
login.dknet.dk:pub/sos/*

There is the nessesary lkm & libs, you just need the linux doom
distribution (from wcarchive.cdrom.com)...

--- 
I grabbed from freebsd.cdrom.com linux-doom-1.8.tar.gz.

---

The -current code and COMPAT_LINUX breaks BSDI compatibility 
so from Justin Gibbs:
This is a problem with COMPAT_LINUX.  This fixed it for me:


Index: imgact_aout.c
===================================================================
RCS file: /usr/cvs/src/sys/kern/imgact_aout.c,v
retrieving revision 1.13
diff -c -r1.13 imgact_aout.c
*** 1.13	1995/05/30 08:05:17
--- imgact_aout.c	1995/06/03 19:40:44
***************
*** 57,66 ****
  	/*
  	 * Linux and *BSD binaries look very much alike,
  	 * only the machine id is different:
! 	 * 0x64 for Linux, 0x86 for *BSD.
  	 */
! 	if (((a_out->a_magic >> 16) & 0xff) != 0x86)
! 		return -1;
  #endif /* COMPAT_LINUX */
  
  	/*
--- 57,67 ----
  	/*
  	 * Linux and *BSD binaries look very much alike,
  	 * only the machine id is different:
! 	 * 0x64 for Linux, 0x86 for *BSD, 0x00 for BSDI.
  	 */
! 	if (((a_out->a_magic >> 16) & 0xff) != 0x86 &&
! 	    ((a_out->a_magic >> 16) & 0xff) != 0)
!                 return -1;
  #endif /* COMPAT_LINUX */
  
  	/*
--

> Courtesy of Rod.
> # 320x200 @ 70 Hz, 31.5 kHz hsync, 8:5 aspect ratio
> Modeline "320x200"     12.588 320  336  384  400   200  204  205  225 Doublescan

Thats a 320x200 which works great on my Actix S3 864 .

Warning playing Doom can be detrimental to release schedules :)

	Have A Blast,
	Amancio



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