diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-25 15:06:08 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-26 07:17:57 +0200 |
commit | eb36d1198cdf9dc1e2f776ef6e1e38755f6d13c5 (patch) | |
tree | 14177ad7a58c06a3c537d1e55dae7bc369a1a4b9 /bsps/or1k | |
parent | bsps: Remove unmaintained times files (diff) | |
download | rtems-eb36d1198cdf9dc1e2f776ef6e1e38755f6d13c5.tar.bz2 |
bsps: Move documentation, etc. files to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'bsps/or1k')
-rw-r--r-- | bsps/or1k/generic_or1k/README | 34 | ||||
-rw-r--r-- | bsps/or1k/generic_or1k/sim.cfg | 105 |
2 files changed, 139 insertions, 0 deletions
diff --git a/bsps/or1k/generic_or1k/README b/bsps/or1k/generic_or1k/README new file mode 100644 index 0000000000..015286c208 --- /dev/null +++ b/bsps/or1k/generic_or1k/README @@ -0,0 +1,34 @@ +This BSP can run on or1ksim, QEMU, jor1k [1] and OpenRISC supported FPGA boards. + +$ git clone git@github.com:openrisc/or1ksim.git +$ cd or1ksim +$ mkdir builddir_or1ksim +$ cd builddir_or1ksim +$ ../configure --target=or1k-elf --prefix=/opt/or1ksim +$ make all +$ make install +$ export PATH=/opt/or1ksim/bin:$PATH + +Configuration file "sim.cfg" should be provided for complex board +configurations at the current directory (which you run or1ksim from) or at +~/.or1k/ + +The current sim.cfg file that configures or1ksim emulator to RTEMS/or1ksim BSP +is at the same directory as this README. You can also use or1ksim script from +rtems-tools/sim-scripts. + +From command line type: + +$ or1k-elf-sim -f sim.cfg $PATH_TO_RTEMS_EXE + +From QEMU: + +$ qemu-system-or32 -serial mon:stdio -serial /dev/null -net none -nographic \ + -m 128M -kernel $PATH_TO_RTEMS_EXE + +from sim-scripts: + +$ or1ksim $PATH_TO_RTEMS_EXE +$ qemu-or1k $PATH_TO_RTEMS_EXE + +[1] http://s-macke.github.io/jor1k/demos/rtems.html diff --git a/bsps/or1k/generic_or1k/sim.cfg b/bsps/or1k/generic_or1k/sim.cfg new file mode 100644 index 0000000000..1032f0d4ce --- /dev/null +++ b/bsps/or1k/generic_or1k/sim.cfg @@ -0,0 +1,105 @@ +section memory + name = "RAM" + random_seed = 12345 + type = random + ce = 0 + mc = 0 + baseaddr = 0x00000000 + size = 0x08000000 + delayr = 1 + delayw = 2 +end + +section immu + enabled = 0 + nsets = 64 + nways = 1 + pagesize = 8192 + hitdelay = 0 + missdelay = 0 +end + +section dmmu + enabled = 0 + nsets = 64 + nways = 1 + pagesize = 8192 + hitdelay = 0 + missdelay = 0 +end +section mc + enabled = 0 + baseaddr = 0x90000000 + POC = 0x0000000a /* 32 bit SSRAM */ + index = 0 +end + +section ic + enabled = 1 + nsets = 256 + nways = 1 + blocksize = 32 + hitdelay = 20 + missdelay = 60 +end + +section dc + enabled = 1 + nsets = 256 + nways = 1 + blocksize = 32 + load_hitdelay = 40 + load_missdelay = 120 + store_hitdelay = 40 + store_missdelay = 120 +end + +section pic + enabled = 1 + edge_trigger = 1 +end + +section sim + verbose = 1 + debug = 0 + profile = 0 + history = 0 + clkcycle = 10ns /* 100MHz clock */ +end + +section VAPI + enabled = 1 + server_port = 50000 + log_enabled = 1 + vapi_log_file = "vapi.log" +end + +section cpu + ver = 0x12 + cfg = 0x00 + rev = 0x0001 + upr = 0x0000075f + superscalar = 0 + hazards = 0 + dependstats = 0 + sbuf_len = 100 +end + +section debug + enabled = 1 + rsp_enabled = 1 + rsp_port = 50001 +end + +section uart + enabled = 1 + baseaddr = 0x90000000 + #channel = "xterm" + channel = "file:uart0.rx,uart0.tx" + irq = 2 + 16550 = 1 +end + +section pm + enabled = 1 +end |