How to install PCUAE on Sega MD Mini 2

So in the walkthrough, sn pick which OS you want to do it on.

======================================================================================================

Download PCUAE MD Mini 2 Edition Beta
https://projectcarouselusb.eu/pcuae-md-mini-2-download/

If you have a problem with downloading PCUAE above please contact me, One Drive can be funny sometimes.

Make sure the USB Drive is on MBR and FAT32 before installing PCUAE to the USB Drive, it does not work on NTFS, I wish it did but it mounts the USB Drive as read only and then the PCUAE scripts do not have the right permissions to run.


=========
For Windows
=========

==========================================================
You will need:
Linux File System for Windows – www.paragon-software.com/home/linuxfs-windows
You need to install Linux File System for Windows, so you can see the rootfs in Windows.
A USB A to A Cable, Pic Below.

Two CP2102 Modules USB TTL Serial2USB, Pic Below.

==========================================================

Once you installed PCUAE MD Mini 2 Edition Beta to a USB Drive and Installed Linux File System for Windows then do this:

sudo ./sunxi-fel uboot ./u-boot-sunxi-with-spl-ums-mmc-1.bin


============
For Ubuntu
============

Picture of `rootfs` and `boot` drive from the FEL Mode on MD Mini2 on Ubuntu
==================================================

Right Click on image and open in new window to see it bigger.

Now…

—————————————————————————————–
Then replace the last line in /media/ubuntu/rootfs/etc/inittab
from:
ttyS0::respawn:/sbin/getty 115200 ttyS0to:
ttyUSB0::respawn:/sbin/getty -n -l /bin/sh ttyUSB0 115200 linux —————————————————————————————–

=============
For Windows
=============

Now open the `boot` drive on Windows and make sure you back up the `uImage` file first in it from the MD Mini2 s `boot` drive so to a place on your PCs hard drive for safe keeping, then copy the `uImage` file from the `START-PCUAE-ON-MDMINI2/PCUAE MDMini2 UART ttyUSB` folder and copy it over the `uImage` on the `boot` drive that comes up in Windows to enable `PCUAE UART ttyUSB`, if it says not enough space then delete `uImage` in the `boot` drive and replace it with the new one in `START-PCUAE-ON-MDMINI2/PCUAE MDMini2 UART ttyUSB` folder.

Boot Drive in Windows 10
===========================

If you can not see this drive in Windows then your using Windows 11, you can not see this drive in Windows 11 only on Windows 10, it not mounted correctly on Win11 so will not show the drive.

———————————————————————————————————————————————————————————————–
Now… replace the last line in `/rootfs/etc/inittab`, Open `Linux File System for Windows` and then click on `rootfs` and the 3 dots at top right and click on `Open in File Explorer` and then copy `/rootfs/etc/inittab` to the PC then open it in a editor so like Notepad++ –  notepad-plus-plus.org/downloads/
from:
ttyS0::respawn:/sbin/getty 115200 ttyS0to:
ttyUSB0::respawn:/sbin/getty -n -l /bin/sh ttyUSB0 115200 linux—————————————————————————————–

Then copy `inittab` back to `/rootfs/etc` folder but delete `inittab` file in there first then copy it and replace it.

TIP:
If you change any of the files on the MDMini2 rootfs using `Linux File System for Windows` it might need write permissions so try not to change anything on the MDMini 2 rootfs because the write permissions can only changed in Linux not Windows… 

:)


Now… eject the MMC and power the MD2 off and on so it boots normal, then you can connect 2x CP102 one plugged into the `MD Mini 2` and one plugged into a PC USB Port and able see PCUAE Booting in Putty.

========
        5
========

5. You need the `PCUAE USB Drive` in the `MD Mini 2 Port 1` now, not in `Port 2` like the `MD Mini 1`, you can use a `4 Port USB Hub` on `USB Port 1 on the MD Mini 2` too, to add more USBs to the `MD Mini 2` if you want, it works fine with it, MD Mini 2 USBs do not have a limiter on them like the PS Classic does so you can add a `4 Port USB Hub` OK on USB Port 1, so you can plug in a serial2USB, 6 Button Controller and PCUAE USB Drive.

It works with a `CP2102 Modules USB TTL Serial2USB`, you will need 2 of them and connected to each other so it makes a Serial2USB to Serial2USB, one `CP2102` in the `MD Mini 2` port 1 and the other `CP2102` in a `PC USB Port`, Cable needs to be connect like TX to RX and RX to TX, then you will see its `ttyUSB in Putty` you can use Putty on Windows 10/11 now.

CP2102 Modules USB TTL Serial2USB Pic Below
================================================

www.ebay.co.uk/itm/203604196200

Putty Settings
================

Speed: 115200,

Connection Type: Serial,

Serial Settings
================

COM Port: The port the CP2102 Modules USB TTL Serial2USB is on,

Data Bits: 8,

Stop Bit: 1,

Party: NONE

Flow control: XON/XOFF

PCUAE MD Mini 2 Edition with UART on Windows 10
===================================================

All Done.

=================================
How to add games into PCUAE to Run On MD Mini 2
=================================

Open the `PCUAE USB Drive` and look for the folder `MDMINI-USB-CUSTOM-GAMES`, this is where it keeps the `alldata-setx.bin` files, the ones in there are just examples so will need to make one and then adding it to `alldata-set2.bin`, `alldata-set2.bin` is not a alldata.bin file, it a txt file, its just to show you how to add them, the only one real is the first one `alldata-set1.bin` thats the bin file from the MD Mini 1.

You can add up to 10 sets of games.

To change them then use the  `pcuae_md_settings.txt` file in `/.options/.pcuae_settings_folder` or in the `Sega MD Mini 2 Game SET Changer`(this needs its shortcut buttion updated so it works and uploads on the screen).

Enjoy… 🙂

Spannernick.

PCUAE Creator.

Attachments:

/*
*/