Topic: Howto: setting up your brand new Replay board the first time

0) Background

First, you may check out the great video from Adam about unpacking and using the Replay board:
http://www.fpgaarcade.com/punbb/viewtopic.php?id=290

To understand how to set up the board and cores, here a short overview what the board does when you switch it on:

* first the ARM bootloader checks if the button on the Replay board is pressed (checked directly at power up)
  - if yes, it initialises the USB port and awaits commands from the PC for flashing, see here about this process:
    http://www.fpgaarcade.com/punbb/viewtopic.php?id=126
  - if no, the Replay firmware is launched
  - this stage does not use any Replay hardware except the USB port and the button (so no video activated)

* the Replay firmware initialises the hardware and checks for a SDCARD inserted
  - in this stage, still no keyboard or video is available
  - if a card is found with a Replay loader in the root directory, it is transferred to the FPGA
    (to be accurate, it looks for a "replay.ini" file in the root, which loads then the FPGA *.bin file and an optional image)
  - if not, an emergency setup is transferred to the FPGA to set up video with a basic OSD, asking to insert a SDCARD

* when a proper loader is set up from the root of the SDCARD, the OSD menu is initialised
  - the user can now select the "load target" menu, and browse through the SDCARD to select a core INI file

* when a INI file is selected, the ARM parses the file and executes it content
  - this either loads a Replay application ("rApp") like the firmware flasher or it loads a core, like the AGA Amiga
  - cores may define their additional OSD menu entries for configuration

* if one wants to start a core directly (w/o OSD), it is possible to copy the whole core setup to the root directory. Then rename the INI file which needs to be started at power up to "replay.ini", as this is the first file the firmware looks for in the root directory.

-----------------------------------------------------------------------------------------

1) Prerequisites

You need:

  * a 5V power supply (a 5V 1A wall supply is just fine for a plain Replay board, see also FAQ on power supplies)
  * a PS/2 keyboard
  * a video cable (with DVI adapter)
  * optional: joysticks, PS/2 mouse and other equipment (depends on the cores you want to use)

  * an actual ARM firmware (see HOWTOs on upgrading the Replay ARM firmware, if required)
  * an actual Replay loader (an exemplary version is attached to this post)
  * cores and rApps - otherwise the board won't do very much...
     - You find the data usually in the SVN at ...\hw\replay\cores\*\sdcard, if available for the core
     - For now there is only one rApp for flashing at ...\sw\arm_sw\Replay_Apps\rAppFlashUpdater\sdcard

  * for debugging (not needed for operation!): a serial cable (or USB serial adapter) plus a terminal program like PUTTY

-----------------------------------------------------------------------------------------

2) Procedure

  * set up the SDCARD, do a FAT16 or FAT32 format (NTFS or ext2/ext3/... won't work)
  * copy the Replay loader to the root directory
  * set up sub directories for each core and rApp and copy the data there
  * set up your board with a monitor and a keyboard
  * insert the SDCARD in the Replay board slot and power the board up
  * with "F12" you can open/close the OSD menu
  * with "F11" you can (cold-)reset the running core
  * navigate in OSD and file browser with the cursor keys
  * use ENTER to select and ESC to cancel

  * now you can open the OSD menu and load a core INI file (via the "load target" menu item)
  * depending on the core, you may find additional menu items for configuration
  * you can also save a certain configuration and load it again (but you can safe only one file yet,
     so you may want to take the SDCARD out and rename the file on a PC for preserving several core configurations)

  * the loader offers also some basic tests for your setup, like a test video frame and a audio test

Not needed for normal operation (tracing the ARM boot and operation):

  * you may follow the Replay boot process when connecting a serial cable (or USB adapter) on the single 9-pin
     connector on the back of the Replay board and launching a terminal program with the setting:  115200/8/N/1
     (cores may use the serial line as well, for this set the jumper near the connector from ARM to FPGA)

-----------------------------------------------------------------------------------------

3) Further notes on video output at startup: SD versus HD mode

By default, the loader starts up in 60Hz progressive mode ("HD mode"). Thus, you need to connect a DVI monitor or - via adapter - a VGA or HDMI monitor.

