FPGA project - DE1 - OneChipMSX

Project: testing out OneChipMSX on the DE1 board

links

robinsonb5/OneChipMSX, MSX Resource Center, OneChipMSX Quick Start,

back to main Altera DE1, OneChipMSX page.

History

2021-10-03: I re-created this page on my self-hosted web server.

2018-09-13: c1 - testing - with the SDcard inserted, the OneChipMSX loads bios (msx3bios.sys) from the sdcard, and boots to MSX-DOS. Nice.

2018-09-13: c1 - create a SD card for the OneChipMSX. By luck, I found a 128 MB SDcard. create MBR partitioning

root@kg-core1# gpart create -s MBR da0
da0 created

add a fat16 partition

root@kg-core1# gpart add -t fat16 da0
da0s1 added

create FAT16 filesystem on it

root@kg-core1# newfs_msdos -F 16 /dev/da0s1
/dev/da0s1: 248128 sectors in 15508 FAT16 clusters (8192 bytes/cluster)
BytesPerSec=512 SecPerClust=16 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=61 SecPerTrack=32 Heads=64 HiddenSecs=0 HugeSectors=248288

mount it

root@kg-core1# mount -t msdosfs /dev/da0s1 /media

copy necessary files to it

tingo@kg-core1$ cp -v msx3bios.sys /media
msx3bios.sys -> /media/msx3bios.sys
tingo@kg-core1$ cp -v bios_m2p.rom /media
bios_m2p.rom -> /media/bios_m2p.rom
tingo@kg-core1$ cp -v MSXDOS2.SYS /media
MSXDOS2.SYS -> /media/MSXDOS2.SYS
tingo@kg-core1$ cp -v COMMAND2.COM /media
COMMAND2.COM -> /media/COMMAND2.COM

copy useful files to it

tingo@kg-core1$ cp -v ROMLOAD.COM /media
ROMLOAD.COM -> /media/ROMLOAD.COM
tingo@kg-core1$ cp -v EXECROM.COM /media
EXECROM.COM -> /media/EXECROM.COM

ok. Now unmount and insert into OneChipMSX.

2018-09-12: c1 - test - on the VGA monitor I now have a picture that says

"SD init ..."
"SDHC not supported;" (I have a4GB SDHC card inserted)
"disabling SD card"
"> OK"

I press enter (I have a PS/2 keyboard connected)

"Trying MSX3BIOS.SYS"
"Trying BIOS_M2P.ROM"
"Loading BIOS failed"

at least I know which files it looks for. When I look at the file boot.c (in Firmware/CtrlROM/) I see that - SDHC is not supported - FAT32 is not supported - it looks for a configuration file OCMSX.CFG good to know.

2018-09-12: c1 - programming - I used UrJTAG to send the .svf file to the fpga.

jtag> cable UsbBlaster vid=0x09fb pid=0x6001
Connected to libftdi driver.
seq_purge(): ftdi_read_data() failed: usb bulk read failed
Error: Cable initialization failed!
jtag> cable UsbBlaster vid=0x09fb pid=0x6001
Connected to libftdi driver.

(had to do the cable twice - don't know if it is chance, or an error)

jtag> bsdl path /home/tingo/doc/Altera/docs/fpga/bsdl/
jtag> detect
Warning: TDO seems to be stuck at 0
jtag> detect
IR length: 10
Chain length: 1
Device Id: 00000010000010110011000011011101 (0x00000000020B30DD)
  Filename:     /home/tingo/doc/Altera/docs/fpga/bsdl//EP2C20F484.BSD

(had to do detect twice, too)

jtag> svf /home/tingo/personal/projects/fpga/altera/C2/de1/robinsonb5/OneChipMSX/fpga/de1/output_files/OCMSX.svf
Warning: USB-Blaster frequency is fixed to 12000000 Hz
Warning svf: unimplemented mode 'ABSENT' for TRST

and the file got to the fpga all right.

2018-09-12: c1 - compiled in Quartus II, without errors.

2018-09-12: c1 - I set up the OneChipMSX project. Details: workstation:

tingo@kg-core1$ uname -a
FreeBSD kg-core1.kg4.no 10.4-STABLE FreeBSD 10.4-STABLE #1 r329982: Sun Feb 25 20:35:06 CET 2018
     root@kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

directory

tingo@kg-core1$ pwd
/home/tingo/personal/projects/fpga/altera/C2/de1/robinsonb5/OneChipMSX

Quartus II 13.0sp1

$ ~/progs/altera/13.0sp1/quartus/bin/quartus --64bit

ok