Skip to content

Commit 01e29b2

Browse files
committed
Update ExecuTorch setup: change to /home/ubuntu path, add specific version checkout v1.0.0, and add submodule initialization
1 parent 7413d2d commit 01e29b2

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

content/learning-paths/embedded-and-microcontrollers/observing-ethos-u-on-nxp/4-environment-setup.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Use a Docker container to build ExecuTorch:
5757
```bash { output_lines = "2-3" }
5858
docker run -it ubuntu-24-container /bin/bash
5959
# Output will be the Docker container prompt
60-
root@<CONTAINER ID>:/#
60+
ubuntu@<CONTAINER ID>:/#
6161
```
6262

6363
[OPTIONAL] If you already have an existing container:
@@ -76,6 +76,12 @@ Use a Docker container to build ExecuTorch:
7676

7777
{{% /notice %}}
7878

79+
After logging in to the Docker container, navigate to the ubuntu home directory:
80+
81+
```bash
82+
cd /home/ubuntu
83+
```
84+
7985
1. **Install dependencies:**
8086

8187
```bash { output_lines = "1" }
@@ -92,12 +98,16 @@ Use a Docker container to build ExecuTorch:
9298
9399
2. Clone ExecuTorch:
94100
```bash
95-
git clone --depth 1 https://github.com/pytorch/executorch.git
101+
git clone https://github.com/pytorch/executorch.git
102+
cd executorch
103+
git fetch --tags
104+
git checkout v1.0.0
105+
git submodule sync
106+
git submodule update --init --recursive
96107
```
97108
98109
3. Create a Virtual Environment:
99-
```bash { output_lines = "4" }
100-
cd executorch
110+
```bash { output_lines = "3" }
101111
python3 -m venv .venv
102112
source .venv/bin/activate
103113
# Your prompt will prefix with (.venv)

0 commit comments

Comments
 (0)