If you want to use the composite or s-video output on power-up (if equipped), you need to edit the "replay.ini" file found in the root directory of your SDCARD:

Find this lines:

item = "Video Mode",       0x00000020,dynamic
option = " HD 720x480p60", 0x00000020,default
option = " SD 720x480i60", 0x00000000

And change the ",default" as shown below:

item = "Video Mode",       0x00000020,dynamic
option = " HD 720x480p60", 0x00000020
option = " SD 720x480i60", 0x00000000,default

This will start up your board in "SD mode", which will work on a TV (with NTSC support) using a composite, s-video or - via adapter - HDMI or  SCART cable.

Have fun!

-----------------------------------------------------------------------------------------

Post's attachments

replay_loader_6mar2014.zip 93.16 kb, 63 downloads since 2014-04-06 

You don't have the permssions to download the attachments of this post.
/WoS

Re: Howto: setting up your brand new Replay board the first time

Very good! Can I include this in the manual, which is under GNU Free Documentation License?

Re: Howto: setting up your brand new Replay board the first time

Yes, no problem.

/WoS

Re: Howto: setting up your brand new Replay board the first time

While waiting for my board I decided it is time to do some reading... and of course questions arise smile

"* copy the Replay loader to the root directory
  * set up sub directories for each core and rApp and copy the data there"

Where would I get these files cores from?

"By default, the loader starts up in 60Hz progressive mode ("HD mode"). Thus, you need to connect a DVI monitor or - via adapter - a VGA or HDMI monitor."

What if I want to have it running in HD mode, but 50Hz which is more suitable for Amiga + C64? Would I do this:

option = " HD 720x480p50", 0x00000020,default

Thanks smile

ɃºïȠǥ!

Re: Howto: setting up your brand new Replay board the first time

Some (roughly tested) stuff is released here on the forum. There is no download section (yet).

The loader is for download here:
http://www.fpgaarcade.com/punbb/viewtopic.php?id=355
Mike releases the Amiga here:
http://www.fpgaarcade.com/punbb/viewtopic.php?id=356
I release the C64 here:
http://www.fpgaarcade.com/punbb/viewtopic.php?id=364
and the VIC-20 here:
http://www.fpgaarcade.com/punbb/viewtopic.php?id=227

The c64 and vic-20 is PAL only for now. So there is no 60Hz mode you can select like with the Amiga, you can just select interlaced or progressive.

/WoS

Re: Howto: setting up your brand new Replay board the first time

Thanks a lot for the links!

wolfgang wrote:

Some (roughly tested) stuff is released here on the forum. There is no download section (yet).
The c64 and vic-20 is PAL only for now. So there is no 60Hz mode you can select like with the Amiga, you can just select interlaced or progressive.

Oh, but I am not interested in 60hz modes smile - only 50hz mode using the DVI connector (perhaps to a TV via an HDMI adapter).

Will that pose a problem?

ɃºïȠǥ!

Re: Howto: setting up your brand new Replay board the first time

TV sets should support most modes on HDMI.

/WoS

8 (edited by Everblue 2014-12-01 20:50:39)

Re: Howto: setting up your brand new Replay board the first time

Awesome, thanks for helping smile

By the way, my PC monitor supports 50hz via VGA. Whater are the chances of also supporting 50hz via DVI?

ɃºïȠǥ!

9 (edited by Everblue 2014-12-02 08:51:04)

Re: Howto: setting up your brand new Replay board the first time

wolfgang wrote:

The c64 and vic-20 is PAL only for now. So there is no 60Hz mode you can select like with the Amiga, you can just select interlaced or progressive.

Do I have to set option like this then:

option = " HD 720x480p50" (instead of 60) - or it can be changed from a menu once the FPGA is switched on?

ɃºïȠǥ!

10

Re: Howto: setting up your brand new Replay board the first time

both, you can select via OSD or prepare an ini to load the right set up directly

/WoS

Re: Howto: setting up your brand new Replay board the first time

Aha, so I will let it good 60hz, then switch to 50hz via OSD smile

ɃºïȠǥ!