| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains a naive memory testing program that runs natively on the MIPS ARC firmware in little endian mode.
Currently tested on the following configurations:
Should work on the following as well, but untested:
Simply type make. This will build binutils 2.24.51.0.1 and the program.
If you would like an iso image that can be loaded directly into Qemu or be burnt onto a CD run make iso
Insert the CD or Floppy with the exe file into the computer.
Once at the ARC Miltiboot menu select "Run a program" and type cd:\memtest if running from CD, or a:\memtest when running from a floppy.
NOTE When running the system for the first time you must first:
On real hardware and MAME at this point the system will reboot, in Qemu the system will hang. Close Qemu and restart it.
The required firmware files are available on various places online:
NT prom: one of:
MAME specific:
qemu-system-mips64el -d unimp -M magnum -m 64 -net nic -net user -global ds1225y.filename=nvram -bios NTPROM.RAW -cdrom memtest.iso
mame mmr4000le -window -resolution0 auto -ramsize 32M -autoframeskip -nomax -cdrom memtest.iso
The compiler uses system include files for all C library functions, and arclib only implements a small handful. The functions used in the memtest work fine. Furthermore to use malloc() and friends the memory regions available have to be parsed and registered with the malloc implementation. The memory test program does not do this.
Also note that in the start.S of this repository memory caches are disabled. This is to aid in the memory testing, if used as a template for other programs this should probably be removed.
| Back | FazBrowse Home | New Git URL |