Back to home page

LXR

 
 

    


Warning, /bsps/or1k/generic_or1k/README.md is written in an unsupported language. File is not indexed.

0001 Generic or1k
0002 ============
0003 
0004 This BSP can run on or1ksim, QEMU, jor1k [1] and OpenRISC supported FPGA boards.
0005 
0006 ```shell
0007 $ git clone git@github.com:openrisc/or1ksim.git
0008 $ cd or1ksim
0009 $ mkdir builddir_or1ksim
0010 $ cd builddir_or1ksim
0011 $ ../configure --target=or1k-elf --prefix=/opt/or1ksim
0012 $ make all
0013 $ make install
0014 $ export PATH=/opt/or1ksim/bin:$PATH
0015 ```
0016 
0017 Configuration file "sim.cfg" should be provided for complex board
0018 configurations at the current directory (which you run or1ksim from) or at
0019 ~/.or1k/
0020 
0021 The current sim.cfg file that configures or1ksim emulator to RTEMS/or1ksim BSP
0022 is at the same directory as this README. You can also use or1ksim script from
0023 rtems-tools/sim-scripts.
0024 
0025 From command line type:
0026 
0027 ```shell
0028 $ or1k-elf-sim -f sim.cfg $PATH_TO_RTEMS_EXE
0029 ```
0030 From QEMU:
0031 
0032 ```shell
0033 $ qemu-system-or32 -serial mon:stdio -serial /dev/null -net none -nographic \
0034   -m 128M -kernel $PATH_TO_RTEMS_EXE
0035 ```
0036 
0037 from sim-scripts:
0038 
0039 ```shell
0040 $ or1ksim $PATH_TO_RTEMS_EXE
0041 $ qemu-or1k $PATH_TO_RTEMS_EXE
0042 ```
0043 
0044 [1] http://s-macke.github.io/jor1k/demos/rtems.html