From owner-freebsd-emulation Sun Apr 20 10:56:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA03182 for emulation-outgoing; Sun, 20 Apr 1997 10:56:18 -0700 (PDT) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA03143 for ; Sun, 20 Apr 1997 10:54:56 -0700 (PDT) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.8.5/8.8.5) id TAA09508 for freebsd-emulation@FreeBSD.org; Sun, 20 Apr 1997 19:54:08 +0200 (SAT) From: John Hay Message-Id: <199704201754.TAA09508@zibbi.mikom.csir.co.za> Subject: Some doscmd keyboard fixes To: freebsd-emulation@FreeBSD.org Date: Sun, 20 Apr 1997 19:54:08 +0200 (SAT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hi, I tried doscmd this weekend for the first time and I am amazed. It is already very usefull. I have a 84-key keyboard, so I make use of the arrows etc. on the keypad. This did not work. I will attach fixes for that. With those fixes I could get the Topspeed C compiler to work (I use it for 80188 embedded code). Now if I can get my EPROM programmer to work, I don't need to go to DOS anymore. :-) What are the issues involved to access certain ports directly? For example to get my EPROM programmer to work. Is there kernel patches for -current somewhere? My machine at home is running -current and I would really like to play with it there. Will the vm86 kernel code and doscmd make it into the FreeBSD source tree? I think it is very usefull and would be glad if it can get into -current and even in 2.2.x later. Thanks to everyone who helped make doscmd work. John -- John Hay -- John.Hay@mikom.csir.co.za From owner-freebsd-emulation Sun Apr 20 11:26:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA04460 for emulation-outgoing; Sun, 20 Apr 1997 11:26:04 -0700 (PDT) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA04445 for ; Sun, 20 Apr 1997 11:25:51 -0700 (PDT) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.8.5/8.8.5) id UAA10188 for freebsd-emulation@FreeBSD.org; Sun, 20 Apr 1997 20:25:40 +0200 (SAT) From: John Hay Message-Id: <199704201825.UAA10188@zibbi.mikom.csir.co.za> Subject: Re: Some doscmd keyboard fixes In-Reply-To: <199704201754.TAA09508@zibbi.mikom.csir.co.za> from John Hay at "Apr 20, 97 07:54:08 pm" To: freebsd-emulation@FreeBSD.org Date: Sun, 20 Apr 1997 20:25:39 +0200 (SAT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Oops I forgot to attach the patch. John -- John Hay - jhay@mikom.csir.co.za --- tty.c.org Sun Sep 22 15:43:00 1996 +++ tty.c Sun Apr 20 17:32:28 1997 @@ -631,11 +631,11 @@ { 0x4700, 0x4737, 0x7700, 0xffff }, /* key 71 - home */ { 0x4800, 0x4838, 0xffff, 0xffff }, /* key 72 - cursor up */ { 0x4900, 0x4939, 0x8400, 0xffff }, /* key 73 - page up */ - { 0x2d00, 0x4a2d, 0xffff, 0xffff }, /* key 74 - minus sign */ + { 0x4a2d, 0x4a2d, 0xffff, 0xffff }, /* key 74 - minus sign */ { 0x4b00, 0x4b34, 0x7300, 0xffff }, /* key 75 - cursor left */ { 0xffff, 0x4c35, 0xffff, 0xffff }, /* key 76 - center key */ { 0x4d00, 0x4d36, 0x7400, 0xffff }, /* key 77 - cursor right */ - { 0x2b00, 0x4e2b, 0xffff, 0xffff }, /* key 78 - plus sign */ + { 0x4e2b, 0x4e2b, 0xffff, 0xffff }, /* key 78 - plus sign */ { 0x4f00, 0x4f31, 0x7500, 0xffff }, /* key 79 - end */ { 0x5000, 0x5032, 0xffff, 0xffff }, /* key 80 - cursor down */ { 0x5100, 0x5133, 0x7600, 0xffff }, /* key 81 - page down */ @@ -1312,6 +1312,7 @@ K2_STATUS |= K2_CLOCK; break; case XK_Insert: + case XK_KP_Insert: K1_STATUS ^= K1_INSERT; K2_STATUS |= K2_INSERT; scan = 82; @@ -1350,16 +1351,19 @@ case XK_KP_7: nlock = 1; case XK_Home: + case XK_KP_Home: scan = 71; goto docode; case XK_KP_8: nlock = 1; case XK_Up: + case XK_KP_Up: scan = 72; goto docode; case XK_KP_9: nlock = 1; case XK_Prior: + case XK_KP_Prior: scan = 73; goto docode; case XK_KP_Subtract: @@ -1368,16 +1372,19 @@ case XK_KP_4: nlock = 1; case XK_Left: + case XK_KP_Left: scan = 75; goto docode; case XK_KP_5: nlock = 1; case XK_Begin: + case XK_KP_Begin: scan = 76; goto docode; case XK_KP_6: nlock = 1; case XK_Right: + case XK_KP_Right: scan = 77; goto docode; case XK_KP_Add: @@ -1386,16 +1393,19 @@ case XK_KP_1: nlock = 1; case XK_End: + case XK_KP_End: scan = 79; goto docode; case XK_KP_2: nlock = 1; case XK_Down: + case XK_KP_Down: scan = 80; goto docode; case XK_KP_3: nlock = 1; case XK_Next: + case XK_KP_Next: scan = 81; goto docode; case XK_KP_0: @@ -1410,6 +1420,7 @@ goto docode; case XK_Delete: + case XK_KP_Delete: scan = flipdelete ? 14 : 83; goto docode; From owner-freebsd-emulation Sun Apr 20 17:02:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA28308 for emulation-outgoing; Sun, 20 Apr 1997 17:02:33 -0700 (PDT) Received: from sumatra.americantv.com (sumatra.americantv.com [199.184.181.250]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA28296 for ; Sun, 20 Apr 1997 17:02:26 -0700 (PDT) Received: from right.PCS (right.pcs. [148.105.10.31]) by sumatra.americantv.com (8.7.6/8.7.3) with ESMTP id TAA06066; Sun, 20 Apr 1997 19:03:50 -0500 (CDT) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id TAA25489; Sun, 20 Apr 1997 19:04:02 -0500 Message-ID: <19970420190402.09488@right.PCS> Date: Sun, 20 Apr 1997 19:04:02 -0500 From: Jonathan Lemon To: John Hay Cc: freebsd-emulation@FreeBSD.org Subject: Re: Some doscmd keyboard fixes References: <199704201754.TAA09508@zibbi.mikom.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <199704201754.TAA09508@zibbi.mikom.csir.co.za>; from John Hay on Apr 04, 1997 at 07:54:08PM +0200 Sender: owner-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Apr 04, 1997 at 07:54:08PM +0200, John Hay wrote: > work (I use it for 80188 embedded code). Now if I can get my EPROM > programmer to work, I don't need to go to DOS anymore. :-) > > What are the issues involved to access certain ports directly? For > example to get my EPROM programmer to work. > > Is there kernel patches for -current somewhere? My machine at home > is running -current and I would really like to play with it there. I'm merging the vm86 stuff with -current. I have the code integrated with the new upages layout in -current, as well as permitting controlled access to the full range of the I/O port space. I also have the VME (Virtual Mode Extensions) working, for the most part, as well as a few other changes. The downside is, it doesn't work perfectly. Executing some DOS programs will wedge the machine, requiring a break into DDB and some mucking around to recover the machine. Unfortunately, I don't forsee having any real free time to work on this for another 2-3 weeks. -- Jonathan From owner-freebsd-emulation Sun Apr 20 19:31:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA07928 for emulation-outgoing; Sun, 20 Apr 1997 19:31:29 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA07921 for ; Sun, 20 Apr 1997 19:31:23 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id MAA06581; Mon, 21 Apr 1997 12:00:54 +0930 (CST) From: Michael Smith Message-Id: <199704210230.MAA06581@genesis.atrad.adelaide.edu.au> Subject: Re: Some doscmd keyboard fixes In-Reply-To: <199704201754.TAA09508@zibbi.mikom.csir.co.za> from John Hay at "Apr 20, 97 07:54:08 pm" To: jhay@zibbi.mikom.csir.co.za (John Hay) Date: Mon, 21 Apr 1997 12:00:54 +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-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk John Hay stands accused of saying: > > I tried doscmd this weekend for the first time and I am amazed. It is > already very usefull. I have a 84-key keyboard, so I make use of the > arrows etc. on the keypad. This did not work. I will attach fixes > for that. With those fixes I could get the Topspeed C compiler to > work (I use it for 80188 embedded code). Now if I can get my EPROM > programmer to work, I don't need to go to DOS anymore. :-) Hey, great! > What are the issues involved to access certain ports directly? For > example to get my EPROM programmer to work. At the moment, I/O port access is disabled. BSD/OS (where the code came from) has a mechanism for allowing only certain ports to be accessed by a program. There are a couple of options you can try here : Grab the latest pcemu (ftp://gsoft.com.au/pub/pcemu) prerelease, which supports I/O port access. You'll have to run it as root, and it's lots slower than doscmd. We use that here for running our EPROM programmer. Alternatively, have a look at the source in port.c for doscmd, and arrange for it to open /dev/io if running as root and allow inb/outb port access. Note that this can crash your machine pretty badly; you might want to change the MINPORT define from 0x000 to 0x100 to give some protection. > Is there kernel patches for -current somewhere? My machine at home > is running -current and I would really like to play with it there. AFAIK, the patches should apply to -current prettymuch directly. > Will the vm86 kernel code and doscmd make it into the FreeBSD source > tree? I think it is very usefull and would be glad if it can get > into -current and even in 2.2.x later. Yes, I would expect it to get into -current fairly soon, modulo my or Sean or Jonathan's time. 2.2 is a bit up in the air. > John Hay -- John.Hay@mikom.csir.co.za -- ]] 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 Apr 24 19:45:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA18972 for emulation-outgoing; Thu, 24 Apr 1997 19:45:25 -0700 (PDT) Received: from dunquin.bu.edu (PPP-83-16.BU.EDU [128.197.8.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA18957 for ; Thu, 24 Apr 1997 19:45:07 -0700 (PDT) Received: (from rdmurphy@localhost) by dunquin.bu.edu (8.8.3/8.8.3) id WAA00346; Thu, 24 Apr 1997 22:39:15 -0400 (EDT) Date: Thu, 24 Apr 1997 22:39:15 -0400 (EDT) From: "Russell D. Murphy" Message-Id: <199704250239.WAA00346@dunquin.bu.edu> To: freebsd-emulation@freebsd.org Subject: Linux emulation for 2.1.6/stata Reply-to: rdmurphy@bu.edu Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm having trouble using the Linux version of a statistics package called stata. I've been using Release 4 of stata (the prior version) successfully under FreeBSD 2.1.0 and 2.1.6, but need to upgrade to stata Release 5. I'm waiting for the Walnut Creek 2.2.[?] CD, but would really like to get this version of stata running now. The symptoms are: 1. Installation involve copying files to /usr/local/stata 2. Starting up the program after installation generates: dunquin# /usr/local/stata/stata /usr/local/stata/stata: using incompatible library '/lib/libc.so.4' Desire minor version >= 6 and found 5 /usr/local/stata/stata: using incompatible library '/lib/libm.so.4' Desire minor version >= 6 and found 5 LINUX: 'ioctl' fd=0, typ=0x54(T), num=0x5 not implemented ___ ____ ____ ____ ____ tm /__ / ____/ / ____/ ___/ / /___/ / /___/ 5.0 Copyright 1984-1997 Statistics/Data Analysis Stata Corporation 702 University Drive East College Station, Texas 77840 USA 800-STATA-PC http://www.stata.com 409-696-4600 stata@stata.com 409-696-4601 (fax) Single-user Linux perpetual license: Serial number: LI-125042120 Licensed to: Russell D. Murphy, Jr. Hingham, Massachusetts Notes: 1. (-k### option) 1024K bytes allocated to data 2. Command line editing enabled --more--Undefined C library functions: 1. light C shared image (Use the real one instead.) dunquin# (the ioctl message would be nice to clear up, but shouldn't prevent me from running stata - at least it didn't prevent me from running Release 4) 3. /compat/linux/lib contains: total 4607 < stuff deleted > lrwxr-xr-x 1 root wheel 14 Mar 19 1996 libc.so.4 -> libc.so.4.5.26 -rwxr-xr-x 1 root wheel 623620 Nov 9 1994 libc.so.4.5.26 -rwxr-xr-x 1 root wheel 562683 May 18 1995 libc.so.5.0.9 < stuff deleted > lrwxr-xr-x 1 root wheel 14 Mar 19 1996 libm.so.4 -> libm.so.4.5.26 -rwxr-xr-x 1 root wheel 107524 Nov 9 1994 libm.so.4.5.26 -rwxr-xr-x 1 root wheel 35942 May 18 1995 libm.so.5.0.0 < stuff deleted > 4. So, I picked up new linux versions of libc.so.4 and libm.so.4: total 9214 < stuff deleted > lrwxr-xr-x 1 root wheel 35 Apr 24 22:26 libc.so.4 -> /compat-old/linux/lib/libc.so.4.7.5 -rwxr-xr-x 1 root wheel 623620 Nov 9 1994 libc.so.4.5.26 -rwxr-xr-x 1 root wheel 562683 May 18 1995 libc.so.5.0.9 lrwxr-xr-x 1 root wheel 36 Apr 24 22:26 libm.so.4 -> /compat-old/linux/lib/libm.so.4.6.27 -rwxr-xr-x 1 root wheel 107524 Nov 9 1994 libm.so.4.5.26 -rwxr-xr-x 1 root wheel 35942 May 18 1995 libm.so.5.0.0 < stuff deleted > 5. Unfortunately, now all I get is a core dump: dunquin# stata Segmentation fault (core dumped) dunquin# Does anyone have any suggestions? Thanks- Russ Murphy Russell D. Murphy Department of Economics Boston University 270 Bay State Road Boston, Massachusetts (617) 353-4032 rdmurphy@bu.edu From owner-freebsd-emulation Thu Apr 24 21:09:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA21895 for emulation-outgoing; Thu, 24 Apr 1997 21:09:17 -0700 (PDT) Received: from fps.biblos.unal.edu.co ([168.176.37.11]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id VAA21889 for ; Thu, 24 Apr 1997 21:09:07 -0700 (PDT) Received: from unalmodem.usc.unal.edu.co by fps.biblos.unal.edu.co (AIX 4.1/UCB 5.64/4.03) id AA39350; Thu, 24 Apr 1997 23:10:06 -0500 Message-Id: <336049CC.42FD@fps.biblos.unal.edu.co> Date: Thu, 24 Apr 1997 23:06:04 -0700 From: Pedro Giffuni X-Mailer: Mozilla 3.0 (Win16; I) Mime-Version: 1.0 To: emulation@freebsd.org Subject: Free UNIXWARE available Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy, At last SCO made UNIXWARE available on similar terms to SCO's Opendesktop. The list of the APIs (present and future) is also available on their website. (Perhaps someday we can adapt NetBSD's SVR4 emulation to run this...) Pedro.