Giter Club home page Giter Club logo

Comments (28)

PaulRaul avatar PaulRaul commented on August 15, 2024

I had a similar problem to this. Seems like dosemu didn't like either upper or lowercase filenames on the Linux FS (don't recall which). I had to change the case of the boot files to make it work.

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

Thanks, I just tried altering the case, but it didn't change anything for me. What's weird is that it's ok in X or sdl, and only breaks when using the -t switch. I figure it must be some memory overrun somewhere. Thanks anyway.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Hmm.
Can you try:
$_umb_a0 = (off)
?

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

yes adding that allowed it to boot to the DOS prompt fine

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Please show your config/autoexec.
In particular I wonder what "UMB's unavailable!"
mean here...

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

Here you go

autoexec.bat

@echo off                                                                       
rem autoexec.bat for DOSEMU + FreeDOS                                           
path z:\bin;z:\gnu;z:\dosemu;c:\tc\bin;c:\td                                    
set HELPPATH=z:\help                                                            
set TEMP=c:\tmp                                                                 
blaster                                                                         
prompt $P$G                                                                     
unix -s DOSDRIVE_D                                                              
if "%DOSDRIVE_D%" == "" goto nodrived                                           
lredir d: linux\fs%DOSDRIVE_D%                                                  
:nodrived                                                                       
rem uncomment to load another bitmap font                                       
rem loadhi display con=(vga,437,2)                                              
rem mode con codepage prepare=((850) z:\cpi\ega.cpx)                            
rem mode con codepage select 850                                                
rem ^[chcp 850                                                                  
lredir e: linux\fs/media/cdrom c                                                
unix -s DOSEMU_VERSION                                                          
echo "Welcome to dosemu %DOSEMU_VERSION%!"                                      
unix -e

config.sys

rem config.sys for DOSEMU + FreeDOS                                             
rem note that the initial "D:" is set to "Z:" at the end                        
SWITCHES=/F                                                                     
DOS=UMB,HIGH                                                                    
dosdata=umb                                                                     
lastdrive=Z                                                                     
files=40                                                                        
stacks=0                                                                        
buffers=10                                                                      
devicehigh=d:\dosemu\ems.sys                                                    
devicehigh=d:\dosemu\cdrom.sys                                                  
install=d:\dosemu\lredir.com z: linux\fs\${DOSEMU_LIB_DIR}/drive_z ro           
shellhigh=d:\command.com /e:1024 /p

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

As a further datapoint I tried dosemu-1.4.0.8 from the ubuntu 14.04 repo with the same config (umb tweak removed) and the same autoexec.bat / config.sys and it booted fine as below. Note the same UMB's unavailable message is there.

bootinterm-1 4 0 8

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

Also dumb terminal support works ok without the umb tweak

/opt/dosemu2/bin/dosemu -dumb

ajb@polly:~$ /opt/dosemu2/bin/dosemu -dumb
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC0D0 failed: No such file or directory


DOSEMU2 2.0pre3-20150728-gc06270e, configured: 2015-07-28 19:47:59 +0100
Please test against a recent version before reporting bugs and problems.
Submit Bugs & Patches to [email protected] or via http://dosemu.org.
FreeDOS kernel build 2036 cvs [version Aug 18 2006 compiled Aug 18 2006]
Kernel compatibility 7.10 - WATCOMC - 80386 CPU required - FAT32 support

(C) Copyright 1995-2006 Pasquale J. Villani and The FreeDOS Project.
All Rights Reserved. This is free software and comes with ABSOLUTELY NO
WARRANTY; you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation;
either version 2, or (at your option) any later version.
C: HD1, Pri[ 1], CHS=    0-1-1, start=     0 MB, size=  2000 MB
D: HD2, Pri[ 1], CHS=    0-1-1, start=     0 MB, size=  2000 MB
UMB's unavailable!                                                             
dosemu XMS 3.0 driver installed.
dosemu EMS driver rev 0.5 installed.
[dosemu cdrom driver installed (V0.2)]
Kernel: allocated 41 Diskbuffers = 21812 Bytes in HMA
Z: = LINUX\FS\ attrib = READ ONLY

FreeCom version 0.84-pre2 XMS_Swap [Aug 28 2006 00:29:00]
Sound on: SB at 0x220-0x22f, IRQ=5, DMA8=1, DMA16=5. MPU-401 at 0x330-0x331.
Redirection for drive D: was deleted.
D: = LINUX\FS/HOME/AJB attrib = READ/WRITE
Error 35 (network name not found)
while redirecting drive E: to LINUX\FS/MEDIA/CDROM
"Welcome to dosemu 2.0pre3-20150728-gc06270e!"
C:\>

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Also dumb terminal support works ok without the umb tweak

Should now be fixed.

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

Mmm not sure there was anything wrong with -dumb mode before, but now things are wrong

1/ dosemu -dumb
starts in existing terminal, and will scroll etc, which is correct. But now has my can't find command.com problem, but it was OK before (maybe this is a clue?)

2/ dosemu -t
a) this now either an X or SDL window (I can't tell the difference) whereas it should be run in the terminal using slang/curses
b) if I unset DISPLAY I get

 ERROR: You do not have the DISPLAY variable set, but want to run DOSEMU
