From owner-freebsd-emulation Mon Aug 4 19:51:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA14134 for emulation-outgoing; Mon, 4 Aug 1997 19:51:10 -0700 (PDT) Received: from sakaki.communique.net (sakaki.communique.net [204.27.65.7]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA14128 for ; Mon, 4 Aug 1997 19:51:07 -0700 (PDT) Received: from FRK1.blue.frk.cmq.com (fcreel.Frk.Cmq.com [204.27.66.50]) by sakaki.communique.net (8.8.5/8.8.5) with SMTP id VAA05493 for ; Mon, 4 Aug 1997 21:50:35 -0500 (CDT) Message-ID: <33E694B5.681A@communique.net> Date: Mon, 04 Aug 1997 21:49:26 -0500 From: Frank Creel Reply-To: fcreel@communique.net Organization: IFC X-Mailer: Mozilla 3.01 (Win95; I) MIME-Version: 1.0 To: emulation@freebsd.org Subject: Re: mailing list References: <33E681F6.263F@communique.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Frank Creel wrote: > > please place me on the mailing list for info on discussions on > emulations... > > Thanks > Frank From owner-freebsd-emulation Mon Aug 4 22:26:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA21026 for emulation-outgoing; Mon, 4 Aug 1997 22:26:54 -0700 (PDT) Received: from usc.usc.unal.edu.co ([200.21.26.65]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id WAA21020 for ; Mon, 4 Aug 1997 22:26:51 -0700 (PDT) Received: from unalmodem08.usc.unal.edu.co by usc.usc.unal.edu.co (AIX 4.1/UCB 5.64/4.03) id AA25002; Tue, 5 Aug 1997 01:21:41 -0400 Message-Id: <33E6D1C5.EF2@fps.biblos.unal.edu.co> Date: Tue, 05 Aug 1997 00:09:57 -0700 From: "Pedro Giffuni S," Organization: Universidad Nacional de Colombia X-Mailer: Mozilla 3.01Gold [it] (Win16; I) Mime-Version: 1.0 To: emulation@freebsd.org Subject: SCO compatibility Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy, I'm not sure exactly when I can read a reply to this, but I have to ask it before it gets lost in my to-ask list: 1) I downloaded a file from http://www.armory.com/~ftp/ and found, contrary to the myth, that they are using ELF. 2) I tried to build the program in question (clca) and found that we lack equivalent EGA and VGA headers. My questions are: 1) What would be required to support SCO's ELFs? 2) How scoish (err..compatible) is our SCO console? cheers, Pedro. From owner-freebsd-emulation Mon Aug 4 23:13:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA22434 for emulation-outgoing; Mon, 4 Aug 1997 23:13:38 -0700 (PDT) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA22428 for ; Mon, 4 Aug 1997 23:13:35 -0700 (PDT) Received: (from sos@localhost) by sos.freebsd.dk (8.8.6/8.7.3) id IAA06549; Tue, 5 Aug 1997 08:12:34 +0200 (MEST) From: Søren Schmidt Message-Id: <199708050612.IAA06549@sos.freebsd.dk> Subject: Re: SCO compatibility In-Reply-To: <33E6D1C5.EF2@fps.biblos.unal.edu.co> from "Pedro Giffuni S," at "Aug 5, 97 00:09:57 am" To: pgiffuni@fps.biblos.unal.edu.co (Pedro Giffuni S, ) Date: Tue, 5 Aug 1997 08:12:34 +0200 (MEST) Cc: emulation@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In reply to Pedro Giffuni S, who wrote: > Howdy, > I'm not sure exactly when I can read a reply to this, but I have to ask > it before it gets lost in my to-ask list: > 1) I downloaded a file from http://www.armory.com/~ftp/ and found, > contrary to the myth, that they are using ELF. > 2) I tried to build the program in question (clca) and found that we > lack equivalent EGA and VGA headers. > > My questions are: > 1) What would be required to support SCO's ELFs? Not much really, a module for our generic ELF loader (kern/imgact_elf.c) possibly a new sysvec table and new function to handle new syscalls and then of cause the shared libs. > 2) How scoish (err..compatible) is our SCO console? Pretty good, just we call the headers by one name: console.h -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end .. From owner-freebsd-emulation Tue Aug 5 02:23:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA02362 for emulation-outgoing; Tue, 5 Aug 1997 02:23:15 -0700 (PDT) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id CAA02353 for ; Tue, 5 Aug 1997 02:23:03 -0700 (PDT) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 25612 on Tue, 5 Aug 1997 09:22:59 GMT; id JAA25612 efrom: marc@nietzsche.bowtie.nl; eto: emulation@freebsd.org Received: from localhost (localhost [127.0.0.1]) by nietzsche.bowtie.nl (8.8.2/8.7.3) with ESMTP id LAA04626 for ; Tue, 5 Aug 1997 11:22:13 +0200 (MET DST) Message-Id: <199708050922.LAA04626@nietzsche.bowtie.nl> X-Mailer: exmh version 1.6.7 5/3/96 To: emulation@freebsd.org Subject: semget in linux emulation? Reply-to: marc@bowtie.nl Date: Tue, 05 Aug 1997 11:22:13 +0200 From: Marc van Kempen Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I have a Linux application that I want to run on a 2.2.2 system, but it seems to use shared memory. I config'ed shared memory in my kernel. The application complains about a failing SEMGET, and when I looked in the linux_ipc.c, the call returns ENOSYS, does this mean that the semget won't work???? If so, is anyone working on fixing this? Or, how difficult is it to add? Regards, Marc. ---------------------------------------------------- Marc van Kempen BowTie Technology Email: marc@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ---------------------------------------------------- From owner-freebsd-emulation Tue Aug 5 03:03:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA04560 for emulation-outgoing; Tue, 5 Aug 1997 03:03:09 -0700 (PDT) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id DAA04554 for ; Tue, 5 Aug 1997 03:03:03 -0700 (PDT) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 28000 on Tue, 5 Aug 1997 10:03:00 GMT; id KAA28000 efrom: marc@nietzsche.bowtie.nl; eto: emulation@freebsd.org Received: from localhost (localhost [127.0.0.1]) by nietzsche.bowtie.nl (8.8.2/8.7.3) with ESMTP id MAA05273 for ; Tue, 5 Aug 1997 12:03:17 +0200 (MET DST) Message-Id: <199708051003.MAA05273@nietzsche.bowtie.nl> X-Mailer: exmh version 1.6.7 5/3/96 To: emulation@freebsd.org Subject: Re: semget in linux emulation? In-reply-to: marc's message of Tue, 05 Aug 1997 11:22:13 +0200. <199708050922.LAA04626@nietzsche.bowtie.nl> Reply-to: marc@bowtie.nl Date: Tue, 05 Aug 1997 12:03:17 +0200 From: Marc van Kempen Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Hi, > > I have a Linux application that I want to run on a > 2.2.2 system, but it seems to use shared memory. > I config'ed shared memory in my kernel. > > The application complains about a failing SEMGET, > and when I looked in the linux_ipc.c, the call returns > ENOSYS, does this mean that the semget won't work???? > Grrr, I hate to follow up on my own emails, but this is ofcourse about semaphores and not about shared memory calls, both of which have been config'ed in the kernel: options SYSVSHM options SYSVSEM options SYSVMSG options SHMMAXPGS=4096 options "SHMSEG=128" > If so, is anyone working on fixing this? Or, how difficult > is it to add? > ---------------------------------------------------- Marc van Kempen BowTie Technology Email: marc@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ---------------------------------------------------- From owner-freebsd-emulation Tue Aug 5 03:19:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA04945 for emulation-outgoing; Tue, 5 Aug 1997 03:19:52 -0700 (PDT) Received: from mail12.digital.com (mail12.digital.com [192.208.46.20]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA04940 for ; Tue, 5 Aug 1997 03:19:48 -0700 (PDT) From: garyj@frt.dec.com Received: from cssmuc.frt.dec.com (cssmuc.frt.dec.com [16.186.96.161]) by mail12.digital.com (8.7.5/UNX 1.5/1.0/WV) with SMTP id GAA27502 for ; Tue, 5 Aug 1997 06:14:55 -0400 (EDT) Received: from localhost by cssmuc.frt.dec.com; (5.65v3.2/1.1.8.2/14Nov95-0232PM) id AA20140; Tue, 5 Aug 1997 12:14:54 +0200 Message-Id: <9708051014.AA20140@cssmuc.frt.dec.com> X-Mailer: exmh version 1.6.4 10/10/95 To: emulation@FreeBSD.ORG In-Reply-To: Message from Marc van Kempen of Tue, 05 Aug 97 11:22:13 +0200. Reply-To: gjennejohn@frt.dec.com Subject: Re: semget in linux emulation? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Aug 97 12:14:54 +0200 X-Mts: smtp Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk marc@bowtie.nl writes: > > Hi, > > I have a Linux application that I want to run on a > 2.2.2 system, but it seems to use shared memory. > I config'ed shared memory in my kernel. > > The application complains about a failing SEMGET, > and when I looked in the linux_ipc.c, the call returns > ENOSYS, does this mean that the semget won't work???? > > If so, is anyone working on fixing this? Or, how difficult > is it to add? > it wants semaphores, not shared memory. Did you compile that in ? --- Gary Jennejohn (work) gjennejohn@frt.dec.com (home) Gary.Jennejohn@munich.netsurf.de (play) gj@freebsd.org From owner-freebsd-emulation Tue Aug 5 04:14:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA07723 for emulation-outgoing; Tue, 5 Aug 1997 04:14:15 -0700 (PDT) Received: from atlantis.ping.at (a013.static.Vienna.AT.EU.net [193.154.186.13]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA07718 for ; Tue, 5 Aug 1997 04:14:10 -0700 (PDT) Received: from atlantis (localhost.ping.at [127.0.0.1]) by atlantis.ping.at (8.8.6/8.6.12) with SMTP id NAA01102; Tue, 5 Aug 1997 13:13:35 +0200 (MEST) Message-ID: <33E70ADF.41C67EA6@ping.at> Date: Tue, 05 Aug 1997 13:13:35 +0200 From: "Helmut F. Wirth" X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-STABLE i386) MIME-Version: 1.0 To: emulation@freebsd.org Subject: Dos emulation, Rundos Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello, I would like to know about the status of the rundos emulation. Any news? Regards -- Helmut F. Wirth Email: hfwirth@ping.at From owner-freebsd-emulation Tue Aug 5 07:33:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA15970 for emulation-outgoing; Tue, 5 Aug 1997 07:33:36 -0700 (PDT) Received: from usc.usc.unal.edu.co ([200.21.26.65]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id HAA15954 for ; Tue, 5 Aug 1997 07:33:20 -0700 (PDT) Received: from unalmodem07.usc.unal.edu.co by usc.usc.unal.edu.co (AIX 4.1/UCB 5.64/4.03) id AA17334; Tue, 5 Aug 1997 10:27:16 -0400 Message-Id: <33E7548D.BE7@fps.biblos.unal.edu.co> Date: Tue, 05 Aug 1997 09:27:57 -0700 From: "Pedro Giffuni S," Organization: Universidad Nacional de Colombia X-Mailer: Mozilla 3.01Gold [it] (Win16; I) Mime-Version: 1.0 To: "Helmut F. Wirth" Cc: emulation@freebsd.org Subject: Re: Dos emulation, Rundos References: <33E70ADF.41C67EA6@ping.at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Helmut F. Wirth wrote: > > Hello, > I would like to know about the status of the rundos emulation. > Any news? > Under 2.2.x it works fine, look at the experimental directory, for doscmd and apply the VM86 patches. Pedro. > Regards > -- > Helmut F. Wirth > Email: hfwirth@ping.at From owner-freebsd-emulation Wed Aug 6 04:54:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA18700 for emulation-outgoing; Wed, 6 Aug 1997 04:54:21 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id EAA18695; Wed, 6 Aug 1997 04:54:19 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Wed, 6 Aug 1997 7:53:40 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA24183; Wed, 6 Aug 97 07:53:38 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id HAA24471; Wed, 6 Aug 1997 07:50:55 -0400 Message-Id: <19970806075054.63235@ct.picker.com> Date: Wed, 6 Aug 1997 07:50:54 -0400 From: Randall Hopper To: George Michaelson Cc: current@freebsd.org, emulation@freebsd.org Subject: Re: modifying boot mgrs FROM FREEBSD References: <199708060151.LAA18687@broon.off.connect.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199708060151.LAA18687@broon.off.connect.com.au>; from George Michaelson on Wed, Aug 06, 1997 at 11:51:46AM +1000 Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk George Michaelson: |So how can you tune the bootmgrs from within FreeBSD? Sure, lotsa recipes |to drop to DOS and run but given the damn thing is actually |written by sysinstall (albiet via weird magic in wizards.c returning hex |in structs) there really should be a way to tweak/frob from inside Unix |and modify the 1-2 bits needed to flag what the preferred booting option is. One thing you might look at is running these DOS multiboot utilities in FreeBSD inside PCEmu or DOSCMD. If the bootmanager uses the BIOS to do all its reading and writing, and if those ISRs are emulated correctly, it just might work. Caveat: Note that I haven't tried this nor heard of anyone that has (...but now that the thought's occurred to me, I'll put it on my list :-). I'd definitely try this first with a small file hard disk image inside a UFS (when not running as root and with the normal, restricting permissions on your /dev files), but if it appears to work successfully, if your system is backed up, and if you don't mind living on the edge, point C: at your raw wd0 or sd0 and give it a shot. (I'm Ccing emulation because I really don't know much about doscmd or pcemu's capabilities and limitations -- just started working with them a few days ago ... so please allow time for some of the experts to follow-up before trying this). Randall Hopper From owner-freebsd-emulation Wed Aug 6 06:20:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA23743 for emulation-outgoing; Wed, 6 Aug 1997 06:20:18 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA23737; Wed, 6 Aug 1997 06:20:12 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id WAA08867; Wed, 6 Aug 1997 22:50:02 +0930 (CST) From: Michael Smith Message-Id: <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> Subject: Re: modifying boot mgrs FROM FREEBSD In-Reply-To: <19970806075054.63235@ct.picker.com> from Randall Hopper at "Aug 6, 97 07:50:54 am" To: rhh@ct.picker.com (Randall Hopper) Date: Wed, 6 Aug 1997 22:50:01 +0930 (CST) Cc: ggm@connect.com.au, current@FreeBSD.ORG, emulation@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Randall Hopper stands accused of saying: > George Michaelson: > |So how can you tune the bootmgrs from within FreeBSD? Sure, lotsa recipes "tune"? Can you be more specific? > One thing you might look at is running these DOS multiboot utilities in > FreeBSD inside PCEmu or DOSCMD. If the bootmanager uses the BIOS to do all > its reading and writing, and if those ISRs are emulated correctly, it just > might work. For obvious reasons, none of the DOS emulators allow the emulated process direct access to the disk. ie. No, it won't work. ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[ From owner-freebsd-emulation Wed Aug 6 15:22:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA24098 for emulation-outgoing; Wed, 6 Aug 1997 15:22:54 -0700 (PDT) Received: from broon.off.connect.com.au (broon.off.connect.com.au [203.63.69.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA24089; Wed, 6 Aug 1997 15:22:50 -0700 (PDT) Received: from connect.com.au (ggm@localhost) by broon.off.connect.com.au with ESMTP id IAA27543 (8.8.5/IDA-1.6); Thu, 7 Aug 1997 08:21:38 +1000 (EST) To: Michael Smith cc: rhh@ct.picker.com (Randall Hopper), current@freebsd.org, emulation@freebsd.org Subject: Re: modifying boot mgrs FROM FREEBSD In-reply-to: Your message of "Wed, 06 Aug 1997 22:50:01 +0930." <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> Date: Thu, 07 Aug 1997 08:21:37 +1000 Message-ID: <27541.870906097@connect.com.au> From: George Michaelson Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Randall Hopper stands accused of saying: > George Michaelson: > |So how can you tune the bootmgrs from within FreeBSD? Sure, lotsa recipes "tune"? Can you be more specific? Four things: 1) at next boot, which of the menu of boot choices is to be the default ie under reboot, do you boot back into THIS unix or into W95, DOS, NetBSD, Linux etc 2) change the flag marking if the MBR is to be updated to reflect the current boot choice as the live preference. This is different to the above which states WHICH secondary boot is to be used, this marks if any alternate boot is actually taken because of keyboard selection, that the selection becomes the active default boot 3) change the textual stringprompts against each option 4) change which bootable partitions appear in the menu of choices -George From owner-freebsd-emulation Wed Aug 6 15:55:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA25817 for emulation-outgoing; Wed, 6 Aug 1997 15:55:10 -0700 (PDT) Received: from zippy.dyn.ml.org (garbanzo@sfmax1-6.ppp.wenet.net [206.80.13.6]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA25803; Wed, 6 Aug 1997 15:55:05 -0700 (PDT) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.8.6/8.8.5) with SMTP id PAA00801; Wed, 6 Aug 1997 15:54:33 -0700 (PDT) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Wed, 6 Aug 1997 15:54:32 -0700 (PDT) From: Alex X-Sender: garbanzo@zippy.dyn.ml.org To: George Michaelson cc: Michael Smith , Randall Hopper , current@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: modifying boot mgrs FROM FREEBSD In-Reply-To: <27541.870906097@connect.com.au> 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 On Thu, 7 Aug 1997, George Michaelson wrote: > Four things: > > 1) at next boot, which of the menu of boot choices is to be the > default ie under reboot, do you boot back into THIS unix or into > W95, DOS, NetBSD, Linux etc > > 2) change the flag marking if the MBR is to be updated to reflect > the current boot choice as the live preference. This is different > to the above which states WHICH secondary boot is to be used, this > marks if any alternate boot is actually taken because of keyboard > selection, that the selection becomes the active default boot > > 3) change the textual stringprompts against each option > > 4) change which bootable partitions appear in the menu of choices > > -George Speaking of the boot manager, I noticed that when I installed Solaris, then BSD's manager, it detected the Solaris partitions partially correctly as type "Linux" (Solaris uses the same id type as Linux Swap), however my Fat32 partitions and Linux Native partitions show up as "???". Go figure - alex From owner-freebsd-emulation Wed Aug 6 16:06:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA26353 for emulation-outgoing; Wed, 6 Aug 1997 16:06:58 -0700 (PDT) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA26346; Wed, 6 Aug 1997 16:06:51 -0700 (PDT) Received: from pauling.salk.edu (pauling [198.202.70.108]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id QAA19114; Wed, 6 Aug 1997 16:06:13 -0700 (PDT) Date: Wed, 6 Aug 1997 16:06:09 -0700 (PDT) From: Tom Bartol To: George Michaelson cc: Michael Smith , Randall Hopper , current@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: modifying boot mgrs FROM FREEBSD In-Reply-To: <27541.870906097@connect.com.au> 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 Would it be too weird to do the following quick and dirty thing completely without the need for any documentation on which boot manager you're using: 1) setup your boot manager from dos or wherever necessary to do the initial install. 2) boot into freebsd or linux and use dd to read the boot blocks off the disk and into a file. 3) boot back into whatever environment can be used to "tune" your boot manager and do whatever "tuning" strikes your fancy. 4) boot back into freebsd or linux and use dd to read the modified boot blocks into a second file. 5) use diff or cmp to find out what effect your "tuning" had on the boot blocks and try to deduce the logic (i.e. reverse engineer) the mods. Hopefully this will not be very complicated. 6) you might then be able to use patch on your snap-shot copy of the boot blocks to "tune" it from within freebsd of linux. If you're really confident of your work you can then use dd to write your "tuned" boot blocks back to where they belong. Just a thought... Tom On Thu, 7 Aug 1997, George Michaelson wrote: > Four things: > > 1) at next boot, which of the menu of boot choices is to be the > default ie under reboot, do you boot back into THIS unix or into > W95, DOS, NetBSD, Linux etc > > 2) change the flag marking if the MBR is to be updated to reflect > the current boot choice as the live preference. This is different > to the above which states WHICH secondary boot is to be used, this > marks if any alternate boot is actually taken because of keyboard > selection, that the selection becomes the active default boot > > 3) change the textual stringprompts against each option > > 4) change which bootable partitions appear in the menu of choices > > -George > From owner-freebsd-emulation Wed Aug 6 18:20:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA04354 for emulation-outgoing; Wed, 6 Aug 1997 18:20:38 -0700 (PDT) Received: from mail.island.net.au (mail.island.net.au [203.102.137.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA04336 for ; Wed, 6 Aug 1997 18:20:31 -0700 (PDT) Received: from scotland.island.net.au (scotland.island.net.au [203.102.137.2]) by mail.island.net.au (8.8.3/8.8.3) with SMTP id LAA05109 for ; Thu, 7 Aug 1997 11:20:29 +1000 (EST) Message-Id: <3.0.1.32.19970807112028.006e809c@mail.island.net.au> X-Sender: hugh@mail.island.net.au X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Thu, 07 Aug 1997 11:20:28 +1000 To: freebsd-emulation@freebsd.org From: Hugh Blandford Subject: Charter Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I noticed that the charter of this list does not specifically mention SCO. Does this mean that there is no SCO emulation in FreeBSD? What is the iBCS2 package in 2.2.2-Release do? Thanks, Hugh. From owner-freebsd-emulation Wed Aug 6 19:04:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA09348 for emulation-outgoing; Wed, 6 Aug 1997 19:04:31 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA09343; Wed, 6 Aug 1997 19:04:27 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Wed, 6 Aug 1997 22:03:10 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA00945; Wed, 6 Aug 97 22:03:06 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id WAA29573; Wed, 6 Aug 1997 22:00:32 -0400 Message-Id: <19970806220031.07191@ct.picker.com> Date: Wed, 6 Aug 1997 22:00:31 -0400 From: Randall Hopper To: Michael Smith Cc: ggm@connect.com.au, current@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199708061320.WAA08867@genesis.atrad.adelaide.edu.au>; from Michael Smith on Wed, Aug 06, 1997 at 10:50:01PM +0930 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Michael Smith: |Randall Hopper stands accused of saying: |> George Michaelson: |> |So how can you tune the bootmgrs from within FreeBSD? Sure, lotsa recipes | |> One thing you might look at is running these DOS multiboot utilities in |> FreeBSD inside PCEmu or DOSCMD. If the bootmanager uses the BIOS to do all |> its reading and writing, and if those ISRs are emulated correctly, it just |> might work. | |For obvious reasons, none of the DOS emulators allow the emulated |process direct access to the disk. ie. No, it won't work. Hmmm, well with doscmd tonight and "assign hard /dev/rwd0 621 64 63" doscmd happily booted my OS/BS2.0 boot manager right off my primary hard drive's abs sectors 1-5. I was impressed! (/dev/rwd0 set read-only of course :-) ...and it kept on going. Upon selecting the DOS/Windoze option, it chained right into the DOS 6.2 multiboot menu, and then after selecting my "Previous Version of MS-DOS" option to get me into cmd-line DOS, and bypassing the CONFIG.SYS and AUTOEXEC.BAT files, and specifying the path to COMMAND.COM -- hey! I was at the DOS prompt browsin' around my hard drive using my hard drive's DOS! Pressing my luck, I then brought up my DOS hard disk manager -- and it worked. Then I ran WordStar 4.0, which I use on occasion, started editing a document on A: (mapped to fd0), and so far so good. The fun on that boot stopped when I tried to type the first character in the document and doscmd said: pushl %eax unsupported instruction (PRESS ANY MOUSE BUTTON TO exit) Man that's cool! Fun as any video game I've played lately. All inside FreeBSD and amazingly fast. Guess that's the gain for emulating just the environment, and not the CPU too. Nice work guys! Now to try out more of the DOS programs I flip over to use every so often. Would love to be able to run all these in FreeBSD. I also need to figure out how to run doscmd in gdb. I rebuild libkvm and gdb for the new kernel, so that's done. But I'm not sure how to "hook in" and set breakpoints inside doscmd.kernel after its read and control is transfered to it by doscmd. I played with the .gdbinit in the pkg but no luck. Randall Hopper From owner-freebsd-emulation Wed Aug 6 21:07:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA14684 for emulation-outgoing; Wed, 6 Aug 1997 21:07:35 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA14679 for ; Wed, 6 Aug 1997 21:07:30 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id NAA12947; Thu, 7 Aug 1997 13:36:09 +0930 (CST) From: Michael Smith Message-Id: <199708070406.NAA12947@genesis.atrad.adelaide.edu.au> Subject: Re: Charter In-Reply-To: <3.0.1.32.19970807112028.006e809c@mail.island.net.au> from Hugh Blandford at "Aug 7, 97 11:20:28 am" To: hugh@island.net.au (Hugh Blandford) Date: Thu, 7 Aug 1997 13:36:08 +0930 (CST) Cc: freebsd-emulation@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hugh Blandford stands accused of saying: > I noticed that the charter of this list does not specifically mention SCO. > Does this mean that there is no SCO emulation in FreeBSD? What is the > iBCS2 package in 2.2.2-Release do? SCO have a number of ABIs, one of which is iBCS2. We only support the iBCS2 ABI, with a number of small SCO extensions. > Hugh. -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[ From owner-freebsd-emulation Thu Aug 7 16:15:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA06279 for emulation-outgoing; Thu, 7 Aug 1997 16:15:59 -0700 (PDT) Received: from usc.usc.unal.edu.co ([200.21.26.65]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id QAA06272 for ; Thu, 7 Aug 1997 16:15:53 -0700 (PDT) Received: from unalmodem09.usc.unal.edu.co by usc.usc.unal.edu.co (AIX 4.1/UCB 5.64/4.03) id AA17198; Thu, 7 Aug 1997 19:10:24 -0400 Message-Id: <33EA058A.42B9@fps.biblos.unal.edu.co> Date: Thu, 07 Aug 1997 10:28:31 -0700 From: "Pedro Giffuni S," Organization: Universidad Nacional de Colombia X-Mailer: Mozilla 3.01Gold [it] (Win16; I) Mime-Version: 1.0 To: Randall Hopper Cc: emulation@freebsd.org Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I also need to figure out how to run doscmd in gdb. I rebuild libkvm and > gdb for the new kernel, so that's done. But I'm not sure how to "hook in" > and set breakpoints inside doscmd.kernel after its read and control is > transfered to it by doscmd. I played with the .gdbinit in the pkg but no > luck. > I think this is not really necessary: doscmd has a debugging option that generates more information for developers, but usually the on-line messages are sufficient to know what is missing. Pedro. > Randall Hopper From owner-freebsd-emulation Thu Aug 7 16:51:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA07893 for emulation-outgoing; Thu, 7 Aug 1997 16:51:19 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id QAA07884 for ; Thu, 7 Aug 1997 16:51:16 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Thu, 7 Aug 1997 19:50:32 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA02480; Thu, 7 Aug 97 19:50:30 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id TAA04512; Thu, 7 Aug 1997 19:47:56 -0400 Message-Id: <19970807194755.37948@ct.picker.com> Date: Thu, 7 Aug 1997 19:47:55 -0400 From: Randall Hopper To: "Pedro Giffuni S," Cc: emulation@freebsd.org Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <33EA058A.42B9@fps.biblos.unal.edu.co>; from Pedro Giffuni S, on Thu, Aug 07, 1997 at 10:28:31AM -0700 Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Pedro Giffuni S,: |Randall Hopper wrote: |> |> I also need to figure out how to run doscmd in gdb. I rebuild libkvm and |> gdb for the new kernel, so that's done. But I'm not sure how to "hook in" |> and set breakpoints inside doscmd.kernel after its read and control is |> transfered to it by doscmd. I played with the .gdbinit in the pkg but no |> luck. |> |I think this is not really necessary: doscmd has a debugging option that |generates more information for developers, but usually the on-line |messages are sufficient to know what is missing. Ok. Mostly I just wanted to step through some of it to help get a faster line on how the internals work. I figured it'd be a easier than picking through the source and printfs. Is there a rough architecture overview or some notes/scribbles lying around anywhere on-line that might give someone a head start with this? Thanks, Randall From owner-freebsd-emulation Thu Aug 7 17:28:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA09943 for emulation-outgoing; Thu, 7 Aug 1997 17:28:59 -0700 (PDT) Received: from kithrup.com (kithrup.com [205.179.156.40]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id RAA09938 for ; Thu, 7 Aug 1997 17:28:57 -0700 (PDT) Received: (from sef@localhost) by kithrup.com (8.6.8/8.6.6) id RAA17158; Thu, 7 Aug 1997 17:28:47 -0700 Date: Thu, 7 Aug 1997 17:28:47 -0700 From: Sean Eric Fagan Message-Id: <199708080028.RAA17158@kithrup.com> To: pgiffuni@fps.biblos.unal.edu.co, rhh@ct.picker.com Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) Cc: emulation@FreeBSD.ORG Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > |> I also need to figure out how to run doscmd in gdb. I rebuild libkvm and > |> gdb for the new kernel, so that's done. But I'm not sure how to "hook in" > |> and set breakpoints inside doscmd.kernel after its read and control is > |> transfered to it by doscmd. I played with the .gdbinit in the pkg but no > |> luck. After you jump through the (rather annoying) jump into doscmd.kernel, you can do: symbol-file doscmd.kernel That will reload the symbol table. I've used it before. Sean. From owner-freebsd-emulation Thu Aug 7 18:05:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA12206 for emulation-outgoing; Thu, 7 Aug 1997 18:05:46 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA12192 for ; Thu, 7 Aug 1997 18:05:41 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Thu, 7 Aug 1997 21:04:35 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA03376; Thu, 7 Aug 97 21:04:32 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id VAA04630; Thu, 7 Aug 1997 21:01:58 -0400 Message-Id: <19970807210157.52853@ct.picker.com> Date: Thu, 7 Aug 1997 21:01:57 -0400 From: Randall Hopper To: Sean Eric Fagan Cc: emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <199708080028.RAA17158@kithrup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199708080028.RAA17158@kithrup.com>; from Sean Eric Fagan on Thu, Aug 07, 1997 at 05:28:47PM -0700 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Sean Eric Fagan: |> |> I also need to figure out how to run doscmd in gdb. I rebuild | |After you jump through the (rather annoying) jump into doscmd.kernel, you |can do: | | symbol-file doscmd.kernel | |That will reload the symbol table. I've used it before. Thanks for the reply. I'd tried all sorts of variations with step/jump/symbol-file (loading before, loading after) and so far no luck. Could you point out what I'm doing wrong here? This gets the DOSCMD window up, and I can ^C it, but then even after loading doscmd.kernel, GDB is lost. Randall > gdb doscmd GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc... (gdb) break 94 Breakpoint 1 at 0x2760: file doscmd_loader.c, line 94. (gdb) run -x Starting program: /share/home/rhh/DOSCMD/doscmd-970320/freebsd/doscmd -x Breakpoint 1, main (argc=2, argv=0xefbfd384, environ=0xefbfd390) at doscmd_loader.c:94 94 (*entry_point)(argc, argv, environ); (gdb) delete 1 (gdb) handle SIGBUS pass nostop noprint Signal Stop Print Pass to program Description SIGBUS No No Yes Bus error (gdb) step ^C Program received signal SIGINT, Interrupt. 0x18cc27 in ?? () (gdb) symbol-file doscmd.kernel Load new symbol table from "doscmd.kernel"? (y or n) y Reading symbols from doscmd.kernel...done. (gdb) where reading register eip (#8): No such process. From owner-freebsd-emulation Thu Aug 7 22:10:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA22996 for emulation-outgoing; Thu, 7 Aug 1997 22:10:32 -0700 (PDT) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA22988 for ; Thu, 7 Aug 1997 22:10:29 -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 AAA27210; Fri, 8 Aug 1997 00:19:09 -0500 (CDT) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id AAA06820; Fri, 8 Aug 1997 00:10:12 -0500 Message-ID: <19970808001011.36692@right.PCS> Date: Fri, 8 Aug 1997 00:10:11 -0500 From: Jonathan Lemon To: Randall Hopper Cc: "Pedro Giffuni S," , emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> <19970807194755.37948@ct.picker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <19970807194755.37948@ct.picker.com>; from Randall Hopper on Aug 08, 1997 at 07:47:55PM -0400 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Aug 08, 1997 at 07:47:55PM -0400, Randall Hopper wrote: > > Ok. Mostly I just wanted to step through some of it to help get a faster > line on how the internals work. I figured it'd be a easier than picking > through the source and printfs. > > Is there a rough architecture overview or some notes/scribbles lying around > anywhere on-line that might give someone a head start with this? Not really. However, here's a short overview: We create a single process for doscmd, and reserve the lower 1MB for DOS to run in. Since you can't access more than 1MB in vm86 mode, the doscmd executable itself is protected from DOS. This 1MB region is then set up to look similar to what the system BIOS would leave a real machine looking like, (setting up the interrupt descriptor table other data structures) before actually turning control over to the DOS program. In a real machine, BIOS services are provided via INTn calls. All INTn calls, and several other instructions, are trapped under vm86 mode, and cause a fault to the kernel. The kernel portion of the emulator recognizes this, packages up the state of the vm86 machine at the time of the fault, and then turns control over to doscmd by sending it a SIGBUS signal. Doscmd then catches the SIGBUS in it's signal handler, and examines the saved vm86 state to see what caused the fault. If it is an INTn call, then it essentially emulates the work that the BIOS would do. It also does the work of several other instructions that vm86 is not permitted to do. Callbacks to doscmd are also permitted by executing a HLT instruction in vm86 mode, then running a function in doscmd based on the address of the HLT instruction. We don't want to call the system BIOS directly, since it attempts to do nasty things like turning off interrupts for a long time, and mucking around with the I/O ports. After doscmd is done, it returns from it's signal handler, at which point the kernel re-loads the state of the vm86 machine and continues running. That's a really simple overview of how doscmd works, while glossing over a lot of details. It should be enough to give you a 'head-start', or at least tell you where to look. If you already knew all of this... ah, well. -- Jonathan From owner-freebsd-emulation Thu Aug 7 22:16:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA23311 for emulation-outgoing; Thu, 7 Aug 1997 22:16:24 -0700 (PDT) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA23304 for ; Thu, 7 Aug 1997 22:16:20 -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 AAA27220; Fri, 8 Aug 1997 00:26:26 -0500 (CDT) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id AAA06923; Fri, 8 Aug 1997 00:17:28 -0500 Message-ID: <19970808001728.40702@right.PCS> Date: Fri, 8 Aug 1997 00:17:28 -0500 From: Jonathan Lemon To: "Pedro Giffuni S," Cc: Randall Hopper , emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <33EA058A.42B9@fps.biblos.unal.edu.co>; from Pedro Giffuni S, on Aug 08, 1997 at 10:28:31AM -0700 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Aug 08, 1997 at 10:28:31AM -0700, Pedro Giffuni S, wrote: > run there) Um, well it does, actually. I'm embarrassed to admit that I've been essentially been sitting on the code without doing too much with it. The -current kernel patches and corresponding doscmd, can be grabbed from ftp://sumatra.americantv.com/pub. I'm going to send a note to John Dyson as well - he's expressed interested in integrating these into -current. Note that this version of doscmd will not run on 2.2, as the kernel support has changed slightly. I'll update the 2.2 kernel patches probably this weekend. -- Jonathan From owner-freebsd-emulation Fri Aug 8 06:34:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA14623 for emulation-outgoing; Fri, 8 Aug 1997 06:34:21 -0700 (PDT) Received: from pagh.umd.edu (pagh.umd.edu [128.8.202.77]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id GAA14606 for ; Fri, 8 Aug 1997 06:34:17 -0700 (PDT) Received: by pagh.umd.edu (940816.SGI.8.6.9/940406.SGI) for emulation@FreeBSD.ORG id JAA01969; Fri, 8 Aug 1997 09:35:53 -0400 From: "Jean-Marc Henriette" Message-Id: <9708080935.ZM1967@pagh.umd.edu> Date: Fri, 8 Aug 1997 09:35:52 -0400 In-Reply-To: "Pedro Giffuni S," "Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD)" (Aug 7, 10:28) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> X-Mailer: Z-Mail (3.2.1 6apr95 MediaMail) To: emulation@FreeBSD.ORG Subject: unsubscribe Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk unsubscribe From owner-freebsd-emulation Fri Aug 8 15:44:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA19624 for emulation-outgoing; Fri, 8 Aug 1997 15:44:10 -0700 (PDT) Received: from atlantis.ping.at (a013.static.Vienna.AT.EU.net [193.154.186.13]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA19615 for ; Fri, 8 Aug 1997 15:44:04 -0700 (PDT) Received: from atlantis (localhost.ping.at [127.0.0.1]) by atlantis.ping.at (8.8.6/8.6.12) with SMTP id AAA00274; Sat, 9 Aug 1997 00:43:37 +0200 (MEST) Message-ID: <33EBA119.41C67EA6@ping.at> Date: Sat, 09 Aug 1997 00:43:37 +0200 From: "Helmut F. Wirth" X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-STABLE i386) MIME-Version: 1.0 To: Jonathan Lemon CC: emulation@freebsd.org Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> <19970808001728.40702@right.PCS> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jonathan Lemon wrote: > > Note that this version of doscmd will not run on 2.2, as the kernel support > has changed slightly. I'll update the 2.2 kernel patches probably this > weekend. > -- > Jonathan Jonathan, I would be very interested to try the new doscmd with my 2.2-STABLE. I have played around with the version from 2.2-RELEASE some days now. I am going to look at the Linux doscmd code as well, it seems to be further developed. Some questions: * In the 2.2 sources a VGA bios is mentioned as being worked on. What is its status ? * Mouse support seems to be partially done, is this the current version or is work ongoing there ? * XMS support is started too, what is the status ? * Anybody thought about EMS (LIM EMS 4.0) emulation ? * Is it planned to have DPMI support, it would enable a wide variety of newer and powerful DOS programs to run ? * Graphics (VESA ?) support, I think this is connected to the first question about the VGA BIOS above ? * Graphics support inside the X11 Window is not planned, according to the TODO list. I realize it would be rather slow, but I think it could be done. Is there a place where to get actual sources, or some mechanism to send back changes/additions to the code ? Thanks Helmut -- Helmut F. Wirth Email: hfwirth@ping.at From owner-freebsd-emulation Fri Aug 8 16:05:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA21181 for emulation-outgoing; Fri, 8 Aug 1997 16:05:12 -0700 (PDT) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA21171 for ; Fri, 8 Aug 1997 16:05: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 SAA28656; Fri, 8 Aug 1997 18:15:37 -0500 (CDT) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id SAA21996; Fri, 8 Aug 1997 18:06:11 -0500 Message-ID: <19970808180611.34384@right.PCS> Date: Fri, 8 Aug 1997 18:06:11 -0500 From: Jonathan Lemon To: "Helmut F. Wirth" Cc: emulation@freebsd.org Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> <19970808001728.40702@right.PCS> <33EBA119.41C67EA6@ping.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <33EBA119.41C67EA6@ping.at>; from Helmut F. Wirth on Aug 08, 1997 at 12:43:37AM +0200 Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Aug 08, 1997 at 12:43:37AM +0200, Helmut F. Wirth wrote: > Jonathan Lemon wrote: > > > > Note that this version of doscmd will not run on 2.2, as the kernel support > > has changed slightly. I'll update the 2.2 kernel patches probably this > > weekend. > > -- > > Jonathan > > Jonathan, > I would be very interested to try the new doscmd with my 2.2-STABLE. > > I have played around with the version from 2.2-RELEASE some days now. > I am going to look at the Linux doscmd code as well, it seems to be > further developed. I think you mean the Linux dosemu project. Yes, they emulate much more of an AT machine, and as I stated earlier, I was considering attempting to port it to FreeBSD. However... well, their code gives me a headache. > Some questions: > * In the 2.2 sources a VGA bios is mentioned as being worked on. What > is its status ? > * Mouse support seems to be partially done, is this the current version > or is work ongoing there ? > * XMS support is started too, what is the status ? > * Anybody thought about EMS (LIM EMS 4.0) emulation ? > * Is it planned to have DPMI support, it would enable a wide variety > of newer and powerful DOS programs to run ? > * Graphics (VESA ?) support, I think this is connected to the first > question about the VGA BIOS above ? > * Graphics support inside the X11 Window is not planned, according to > the TODO list. I realize it would be rather slow, but I think it > could be done. I think that some people have expressed interest in the VGA bios and XMS support, but I haven't seen any results yet. I'd be interested in getting DPMI working, but I think that it requires a 16/32 bit protected mode environment, which we don't have at the moment. I'm looking at this, but am still trying to really understand DMPI. TBH, I don't think that there's really been much work on doscmd for a while, it would be nice to start getting the ball rolling. > Is there a place where to get actual sources, or some mechanism to > send back changes/additions to the code ? Changes/additions would probably best be posted on this list, I think. -- Jonathan From owner-freebsd-emulation Fri Aug 8 17:48:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA26984 for emulation-outgoing; Fri, 8 Aug 1997 17:48:29 -0700 (PDT) Received: from micron.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA26973 for ; Fri, 8 Aug 1997 17:48:24 -0700 (PDT) Received: (from mini@localhost) by micron.efn.org (8.8.5/8.8.5) id RAA00667; Fri, 8 Aug 1997 17:48:32 -0700 (PDT) Message-ID: <19970808174831.24105@micron.efn.org> Date: Fri, 8 Aug 1997 17:48:31 -0700 From: Jonathan Mini To: "Helmut F. Wirth" Cc: Jonathan Lemon , emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) Reply-To: Jonathan Mini References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> <19970808001728.40702@right.PCS> <33EBA119.41C67EA6@ping.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76e In-Reply-To: <33EBA119.41C67EA6@ping.at>; from Helmut F. Wirth on Sat, Aug 09, 1997 at 12:43:37AM +0200 X-files: The Truth is Out There. Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Helmut F. Wirth stands accused of saying : > * Graphics support inside the X11 Window is not planned, according to > the TODO list. I realize it would be rather slow, but I think it > could be done. I would like to see that implemented. :) -- Jonathan Mini (j_mini@efn.org) ... bleakness ... desolation ... plastic forks ... From owner-freebsd-emulation Fri Aug 8 17:55:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA27225 for emulation-outgoing; Fri, 8 Aug 1997 17:55:52 -0700 (PDT) Received: from micron.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA27220 for ; Fri, 8 Aug 1997 17:55:47 -0700 (PDT) Received: (from mini@localhost) by micron.efn.org (8.8.5/8.8.5) id RAA00683; Fri, 8 Aug 1997 17:56:15 -0700 (PDT) Message-ID: <19970808175614.07560@micron.efn.org> Date: Fri, 8 Aug 1997 17:56:14 -0700 From: Jonathan Mini To: Jonathan Lemon Cc: "Helmut F. Wirth" , emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) Reply-To: Jonathan Mini References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> <19970808001728.40702@right.PCS> <33EBA119.41C67EA6@ping.at> <19970808180611.34384@right.PCS> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76e In-Reply-To: <19970808180611.34384@right.PCS>; from Jonathan Lemon on Fri, Aug 08, 1997 at 06:06:11PM -0500 X-files: The Truth is Out There. Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jonathan Lemon stands accused of saying : > I'd be interested in getting DPMI working, but I think that it requires > a 16/32 bit protected mode environment, which we don't have at the moment. > I'm looking at this, but am still trying to really understand DMPI. What will be needed for DPMI support could be done fiarly easily, all you need to do is make a way to make a 32bit TSS that will do two things for you : 1) don't pay attention to FreeBSD's normal syscall method. 2) pass INTn attempts, and all other traps, to the doscmd kernel, instead of the normal handlers :) ... THe DPMI host only needs to make a virtual machine who's first 1M is the v86 task's mappings, and then provide whatever amount of memory for XMS it feels like. :) It can deny cr0 access, (most DPMI host do) which means you probably won't be able to run Win95, but most certainly Win 3.1 (will take a little work with memory managers) > TBH, I don't think that there's really been much work on doscmd for a while, > it would be nice to start getting the ball rolling. > > > Is there a place where to get actual sources, or some mechanism to > > send back changes/additions to the code ? > > Changes/additions would probably best be posted on this list, I think. > -- > Jonathan -- Jonathan Mini (j_mini@efn.org) ... bleakness ... desolation ... plastic forks ... From owner-freebsd-emulation Fri Aug 8 18:30:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA28918 for emulation-outgoing; Fri, 8 Aug 1997 18:30:46 -0700 (PDT) Received: from pegasus.com (pegasus.com [206.127.225.31]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA28906 for ; Fri, 8 Aug 1997 18:30:39 -0700 (PDT) Received: by pegasus.com (8.6.8/PEGASUS-2.2) id PAA08057; Fri, 8 Aug 1997 15:29:37 -1000 Date: Fri, 8 Aug 1997 15:29:37 -1000 From: richard@pegasus.com (Richard Foulk) Message-Id: <199708090129.PAA08057@pegasus.com> In-Reply-To: Jonathan Mini "Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD)" (Aug 8, 5:48pm) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: Jonathan Mini , "Helmut F. Wirth" Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) Cc: Jonathan Lemon , emulation@FreeBSD.ORG Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > * Graphics support inside the X11 Window is not planned, according to > the TODO list. I realize it would be rather slow, but I think it > could be done. I wouldn't have to be slow. You have more horsepower on the X side than on the DOS side. It has the potential of being faster I think. Richard From owner-freebsd-emulation Sat Aug 9 15:14:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA17332 for emulation-outgoing; Sat, 9 Aug 1997 15:14:15 -0700 (PDT) Received: from atlantis.ping.at (a013.static.Vienna.AT.EU.net [193.154.186.13]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA17321 for ; Sat, 9 Aug 1997 15:14:08 -0700 (PDT) Received: from atlantis (localhost.ping.at [127.0.0.1]) by atlantis.ping.at (8.8.6/8.6.12) with SMTP id AAA00253; Sun, 10 Aug 1997 00:13:35 +0200 (MEST) Message-ID: <33ECEB8E.41C67EA6@ping.at> Date: Sun, 10 Aug 1997 00:13:34 +0200 From: "Helmut F. Wirth" X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-STABLE i386) MIME-Version: 1.0 To: Jonathan Lemon CC: emulation@freebsd.org Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <19970806075054.63235@ct.picker.com> <199708061320.WAA08867@genesis.atrad.adelaide.edu.au> <19970806220031.07191@ct.picker.com> <33EA058A.42B9@fps.biblos.unal.edu.co> <19970808001728.40702@right.PCS> <33EBA119.41C67EA6@ping.at> <19970808180611.34384@right.PCS> <33EC762E.41C67EA6@ping.at> <19970809111159.62802@right.PCS> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jonathan Lemon wrote: > Well, doscmd was just rolled into -current. This wasn't quite what I > intended, but is probably just as well, as it gets doscmd out to a wider > audience. > > The last thing I want is for two divergent doscmd distributions. I intend > that the -current version of doscmd will be able to run on 2.2 machines, > and thus, there would be only one version of doscmd. > > The only thing preventing this now is that the 2.2 kernel patches need a > little bit of updating to reflect the new reality; I intend to rectify that > situation this weekend. Good to hear that. Maybe I should consider to change to current? If you manage to bring doscmd to run under 2.2-STABLE it would be even better. I am working on a XMS implementation currently. I am working on the file xms.c mainly. Objective for now: XMS, size configureable via .doscmdrc, HMA area (DOS can load HIGH) and UMB area management for drivers to load high. I will speak up, when something works. Regards Helmut -- Helmut F. Wirth Email: hfwirth@ping.at From owner-freebsd-emulation Sat Aug 9 15:20:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA17675 for emulation-outgoing; Sat, 9 Aug 1997 15:20:54 -0700 (PDT) Received: from atlantis.ping.at (a013.static.Vienna.AT.EU.net [193.154.186.13]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA17669 for ; Sat, 9 Aug 1997 15:20:44 -0700 (PDT) Received: from atlantis (localhost.ping.at [127.0.0.1]) by atlantis.ping.at (8.8.6/8.6.12) with SMTP id QAA00342; Sat, 9 Aug 1997 16:06:47 +0200 (MEST) Message-ID: <33EC7977.167EB0E7@ping.at> Date: Sat, 09 Aug 1997 16:06:47 +0200 From: "Helmut F. Wirth" X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-STABLE i386) MIME-Version: 1.0 To: Richard Foulk CC: emulation@freebsd.org Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <199708090129.PAA08057@pegasus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Richard Foulk wrote: > I wouldn't have to be slow. You have more horsepower on the X side > than on the DOS side. It has the potential of being faster I think. > The implementation idea I have is this: While under X11 supply a minimal VGA BIOS with callbacks to the emulator. Keep track of the mode changes from the DOS programs. Supply a video memory and a palette for the DOS program to change. That is, if a call is made to Int10/Change palette, the emulator would update its ides of the palette. The DOS program would write directly into the supplied video memory, thinking it real. (There are some details with bank switching). This would emulate an unique VGA mode, for example 640x480 with 256 colors. But the Xserver could use (and in fact will) an entirley other mode. I use 1152x864 with 65536 colors (=16 bit). Therefore: As long as the application runs in a *window* the graphics would have to be changed for the real vodeo mode the system is using. This could be done by copying the fake video buffer and remapping the pixels using the palette copy supplied from the DOS program. And this would be slow. I think fast enough to be usable, but not faster than DOS. Using the XFree86 DGA extension and the ability to switch modes via software maybe it would be possible to act like the DOS box under MSWindows. This woulde be faster, but it would not be inside a window. The application would takeover the XServer and the entire screen, until ASCII mode is restored. Any better ideas ? -- Helmut F. Wirth Email: hfwirth@ping.at From owner-freebsd-emulation Sat Aug 9 17:52:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA23832 for emulation-outgoing; Sat, 9 Aug 1997 17:52:18 -0700 (PDT) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA23825 for ; Sat, 9 Aug 1997 17:52:14 -0700 (PDT) Received: from time.cdrom.com (jkh@localhost.cdrom.com [127.0.0.1]) by time.cdrom.com (8.8.6/8.6.9) with ESMTP id RAA05330; Sat, 9 Aug 1997 17:49:16 -0700 (PDT) To: "Helmut F. Wirth" cc: Jonathan Lemon , emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) In-reply-to: Your message of "Sun, 10 Aug 1997 00:13:34 +0200." <33ECEB8E.41C67EA6@ping.at> Date: Sat, 09 Aug 1997 17:49:16 -0700 Message-ID: <5326.871174156@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Good to hear that. Maybe I should consider to change to current? If you're going to do ongoing development of this, I think that'd be a good idea. My personal feelings, as the release engineer for 2.2.x, is that doscmd should come in but ONLY after it has been well developed and tested in 3.0 first, something which seems (to me) to be still a little ways off. I think, therefore, that -current is the place to be if you want to play with this stuff in the short term (2-3 months). Thanks! Jordan From owner-freebsd-emulation Sat Aug 9 23:53:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA05984 for emulation-outgoing; Sat, 9 Aug 1997 23:53:46 -0700 (PDT) Received: from micron.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA05979 for ; Sat, 9 Aug 1997 23:53:40 -0700 (PDT) Received: (from mini@localhost) by micron.efn.org (8.8.5/8.8.5) id XAA03584; Sat, 9 Aug 1997 23:54:12 -0700 (PDT) Message-ID: <19970809235411.04335@micron.efn.org> Date: Sat, 9 Aug 1997 23:54:11 -0700 From: Jonathan Mini To: "Helmut F. Wirth" Cc: Richard Foulk , emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) Reply-To: Jonathan Mini References: <199708090129.PAA08057@pegasus.com> <33EC7977.167EB0E7@ping.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76e In-Reply-To: <33EC7977.167EB0E7@ping.at>; from Helmut F. Wirth on Sat, Aug 09, 1997 at 04:06:47PM +0200 X-files: The Truth is Out There. Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Helmut F. Wirth stands accused of saying : > Richard Foulk wrote: > > I wouldn't have to be slow. You have more horsepower on the X side > > than on the DOS side. It has the potential of being faster I think. > > > The implementation idea I have is this: > While under X11 supply a minimal VGA BIOS with callbacks to > the emulator. Keep track of the mode changes from the DOS programs. > Supply a video memory and a palette for the DOS program to change. > That is, if a call is made to Int10/Change palette, the emulator > would update its ides of the palette. The DOS program would write > directly into the supplied video memory, thinking it real. (There > are some details with bank switching). This would emulate an unique > VGA mode, for example 640x480 with 256 colors. But the Xserver could Um. Have you looked at the VGA specification? Two things : 1) 640x480x256 isn't a VGA video mode. 2) "some details of bank switching" is a little more complex than that, especially for 4 bit (16 color) modes, such as 640x480x16. I am all for VESA VBE support for doscmd, but that's a different issue entirely over VGA support. Also, remeber that simply supporting the VGA BIOS calls (int 10h "Video Services") won't be an sufficient emulation -- you need to implement emulation for a VGA card, because most programs only use the BIOS to set video modes. > use (and in fact will) an entirley other mode. I use 1152x864 with > 65536 colors (=16 bit). Therefore: As long as the application runs > in a *window* the graphics would have to be changed for the real > vodeo mode the system is using. This could be done by copying the > fake video buffer and remapping the pixels using the palette copy > supplied from the DOS program. And this would be slow. I think fast > enough to be usable, but not faster than DOS. Not really. Slow is relative -- I think it would be faster than the method that DESQview used to do the same thing. I think that if you did a few sanity check on it (like allow yourself to resize the window for the different video modes) and possibly provide pixel multipliers for various video modes (for example, when the application asks for mode 13h, (320x200x256) you automatically resize the window to 640x400 and double the pixels) it would run at an acceptable speed. (even on slower systems, I would bet) If you do do things like pixel doubling, I would like to see it aconfigurable option. > Using the XFree86 DGA extension and the ability to switch modes > via software maybe it would be possible to act like the DOS box > under MSWindows. This woulde be faster, but it would not be inside > a window. The application would takeover the XServer and the entire > screen, until ASCII mode is restored. IMO, while this is possible, it is not the best alternative. > Any better ideas ? What you're describing sounds more like VESA VBE emulation than VGA emulation, but I would like to see both. :) > -- > Helmut F. Wirth > Email: hfwirth@ping.at -- Jonathan Mini (j_mini@efn.org) ... bleakness ... desolation ... plastic forks ...