Emulating MEGAFLASHROMSCC+SD with OpenMSX
This page was last modified 23:01, 20 March 2016 by Giuseve.

Contents

VADEMECUM – OPENMSX and MEGAFLASFROMSCC+SD

A tutorial on how to setup and use MEGAFLASFROMSCC+SD on OPENMSX

1) What we need

  • a) Latest OPENMSX build from here
  • b) DiskExplorer 1.69 + Plugin for MSX from here to manage VirtualHDD MSX IMAGE larger than 16Mb in FAT16
  • c) DiskManager from this website to prepare a 8Mb VirtualHDD with files needed for step2
  • d) The MFRSCCSD files from this website in the FLASH section and Nextor Kernel
  • e) The Notepad++ xml editor from this website
  • f) A .dsk image of your IDE MSX Hard Disk or a ready-to-use-empty .dsk image to populate with the files you want.

2) Preparing a VirtualHDD with files needed to program the MFRSCCSD

Start DiskManager, FILE->NEW->disk capacity CUSTOM->OK->OK and populate the 8Mb image with these files downloaded at the point 1.d

 COMMAND.COM
 COMMAND2.COM		
 DSKROM.ROM		
 KERNEL.DAT		
 MSXDOS.SYS		
 NEXTOR20.ROM	(rename in this way the file downloaded from konamiman website)
 OPFXSD.COM		
 RECOVERY.ROM		
 ROMDISK.DSK	

Add one more file. With notepad prepare a new file called PREPARA.TXT with this content:

 OPFXSD nextor20.rom /I
 OPFXSD dskrom.rom /I1
 OPFXSD romdisk.dsk /ID
 OPFXSD recovery.rom /I34

Save it, rename it PREPARA.BAT and drag it into the DiskManager window. Now save the 8MB image as PIPPO.DSK into the OPENMSX folder. We’ll need it just one time.

3) Customize the SD to use with MFRSCCSD

Delete all .sdc files you find in

Documents\openMSX\persistent\MegaFlashROM_SCC+_SD\untitled1\ 

Now use Notepad++ to open the file

yourOPENMSXfolder\share\extensions\ MegaFlashROM_SCC+_SD.xml

scroll its content to find this key

 <filename>SDcard1.sdc</filename>      
  <size>4096</size>

and modify it with your preferred VirtualSD1 card size in Mbyte (in this case mine is 4096mb) You can do the same with the SDcard2 section. Save it. BE CAREFUL: BIGGER VIRTUAL DISK = LOOOONGER TIME TO WAIT FOR BOOT !!

Now with notepad save a new file called SDIDE.TXT into the OPENMSX folder with this content:

 machine Boosted_MSXturboR_with_IDE
 set auto_enable_reverse off
 set maxframeskip 100
 set power off
 hda insert yourdrive:/yourpath/PIPPO.dsk
 ext MegaFlashROM_SCC+_SD
 set power on

Finally right-click on openmsx.exe to create a shortcut, right-click on the shortcut and in the destination add

 -script sdide.txt

at the end of the command line: this would be the shortcut we’ll use to launch openmsx with MFRSCCSD and IDE.

4) First Boot and Partitioning SD

Boot our MSX using the just-created shortcut. If all is OK during the boot you must see info about Ide and Mfrscc hardware. At the prompt type PREPARA.BAT and let it works. Reboot MSX. Type A: then input BASIC and then CALL FDISK. Choose the MFRSCCSD and then each SD card to (A)DD a partiton and (W)RITE it on the VirtualSd. Our MSX with virtualSD on MEGAFLASHROMSCC+SD is ready.

5) Preparing OpenMSX for an IDE-to-SD copy

Ok, now the problem is that we cannot put files directly into virtualSd. So we must mount a VirtualHDD.dsk as IDE to let us copy all files from this to the virtualSd using our emulated MSX. You can copy all the files you usually use on the RealSD of MFRSCCSD on this VirtualHDD.dsk. For 8/16 MB FAT12 VirtualHDD.dsk you can look at the first part of the point 2. For bigger FAT16 VirtualHDD.dsk you can look around MSX.ORG forum to find how to create it. BlueMSX can help you, also OpenMsx with DiskManipulator utility. Just have a look around. When you created it you can easily populate it using DiskExplorer 1.69 with the MSX extension. MSX.ORG can always help you. Remember to open the image you created choosing VMWARE PLAIN IMAGE option. Whatever solution you choose, this is how to going on.

Look at the point n°3. Change the line #7 of the SDIDE.TXT in this way:

 hda insert yourdrive:/yourpath/yourVirtualHDD.dsk

and save it. Boot your MSX. Copy all files from yourVirtualHDD.dsk to the unit that correspond to your VirtualSD. You can throttle MSX with F9 Key to speed up the operation. You can also use an utility as MultiMente to manage files and disks in a better way. Thanks to the #2 and #3 lines of the SDIDE.TXT file it can only take 1 minute for 100Mbyte, depending on your HW.

6) Use and whishlist

All done. Now you can avoid to use IDE drive because all files are on VirtualSD. To do this delete line #5 of the SDIDE.TXT file (if you prefer you can also change the machine changing line #1: have a look to the OpenMSX manual). From now on you can launch your MSX with MEGAFLASHROMSCC+SD using the shortcut made at the end of point3 or easier with Catapult Launcher choosing your machine & MFRSCC+SD extension. If you want more info about MEGAFLASHROMSCC+SD have a look here

This wokflow is a little bit complex. What it would be useful is a manager for openMsx VirtualSD to easily populate and manage images without using an IDE device to copy from (It would permit to skip the whole point 5). We would also need an easy way to add scripts to the Catapult Launcher of OpenMSX (It would permit to skip halyf of the point 3), while a ready-to-use version of emulated MegaFlashRomSCC+SD would permit to skip the whole point 2. Finally it could be a good idea to have the option to choose the .sdc to use in Catapult when there is also an ide device, because now there is only a place where to chose large media. But I have to admit that DIY is more funny!

© Giuseve 2016 – Rel.20160318