in its own X-window. Set the DISPLAY variable such as

    DISPLAY=:0.0; export DISPLAY

if running X locally or

    DISPLAY=host:0.0; export DISPLAY

when running remotely ('host' being the machine where you are typing at)

After this run xdosemu again.
Segmentation fault (core dumped)

3/ dosemu -X
if DISPLAY is unset I get error message and segfault as above

4/ dosemu -S
if DISPLAY is unset I get error message

ERROR: SDL init: Failed to connect to the Mir Server
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC0D0 failed: No such file or directory
ERROR: Unable to open console or check with X to evaluate the keyboard map.
Please specify your keyboard map explicitly via the $_layout option.
Press ENTER to continue with DOS programs thinking that they use a US layout or
Ctrl-C to exit.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Sorry for that.
Could you please re-check?

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

Hi,
Things are looking better now for the DISPLAY, but terminal and dumb still have issues with finding command.com

video DISPLAY=:0 unset DISPLAY
-dumb OK OK
-t OK OK
-X OK SEGV
-S OK OK

Here's the SEGV from the -X with DISPLAY unset

$ /opt/dosemu2/bin/dosemu -X
ERROR: You do not have the DISPLAY variable set, but want to run DOSEMU
in its own X-window. Set the DISPLAY variable such as

    DISPLAY=:0.0; export DISPLAY

if running X locally or

    DISPLAY=host:0.0; export DISPLAY

when running remotely ('host' being the machine where you are typing at)

After this run xdosemu again.
Segmentation fault (core dumped)

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Thanks, should now be better.

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

Good, the display issues are fixed.
-dumb, -t, -X, -S with DISPLAY set are OK
-dumb, -t, -X, -S with DISPLAY unset are OK

Any thoughts as to why dosemu2 either -dumb, or -t, can't find command.com, but dosemu 1.4.0.8 can?

from dosemu2.

stsp avatar stsp commented on August 15, 2024

$_umb_a0 is dosemu2-specific, it doesn't exist
at all in dosemu1. So comparison is impossible,
and more investigations are needed to find out
why it breaks.

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

So have you been able to reproduce the issue, using my config.sys/autoexec.bat?

from dosemu2.

stsp avatar stsp commented on August 15, 2024

So far haven't tried due to the life constraints.
I'll let you know.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Yes, I indeed can reproduce this.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

UMBs unavailable is because you try to
devicehigh the ems.sys. It creates umbs
and should not be loaded high.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

It seems there is a FreeDOS bug.
Everything works fine with other DOS, and
google points to this:
http://comments.gmane.org/gmane.comp.emulators.freedos.kernel/316
"Unfortunately, this version reboots
on my machine when command.com tries to load."

I wonder if you can raise this to freedos ppl.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

I've filled an upstream report:
https://sourceforge.net/p/freedos/bugs/133/

from dosemu2.

andrewbird avatar andrewbird commented on August 15, 2024

Thanks for both filing the bug with FreeDOS and applying the workaround that fixed it for me.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

This seems to have been fixed by 6ce27a6.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

So on current devel it can be reproduced with:

$_umb_a0 = (on)
$_ems_frame = (0xe400)

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Better reproducer:

$_umb_a0 = (on)
$_ems = (off)

umb.sys must be loaded.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Should now be fixed in fdpp.
freedos-specific work-around disabled.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Seems to still break if EMS is disabled.

from dosemu2.

stsp avatar stsp commented on August 15, 2024

Should now be fixed again, this time
even with EMS enabled.

from dosemu2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.