From: David Relson <relson@osagesoftware.com>
To: linux-msdos <linux-msdos@vger.kernel.org>
Subject: Re: dosemu graphics problem
Date: Fri, 3 Jul 2009 17:57:27 -0400 [thread overview]
Message-ID: <20090703175727.69eae15d@osage.osagesoftware.com> (raw)
In-Reply-To: <c3d607cc0907030944v4964544dm34c93c45aa8da565@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2909 bytes --]
Hello Bart,
Glad to make your acquaintance and appreciate the info !!
On Fri, 3 Jul 2009 12:44:18 -0400 Bart Oldeman wrote:
> 2009/7/3 David Relson <relson@osagesoftware.com>:
>
> > I have a DOS application that uses the Borland graphics library to
> > write to the screen. The library uses direct hardware access, so
> > dosemu is run with the -s switch. When "dosemu -s" is run from a
> > terminal window in Gnome, FreeDOS starts fine and the application
> > runs fine.
>
> Just a clarification: dosemu with -s means direct hardware access *on
> Linux*. For video that means to run dosemu in a VC outside X
> (Ctrl-Alt-F2 or such), and in that case the DOS application interacts
> directly with the VGA hardware in the PC.
>
> You don't need to run dosemu -s just because the DOS app thinks it
> does direct hardware access: it is all emulated if you run it in
> Gnome.
The ultimate goal is the embedded environment which uses an ICOP-6154
board with a 486SX and porting the DOS application to Linux. Using
DosEMU and FreeDOS is intended as a temporary state.
When run without a GUI, i.e. X and Gnome, the application clears the
screen (to black) and that's about it.
When run from a Gnome terminal border lines and bars are drawn, intro
text is displayed (from files identified by the file command as "raw G3
data, byte-padded"), date/time is displayed, etc.
I appreciate the "-D+v" suggestion. Evidently the "osemu.confot ..."
text is from the following:
ERROR: Port 0xac1c is not available (outw), "save_vga_state" failed.
Adjust your dosemu.conf
leavedos(46|0x2e) called - shutting down
Unfortunately I have no idea what port 0xac1c is. Have you any
suggestions for finding out more.
The board _does_ have VGA support. From the board's datasheet:
XGI Volari Z9s Chipset, it
VGA and TFT Flat Panel Interface Support
Onboard 32MB VGA Memory, support resolution up to
1280 x 1024, 16M colors
I've looked at /etc/dosemu/dosemu.conf and see the many options. I've
changed $_cpu from 80586 to 80486 and $_chipset from vesa to
plaintext. Neither change helps the program run.
FWIW I've attached the complete boot.log (from command "dosemu -s" with
a default dosemu.conf).
> > As the goal is to run this application on an embedded system, it
> > would be proper to run "dosemu -s" from a terminal session rather
> > than Gnome. When this is done, the following lines are output:
> >
> > Running as root in full feature mode
> > osemu.confot available (outw), save_vga_state failed.
>
> You can run with -D+v and look at ~/.dosemu/boot.log for more info.
> But if the embedded system does not have VGA hardware it is not going
> to work.
>
> SDL (dosemu -S) on a graphics framebuffer or if the app only uses DOS
> text mode, plain "dosemu" might do the job though.
>
> Bart
[-- Attachment #2: boot.0703.1716.log --]
[-- Type: text/x-log, Size: 3102 bytes --]
major = 4 minor = 1
CONF: config variable parser_version_3 set
CONF: config variable c_system set
CONF: Parsing built-in dosemu.conf file.
CONF: config variable version_3_style_used set
CONF: Parsing built-in global.conf file.
CONF: config variable version_3_style_used unset
CONF: config variable version_3_style_used set
CONF: opened include file /etc/dosemu/dosemu.conf
CONF: closed include file /etc/dosemu/dosemu.conf
CONF: mapping driver = 'mapshm'
debug flags: -a+cw
CONF: Disabling use of pentium timer
CONF: dosbanner on
CONF: timer freq=18, update=54925
CONF: CPU set to 586
CONF: JIT CPUEMU set to 0 for 586
CONF: 2048k bytes EMS memory
CONF: EMS-frame = 0xe400
CONF: DPMI-Server on (0x5000)
CONF: DPMI base addr = 0xffffffff
CONF: PM DOS API Translator on
CONF: No DJGPP NULL deref checks: off
CONF: dosemu running on console
CONF: VGA-BIOS-Segment 0
CONF: VGA-BIOS-Segment set to 0xc000
CONF: VGA-BIOS-Size 0
CONF: VGA-BIOS-Size set to 0x8000
CHIPSET: 12
CONF: time mode = 'bios'
SER: directory /var/lock namestub LCK.. binary No
MOUSE: no device specified, type 0 using internaldriver: yes, emulate3buttons: no baudrate: 0
CONF: Keyboard-layout keyb-user
CONF: **** Warning: floppy /dev/fd0 not accessable, disabled
CONF: fastfloppy = 1
CONF: IPX support off
CONF(LPT0) f: (null) c: lpr -l t: 20 port: 0
CONF(LPT1) f: (null) c: lpr -l -P lpt2 t: 20 port: 0
CONF: not allowing speaker port access
CONF: Packet Driver enabled.
device: /root/.dosemu/drives/c type 4 h: -1 s: -1 t: -1 drive C:
device: /root/.dosemu/drives/d type 4 h: -1 s: -1 t: -1 drive D:
device: /root/.dosemu/drives/g type 4 h: -1 s: -1 t: -1 drive E:
CONF: cdrom MSCD0001 on /dev/cdrom
CONF: config variable c_system unset
Linux kernel 2.6.26; CPU speed is 499909000 Hz
CPU-EMU speed is 500 MHz
major = 4 minor = 1
CONF: running exclusively as ROOT: uid=0 (cached 0) gid=0 (cached 0)
DBG_FD already set
DOSEMU-1.4.0.0 is coming up on Linux version 2.6.26-gentoo-r4
CONF: reserving 640Kb at 0x00000 for 'd' (Base DOS memory (first 640K))
CONF: reserving 48Kb at 0xF4000 for 'r' (Dosemu reserved area)
CPU: Stack bottom 0xbf91c000, top 0xbf931000, esp=0xbf91f140
Registering HWRAM, type=v base=0xe0000000 size=0xffffff
CONF: reserving 16383Kb at 0xE0000000 for 'v' ((null))
Registering HWRAM, type=v base=0xe1000000 size=0x3fff
CONF: reserving 15Kb at 0xE1000000 for 'v' ((null))
Registering HWRAM, type=v base=0xe1004000 size=0x3fff
CONF: reserving 15Kb at 0xE1004000 for 'v' ((null))
Registering HWRAM, type=v base=0xe1008000 size=0x3fff
CONF: reserving 15Kb at 0xE1008000 for 'v' ((null))
Registering HWRAM, type=v base=0xe100c000 size=0x3fff
CONF: reserving 15Kb at 0xE100C000 for 'v' ((null))
Registering HWRAM, type=v base=0xa0000 size=0x20000
CONF: reserving 128Kb at 0xA0000 for 'v' (Video memory)
WARN: copying VBIOS file from /dev/mem
CONF: reserving 32Kb at 0xC0000 for 'V' (Video BIOS)
CONF: reserving 8256Kb at 0x100000 for 'x' (Extended memory (HMA+XMS))
ERROR: Port 0xac1c is not available (outw), "save_vga_state" failed.
Adjust your dosemu.conf
leavedos(46|0x2e) called - shutting down
next prev parent reply other threads:[~2009-07-03 21:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-03 15:00 dosemu graphics problem David Relson
[not found] ` <c3d607cc0907030944v4964544dm34c93c45aa8da565@mail.gmail.com>
2009-07-03 21:57 ` David Relson [this message]
2009-07-03 23:48 ` Bart Oldeman
2009-07-04 1:25 ` David Relson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090703175727.69eae15d@osage.osagesoftware.com \
--to=relson@osagesoftware.com \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox