[PATCH 6/6] or1ksim: Update README
Hesham ALMatary
heshamelmatary at gmail.com
Mon Sep 15 22:33:33 UTC 2014
Modify README to provide instruction on how to run or1ksim BSP on
latest or1ksim emulator built from github repo and add commands
to run or1ksim BSP on QEMU.
---
c/src/lib/libbsp/or1k/or1ksim/README | 38 +++++++++++++++++++-----------------
1 file changed, 20 insertions(+), 18 deletions(-)
diff --git a/c/src/lib/libbsp/or1k/or1ksim/README b/c/src/lib/libbsp/or1k/or1ksim/README
index 9ce5709..22ecbfa 100644
--- a/c/src/lib/libbsp/or1k/or1ksim/README
+++ b/c/src/lib/libbsp/or1k/or1ksim/README
@@ -1,14 +1,14 @@
-This BSP should run only on or1ksim: the main simulator for or1k architecture.
-or1ksim should be used for testing purposes.
-
-svn co http://opencores.org/ocsvn/openrisc/openrisc/trunk/or1ksim
-cd or1ksim
-mkdir builddir_or1ksim
-cd builddir_or1ksim
-../configure --target=or32-elf --prefix=/opt/or1ksim
-make all
-make install
-export PATH=/opt/or1ksim/bin:$PATH
+This BSP should run on or1ksim: the main simulator for or1k architecture.
+or1ksim should be used for testing purposes. It also runs on QEMU.
+
+$ git clone git at 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
@@ -20,16 +20,18 @@ rtems-tools/sim-scripts.
From command line type:
-sim -f sim.cfg $PATH_TO_RTEMS_EXE
+$ sim -f sim.cfg $PATH_TO_RTEMS_EXE (old or1ksim releases)
-or (if you use a stable or1ksim release)
+or (if you use a stable/gitgub or1ksim release)
-or32-elf-sim -f sim.cfg $PATH_TO_RTEMS_EXE
+$ or1k-elf-sim -f sim.cfg $PATH_TO_RTEMS_EXE
-from sim-scripts:
+From QEMU:
-or1ksim $PATH_TO_RTEMS_EXE
+$ qemu-system-or32 -serial mon:stdio -serial /dev/null -net none -nographic \
+ -m 128M -kernel $PATH_TO_RTEMS_EXE
-and then attach GDB to or1ksim from another terminal by running
+from sim-scripts:
-or1ksim-gdb $PATH_TO_RTEMS_EXE
+$ or1ksim $PATH_TO_RTEMS_EXE
+$ qemu-or1k $PATH_TO_RTEMS_EXE
--
1.9.3
More information about the devel
mailing list