MSXPi is a hardware interface and software solution that lets MSX computers control and use Raspberry Pi resources. The interface exposes I/O ports that the MSX reads and writes, and the data appears on the Raspberry Pi side, where a Python program (the msxpi-server) acts on it. Through it the MSX can reach network drives, the internet, disk images, ROM archives, ChatGPT, an IRC server, TCP/IP (via UNAPI) and the Raspberry Pi itself. A Raspberry Pi Zero W or Zero 2 W is the recommended companion board.
MSXPi also exists as a virtual device for openMSX: the emulated MSX gets the same commands and the same server, with no hardware at all. See Quick Start 2 - openMSX.
Version 1.6 is the current release. What changed is in Release_Notes; how to use everything is in the documents folder.
Version 1.6 breaks software compatibility with previous ROMs and servers.
Upgrade the whole set together: ROM, msxpi-server, the client commands (.COM
files) and, on real hardware, the CPLD firmware. A v1.6 ROM on older CPLD
firmware still works, using the slower polled transfers. To stay on an older
ROM, use the server from the matching release/vX.Y branch.
About the DOS. MSXPi's own ROM contains MSX-DOS 1 (1.03) only. It does not
contain Nextor or MSX-DOS 2. MSXPi coexists with them: Nextor or MSX-DOS 2 come
from another disk interface in the same MSX (for example a MegaFlashROM SCC+ SD),
and MSXPi's commands, BASIC extension and UNAPI work alongside them. The
EEPROM holds two ROMs, picked with the bank jumper: MSX-DOS 1 (BANK2) or
the BIOS only - CALL MSXPI and UNAPI, no disk system (BANK1) - for use
next to Nextor / MSX-DOS 2.
Contents
- How the pieces fit together
- Quick Start 1 - Real hardware
- Quick Start 2 - openMSX
- Using MSXPi: the p commands
- Bugs and known limitations
- Repository structure
Real hardware:
MSX <-- I/O ports $56 $57 $5A --> MSXPi interface <-- GPIO --> Raspberry Pi
(p.com, pcopy, msxarch, (CPLD + EEPROM with (msxpi-server.py,
BASIC CALL MSXPI, ROM BIOS) the MSXPi ROM) Python 3)
openMSX:
MSX <-- I/O ports $56 $57 $5A --> MSXPiDevice <-- TCP :5000 --> msxpi-server.py
(emulated CPLD) (on your PC)
- MSX side - the ROMs in the interface's 32 KB EEPROM and the
.COMprograms that you copy to your MSX disk or SD card. The EEPROM image,msxpi32k.rom, holds two 16 KB ROMs:msxpibios.rom- MSXPi BIOS, MSX-DOS 1 disk driver,CALL MSXPIfor BASIC, Ethernet UNAPI;msxpibas.rom- the same without the disk system:CALL MSXPIand Ethernet UNAPI only.
- Interface - a CPLD decodes ports $56/$57/$5A and shifts bytes to and from the Pi; since v1.6 it also holds the Z80 /WAIT line while a byte is in flight, so the MSX can move data with INIR/OTIR.
- Server side -
msxpi-server.py, which runs on the Pi (GPIO link) or on your PC next to openMSX (TCP socket link). Everything it needs lives in one folder, the MSXPi home directory:/home/pi/msxpi.
You will need:
- An MSXPi interface (built from
hardware/; assembly notes indocuments/MSXPi Assembly Instructions.txt) with an AT28C256 EEPROM. - A Raspberry Pi Zero W / Zero 2 W (not a Pico - it cannot run Linux), with the 40-pin header on the side that matches your PCB, a micro SD card of 8 GB or more, and a PC to prepare it.
- An MSX with a disk or SD interface running MSX-DOS 1, MSX-DOS 2 or Nextor (MSXPi itself only has MSX-DOS 1 in its ROM; MSX-DOS 2 / Nextor must come from that other interface), and a way to copy files from your PC onto that disk. A second disk interface (Nextor / MSX-DOS 2) next to MSXPi is the best way to use it.
- Only if the CPLD is not programmed yet: an Altera USB-Blaster and Quartus 13.0 SP1 on Windows.
Do the steps in order. Each ends with a check, so you know where a problem is.
-
Connect the USB-Blaster to the JTAG connector of the interface. The interface must be in the MSX slot and the MSX switched on.
-
In Quartus: Tools -> Programmer, mode JTAG, Add File, pick the
.poffor your board, tick Program/Configure and Verify, Start.Board File (in hardware/CPLD_Project)V1.3 Rev.1 (and boards built for v1.3 to v1.5) MSXPi_v1.6.pofV1.1 Rev.1, V1.2.1b v1.1/MSXPi_v1.6_wait.pofv0.8.2 / v1.0 (PCB v0.7 Rev.7) v0.8.2/MSXPi_v1.6_polled.pof -
Check: in MSX BASIC,
PRINT INP(&H57)must not print 254 or 255 (that means no CPLD answered);p vershows the same build ID in readable form later. Older boards need a few extra settings - seehardware/CPLD_Project/LEGACY_BOARDS.mdanddocuments/Legacy Support.odt.
The EEPROM (32 KB) holds msxpi32k.rom: two 16 KB ROMs, one per bank. It is
written from the MSX itself, so you need a working MSX with a disk drive and
the interface plugged in. The Raspberry Pi does not need to be attached yet.
| Bank jumper (as on the PCB) | EEPROM half | ROM | The MSX gets |
|---|---|---|---|
| BANK2 (EEPROM A14 = CPU A15) | lower | msxpibios.rom |
MSX-DOS 1 from the Pi, CALL MSXPI, Ethernet UNAPI |
| BANK1 (EEPROM A14 = CPU A14) | upper | msxpibas.rom |
CALL MSXPI and Ethernet UNAPI, no disk system and no extra drives |
-
Copy
software/target/at28c256.comandsoftware/target/msxpi32k.romto your MSX disk or SD card. (Both are also on the MSXPi boot disk.) -
Set the bank jumper to BANK2. The EEPROM can only be programmed in that position: the chip's write-protection commands only reach the right addresses when its A14 follows CPU A15.
-
Boot MSX-DOS (from your disk interface) and list the ROMs the tool can see:
at28c256 /iIf the interface already holds a bootable ROM, remove its enable jumper (
SLTSL,CS12on some boards) first, otherwise the MSX finds it, boots from it and the tool cannot write. Note the slot number of the interface. -
Write the ROM (2 is the slot number here; use yours):
at28c256 /s 2 msxpi32k.romAlways write the whole 32 KB file in one go: the tool erases the entire chip before writing, so writing one 16 KB ROM on its own wipes the other bank. The tool write-protects the EEPROM (software data protection) when it is done. If your chip fails to program, repeat with
/r, which writes slowly. -
Switch the MSX off and set the jumpers for how you will use it:
- Booting MSX-DOS 1 from a disk image on the Pi: close
SLTSL, bank jumper on BANK2. The Pi must finish booting first, so the first cold boot takes a few minutes. Press ESC during boot to go straight to BASIC. - With another disk interface (recommended): close
SLTSL, bank jumper on BANK1, and put MSXPi in a higher slot than the disk interface. The MSX boots Nextor / MSX-DOS 2 from the other interface; MSXPi adds no drives and uses almost no memory, andCALL MSXPIin BASIC and the Ethernet UNAPI are available. - MSXPi ROM off: remove
SLTSL. MSXPi then works only through the.COMcommands - noCALL MSXPIand no ROM UNAPI.
The EEPROM answers in every page of its slot, so the bank that is not selected appears at 8000h. The two ROMs are built to tolerate each other there; always write them together, from the same
msxpi32k.rom. - Booting MSX-DOS 1 from a disk image on the Pi: close
-
Check: in BASIC,
CALL MSXPIVERprints the ROM version; with BANK1 it ends in "(no DOS)".
Install a fresh Raspberry Pi OS Lite and run the MSXPi setup script. (The old ready-made SD card image is no longer offered.)
-
Write Raspberry Pi OS Lite (32-bit) to the SD card with Raspberry Pi Imager (https://www.raspberrypi.com/software). In its settings choose user name
pi, enable SSH and enter your WiFi details. -
Boot the Pi, log in (SSH, or keyboard and HDMI) and run:
wget https://tinyurl.com/MSXPi-Setup chmod 755 MSXPi-Setup bash ./MSXPi-SetupThe script checks the Pi, the network and the clock, installs everything below, starts the server, checks that it runs, and reboots (a few minutes). It asks which board you have; to skip the question add
--board v1.3,--board v1.1or--board old(see the table below).--helplists the other options (WiFi,--no-reboot, ...). It is safe to run again: it updates the server and repairs what is missing, and never overwritesmsxpi.ini.
What the setup gives you (check it, or do it by hand):
-
Python 3 with the modules
requests,fsandRPi.GPIO.fsneedspkg_resources, so asetuptoolsolder than version 81 must be present (python3 -m pip install fs "setuptools<81" --break-system-packagesif you do it by hand). The packagesunar,lhasa,unzip,mpv,alsa-utilsandsmbclientare for unpacking archives, playing audio and reading network shares;iptablesgives the MSX its network;gccbuilds the native GPIO engine. PChess also needs the Python packagechess(requirements-pchess.txt); the rest of the server works without it. -
The MSXPi home directory
/home/pi/msxpi, owned by userpi. The path is built into the server (the environment variableMSXPI_HOMEoverrides it). It holds:File Purpose msxpi-server.pyand themsxpi_*.pymodules (msxpi_cmd_*.py,msxpi_transport.py,msxpi_settings.py, ...),mapper_detect.pythe server and its modules native/the native GPIO library libmsxpi_gpio.so, built on the Pi (without it the server falls back to slower Python GPIO and says so in its log)msxpi.iniyour settings, see below disks/msxpiboot.dsk,disks/tools.dskdrives A: and B: for the MSX-DOS 1 boot mode msxpi-monitor,msxpi-tcpip-setup.sh,update.shhelpers -
A systemd service (
msxpi-monitor) that starts the server at boot. To watch it work, run it by hand:cd /home/pi/msxpi && python3 msxpi-server.py. -
msxpi.ini, copied from the template that matches your PCB (
software/Server/Python/src):Board Template V1.3 (and later) msxpi-JumperRight.iniV1.1 Rev.0 msxpi-JumperRight_PCBV1.1Rev.0.iniOlder boards msxpi-JumperLeft.iniA board without the shutdown push-button needs
var RPI_SHUTDOWN=none. Optional keys:OPENAIKEYandOPENAIMODEL(ChatGPT),RAPIDAPIKEY,FINNHUBKEY,TWELVEDATAKEY,ALPHAVANTAGEKEY(stock quotes),WIFISSID,WIFIPWD,WIFICOUNTRY. From the MSX you can change any of them withp set NAME value.
Insert the SD card, plug the Pi into the interface with its component side facing you, and switch the MSX on. The interface LED lights when the server is running.
Copy the contents of software/target (at least p.com, pcopy.com,
msxarch.com, msxarch.ini, LOADROM.COM, INL.CFG and the
.BAS programs) to your MSX disk or SD card.
Check: at the MSX-DOS prompt type
p ver
It prints the board (build ID, CPLD, /WAIT yes or no) and the server version.
"Connection error" means the Pi is still booting (the first boot may take three
minutes), the interface is not seated, or the ROM and server versions do not
match. Press CTRL+ESC, wait five seconds, and try again.
p set WIFISSID Your Wifi Name
p set WIFIPWD YourWifiPassword
p wifi set
p reboot
p wifi alone lists the interfaces and addresses. For TCP/IP programs (UNAPI:
InterNestor Lite, telnet, HGET) the Ethernet driver is in the ROM, and the Pi
builds the network behind it with msxpi-tcpip-setup.sh when the server
starts. If the Pi had no default route at boot, run p netreset. Then:
MSR I (MSX-DOS 1 only - do NOT run RAMHELPR)
INL I
HOST GOOGLE.COM
HOST printing an address means the whole path works. p wlanreset resets the
Pi's WiFi. Details: software/UNAPI/README.md.
p dir /home/pi/msxpi
p run uname -a
pcopy m:p.com
msxarch (browse and start ROM games from the network)
LOADROM game.rom /N
p chatgpt Tell me a fun fact about MSX
-
MSX disk (the
.COMfiles): runmsxpiupd.bat(network required). -
Server: run the setup script again, from the Pi or from the MSX:
p run wget https://tinyurl.com/MSXPi-Setup p run chmod 755 MSXPi-Setup p run sudo ./MSXPi-Setup -
ROM: the updater downloads it but never writes it - repeat Step 2.
Update all three together. Run p shut before you switch the MSX off: the Pi is
powered by the MSX, and an SD card can be corrupted by a sudden power cut.
More detail with pictures: documents/Quick Start.odt and the "Hard Way" tutorial
(installing Raspberry Pi OS from scratch; Portuguese version available) in the
documents folder.
The MSXPi device for openMSX emulates the interface, including the CPLD /WAIT
flow control, and talks over a local TCP socket to the same msxpi-server.py
that runs on the Pi. The p commands, BASIC, msxarch, ChatGPT and UNAPI
networking all work as on real hardware, and what you write under openMSX runs
unchanged on the real interface.
- Download
msxpi-openmsx-install.bat(right-click the link, Save link as) and double-click it. It needs no administrator rights, and downloads everything from this repository and from the MSXPi build of openMSX. - It installs Python 3 and the packages the server uses, 7-Zip, Stockfish
and mpv (with winget), then:
C:\home\pi\msxpi- the server,msxpi.iniand thedisksfolderC:\home\pi\msxpi\openMSX- openMSX with the MSXPi device, theMSXPi.xmlextension andmsxpibios.romC:\home\pi\msxpi\start-openmsx.batand an MSXPi desktop shortcut
- Double-click the MSXPi shortcut. It starts the server in its own window,
then openMSX as a Panasonic FS-A1WSX with the MSXPi and 4 MB RAM
extensions. The MSX boots MSX-DOS from the MSXPi boot disk
(
disks\msxpiboot.dsk); no floppy image is needed. - Go on with Step 4 - Try it.
Notes:
- Machine ROMs. openMSX ships only the free C-BIOS ROMs. The FS-A1WSX
needs its own system ROMs: put them in
%USERPROFILE%\Documents\openMSX\share\systemroms(or inC:\home\pi\msxpi\openMSX\share\systemroms). - Internet on the MSX. Run the installer with
-Network(from a command prompt:msxpi-openmsx-install.bat -Network). It also installs the TAP driver, which asks for administrator rights once, and the launcher then sets up the MSX network when needed. See Internet from the MSX in openMSX. - Updating. Run the installer again. It refreshes the server, the ROM and
the extension, and replaces openMSX when a newer MSXPi build is required. It
keeps
msxpi.iniand the disk images.
Steps 1 to 3 below are the manual installation, for Linux and macOS or to set things up by hand on Windows.
The official openMSX lives at https://github.com/openMSX/openMSX (binaries and documentation at https://openmsx.org). The MSXPi device is not in the official build yet, so download openMSX from the MSXPi fork instead:
- https://github.com/costarc/openMSX/releases - take the newest release for
your operating system; the notes of each release say what it contains. Unpack
it anywhere. It includes the MSXPi extension (
MSXPi.xml) and the matchingmsxpibios.rom. - Use the fork release, the
msxpibios.rom, and the server from the same MSXPi version - the device, ROM and server share one protocol. - If you keep your own openMSX, the two data files are also in this repository:
software/openMSX/share/extensions/MSXPi.xmlgoes to openMSX'sshare/extensions, andsoftware/target/msxpibios.romgoes toshare/systemroms(the XML checks its sha1). TheMSXPiDeviceitself is only in builds of the fork. - Two more extensions come from the same build (
software/build, openMSX stage):MSXPiBasic- the BIOS-only ROM (msxpibas.rom), as on a board with the jumper on BANK1 - andMSXPi32K, the whole 32 KB EEPROM with the board's jumpers as openMSX settings, read at reset:set msxpirom_bank BANK2|BANK1(default BANK2) andset msxpirom_sltsl ON|OFF(default ON).MSXPi32Kneeds a fork build with EEPROM support inMSXPiDevice(branchfeature/msxpi-eeprom-jumpers).
- Python 3 (3.9 or newer; on Windows from python.org or the Microsoft Store, with Add to PATH).
- Python modules:
python -m pip install requestsis all the server needs to start. Some commands need more:certifiandchessfor pchess,Pillowandplaywright(thenpython -m playwright install chromium) for renderpage. - 7-Zip (
7z.exeon the PATH) for zip, lzh, pma and 7z archives, used by msxarch andpcopy /z. On Linux/macOS installp7zip,lhasaandunar. - The MSXPi home directory. The server has
/home/pi/msxpibuilt in (setMSXPI_HOMEto use another folder). On Linux and macOS create that folder. On Windows the path resolves on the current drive, so createC:\home\pi\msxpiand start the server from drive C:. Put in it:msxpi-server.py,mapper_detect.pyand everymsxpi_*.pymodule (all fromsoftware/Server/Python/src; the server imports them from its own folder),msxpi.ini(copymsxpi-JumperLeft.iniand rename it), and adisksfolder withmsxpiboot.dskandtools.dskfromsoftware/target/disks. - Add the keys you need to
msxpi.ini(for exampleOPENAIKEYfor ChatGPT). Commands that only make sense on a Pi (wifi,reboot,shut,play) answer "Command not supported on this platform".
cd C:\home\pi\msxpi (Linux/macOS: cd /home/pi/msxpi)
python msxpi-server.py
The server listens on TCP port 5000. Now prepare a folder that openMSX uses
as disk A:. Call it FloppyA, copy MSXDOS.SYS and COMMAND.COM from
software/target/disks into it, and add the MSXPi commands from
software/target. Then start openMSX with the extension:
openmsx -machine Panasonic_FS-A1WSX -ext MSXPi -diska FloppyA
Any MSX2 with 64 KB RAM will do, and Nextor on an SD/IDE image works too.
The fork also has an MSXPiNoROM extension (the ports without the ROM), for
trying BLOAD"MSXPIEXT.BIN",R the way an interface without an EEPROM is used.
Optional: a different port. The device takes the TCP port from the openMSX
setting msxpiserver_port (default 5000). Change it in the openMSX console
(F10) and the device reconnects at once:
set msxpiserver_port 5001
Make the server listen on the same port with the environment variable
MSXPI_PORT (for example set MSXPI_PORT=5001 on Windows before starting it). Use this when port 5000 is taken, or to run two
emulators with two servers.
At the MSX-DOS prompt:
p ver
p dir /
p set
msxarch
p chatgpt Tell me a funny fact about MSX
p ver reports /WAIT: yes (burst) when the device emulates the wait flow
control. "Connection error" means the server is not running, the ports differ,
or the ROM and server versions do not match. Read the log window of the server:
it prints every command it receives.
The MSXPi extension carries real network traffic, so InterNestor Lite, telnet, HGET and the other UNAPI clients work in the emulator exactly as they do on hardware. The emulated MSX gets its own subnet (192.168.99.0/24) and Windows NATs it out through whichever interface carries your default route - the same arrangement the Raspberry Pi uses, and for the same reason: bridging cannot work over WiFi, because an access point will not forward frames whose source MAC is not the associated station's.
This works best with an openMSX whose MSXPi device implements the v1.6 hardware /WAIT flow control (openMSX/openMSX#2194). An older build still works: the ROM probes for wait mode, does not find it, and falls back to the polled transport - the same path MSXPi has always used under emulation. What you lose is the v1.6 speedup, not the connection.
With the Windows installer, run it with -Network instead of steps 1 and
2: it installs the TAP driver, and the MSXPi desktop shortcut sets up the
network (asking for administrator rights) whenever it is missing, including
after a reboot. Then go on with step 3.
Install OpenVPN (https://openvpn.net/community-downloads/) and keep the "TAP Virtual Ethernet Adapter" component, or install the standalone tap-windows6 driver on its own. Afterwards an adapter named "OpenVPN TAP-Windows6" appears in Network Connections - nothing else about OpenVPN is used or needs configuring.
From an elevated PowerShell:
powershell -ExecutionPolicy Bypass -File software/Server/Setup/msxpi-tcpip-setup.ps1
It reports what it did:
adapter: OpenVPN TAP-Windows6 [TAP-Windows Adapter V9]
uplink: Wi-Fi
OpenVPN TAP-Windows6 up: 192.168.99.1/24 mtu 576
NAT: 192.168.99.0/24 -> Wi-Fi
dns: 192.168.1.254
and prints the InterNestor Lite settings to match. Note the "dns:" line - that is the resolver the MSX should use.
This is NOT persistent across reboots; re-run it after a restart. To undo it and give the adapter back to OpenVPN, add "-Down".
Windows generally allows only one NAT instance, and Docker Desktop, Hyper-V and WSL each take one. If something already holds it the script names it and stops rather than half-configuring.
python msxpi-server.py
No administrator rights are needed for this part. It should print:
eth: TAP device OpenVPN TAP-Windows6 up
If it says "TAP unavailable ... falling back to MockLink", something else has the adapter open - a running OpenVPN session will do that. MockLink answers every UNAPI call correctly and carries no traffic at all, so the MSX will look configured and reach nothing.
Start openMSX with the MSXPi extension, then:
MSR I (MSX-DOS 1 only - see below)
INL I
HOST GOOGLE.COM
HOST printing an address means the whole path works. The Ethernet UNAPI
driver is in msxpibios.rom, so nothing needs installing first: ETHUNAPI will
refuse, because the ROM already registers an ETHERNET implementation.
Do not run RAMHELPR I. It installs the UNAPI RAM helper on its own, and MSR.COM installs the mapper support routines AND a helper - so MSR then finds a helper already present and aborts, leaving INL to fail with "No mapper support routines found". A cold boot clears it. Under Nextor or MSX-DOS 2, skip MSR entirely: the mapper routines are already there.
If HOST answers "8: DNS not found" but the link is otherwise up, the resolver
is the problem rather than the network - INL.CFG ships with 1.1.1.1, and some
networks block public resolvers. Use the address the setup script printed:
INL IP P 192.168.1.254
Type p with no arguments (or p /help) to list them. All work under MSX-DOS 1,
MSX-DOS 2 and Nextor. Paths can be on the Pi, on the network (http, https, ftp,
smb) or on one of the virtual drives set with p set: m: (your local
server), r1: and r2: (MSX1 and MSX2 ROMs on msxarchive.nl).
| Command | What it does |
|---|---|
p ver |
board, CPLD build and /WAIT support, then the server version |
p cd, p dir |
change and list the current path |
p run <cmd> |
run a command on the Pi; use :: for a pipe |
p date |
set the MSX date and time from the Pi |
p set [NAME value] |
show or change MSXPi variables (saved in msxpi.ini) |
p wifi, p wifi set |
list interfaces / apply WIFISSID and WIFIPWD |
p wlanreset [secs], p netreset [secs] |
reset the Pi's WiFi / rebuild its TCP/IP setup for UNAPI |
p music, p play, p vol |
audio playback and volume on the Pi |
p reload A: (or B:) |
reload a drive's disk image |
p reboot, p shut, p restart |
reboot / shut down the Pi, restart the server |
p chatgpt <question> |
ask ChatGPT (needs OPENAIKEY) |
p showpage [/4|/6|/8] <url> |
render a web page on the MSX screen |
pchess |
chess on an MSX2 (128 KB VRAM), local or over IRC (see software/Client/src/PCHESS.md) |
nitros |
on-demand NitrOS-9 console on the Pi with the MSXPi interface, or in openMSX on Windows/Linux, with file exchange; see setup |
ssh user@host [port] |
interactive SSH terminal through the MSXPi Raspberry Pi; prompts and passwords appear on the MSX |
pcopy |
copy Pi/network file to the MSX drive (/z unpacks archives) or an MSX file to the Pi |
msxarch |
browse ROM repositories (listed in MSXARCH.INI) and start a game |
LOADROM name /N |
load a plain ROM or MegaROM from the network |
at28c256 |
write the interface EEPROM |
msxpiupd.bat |
update the MSX-side files |
From BASIC use CALL MSXPI("1,C000,dir /home/pi/msxpi") (see target/API.BAS).
The full reference, with examples, is in documents/MSXPi Users and Developers Guide.odt.
- Upgrade as a set. A v1.6 ROM, server,
.COMfiles and CPLD are meant to be used together. Mixed versions usually show up as "Connection error", not as a clear refusal. - /WAIT bursts need a v1.6 CPLD image and a board that wires /WAIT. Boards built for v0.8.2 and v1.0 (PCB v0.7 Rev.7) have no /WAIT connection and run the polled transfers only. At the time of writing, disk writes from the MSX also use the polled transfer while reads use bursts.
- Older boards need settings:
RPI_SHUTDOWN=nonewithout the push-button, andGPIO_CS_SETUP_NS=1000on the v0.8.2 board. On that board the EPROM /OE jumper must be on CS1, never CS12, or programs that call EXTBIO (p,pcopy) hang the MSX. Seehardware/CPLD_Project/LEGACY_BOARDS.md. - MSXPi only carries MSX-DOS 1. Nextor and MSX-DOS 2 are not in the MSXPi ROM; they run from another disk interface that MSXPi coexists with.
- Booting MSX-DOS 1 from the Pi is slow and fragile. It needs the Pi to finish booting first and depends on the disk images; use another interface with Nextor or MSX-DOS 2 for daily work. Do not delete files on drive A: in that mode.
- A stuck transfer needs CTRL+ESC. Hold CTRL and press ESC to abort, wait
about five seconds while the server resynchronises, and retry. ESC alone is
an ordinary key and never aborts a transfer. If commands keep failing, restart
the server (
p restart) or reboot the Pi. - msxarch and MegaROMs. Mappers detected: plain, Konami, Konami SCC, ASCII8 and ASCII16. Other mappers, ROMs that need more RAM than the MSX has, and some titles that rewrite their own bank switching are rejected with a reason or may not run. Bank-switch writes are patched by the server, so what runs is not byte-for-byte the original ROM.
- UNAPI/TCP/IP. Do not run
RAMHELPRbeforeMSRunder MSX-DOS 1 (INL then fails with "No mapper support routines found"; a cold boot clears it). IfHOSTanswers "8: DNS not found" the resolver, not the link, is the problem: useINL IP P <address>. Under openMSX on Windows the TAP setup script must be run again after every reboot, only one Windows NAT instance can exist (Docker Desktop, Hyper-V and WSL each take one), and if the server prints "falling back to MockLink" the MSX looks configured but reaches nothing. - The server on Windows and macOS runs the commands that make sense there;
wifi,reboot,shut,play/musicandvolare Raspberry Pi only. - Hardware compatibility. Some MSX models have unusual slot or bus implementations and may not work; MSX-DOS needs 64 KB RAM. The Pi header must face the correct way for your PCB (a Zero WH has its header on the wrong side for the standard PCB).
- ChatGPT and stock commands need your own API keys in
msxpi.ini; no key ships with MSXPi. - Tests. Server unit tests are in
software/Server/Python/tests; the UNAPI harness is insoftware/UNAPI/harness. - The PDF copies of the documents in
documentsmay be older than the.odtfiles.
Report problems at https://github.com/costarc/MSXPi/issues.
Branches:
master the most recent code; may change within minutes - expect bugs,
and fixes just as fast
release/vX.Y one branch per release (v0.8.2, v1.0, v1.1, v1.2.1b, v1.3,
v1.4, v1.5, v1.6); use these for a known-good state
feature/*, fix/*, docs_*
short-lived working branches; they appear and disappear, and
I recommend you do not use them
Directories:
MSXPi
|-- software
| |-- asm-common
| | |-- include BIOS routines for assembly (msxpi_bios.asm, include.asm, ...)
| | `-- transport generator for the /WAIT burst transfer code
| |-- C-common
| | |-- header msxpi.h - the C BIOS API
| | `-- lib msxpi-bios.c
| |-- ROM/src
| | |-- BIOS BIOS-only ROM bank (msxpibios.asm); BASIC extension (msxpiext.asm)
| | `-- MSX-DOS disk driver and MSX-DOS 1 kernel sources
| |-- Client/src p, pcopy, msxarch, pchess, showpage, templates, at28c256
| | `-- loadrom the LOADROM.COM network patch
| |-- ROM-Patcher ROM patch profiles used by msxarch
| |-- Server
| | |-- Python/src msxpi-server.py and its msxpi_*.py modules, mapper_detect.py,
| | | ini templates, native GPIO engine (native/)
| | |-- Python/tests server unit tests
| | `-- Setup setup scripts (Pi and Windows), update.sh, msxpi-monitor
| | and its systemd unit
| |-- UNAPI Ethernet UNAPI: sources, tools, INL, test harness, documentation
| |-- openMSX MSXPiDevice source, extension XML, build files
| |-- target everything you copy to the MSX (.COM, .BAS, ROM, disks)
| |-- docs mapper, ROM and PChess IRC design notes
| `-- make.bat, make.sh build scripts for the MSX-side programs
|-- hardware
| |-- CPLD_Project VHDL, Quartus project, .pof images for every board
| `-- Schematic KiCad schematic and PCB, Fabrication, BOM
`-- documents Users and Developers Guide, C BIOS Developers Guide,
Quick Start, Legacy Support, tutorials