Skip to content

Commit 8c0fac3

Browse files
committed
Modify the toolchain path
1 parent c85d50d commit 8c0fac3

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

bsp/xuantie/virt64/c906/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Codename: noble
3838

3939
### 2.1. Installing the toolchain
4040

41-
- Compiler: [Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2-20250410.tar.gz](https://www.xrvm.cn/community/download?id=4433353576298909696)
41+
- Compiler: [Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2-20250410.tar.gz](https://github.com/RT-Thread/toolchains-ci/releases/download/v1.9/Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2.tar.gz)
4242
- Emulator: [Xuantie-qemu-x86_64-Ubuntu-20.04-V5.0.5-B20250108-0335.tar.gz](https://www.xrvm.cn/community/download?id=4397435198627713024)
4343

4444
Note: If the emulator in the above link does not work, you can compile the emulator using the following repository
@@ -52,7 +52,7 @@ There are three environment variables related to the RT-Thread toolchain
5252
- `RTT_CC_PREFIX`: is the toolchain prefix, in this case `"riscv64-unknown-elf-"` for the Standard Edition and `"riscv64-unknown-linux-musl-"` for the Smart Edition.
5353
- `RTT_EXEC_PATH`: the path to the bin folder of the toolchain, e.g. `"$HOME/tools/Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2/bin"`, this is based on the path of the toolchain that was downloaded and unpacked by the user. Thread Standard and Smart versions are two different toolchains, and the path name of `RTT_EXEC_PATH` should be set to `bin`.
5454

55-
>Note: This may vary for different toolchains `RTT_CC_PREFIX`, which can be viewed in the toolchain bin folder path.
55+
>Note: This may vary for different toolchains `RTT_CC_PREFIX`, which can be viewed in the toolchain bin folder path.
5656
It is recommended to export these three environment variables in the `.bashrc` file if you use them all the time.
5757

5858
### 2.3. Downloading the kernel

bsp/xuantie/virt64/c906/README_cn.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
<!-- TOC -->
77

8-
- [QEMU/RISCV64/C906 VIRT 板级支持包使用说明](#qemuriscv64c906-virt-板级支持包使用说明)
9-
- [1. 简介](#1-简介)
10-
- [2. 构建](#2-构建)
11-
- [2.1. 安装工具链](#21-安装工具链)
12-
- [2.2. 设置 RT-Thread 工具链环境变量](#22-设置-rt-thread-工具链环境变量)
13-
- [2.3. 下载内核](#23-下载内核)
14-
- [2.4. 配置内核](#24-配置内核)
15-
- [2.5. 编译内核](#25-编译内核)
16-
- [3. 运行](#3-运行)
17-
- [3.1. 安装 QEMU](#31-安装-qemu)
18-
- [3.2. 运行 QEMU](#32-运行-qemu)
19-
- [3.2.1. 运行 RT-Thread Smart 版](#321-运行-rt-thread-smart-)
8+
- [QEMU/RISCV64/C906 VIRT 板级支持包使用说明](#qemuriscv64c906-virt - 板级支持包使用说明)
9+
- [1. 简介](#1 - 简介)
10+
- [2. 构建](#2 - 构建)
11+
- [2.1. 安装工具链](#21 - 安装工具链)
12+
- [2.2. 设置 RT-Thread 工具链环境变量](#22 - 设置 - rt-thread - 工具链环境变量)
13+
- [2.3. 下载内核](#23 - 下载内核)
14+
- [2.4. 配置内核](#24 - 配置内核)
15+
- [2.5. 编译内核](#25 - 编译内核)
16+
- [3. 运行](#3 - 运行)
17+
- [3.1. 安装 QEMU](#31 - 安装 - qemu)
18+
- [3.2. 运行 QEMU](#32 - 运行 - qemu)
19+
- [3.2.1. 运行 RT-Thread Smart 版](#321 - 运行 - rt-thread-smart - 版)
2020

2121
<!-- /TOC -->
2222

@@ -39,7 +39,7 @@ Codename: noble
3939

4040
### 2.1. 安装工具链
4141

42-
- 编译器: [Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2-20250410.tar.gz](https://www.xrvm.cn/community/download?id=4433353576298909696)
42+
- 编译器: [Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2-20250410.tar.gz](https://github.com/RT-Thread/toolchains-ci/releases/download/v1.9/Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2.tar.gz)
4343
- 模拟器: [Xuantie-qemu-x86_64-Ubuntu-20.04-V5.0.5-B20250108-0335.tar.gz](https://www.xrvm.cn/community/download?id=4397435198627713024)
4444

4545
注:若上述链接中的模拟器不能使用,可以使用下述仓库编译模拟器
@@ -53,7 +53,7 @@ Codename: noble
5353
- `RTT_CC_PREFIX`: 为工具链前缀, 这里对于标准版是 `"riscv64-unknown-elf-"`,对于 Smart 版是 `"riscv64-unknown-linux-musl-"`
5454
- `RTT_EXEC_PATH`: 工具链的 bin 文件夹所在路径, 如 `"$HOME/tools/Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2/bin"`, 这个根据个人下载解压后的实际路径进行设置,注意 RT-Thread 标准版和 Smart 版本的工具链是两套不同的版本,而且设置 `RTT_EXEC_PATH` 的路径名时要一直到 `bin`
5555

56-
>注:对于不同的工具链`RTT_CC_PREFIX`可能有所不同,可在工具链 bin 文件夹所在路径下查看
56+
> 注:对于不同的工具链 `RTT_CC_PREFIX` 可能有所不同,可在工具链 bin 文件夹所在路径下查看
5757
如果一直使用的话,建议将这三个环境变量在 `.bashrc` 文件中 export。
5858

5959
### 2.3. 下载内核
@@ -79,7 +79,7 @@ cd $WORKSPACE/rt-thread/bsp/xuantie/virt64/c906
7979
scons --menuconfig
8080
```
8181

82-
要使用 RT-Thread Smart 版,进入配置菜单后至少要打开 `RT_USING_SMART` 这个选项(见下图),其他的看自己的需求,如果此处已开启,直接保存退出即可。
82+
要使用 RT-Thread Smart 版,进入配置菜单后至少要打开 `RT_USING_SMART` 这个选项 (见下图),其他的看自己的需求, 如果此处已开启,直接保存退出即可。
8383

8484
```kconfiglib
8585
(Top) → RT-Thread Kernel
@@ -113,7 +113,7 @@ scons -j$(nproc)
113113

114114
### 3.1. 安装 QEMU
115115

116-
这里通过编译`XUANTIE-RV/qemu`仓库安装qemu模拟器
116+
这里通过编译 `XUANTIE-RV/qemu` 仓库安装 qemu 模拟器
117117

118118
```shell
119119

0 commit comments

Comments
 (0)