[Qemu-discuss] SunOS 4.1.4 on Qemu 2.10.0 on Mac OS X 10.12.6 on mid 2012 Intel MBP w/16GB RAM

2017-10-03 Thread Will Senn

Hi,

I heard on the TUHs mailing list that it was possible to emulate sparc 
on qemu and further that you could run SunOS. So, I did the following:


brew install qemu - which got qemu on my mac

rounded up the sunos 4.1.4 install media and the sparcstation 5 version 
2.15 boot prom


and then followed the directions (and a bunch of variations) at 
https://en.wikibooks.org/wiki/QEMU/SunOS_4.1.4


When I got to the post-install reboot, the VM booted up to the point 
where it was starting network services and then reported a bunch of, 
"rpc.lockd: Cannot contact status monitor!" and hung. I thought maybe it 
was environmental, but I got the same errors on Linux Mint 18 with qemu 
1.7, 2.0, and 2.14 as well as on FreeBSD with qemu 2.8.1, so I'm asking 
for help.


First question - is there a better/more up-to-date guide than what's on 
the wiki (I googled but didn't find anything better)?


Second question - any idea why the error is happening or how to make it 
stop (google returned a bunch of Sun notes saying stop and restart rpc, 
but this isn't really helpful as it happens during boot and it hangs 
without letting me make any changes)?


Third question - has anyone heard of this working on modern hardware and 
software configurations (the Wiki article is pretty old and the few 
videos I saw on youtube were Crunchbang - circa Ubuntu 8?


Any substantive help appreciated.

Thanks,

Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF




Re: [Qemu-discuss] SunOS 4.1.4 on Qemu 2.10.0 on Mac OS X 10.12.6 on mid 2012 Intel MBP w/16GB RAM

2017-10-04 Thread Will Senn

On 10/4/17 9:09 AM, Peter Maydell wrote:

On 4 October 2017 at 00:20, Will Senn  wrote:

I thought maybe it was
environmental, but I got the same errors on Linux Mint 18 with qemu 1.7,
2.0, and 2.14 as well as on FreeBSD with qemu 2.8.1, so I'm asking for help.

There is no QEMU 2.14 -- 2.10 is the most recent release. I would start
by trying with 2.10. Given the description of the symptoms it's quite
likely it won't help, but it's an easy thing to try.

thanks
-- PMM

I'm not sure where I got the 2.14 from, it's actually 2.5.0:
QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.16), Copyright 
(c) 2003-2008 Fabrice Bellard


Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF




Re: [Qemu-discuss] SunOS 4.1.4 on Qemu 2.10.0 on Mac OS X 10.12.6 on mid 2012 Intel MBP w/16GB RAM

2017-10-05 Thread Will Senn
I did that as well, but got the same errors - here's the version I'm 
running now on Fedora 26.


qemu-system-sparc --version
QEMU emulator version 2.10.50 (v2.10.0-991-gd147f7e815)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers


On 10/6/17 12:18 AM, Dennis Luehring wrote:
first i would should build lastest qemu release from source - and test 
with that version - its very easy


you only need some additional packages to build

https://www.qemu.org/download/#source
https://gns3.com/news/article/how-to-compile-qemu-2-2-0-in-ubu

no need for install - just make


Am 04.10.2017 um 01:20 schrieb Will Senn:

Hi,

I heard on the TUHs mailing list that it was possible to emulate sparc
on qemu and further that you could run SunOS. So, I did the following:

brew install qemu - which got qemu on my mac

rounded up the sunos 4.1.4 install media and the sparcstation 5 version
2.15 boot prom

and then followed the directions (and a bunch of variations) at
https://en.wikibooks.org/wiki/QEMU/SunOS_4.1.4

When I got to the post-install reboot, the VM booted up to the point
where it was starting network services and then reported a bunch of,
"rpc.lockd: Cannot contact status monitor!" and hung. I thought maybe it
was environmental, but I got the same errors on Linux Mint 18 with qemu
1.7, 2.0, and 2.14 as well as on FreeBSD with qemu 2.8.1, so I'm asking
for help.

First question - is there a better/more up-to-date guide than what's on
the wiki (I googled but didn't find anything better)?

Second question - any idea why the error is happening or how to make it
stop (google returned a bunch of Sun notes saying stop and restart rpc,
but this isn't really helpful as it happens during boot and it hangs
without letting me make any changes)?

Third question - has anyone heard of this working on modern hardware and
software configurations (the Wiki article is pretty old and the few
videos I saw on youtube were Crunchbang - circa Ubuntu 8?

Any substantive help appreciated.

Thanks,

Will






--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF




Re: [Qemu-discuss] SunOS 4.1.4 on Qemu 2.10.0 on Mac OS X 10.12.6 on mid 2012 Intel MBP w/16GB RAM

2017-10-07 Thread Will Senn
t  SBus slot 5 0x840

esp0 at  SBus slot 5 0x880 pri 4 (onboard)

sd3:non-CCS device found at target 0 lun 0 on esp0

sd3 at esp0 target 0 lun 0

sd3: 

Warning! System Clock freq out of range!

ledma0 at  SBus slot 5 0x8400010

le0 at  SBus slot 5 0x8c0 pri 6 (onboard)

SUNW,CS42310 at  SBus slot 4 0xc00 pri 9 (sbus level 5)

SUNW,tcx0 at  SBus slot 3 0x80 and  SBus slot 3 0x200 and  SBus slot 3 
0x400 and  SBus slot 3 0x600 and  SBus slot 3 0xa00 and  SBus slot 
3 0xc00 and  SBus slot 3 0xe00 and  SBus slot 3 0x701000 and  SBus slot 
3 0x20 and  SBus slot 3 0x30 and  SBus slot 3 0x0 and  SBus slot 3 
0x24 and  SBus slot 3 0x28 pri 9 (sbus level 5)

tcx0: revision 0, screen 1024x768

zs0 at  SBus slot 5 0x110 pri 12 (onboard)

zs1 at  SBus slot 5 0x100 pri 12 (onboard)

SUNW,fdtwo0 at  SBus slot 5 0x140 pri 11 (onboard)

fdintr: nobody sleeping

WARNING: clock gained 2 days -- CHECK AND RESET THE DATE!

root on sd3a fstype 4.2

swap on sd3b fstype spec size 98800K

dump on sd3b fstype spec size 98788K

le0: AUI Ethernet

checking filesystems

/dev/rsd3a: is stable.

/dev/rsd3h: is stable.

/dev/rsd3g: is stable.

Automatic reboot in progress...

Fri Oct  6 15:21:31 EDT 2017

checking quotas: done.

starting rpc port mapper.

starting RPC key server.

Flushing routing tables:

add net default: gateway 10.0.2.2

network interface configuration:

le0: flags=63

 inet 10.0.2.15 netmask ff00 broadcast 10.0.0.0

 ether 52:54:0:12:34:56

lo0: flags=49

 inet 127.0.0.1 netmask ff00

mount -vat nfs

starting additional services: biod.

starting system logger

starting local daemons: auditdOct  6 15:21:33 sunguest vmunix: sd3:non-CCS 
device found at target 0 lun 0 on esp0

Oct  6 15:21:33 sunguest vmunix: Warning! System Clock freq out of range!

  sendmail statd lockd.

link-editor directory cache

preserving editor files

clearing /tmp

standard daemons: update cron uucp.

starting network daemons: inetd printer.

Fri Oct  6 15:21:34 EDT 2017


sunguest login: root

Oct  6 15:21:40 sunguest login: ROOT LOGIN console

Last login: Wed Oct  4 12:18:19 on console

SunOS Release 4.1.4 (GENERIC) #2: Fri Oct 14 11:09:47 PDT 1994

sunguest# ls

.cshrc  bootkadbsbinvmunix

.login  dev lib sys

.profileetc lost+found  tmp

.rhosts export  mnt usr

bin homepcfsvar

sunguest# uname -a

SunOS sunguest 4.1.4 2 sun4m

sunguest# half

half: Command not found.

sunguest# halt

Oct  6 15:22:03 sunguest halt: halted by root

Oct  6 15:22:04 sunguest syslogd: going down on signal 15

syncing file systems... done

Halted


Program terminated

ok power-off




Maybe there is something wrong with the disk image you downloaded or something 
else went wrong - so I'm going to put the BIOS and disk file in an archive and 
send you an email with the download location.



--

Michael Russo, Systems Engineer PaperSolve, Inc. 268 Watchogue Road Staten Island, NY 
10314 Your random quote for today: Sendmail may be safely run set-user-id to root. -- 
Eric Allman, "Sendmail Installation Guide"

-Original Message-

Date: Fri, 6 Oct 2017 07:46:59 +0200
Subject: Re: [Qemu-discuss] SunOS 4.1.4 on Qemu 2.10.0 on Mac OS X 10.12.6 on 
mid 2012 Intel MBP w/16GB RAM
To:qemu-discuss@nongnu.org<mailto:qemu-discuss@nongnu.org>
From: Dennis Luehring 
mailto:dennis%20luehring%20%3cdl.so...@gmx.net%3e>>
then you need to wait for Michael Russo who wants "now to play with in
my spare time, I'll see if I run into the same issue." or ask
Artyom Tarasenko
(http://tyom.blogspot.de/2009/12/solaris-under-qemu-how-to.html<http://tyom.blogspot.de/2009/12/solaris-under-qemu-how-to.html>)
 for
help - he once helped to get linux on sparc64 running and was very helpfull

Am 06.10.2017 um 07:24 schrieb Will Senn:

I did that as well, but got the same errors - here's the version I'm
running now on Fedora 26.

qemu-system-sparc --version
QEMU emulator version 2.10.50 (v2.10.0-991-gd147f7e815)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers


On 10/6/17 12:18 AM, Dennis Luehring wrote:

first i would should build lastest qemu release from source - and test
with that version - its very easy

you only need some additional packages to build

https://www.qemu.org/download/#source<https://www.qemu.org/download/#source>
https://gns3.com/news/article/how-to-compile-qemu-2-2-0-in-ubu<https://gns3.com/news/article/how-to-compile-qemu-2-2-0-in-ubu>

no need for install - just make


Am 04.10.2017 um 01:20 schrieb Will Senn:

Hi,

I heard on the TUHs mailing list that it was possible to emulate sparc
on qemu and further that you could run SunOS. So, I did the following:

brew install qemu - which got qemu on my mac

r

Minix 1.1 with QEMU

2020-09-23 Thread Will Senn

Long time user, first time poster :)

So, I'd like to be able to run Minix 1.1 on my Macbook Pro mid-2012 
w/16gb RAM (MacOS 10.14.6 Mojave). Qemu will run pretty ancient OS'es 
such as DOS 2.0, which I use all of the time. However, I'm having some 
difficulty getting Minix to run. I am able to boot the first floppy, but 
when I change to the second floppy, the system freezes and I can't tell 
what is going on. Here's what I did to get this far:


brew install qemu

qemu-system-i386 --version
QEMU emulator version 5.1.0

mkdir ~/workspaces/retro-workspace/minix-1.1
cd ~/workspaces/retro-workspace/minix-1.1
aria2c 
http://download.minix3.org/previous-versions/bzipped/Intel-1.1.tar.bz2

tar xvjf Intel-1.1.tar.bz2
cp Intel-1.1/floppy_disk1 ./Disk01.img
cp Intel-1.1/floppy_disk2 ./Disk02.img
cp Intel-1.1/floppy_disk3 ./Disk03.img
cp Intel-1.1/floppy_disk4 ./Disk04.img


qemu-system-i386 -drive 
file=Disk01.img,format=raw,if=floppy,media=disk,readonly=off,index=0,snapshot=on 
\

  -boot a \
  -no-fd-bootchk \
  -monitor telnet::,server,nowait -serial mon:stdio

Qemu boots to the Minix 1.1 Boot screen and says to swap to floppy 2, so 
in the monitor:

change floppy0 Disk02.img raw

I press l (el) and it scans the disk, lists the files on the disk and 
reports no errors, but when I press =, it does a carriage return and 
just sits there. I'm pretty sure this is the Minix going bye bye and not 
necessarily QEMU, but I'm wondering if there is a way to see what QEMU 
thinks it is doing or if it is what's hung? Usually, at this point, 
Minix reads the disk contents into a Ramdisk and boots Minix.


Food for thought... Minix expects to run on an IBM PC (5150), IBM PC XT 
(5160), or compatible, and therefore the I/O is written for whatever 
floppy controller was extant at that time (I'm guessing here), so if 
that's different than modern day floppies, I suppose this could cause 
the problem I'm experiencing here. Is there a way to see the floppy 
controller activity in QEMU? Similarly, I gather it expects a CGA 
compatible monitor (EGA/VGA, etc should be fine).


I appreciate your help on this.

Minix 1.1 works 'ok' in 86Box and other IBM PC emulations, so I know the 
floppies are fine.


Thanks!

Will



--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



Re: Minix 1.1 with QEMU

2020-09-23 Thread Will Senn

On 9/23/20 11:53 AM, Philippe Mathieu-Daudé wrote:

Hi Will,

On 9/23/20 6:45 PM, Will Senn wrote:

Long time user, first time poster :)

So, I'd like to be able to run Minix 1.1 on my Macbook Pro mid-2012
w/16gb RAM (MacOS 10.14.6 Mojave). Qemu will run pretty ancient OS'es
such as DOS 2.0, which I use all of the time. However, I'm having some
difficulty getting Minix to run. I am able to boot the first floppy, but
when I change to the second floppy, the system freezes and I can't tell
what is going on. Here's what I did to get this far:

brew install qemu

qemu-system-i386 --version
QEMU emulator version 5.1.0

mkdir ~/workspaces/retro-workspace/minix-1.1
cd ~/workspaces/retro-workspace/minix-1.1
aria2c
http://download.minix3.org/previous-versions/bzipped/Intel-1.1.tar.bz2
tar xvjf Intel-1.1.tar.bz2
cp Intel-1.1/floppy_disk1 ./Disk01.img
cp Intel-1.1/floppy_disk2 ./Disk02.img
cp Intel-1.1/floppy_disk3 ./Disk03.img
cp Intel-1.1/floppy_disk4 ./Disk04.img


qemu-system-i386 -drive
file=Disk01.img,format=raw,if=floppy,media=disk,readonly=off,index=0,snapshot=on
\
   -boot a \
   -no-fd-bootchk \
   -monitor telnet::,server,nowait -serial mon:stdio

Qemu boots to the Minix 1.1 Boot screen and says to swap to floppy 2, so
in the monitor:
change floppy0 Disk02.img raw

I press l (el) and it scans the disk, lists the files on the disk and
reports no errors, but when I press =, it does a carriage return and
just sits there. I'm pretty sure this is the Minix going bye bye and not
necessarily QEMU, but I'm wondering if there is a way to see what QEMU
thinks it is doing or if it is what's hung? Usually, at this point,
Minix reads the disk contents into a Ramdisk and boots Minix.

Food for thought... Minix expects to run on an IBM PC (5150), IBM PC XT
(5160), or compatible, and therefore the I/O is written for whatever
floppy controller was extant at that time (I'm guessing here), so if
that's different than modern day floppies, I suppose this could cause
the problem I'm experiencing here. Is there a way to see the floppy
controller activity in QEMU? Similarly, I gather it expects a CGA
compatible monitor (EGA/VGA, etc should be fine).

Can you try adding '-machine isapc', which is closer to the 5150?


I appreciate your help on this.

Minix 1.1 works 'ok' in 86Box and other IBM PC emulations, so I know the
floppies are fine.

Thanks!

Will



--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF


Phillipe,

My new incantation is:

qemu-system-i386 -machine isapc -drive 
file=Disk01.img,format=raw,if=floppy,media=disk,readonly=off,index=0,snapshot=on 
-boot a   -no-fd-bootchk   -monitor telnet::,server,nowait -serial 
mon:stdio


with the same outcome :(. Thanks for the suggestion, I'll keep it in 
mind for other projects.


Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



pause-break mapping for macbook pro laptop keyboard

2020-10-03 Thread Will Senn

All,

Is there a way to map an existing key on my macbook to the dos/windows 
key pause-break for QEMU? I'd like to be able to press the equivalent of 
CTRL-BREAK in DOS while running in qemu and this doesn't seem 
straightforward. I can CTRL-C all day long and where that works, it's 
fine, but it isn't the same functionality as CTRL-BREAK. It seems 
logical that I should be able to tell the macbook to send a specific key 
to the qemu window, but I can't seem to locate any relevant help.


Is this possible (I've done it with dos-box-x, so I know it's possible, 
tricky to be sure)?


Thanks,

Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



Emulate pc speaker in QEMU on MacBook Pro?

2020-10-06 Thread Will Senn

I see this, in the manual:

The PC speaker audio device can be configured using the pcspk-audiodev 
machine property, i.e.


qemu_system-x86_64 some.img-audiodev    
,id=-machine    
pcspk-audiodev=


I'm on a macbook pro, what  do I need to specify, and what is 
 supposed to be for id and pcspk-audiodev in order to get the pc 
speaker sounds of my dos 2.10 instance to be audible on my mac? I could 
find ANY explanation of what these values might be...


Thanks,

Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



Re: Emulate pc speaker in QEMU on MacBook Pro?

2020-10-07 Thread Will Senn

On 10/7/20 3:52 AM, Zoltán Kővágó wrote:

Hello,

On 2020-10-07 06:43, Philippe Mathieu-Daudé wrote:

Cc'ing other developers.

On 10/7/20 4:32 AM, Will Senn wrote:

I see this, in the manual:

The PC speaker audio device can be configured using the pcspk-audiodev
machine property, i.e.

qemu_system-x86_64 some.img -audiodev 
<https://www.mankier.com/1/qemu#-audiodev> ,id= 
-machine <https://www.mankier.com/1/qemu#-machine> 
pcspk-audiodev=



I'm on a macbook pro, what  do I need to specify, and what is
 supposed to be for id and pcspk-audiodev in order to get the pc
speaker sounds of my dos 2.10 instance to be audible on my mac? I could
find ANY explanation of what these values might be...


 is anything (it's an identifier in case you want to have 
multiple audiodevs).  For backend you probably want to use `coreaudio` 
on a Mac (sdl might be available too, I'm not sure, see the list under 
the -audiodev option).  So something like this:


    -audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0

Thanks,
Zoltan

Hi Zoltan,

Thanks for the hint. I tried it and I didn't get any error, but I also 
don't get any speaker sounds. How do I troubleshoot. I've got the 
monitor open and I don't see any errors. Is coreaudio something native 
to my mac, or something I need to install/configure and is audio0 the 
usual default device? Sorry if this sounds newbieish.


Thanks,

Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



Re: Emulate pc speaker in QEMU on MacBook Pro?

2020-10-07 Thread Will Senn

On 10/7/20 4:25 AM, Will Senn wrote:

On 10/7/20 3:52 AM, Zoltán Kővágó wrote:

Hello,

On 2020-10-07 06:43, Philippe Mathieu-Daudé wrote:

Cc'ing other developers.

On 10/7/20 4:32 AM, Will Senn wrote:

I see this, in the manual:

The PC speaker audio device can be configured using the pcspk-audiodev
machine property, i.e.

qemu_system-x86_64 some.img -audiodev 
<https://www.mankier.com/1/qemu#-audiodev> ,id= 
-machine <https://www.mankier.com/1/qemu#-machine> 
pcspk-audiodev=



I'm on a macbook pro, what  do I need to specify, and what is
 supposed to be for id and pcspk-audiodev in order to get the pc
speaker sounds of my dos 2.10 instance to be audible on my mac? I 
could

find ANY explanation of what these values might be...


 is anything (it's an identifier in case you want to have 
multiple audiodevs).  For backend you probably want to use 
`coreaudio` on a Mac (sdl might be available too, I'm not sure, see 
the list under the -audiodev option).  So something like this:


    -audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0

Thanks,
Zoltan

Hi Zoltan,

Thanks for the hint. I tried it and I didn't get any error, but I also 
don't get any speaker sounds. How do I troubleshoot. I've got the 
monitor open and I don't see any errors. Is coreaudio something native 
to my mac, or something I need to install/configure and is audio0 the 
usual default device? Sorry if this sounds newbieish.


Thanks,

Will

I spoke to soon. As soon as I quit the monitor, an error was displayed:

coreaudio: Could not lock voice for audioDeviceIOProc
Reason: Invalid argument

Any suggestions on what this means / how to fix it?

Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



Remap a key

2020-10-07 Thread Will Senn
I've been digging into the lack of a proper break key on laptops (my 
MacBook for example) and I was wondering if it would be possible to 
remap one of the existing keys on the laptop to the CTRL-BREAK key, 
which sends the scancode E0 46? I'd be fine with having CTRL-ALT-] map 
to it or pretty much anything not typically typed in DOS. But doing 
assembly programming in DOS without a break key is frustrating to no 
end. Pointers to qemu keymapping documentation would be helpful or any 
sort of 'here's a keymapping example' tip.


Thanks,

Will

--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



Re: Remap a key

2020-10-07 Thread Will Senn

Hi Jakob,

I get:
sendkey ctrl-break
invalid parameter: break

Is there a list of valid parameters?

Will

On 10/7/20 3:16 PM, Jakob Bohm wrote:

(Resend from my subscribed e-mail address)

Correction, I meant "ctrl-break", earlier someone asked about ctrl-alt-del

On 2020-10-07 21:12, Jakob Bohm wrote:
There is no such mechanism in the qemu documentation, but there is 
this way:


1. Use the appropriate hot-key to switch to the qemu monitor screen
2. Type this command at the "(qemu)" prompt
(qemu) sendkey ctrl-alt-delete

This can of cause be automated by having software on the guest 
connect to the

qemu monitor and send the command when you press your magic key.

Another available method is to use the VNC console and a VNC client 
with a

ctrl-alt-del function.

On 2020-10-07 12:58, Will Senn wrote:
I've been digging into the lack of a proper break key on laptops (my 
MacBook for example) and I was wondering if it would be possible to 
remap one of the existing keys on the laptop to the CTRL-BREAK key, 
which sends the scancode E0 46? I'd be fine with having CTRL-ALT-] 
map to it or pretty much anything not typically typed in DOS. But 
doing assembly programming in DOS without a break key is frustrating 
to no end. Pointers to qemu keymapping documentation would be 
helpful or any sort of 'here's a keymapping example' tip.


Thanks,

Will
--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



--
Jakob Bohm, CIO, partner, WiseMo A/S. https://www.wisemo.com 
<https://www.wisemo.com>
Transformervej 29, 2860 Soborg, Denmark. direct: +45 31 13 16 10 


This message is only for its intended recipient, delete if misaddressed.
WiseMo - Remote Service Management for PCs, Phones and Embedded




Enjoy

Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S.https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded



--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF



Re: Remap a key

2020-10-08 Thread Will Senn

On 10/8/20 3:19 AM, Ottavio Caruso via wrote:

On 08/10/2020 00:24, Will Senn wrote:

Hi Jakob,

I get:
sendkey ctrl-break
invalid parameter: break

Is there a list of valid parameters?




It's not in the official documentation but, to get a list of keys, 
type sendkey [tab].


Awesome, thanks. Maybe ctrl-pause...

Will



Re: Emulate pc speaker in QEMU on MacBook Pro?

2020-10-08 Thread Will Senn

On 10/8/20 1:01 PM, Volker Rümelin wrote:

Hi Will,


 is anything (it's an identifier in case you want to have multiple 
audiodevs).  For backend you probably want to use `coreaudio` on a Mac (sdl might be 
available too, I'm not sure, see the list under the -audiodev option).  So something 
like this:

     -audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0

I expected you have working audio playback with these qemu command line 
arguments. To exclude a problem with your guest please run 'Day 1 - F-Bird' 
from the QEMU Advent Calendar 2018. I know this program uses the pc speaker.
Well, I thought you were pulling my leg, with the greek 'Day 1 - F-Bird' 
stuff, but a google search led the way to the Advent Calendar, and lo 
and behold, It works!


qemu-system-x86_64 -audiodev coreaudio,id=audio0 -machine 
pcspk-audiodev=audio0 -fda fbird.com



On the dos instance, no joy. Here's my runfile, does it look sane?

#!/bin/bash
qemu-system-i386 -machine isapc \
  -drive 
file=C.img,format=raw,if=ide,media=disk,readonly=off,index=0,cache=unsafe \

  -boot c \
  -audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0 \
  -drive format=raw,file=empty1.img,index=0,if=floppy \
  -drive format=raw,file=empty2.img,index=1,if=floppy \
  -monitor telnet::,server,nowait -serial mon:stdio &
sleep 1
telnet localhost 

No beeping here. Next thing I'm going to try is running fbird from dos.

It's progress!


Thanks,
Zoltan

Hi Zoltan,

Thanks for the hint. I tried it and I didn't get any error, but I also don't 
get any speaker sounds. How do I troubleshoot. I've got the monitor open and I 
don't see any errors. Is coreaudio something native to my mac, or something I 
need to install/configure and is audio0 the usual default device? Sorry if this 
sounds newbieish.

Thanks,

Will

I spoke to soon. As soon as I quit the monitor, an error was displayed:

coreaudio: Could not lock voice for audioDeviceIOProc
Reason: Invalid argument

Did this error message appear after you typed quit in the monitor? Then it's a 
bug in the qemu coreaudio shutdown routine and you can ignore this message.

Yes, it came after. No worries, I'm going to fiddle with this.



With best regards,
Volker



--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF




Re: Emulate pc speaker in QEMU on MacBook Pro?

2020-10-08 Thread Will Senn

On 10/8/20 1:18 PM, Will Senn wrote:

On 10/8/20 1:01 PM, Volker Rümelin wrote:
Hi Will I expected you have working audio playback with these qemu 
command line arguments. To exclude a problem with your guest please 
run 'Day 1 - F-Bird' from the QEMU Advent Calendar 2018. I know this 
program uses the pc speaker.
Well, I thought you were pulling my leg, with the greek 'Day 1 - 
F-Bird' stuff, but a google search led the way to the Advent Calendar, 
and lo and behold, It works!


qemu-system-x86_64 -audiodev coreaudio,id=audio0 -machine 
pcspk-audiodev=audio0 -fda fbird.com 


Volker and Zoltan,

To wrap this up, fbird.com works in dos and I have sound. So, consider 
this issue resolved! Thanks for your help and patience. Now, I just 
gotta figure out what's wrong with my beeping (not bleeping) assembly 
code :).


Will




Re: OT - 24-pin dot matrix printer emulator (nlq etc.)

2020-10-27 Thread Will Senn

Hi Supratim,

This may not  be exactly what you're looking for, but it's related. I 
use 86box to emulate IBM PC (but it'll emulate anything up to Pentium 
III class machine (if I remember correctly). One of the emulated LPT/PRN 
devices is the Epson dot-matrix printer. It works really well (it 
generates pngs, which I put into pdf and print on my laserjet). I have 
no idea whether they borrowed the device from another emulation or what. 
I only use it from DOS, but 86box will probably run Win 98 without too 
much trouble.


Later,

Will

On 10/27/20 9:05 AM, Supratim Sanyal wrote:


Hi

Possibly off-topic, but does anyone know of or use some sort of a 
Epson or whatever 24-pin dot matrix printer simulator that would, for 
example, create a virtual parallel port for other simlated instances 
of operating systems (Windows 98SE for example) to print to? Ideally 
it would understand escape sequences for NLQ fonts etc.


Thanks
Supratim

--
Supratim Sanyal, W1XMT
39.19151 N, 77.23432 W
QCOCAL::SANYAL via HECnet



--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF