From 62b8bc4cb2813347b05ce15994decbc6694c22d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A0rius=20Mont=C3=B3n?= Date: Wed, 25 Sep 2019 08:15:08 +0200 Subject: [PATCH] better docker explanation --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a38101..282c242 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ $ ./RISCV_TLM asm/BasicLoop.hex ### Arguments -D loglevel: 3 for detailed (INFO) log, 0 to ERROR log level + -f filename .hex filename to use ## Cross-compiler @@ -147,10 +148,16 @@ This container has RISCV-TLM already build at /usr/src/riscv64/RISCV-TLM directo $ docker pull mariusmm/riscv-tlm $ docker run -v /:/tmp -u $UID -e DISPLAY=$DISPLAY --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" -it mariusmm/riscv-tlm /bin/bash -# cd /usr/src/riscv64/RISCV_TLM/ +# cd /usr/src/riscv64/RISC-V-TLM/ # ./RISCV_TLM /tmp/ ``` +or you can call binary inside docker image directly: + +``` +$ docker run -v /:/tmp -u $UID -e DISPLAY=$DISPLAY --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" -it mariusmm/riscv-tlm /usr/src/riscv64/RISC-V-TLM/RISCV_TLM /tmp/ +``` + I'm using docker image [zmors/riscv_gcc](https://hub.docker.com/r/zmors/riscv_gcc) to have a cross-compiler, I'm using both docker images this way: ``` console1: