obsw docker compile not fully working yet

This commit is contained in:
philippd 2024-03-21 21:21:21 +01:00
parent 4aa1a65bc0
commit 6f6a331152
3 changed files with 28 additions and 6 deletions

View File

@ -1,10 +1,12 @@
# Build with Docker # Build with Docker
##### Info
IRS wireguard VPN can cause network issues with docker.
##### Install Docker ##### Install Docker
https://www.docker.com/get-started/ https://www.docker.com/get-started/
### FSBL ## FSBL
##### Clone the repository and build the docker image: ##### Clone the repository and build the docker image:
@ -13,7 +15,6 @@ cd docker/compile_fsbl/
git clone https://github.com/Xilinx/embeddedsw/ git clone https://github.com/Xilinx/embeddedsw/
docker build -t compile_fsbl . docker build -t compile_fsbl .
``` ```
docker build might fail because of firewall settings or the IRS wireguard VPN.
##### To build the FSBL, run the following command in the `docker/compile-fsbl` directory: ##### To build the FSBL, run the following command in the `docker/compile-fsbl` directory:
@ -26,7 +27,7 @@ If you want, copy the FSBL.elf to the docker/compile_fsbl directory for easier a
cp embeddedsw/lib/sw_apps/zynq_fsbl/src/fsbl.elf . cp embeddedsw/lib/sw_apps/zynq_fsbl/src/fsbl.elf .
``` ```
### mission_rust ## mission_rust (not yet working)
```sh ```sh
cd docker/compile_mission/ cd docker/compile_mission/
docker build -t compile_mission . docker build -t compile_mission .
@ -36,7 +37,16 @@ docker build -t compile_mission .
```sh ```sh
docker run -v $(pwd)/../../mission_rust:/mission_rust compile_mission /bin/bash -c "cargo build -Z build-std" docker run -v $(pwd)/../../mission_rust:/mission_rust compile_mission /bin/bash -c "cargo build -Z build-std"
``` ```
## obsw
```sh
cd docker/compile_obsw/
docker build -t compile_obsw .
```
##### To build the obsw, run the following command in the `docker/compile_obsw` directory:
```sh
docker run -v $(pwd)/../../:/obsw compile_obsw /bin/bash -c "mkdir -p build_cli && cd build_cli && cmake -DCMAKE_TOOLCHAIN_FILE=../bsp_z7/cmake/arm-none-eabi.toolchain . && make -j 8"
```
# Non-Docker suff # Non-Docker suff
@ -61,8 +71,6 @@ cmake -DCMAKE_TOOLCHAIN_FILE=../bsp_z7/cmake/arm-none-eabi.toolchain ..
make -j 4 // or as much threads as your CPU has make -j 4 // or as much threads as your CPU has
``` ```
# Debugging on zedboard # Debugging on zedboard
Requirements [TBC]: Requirements [TBC]:

@ -1 +0,0 @@
Subproject commit 3728f546f178a1bcd91cf6efc9f8921447846cec

View File

@ -0,0 +1,15 @@
FROM debian:12.5
ENV DEBIAN_FRONTEND=noninteractive
# Install required packages
RUN apt-get update && apt-get install -y \
make \
cmake \
gcc-arm-none-eabi \
&& rm -rf /var/lib/apt/lists/*
# Remove the package lists to reduce the image size
WORKDIR /obsw/