-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from weilinfox/main
提交 0.6.0 新增特性
- Loading branch information
Showing
9 changed files
with
169 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# v0.6.0 版本新增特性 | ||
|
||
+ 使用 pygit2 替代对 git 的依赖 | ||
+ SiFive HiFive Unmatched 镜像支持增加到 5 种 | ||
|
||
## 安装 v0.6.0 | ||
|
||
在 amd64 架构环境安装: | ||
|
||
```bash | ||
$ wget https://mirror.iscas.ac.cn/RuyiSDK/ruyi/releases/0.6.0/ruyi.amd64 | ||
$ chmod +x ./ruyi.amd64 | ||
$ sudo cp ./ruyi.amd64 /usr/local/bin/ruyi | ||
``` | ||
|
||
在 riscv64 架构环境安装: | ||
|
||
```bash | ||
$ wget https://mirror.iscas.ac.cn/RuyiSDK/ruyi/releases/0.6.0/ruyi.riscv64 | ||
$ chmod +x ./ruyi.riscv64 | ||
$ sudo cp ./ruyi.riscv64 /usr/local/bin/ruyi | ||
``` | ||
|
||
检查安装版本: | ||
|
||
```bash | ||
$ ruyi version | ||
Ruyi 0.6.0 | ||
Copyright (C) 2023 Institute of Software, Chinese Academy of Sciences (ISCAS). | ||
All rights reserved. | ||
License: Apache-2.0 <https://www.apache.org/licenses/LICENSE-2.0> | ||
``` | ||
|
||
## 依赖变化 | ||
|
||
从 v0.6.0 版本开始 RUYI 包管理不再依赖 git,而是使用 pygit2 作为替代方案。 | ||
|
||
## 板卡镜像刷写 | ||
|
||
在 0.6.0 版本, SiFive HiFive Unmatched 镜像支持增加到 5 种。 | ||
|
||
板卡支持列表: | ||
|
||
| 开发板 | 版本 | 镜像 | 刷写方式 | | ||
|:-:|:-:|:-:|:-:| | ||
| Allwinner Nezha D1 | Allwinner Nezha D1 (generic variant) | openEuler RISC-V (base system) for Allwinner D1 | dd | | ||
| | | openEuler RISC-V (XFCE) for Allwinner D1 | dd | | ||
| Canaan Kendryte K230 | Canaan Kendryte K230 (generic variant) | Canaan Kendryte K230 Official CanMV Debian SDK | dd | | ||
| | | Canaan Kendryte K230 Official CanMV Ubuntu SDK | dd | | ||
| Milk-V Duo | Milk-V Duo (64M RAM) | Milk-V Duo Official buildroot SDK (64M RAM) | dd | | ||
| | | Milk-V Duo Official buildroot SDK (64M RAM, with Python) | dd | | ||
| | Milk-V Duo (256M RAM) | Milk-V Duo Official buildroot SDK (256M RAM) | dd | | ||
| | | Milk-V Duo Official buildroot SDK (256M RAM, with Python) | dd | | ||
| Milk-V Pioneer Box | Milk-V Pioneer Box (v1.3) | openEuler RISC-V (base system) for Milk-V Pioneer (rootfs on NVMe) | dd | | ||
| | | openEuler RISC-V (XFCE) for Milk-V Pioneer (rootfs on NVMe) | dd | | ||
| | | RevyOS for Milk-V Pioneer | dd | | ||
| | Milk-V Pioneer Box (v1.2) | openEuler RISC-V (base system) for Milk-V Pioneer (rootfs on NVMe) | dd | | ||
| | | openEuler RISC-V (XFCE) for Milk-V Pioneer (rootfs on NVMe) | dd | | ||
| | Milk-V Pioneer Box (v1.1) | openEuler RISC-V (base system) for Milk-V Pioneer (rootfs on NVMe) | dd | | ||
| | | openEuler RISC-V (XFCE) for Milk-V Pioneer (rootfs on NVMe) | dd | | ||
| SiFive HiFive Unmatched | SiFive HiFive Unmatched (generic variant) | openEuler RISC-V (base system) for SiFive HiFive Unmatched | dd | | ||
| | | openKylin for SiFive HiFive Unmatched | dd | | ||
| | | openEuler RISC-V (XFCE) for SiFive HiFive Unmatched | dd | | ||
| | | OpenWrt for SiFive HiFive Unmatched | dd | | ||
| | | Ubuntu Server for SiFive HiFive Unmatched | dd | | ||
| Sipeed Lichee RV | Sipeed Lichee RV (generic variant) | openEuler RISC-V (base system) for Allwinner D1 | dd | | ||
| | | openEuler RISC-V (XFCE) for Allwinner D1 | dd | | ||
| Sipeed LicheePi 4A | Sipeed LicheePi 4A (8G RAM) | openEuler RISC-V (headless) for Sipeed LicheePi 4A (8G RAM) | fastboot | | ||
| | | openEuler RISC-V (XFCE) for Sipeed LicheePi 4A (8G RAM) | fastboot | | ||
| | | RevyOS for Sipeed LicheePi 4A (8G RAM) | fastboot | | ||
| | Sipeed LicheePi 4A (16G RAM) | openEuler RISC-V (headless) for Sipeed LicheePi 4A (16G RAM) | fastboot | | ||
| | | openEuler RISC-V (XFCE) for Sipeed LicheePi 4A (16G RAM) | fastboot | | ||
| | | RevyOS for Sipeed LicheePi 4A (16G RAM) | fastboot | | ||
| StarFive VisionFive | StarFive VisionFive (generic variant) | openEuler RISC-V (base system) for StarFive VisionFive | dd | | ||
| | | openEuler RISC-V (XFCE) for StarFive VisionFive | dd | | ||
| StarFive VisionFive2 | StarFive VisionFive2 (generic variant) | openEuler RISC-V (base system) for StarFive VisionFive2 | dd | | ||
| | | openEuler RISC-V (XFCE) for StarFive VisionFive2 | dd | | ||
|
||
刷写工具根据板卡的不同依赖 ``dd`` 和 ``fastboot`` 命令, RUYI 将自动调用 ``sudo`` 提权。 | ||
|
||
需要注意的是一些镜像的解包需要占用大量的磁盘空间,使用 RUYI 工具刷写镜像前请务必留足磁盘空间; | ||
一些厂家提供的镜像在刷写后并不会自动扩展分区来充分利用整块磁盘,而需要用户自行扩展磁盘分区大小。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,52 @@ coremark.exe: ELF 64-bit LSB executable, UCB RISC-V, RVC, double-float ABI, vers | |
«Ruyi milkv-venv» $ ruyi-deactivate | ||
$ | ||
``` | ||
|
||
## 在最新的 Milkv Duo 镜像上运行 | ||
|
||
传送 coremark 二进制的 Milkv Duo, Milkv Duo 的 IP 地址请按实际情况更改。 | ||
|
||
```bash | ||
$ scp -O ./coremark.exe [email protected]:~ | ||
``` | ||
|
||
在 Milkv Duo 上运行 | ||
|
||
```bash | ||
[root@milkv-duo]~# ./coremark.exe | ||
-sh: ./coremark.exe: not found | ||
``` | ||
|
||
若出现这样的错误,则需要静态链接的二进制。 | ||
|
||
```bash | ||
«Ruyi milkv-venv» $ make PORT_DIR=linux64 LFLAGS_END=-static link | ||
riscv64-plct-linux-gnu-gcc -O2 -Ilinux64 -I. -DFLAGS_STR=\""-O2 -static"\" -DITERATIONS=0 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c linux64/core_portme.c -o ./coremark.exe -static | ||
Link performed along with compile | ||
«Ruyi milkv-venv» $ file coremark.exe | ||
coremark.exe: ELF 64-bit LSB executable, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), statically linked, BuildID[sha1]=1548f6b30560e1ca6f3fa8ba3ef6aea4188feacf, for GNU/Linux 4.15.0, with debug_info, not stripped | ||
``` | ||
|
||
重新上传后运行 | ||
|
||
```bash | ||
[root@milkv-duo]~# ./coremark.exe | ||
2K performance run parameters for coremark. | ||
CoreMark Size : 666 | ||
Total ticks : 14911 | ||
Total time (secs): 14.911000 | ||
Iterations/Sec : 2011.937496 | ||
Iterations : 30000 | ||
Compiler version : GCC13.1.0 | ||
Compiler flags : -O2 -static | ||
Memory location : Please put data memory location here | ||
(e.g. code in flash, data on heap etc) | ||
seedcrc : 0xe9f5 | ||
[0]crclist : 0xe714 | ||
[0]crcmatrix : 0x1fd7 | ||
[0]crcstate : 0x8e3a | ||
[0]crcfinal : 0x5275 | ||
Correct operation validated. See readme.txt for run and reporting rules. | ||
CoreMark 1.0 : 2011.937496 / GCC13.1.0 -O2 -static / Heap | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,7 @@ | |
|
||
可以通过下载安装最新的 ruyi 包管理器工具并执行以下命令为设备安装系统: | ||
|
||
``` | ||
bash | ||
```bash | ||
$ ruyi device provision | ||
``` | ||
|
||
|