Port-hp300 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD/hp300 on MAME hp9k360 emulation (and disk images)
Hi,
As I wrote in the previous messages, I've managed to try NetBSD/hp300
on MAME's hp9k360 (and 330, 370) emulations with several tweaks.
A basic settings to emulate HP 9000/3x0 on MAME are described
in the MAMEDEV Wiki:
https://wiki.mamedev.org/index.php/Driver:HP300
MAME from pkgsrc/emulators/mame also works on NetBSD/amd64,
and MAME for Windows binary also works.
Options for MAME can be set like this:
---
#! /bin/sh
MAME=/usr/pkg/bin/mame
# top directory path to ROM images
ROMPATHOPTIONS="-rompath ${HOME}/.mame/roms"
# target device settings
EMULATION=hp9k360
# DIO slot device options
DIOOPTIONS1="-sl1 98550"
#DIOOPTIONS1="-sl1 98543"
#DIOOPTIONS1="-sl1 98544"
DIOOPTIONS2="-sl2 98643"
DIOOPTIONS="${DIOOPTIONS1} ${DIOOPTIONS2}"
# disk images
HDDOPTIONS="-hard NetBSD-10.99.10-hp300-7937H.img"
CDOPTIONS="-cdrom NetBSD-10.99.10-hp300.iso"
# window settings
WINDOWOPTIONS="-nomax -window"
# key setting to enter UI mode
UIMODEKEYOPTIONS="-uimodekey F12"
echo ${MAME} ${EMULATION} ${DIOOPTIONS} ${ROMPATHOPTIONS} ${WINDOWOPTIONS} ${UIMODEKEYOPTIONS} ${HDDOPTIONS} ${CDOPTIONS}
${MAME} ${EMULATION} ${DIOOPTIONS} ${ROMPATHOPTIONS} ${WINDOWOPTIONS} ${UIMODEKEYOPTIONS} ${HDDOPTIONS} ${CDOPTIONS}
---
Note hp9k370 emulation should also work, but MAME requires Rev.C1
BOOTROMs and the Rev.C1 seems to have some bugs to boot from SCSI CD-ROM
at ID 5. (but it can boot from ID 0)
Rev.D BOOTROM used on hp9k360 emulation can boot from CD-ROM at ID 5
and the Rev.D BOOTROM should work even on hp9k370 emulation, but
to use a different version from the MAME's default settings,
we have to modify MAME's source:
https://github.com/mamedev/mame/blob/mame0263/src/mame/hp/hp9k_3xx.cpp#L499-L500
I've also put disk images to test NetBSD/hp300 on MAME
(and real hp300 machines):
http://teokurebsd.org/netbsd/liveimage/20240514-hp300/
- NetBSD-10.99.10-hp300.iso
WIP bootable ISO CD image of NetBSD/hp300 installation for hp300
(at least works on 425t, and maybe 360/370 with Rev. D BOOTROMs)
- NetBSD-10.99.10-hp300-7937H.img
Pre-installed dumb harddisk image NetBSD/hp300 -current (10.99.10)
with several WIP patches (created on 425t with BlueSCSI v1.2)
It looks MAME's hp9k3xx emulation has something wrong around
SCSI DMA xfers, then it gets SIGSEGV (by recursive dma function calls?),
so I also put patched kernels with spc(4) SCSI driver disabled SCSI DMA
as "/netbsd.mame".
You can specify this "netbsd.mame" on the bootloader prompt
both on ISO and HDD images, like this video (captured on Windows):
https://www.youtube.com/watch?v=5YDMCZTSrFw
The CD ISO (not in the video) also contains installion RAMDISK kernel
with disabled SCSI DMA as '/netbsd.mame".
Note sysinst(8) on NetBSD/hp300 -current (and 10.0) still have
problems that cannot handle NetBSD/hp300 specific boot partition:
http://gnats.netbsd.org/55197
(and adding a boot patition on the label editor causes weird behaviors)
Have fun,
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index