Here is the first batch of software for the board. First file is for programming the CPLD - it support only serial port, sram and Flash currently. You need to take the file below and extract on Windows box with Altera version 13 which supports the CPLD. using byte blaster program the CPLD.
Next up is the building of the cross compiler tools. The tar file below needs to be extracted into a directory and then a sub directory needs to be made. cd to the subdirectory and do ../build_cross_gcc.sh and it will fetch all the sources and build the cross compiler. The tools and all the Makefiles assume the tools will be installed in /opt/m68k. If you change you will have to adjust the build script and all the Makefiles. The tools have been tested on Linux and Mac. I have no support for Windows. If you try Windows you probably should use virtual box and create a linux VM for work.
After tools are build then libgloss and mcurses need to be built. Extract them and do a make and then a make install.
Now we have all the tooling in place to do bringup of board.
First bring up program is called FlashLoop. This executes a simple nop loop so that signals can be verified (CSROM, AS, MRESET, DS, DSACK0, etc). Extract and do a make and burn the resultant bin file into Flash. The activity led should appear continuos. You don't want to see the status LED. If you see that you will need to debug - no use going further until this test runs.
Next test program is scream. This program just loops forever outputting a “3” to the serial port. Configure the serial port to 9600 8 bit no parity 2 stop bits. You should also enable hardware flow control on your terminal program. Also note going forward the make command is make TARGET_MACHINE=Xagdin TYPE=ROM. You either need to un-comment in the Makefile or export these as environment variables in the shell. I use eclipse CDT for development so I have set these up in eclipse to be build configuration and switch the active configuration when I need to. All the software is designed to run on multiple 68xxx platforms so this controls the platform build.
Next test program is echo which is very similar to scream except it just echos what you type on the keyboard back to you. Same serial port parameters, etc.
Next test program is memtest. This verifies that the SRAM on the board can be used for stack and heap. This does a crude memory test by writing and reading patterns into SRAM. The output will look like S1234D <crlf>. It will loop forever.
After memory is verified it means we can now use the SRAM for a stack and variable storage (that is we can now use C as a language to write code). HelloWorld is the classic program for this. This program will print Hello World ! in an infinite loop using C code. The serial port speed is set to 38400 for this test and further I will probably go to 56K to make program loading into RAM fast.
Next up will be a basic monitor base on the Gryphon monitor which supports visual memory editting, etc.