Skip to content

Commit a9acb90

Browse files
psiddhclaude
andcommitted
MV2 ethos-u55: build-only CI check, update README
Instead of fully skipping ethos-u55 for MV2, run export + build (no FVP) so link/compile regressions are still caught. Split the README block into a build-only marker for Corstone-300 and add a note about the 2 MiB ISRAM limitation. Also removes the dead ethos-u55 board-selection branch that the earlier skip made unreachable. Co-authored-by: Claude <noreply@anthropic.com>
1 parent e5a7f6f commit a9acb90

2 files changed

Lines changed: 17 additions & 13 deletions

File tree

.github/workflows/trunk.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,6 @@ jobs:
191191
continue
192192
fi
193193
194-
if [[ ${TARGET} == "ethos-u55" ]]; then
195-
echo "---- Skipping MV2 for ${TARGET} (Corstone-300 ISRAM too small for MV2 runtime pools) ----"
196-
continue
197-
fi
198-
199-
echo "---- MV2 ${TARGET} ----"
200-
rm -Rf build
201-
202194
if [[ ${TARGET} == "ethos-u55" ]]; then
203195
BOARD="corstone300"
204196
elif [[ ${TARGET} == "ethos-u85" ]]; then
@@ -208,14 +200,22 @@ jobs:
208200
exit 1
209201
fi
210202
203+
echo "---- MV2 ${TARGET} ----"
204+
rm -Rf build
205+
211206
echo "---- MV2 ${TARGET} Board ${BOARD} FVP setup ----"
212207
run_command_block_from_readme "${ZEPHYR_SAMPLES_README_PATH}" "<!-- RUN setup_${BOARD}_fvp -->"
213208
214209
echo "---- MV2 ${TARGET} Create PTE ----"
215210
run_command_block_from_readme "${MV2_README_PATH}" "<!-- RUN test_mv2_${TARGET}_generate_pte -->"
216211
217-
echo "---- MV2 ${TARGET} Build and run ----"
218-
run_command_block_from_readme "${MV2_README_PATH}" "<!-- RUN test_mv2_${TARGET}_build_and_run -->"
212+
if [[ ${TARGET} == "ethos-u55" ]]; then
213+
echo "---- MV2 ${TARGET} Build only (Corstone-300 ISRAM too small for runtime pools) ----"
214+
run_command_block_from_readme "${MV2_README_PATH}" "<!-- RUN test_mv2_${TARGET}_build -->"
215+
else
216+
echo "---- MV2 ${TARGET} Build and run ----"
217+
run_command_block_from_readme "${MV2_README_PATH}" "<!-- RUN test_mv2_${TARGET}_build_and_run -->"
218+
fi
219219
done
220220
221221
test-models-linux-aarch64:

zephyr/samples/mv2-ethosu/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ The model classifies a static RGB test input tensor with shape `[1, 3, 224, 224]
1414

1515
## Corstone-300 FVP (Ethos-U55)
1616

17+
> **Note:** Corstone-300 has only 2 MiB ISRAM. The MV2 allocator pools require
18+
> ~3 MiB, so the build will link but FVP execution will fail at runtime.
19+
> Use Corstone-320 (below) for end-to-end MV2 inference.
20+
1721
### Export the model
1822

1923
Export a quantized INT8 MobileNetV2 model with Ethos-U55 delegation:
@@ -23,11 +27,11 @@ Export a quantized INT8 MobileNetV2 model with Ethos-U55 delegation:
2327
python -m modules.lib.executorch.backends.arm.scripts.aot_arm_compiler --model_name=mv2_untrained --quantize --delegate --target=ethos-u55-128 --output=mv2_u55_128.pte
2428
```
2529

26-
### Build and run
30+
### Build (link-check only)
2731

28-
<!-- RUN test_mv2_ethos-u55_build_and_run -->
32+
<!-- RUN test_mv2_ethos-u55_build -->
2933
```
30-
west build -b mps3/corstone300/fvp modules/lib/executorch/zephyr/samples/mv2-ethosu -t run -- -DET_PTE_FILE_PATH=mv2_u55_128.pte
34+
west build -b mps3/corstone300/fvp modules/lib/executorch/zephyr/samples/mv2-ethosu -- -DET_PTE_FILE_PATH=mv2_u55_128.pte
3135
```
3236

3337
## Corstone-320 FVP (Ethos-U85)

0 commit comments

Comments
 (0)