Skip to content

Commit f1fd77a

Browse files
committed
Updating docker image to use zephyr sdk v0.17.3
1 parent 23dd5d1 commit f1fd77a

File tree

2 files changed

+12
-45
lines changed

2 files changed

+12
-45
lines changed

samples/modules/executorch/arm-fvp-tutorials/Dockerfile.armfvp_zephyr

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -106,52 +106,18 @@ RUN cd /home/zephyruser/ && wget https://apt.kitware.com/kitware-archive.sh && \
106106
USER zephyruser
107107
RUN if [ "$TARGETARCH" = "amd64" ]; then \
108108
cd /home/zephyruser/ && \
109-
python3 -m venv .venv && \
110-
source .venv/bin/activate && \
111-
python3 -m pip install --upgrade pip && \
112-
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/zephyr-sdk-0.17.2_linux-x86_64.tar.xz && \
113-
tar -xf zephyr-sdk-0.17.2_linux-x86_64.tar.xz && \
114-
rm -f zephyr-sdk-0.17.2_linux-x86_64.tar.xz && \
115-
cd zephyr-sdk-0.17.2/ && \
116-
./setup.sh -c -t arm-zephyr-eabi; \
109+
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.3/zephyr-sdk-0.17.3_linux-x86_64.tar.xz && \
110+
tar -xf zephyr-sdk-0.17.3_linux-x86_64.tar.xz && \
111+
rm -f zephyr-sdk-0.17.3_linux-x86_64.tar.xz; \
117112
fi
118113

119114
RUN if [ "$TARGETARCH" = "arm64" ]; then \
120115
cd /home/zephyruser/ && \
121-
python3 -m venv .venv && \
122-
source .venv/bin/activate && \
123-
python3 -m pip install --upgrade pip && \
124-
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/zephyr-sdk-0.17.2_linux-aarch64.tar.xz && \
125-
tar -xf zephyr-sdk-0.17.2_linux-aarch64.tar.xz && \
126-
rm -f zephyr-sdk-0.17.2_linux-aarch64.tar.xz && \
127-
cd zephyr-sdk-0.17.2/ && \
128-
./setup.sh -c -t arm-zephyr-eabi; \
116+
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.3/zephyr-sdk-0.17.3_linux-aarch64.tar.xz && \
117+
tar -xf zephyr-sdk-0.17.3_linux-aarch64.tar.xz && \
118+
rm -f zephyr-sdk-0.17.3_linux-aarch64.tar.xz; \
129119
fi
130120

131-
USER zephyruser
132-
RUN cd /home/zephyruser/ && \
133-
source .venv/bin/activate && \
134-
pip install west
135-
136-
RUN cd /home/zephyruser/ && \
137-
source .venv/bin/activate && \
138-
git clone https://github.com/BujSet/zephyr.git && \
139-
cd zephyr/ && \
140-
git switch -c executorch-module-integration origin/executorch-module-integration
141-
142-
RUN cd /home/zephyruser/ && \
143-
source .venv/bin/activate && \
144-
python3 -m pip install --upgrade pip && \
145-
python3 -m pip install west torch numpy && \
146-
python3 -m pip install -r zephyr/scripts/requirements.txt
147-
148-
RUN cd /home/zephyruser/ && \
149-
source .venv/bin/activate && \
150-
west init -l zephyr && \
151-
west config manifest.project-filter -- +executorch && \
152-
west -v update && \
153-
source zephyr/zephyr-env.sh
154-
155121
ENV ZEPHYR_TOOLCHAIN_VARIANT=zephyr
156122
ENV ZEPHYR_SDK_INSTALL_DIR=/home/zephyruser/zephyr-sdk-0.16.0
157123
USER zephyruser

samples/modules/executorch/arm-fvp-tutorials/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ Requires docker to be installed. While the CLI is sufficient to complete this tu
1313
You can copy-paste the commands below to setup up and validate a working flow. Start the docker image with the following command:
1414

1515
```
16-
docker run -it --entrypoint /bin/bash --net=host -w /home/zephyruser/ rselagam/zephyr-armfvp:v8
16+
docker run -it --entrypoint /bin/bash --net=host -w /home/zephyruser/ rselagam/zephyr-armfvp:v11
1717
```
1818

1919
Once in the docker image, run the following commands to set up environment and executorch module of zephyr. Please note that you should replace `<YOUR EMAL>` and `<YOUR USER NAME>` with appropriate GitHub credentials:
2020

2121
```
2222
git config --global user.email "<YOUR EMAIL>" && \
2323
git config --global user.name "<YOUR USER NAME>"
24+
./zephyr-sdk-0.17.3/setup.sh -c -t arm-zephyr-eabi
2425
git clone https://github.com/BujSet/zephyr.git
2526
cd zephyr/
2627
git switch -c executorch-module-integration origin/executorch-module-integration
@@ -52,7 +53,7 @@ Its strongly recommended to use the docker image paired with this tutorial. You
5253
## Pulling the container
5354

5455
```
55-
docker pull rselagam/zephyr-armfvp:v8
56+
docker pull rselagam/zephyr-armfvp:v11
5657
```
5758

5859
## Starting the docker image
@@ -63,13 +64,13 @@ It's often advantageous to map a shared volume between the hsot machine and the
6364
### Linux/macOS
6465

6566
```
66-
docker run -it --entrypoint /bin/bash --net=host -v "$(pwd)"/workspace:/workspace -w /home/zephyruser/ rselagam/zephyr-armfvp:v8
67+
docker run -it --entrypoint /bin/bash --net=host -v "$(pwd)"/workspace:/workspace -w /home/zephyruser/ rselagam/zephyr-armfvp:v11
6768
```
6869

6970
### Windows (PowerShell)
7071

7172
```
72-
docker run -it --entrypoint /bin/bash --net=host -v "${PWD}\workspace:/workspace" -w /home/zephyruser/ rselagam/zephyr-armfvp:v8
73+
docker run -it --entrypoint /bin/bash --net=host -v "${PWD}\workspace:/workspace" -w /home/zephyruser/ rselagam/zephyr-armfvp:v11
7374
```
7475

7576
# Working inside the Docker image
@@ -83,6 +84,7 @@ git clone https://github.com/BujSet/zephyr.git
8384
cd zephyr/
8485
git switch -c executorch-module-integration origin/executorch-module-integration
8586
cd ../
87+
./zephyr-sdk-0.17.3/setup.sh -c -t arm-zephyr-eabi
8688
west init -l zephyr
8789
west config manifest.project-filter -- +executorch
8890
west -v update
@@ -104,7 +106,6 @@ cd ~/modules/lib/executorch/
104106
source /home/zephyruser/modules/lib/executorch/examples/arm/ethos-u-scratch/setup_path.sh
105107
```
106108

107-
108109
### Setup West Build System
109110

110111
```

0 commit comments

Comments
 (0)