From 9b9a36159e3ad21f01b0ebcafab53cbbafd488f7 Mon Sep 17 00:00:00 2001 From: HeartLinked Date: Thu, 12 Sep 2024 14:33:28 +0800 Subject: [PATCH] fix some errors in the document --- src/chap02/apps/wamr.md | 4 ++-- src/chap02/env-config.md | 2 +- translations/en/chap02/apps/wamr.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chap02/apps/wamr.md b/src/chap02/apps/wamr.md index 53bf886..72ac965 100644 --- a/src/chap02/apps/wamr.md +++ b/src/chap02/apps/wamr.md @@ -6,7 +6,7 @@ RuxOS 支持在 Qemu 上通过wasm运行时 [WAMR](https://github.com/bytecodeal WAMR是一个轻量级的wasm运行时,支持在嵌入式设备上运行wasm应用。RuxOS提供了Hello World和2048小游戏的wasm应用作为示例,同时支持WASI-NN,具有运行神经网络模型的能力。 -将[rux-wamr](https://github.com/syswonder/rux-wamr)克隆到RuxOS项目的apps/c/wamr目录下,有如下结构: +将[rux-wamr](https://github.com/syswonder/rux-wamr)克隆到RuxOS项目的apps/c目录下,有如下结构: ```txt ├── axbuild.mk @@ -25,7 +25,7 @@ WAMR的编译依赖于cmake,所以在编译WAMR之前需要安装cmake。 在RuxOS根目录运行下面的命令,会启动hello world的wasm应用。 ```shell -make A=apps/c/wamr ARCH=aarch64 LOG=info SMP=4 MUSL=y NET=y V9P=y V9P_PATH=apps/c/wamr/rootfs ARGS="iwasm,/main.wasm" run +make A=apps/c/rux-wamr ARCH=aarch64 LOG=info SMP=4 MUSL=y NET=y V9P=y V9P_PATH=apps/c/rux-wamr/rootfs ARGS="iwasm,/main.wasm" run ``` 参数解释: diff --git a/src/chap02/env-config.md b/src/chap02/env-config.md index c68a40a..54b5a64 100644 --- a/src/chap02/env-config.md +++ b/src/chap02/env-config.md @@ -10,7 +10,7 @@ 通过以下两条命令判断是否安装好 Rust 环境与 cargo 工具: ```bash -rustv --version +rustc --version cargo --version ``` diff --git a/translations/en/chap02/apps/wamr.md b/translations/en/chap02/apps/wamr.md index 3b16a0a..7d47b75 100644 --- a/translations/en/chap02/apps/wamr.md +++ b/translations/en/chap02/apps/wamr.md @@ -6,7 +6,7 @@ RuxOS supports running wasm applications on Qemu through wasm runtime [WAMR](htt WAMR is a lightweight wasm runtime that supports running wasm applications on embedded devices. RuxOS provides wasm applications of Hello World and 2048 game as examples. And it also supports WASI-NN, which has the ability to run neural network models. -Clone [rux-wamr](https://github.com/syswonder/rux-wamr) to the apps/c/wamr directory of the RuxOS project, with the following structure: +Clone [rux-wamr](https://github.com/syswonder/rux-wamr) to the apps/c directory of the RuxOS project, with the following structure: ```txt ├── axbuild.mk @@ -25,7 +25,7 @@ The compilation of `WAMR` depends on `cmake`. Run the following command in the RuxOS root directory, which will start the hello world wasm application. ```shell -make A=apps/c/wamr ARCH=aarch64 LOG=info SMP=4 MUSL=y NET=y V9P=y V9P_PATH=apps/c/wamr/rootfs ARGS="iwasm,/main.wasm" run +make A=apps/c/rux-wamr ARCH=aarch64 LOG=info SMP=4 MUSL=y NET=y V9P=y V9P_PATH=apps/c/rux-wamr/rootfs ARGS="iwasm,/main.wasm" run ``` Parameter explanation: