Skip to content

Commit

Permalink
Iterating rtems demo (space-ros#30)
Browse files Browse the repository at this point in the history
* removing entrypoint warning

Signed-off-by: Dharini Dutia <[email protected]>

* Some example builds

Signed-off-by: Michael Jeronimo <[email protected]>

* Push the other two source directories

Signed-off-by: Michael Jeronimo <[email protected]>

* cpp headers and updates

Signed-off-by: Dharini Dutia <[email protected]>

* removed submodule, added gitignore

Signed-off-by: Dharini Dutia <[email protected]>

* demo

Signed-off-by: Dharini Dutia <[email protected]>

* cleaning

Signed-off-by: Dharini Dutia <[email protected]>

* gtk error 

Signed-off-by: Dharini Dutia <[email protected]>

* remove the GPU flag to simplify dependencies a bit

Signed-off-by: Morgan Quigley <[email protected]>

* bring up the POSIX subsystem for printf with format

Signed-off-by: Morgan Quigley <[email protected]>

Signed-off-by: Dharini Dutia <[email protected]>
Signed-off-by: Michael Jeronimo <[email protected]>
Signed-off-by: Morgan Quigley <[email protected]>
Co-authored-by: Michael Jeronimo <[email protected]>
Co-authored-by: Morgan Quigley <[email protected]>
  • Loading branch information
3 people authored Oct 10, 2022
1 parent c35fd68 commit 69bb62d
Show file tree
Hide file tree
Showing 43 changed files with 17,360 additions and 25 deletions.
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
20 changes: 11 additions & 9 deletions renode_rcc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ WORKDIR /root
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -y && \
apt-get install -y git \
xz-utils \
apt-get install -y automake \
autoconf \
ca-certificates \
git \
make \
netcat \
tree \
vim \
ca-certificates \
wget \
automake \
autoconf \
netcat \
tree
xterm \
xz-utils

ARG RENODE_VERSION=1.13.0

Expand All @@ -22,8 +23,8 @@ RUN wget https://github.com/renode/renode/releases/download/v${RENODE_VERSION}/r
apt-get install -y --no-install-recommends ./renode_${RENODE_VERSION}_amd64.deb python3-dev && \
rm ./renode_${RENODE_VERSION}_amd64.deb
RUN pip3 install -r /opt/renode/tests/requirements.txt --no-cache-dir
RUN git clone https://github.com/tonylitianyu/renode-rtems-leon3.git

RUN git clone https://github.com/antmicro/renode-rtems-leon3.git
COPY renode-rtems-leon3/ /root/renode-rtems-leon3/

WORKDIR /root/renode-rtems-leon3
RUN ./build-rtems.sh
Expand All @@ -34,6 +35,7 @@ RUN mv grlib-gpl-2021.2-b4267 /opt/renode/
ENV PATH $PATH:/opt/renode/rcc-1.3.0-gcc/bin

WORKDIR /root
COPY config .config/renode/

#renode
#s @renode-rtems-leon3/leon3_rtems.resc
15 changes: 15 additions & 0 deletions renode_rcc/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# renode-RCC
Building [RTEMS Cross Compilation System (RCC)](https://www.gaisler.com/index.php/products/operating-systems/rtems), has a different directory structure compare to building RTEMS from source (might not be true). This will run RTEMS on leon3 in a renode simulation.

## Usage
To run the simulator in docker container
```
renode
```

> If you face GTK protocol error then exit the container, run `xhost + local:` and restart the conatiner to allow other users (including root) run programs in the current session.

In the renode window, run
```
start
s @renode-rtems-leon3/leon3_rtems.resc
```
22 changes: 22 additions & 0 deletions renode_rcc/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[general]
terminal = Termsharp
collapse-repeated-log-entries = True
compiler-cache-enabled = False
serialization-mode = Generated
use-synchronous-logging = False
always-log-machine-name = False
log-history-limit = 1000
history-path = /root/.config/renode/history
[monitor]
consume-exceptions-from-command = True
break-script-on-exception = True
number-format = Hexadecimal
[plugins]
enabled-plugins =
[termsharp]
append-CR-to-LF = True
font-face = Roboto Mono
font-size = 20
window-width = 700
window-height = 400

Loading

0 comments on commit 69bb62d

Please sign in to comment.