From owner-freebsd-emulation Wed Oct 1 07:08:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA15351 for emulation-outgoing; Wed, 1 Oct 1997 07:08:45 -0700 (PDT) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA15341 for ; Wed, 1 Oct 1997 07:08:38 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id XAA00410; Wed, 1 Oct 1997 23:35:44 +0930 (CST) Message-Id: <199710011405.XAA00410@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: cfdupuis@juno.com (Charles F. Dupuis) cc: emulation@freebsd.org Subject: Re: 1.4 Can I run DOS binaries under FreeBSD? In-reply-to: Your message of "Wed, 01 Oct 1997 06:51:40 EST." <19971001.065141.3822.0.cfdupuis@juno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Oct 1997 23:35:43 +0930 From: Mike Smith Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Your note states that you are looking for someone to write the DOS > support for FreeBSD. I am an assembly language programmer, and I was > wondering if you could tell me if there is a book of code on your system? Hi Charles. At this stage in FreeBSD-current what we have is a reasonably function vm86-mode DOS emulation package, desperately in need of attention from people familiar with DOS. If you feel that you fit the bill here, well, what can we do to help you along? Regrettably, there isn't "a book" about FreeBSD. There are a couple of good books which discuss the systems it has evolved from (particularly 'The Design and Implemetentation of the 4.4 BSD Operating System'), however it's very hard to write a definitive book about a work in progress. If you are interested in getting further involved, you will need to get FreeBSD-current up and running, and subscribe to the FreeBSD-emulation mailing list (copied on this message). If you need help getting -current up and running, please let me know. > I have several books of free dos kernels that could be modified to work > with your system. I will also need to how I could compile and link my > assembly code with your code. I also have several books on Windows and > could attempt to write an interface for Windows 3.1 programs to run in > FreeBSD. To work with the FreeBSD DOS emulation, you will be interfacing with a couple of major code components; the CPU emulation module and the DOS/ BIOS emulation module. Most of the CPU emulation is handled inside the FreeBSD kernel, where traps from vm86 mode are handled and the virtual CPU state updated. Some of these traps are passed through to code running in userspace alongside the DOS emulation image, and it is this code that attempts to emulate DOS and the BIOS. For the sake of comprehensability and maintainability, almost none of any of this code is written in assembler, however a good understanding of Intel assembly and Intel processors as well as the DOS/BIOS environment is required to work on it. If you are strongly motivated in the Windows arena, you might wish to investigate the WINE project. WINE is a well-established Win16/Win32 emulation package which runs on a number of free operating systems, including FreeBSD. I hope this has been of some use to you; please let us/me know if we can be of any assistance in getting started. mike From owner-freebsd-emulation Thu Oct 2 18:39:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA07966 for emulation-outgoing; Thu, 2 Oct 1997 18:39:51 -0700 (PDT) Received: from stt3.com (root@stt3.com [198.107.49.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA07961 for ; Thu, 2 Oct 1997 18:39:48 -0700 (PDT) Received: from durin(really [192.168.0.88]) by stt3.com via sendmail with smtp id for ; Thu, 2 Oct 1997 18:39:05 -0700 (PDT) (Smail-3.2 1996-Jul-4 #1 built 1997-Mar-5) Date: Thu, 2 Oct 1997 18:39:04 -0700 (PDT) From: Brian Beattie X-Sender: beattie@durin To: freebsd-emulation@freebsd.org Subject: doscmd 970320 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have finally gotten around to trying out doscmd. I am running FreeBSD 2.2.2 with the PAO Patches. I have a doscmd tar file dated 3/20/97. I have installed OpenDOS. I am having some problems, mainly with things hanging. Does anybody know of a more recent/better copy of doscmd and patches? From owner-freebsd-emulation Thu Oct 2 19:57:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA11285 for emulation-outgoing; Thu, 2 Oct 1997 19:57:07 -0700 (PDT) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA11277 for ; Thu, 2 Oct 1997 19:57:03 -0700 (PDT) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id VAA03031; Thu, 2 Oct 1997 21:56:54 -0500 (CDT) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id VAA06348; Thu, 2 Oct 1997 21:56:23 -0500 Message-ID: <19971002215623.26008@right.PCS> Date: Thu, 2 Oct 1997 21:56:23 -0500 From: Jonathan Lemon To: Brian Beattie Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: doscmd 970320 References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: ; from Brian Beattie on Oct 10, 1997 at 06:39:04PM -0700 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Oct 10, 1997 at 06:39:04PM -0700, Brian Beattie wrote: > I have finally gotten around to trying out doscmd. I am running FreeBSD > 2.2.2 with the PAO Patches. I have a doscmd tar file dated 3/20/97. I > have installed OpenDOS. > > I am having some problems, mainly with things hanging. Does anybody know > of a more recent/better copy of doscmd and patches? Yes, there is a better one in -current. Unfortunately, it doesn't work with 2.2.X. -- Jonathan From owner-freebsd-emulation Thu Oct 2 19:58:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA11332 for emulation-outgoing; Thu, 2 Oct 1997 19:58:10 -0700 (PDT) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA11324 for ; Thu, 2 Oct 1997 19:58:02 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id MAA00812; Fri, 3 Oct 1997 12:25:27 +0930 (CST) Message-Id: <199710030255.MAA00812@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Brian Beattie cc: freebsd-emulation@FreeBSD.ORG Subject: Re: doscmd 970320 In-reply-to: Your message of "Thu, 02 Oct 1997 18:39:04 MST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 03 Oct 1997 12:25:25 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have finally gotten around to trying out doscmd. I am running FreeBSD > 2.2.2 with the PAO Patches. I have a doscmd tar file dated 3/20/97. I > have installed OpenDOS. > > I am having some problems, mainly with things hanging. Does anybody know > of a more recent/better copy of doscmd and patches? Doscmd is a part of -current these days, and uses the more advanced vm86 support there. It's not something that would be particularly easy to backport to 2.2 unfortunately. On the brighter side, 3.0 works just fine on my laptop 8) mike From owner-freebsd-emulation Fri Oct 3 05:06:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA09320 for emulation-outgoing; Fri, 3 Oct 1997 05:06:42 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA09309 for ; Fri, 3 Oct 1997 05:06:36 -0700 (PDT) Received: from gurney.reilly.home (d10.syd2.zeta.org.au [203.26.11.10]) by godzilla.zeta.org.au (8.8.5/8.6.9) with ESMTP id WAA14884; Fri, 3 Oct 1997 22:00:45 +1000 Received: (from andrew@localhost) by gurney.reilly.home (8.8.7/8.8.5) id VAA02076; Fri, 3 Oct 1997 21:57:43 +1000 (EST) From: Andrew Reilly Message-Id: <199710031157.VAA02076@gurney.reilly.home> Date: Fri, 3 Oct 1997 21:57:43 +1000 (EST) Subject: Re: doscmd 970320 To: jlemon@americantv.com cc: beattie@stt3.com, freebsd-emulation@FreeBSD.org In-Reply-To: <19971002215623.26008@right.PCS> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On a slightly different tack: I run a 2.2.* system, and had been wondering about upgrading to -current for doscmd, to get the DOS/Windows version of the Motorola dsp56303 assembler going. I tried it under the experimental, 2.2 version and it didn't work because it is a dos4gw, 32-bit thing. (Probably had no hope: I've since discovered that it doesn't work under Windows 3.11 or '95 either.) Now I don't know whether the 3.0 doscmd could handle it better or at all, but today I tried the -NT version under Wine, and I appear to have been completely successful. There are obviously cases where DOS is the only option, but this is the second thing that I expected to need a dos emulator for, and didn't. (The other was the PIC microcontroller assembler: it also has a straight Windows version that worked OK in Wine.) On 2 Oct, Jonathan Lemon wrote: > Yes, there is a better one in -current. Unfortunately, it doesn't work > with 2.2.X. All praise to the emulator gurus, and a big THANKS is all I can say. -- Andrew "The steady state of disks is full." -- Ken Thompson