[rtems commit] or1ksim: Update README

Joel Sherrill joel at rtems.org
Tue Sep 16 14:45:22 UTC 2014


Module:    rtems
Branch:    master
Commit:    bbecf04172d330ad2d5e4a4e828e921e8f5471df
Changeset: http://git.rtems.org/rtems/commit/?id=bbecf04172d330ad2d5e4a4e828e921e8f5471df

Author:    Hesham ALMatary <heshamelmatary at gmail.com>
Date:      Mon Sep 15 17:33:33 2014 -0500

or1ksim: Update README

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 files 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



More information about the vc mailing list