跳到主要内容

v0.3.0 版本新增特性

ruyi news
# 新闻
ruyi device
# 板卡镜像刷写

安装 v0.3.0

v0.3.0 版本的稳定二进制为 0.3.0 。

在 amd64 架构环境安装:

$ wget https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.3.0/ruyi.amd64
$ chmod +x ./ruyi.amd64
$ sudo cp ./ruyi.amd64 /usr/local/bin/ruyi

在 riscv64 架构环境安装:

$ wget https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.3.0/ruyi.riscv64
$ chmod +x ./ruyi.riscv64
$ sudo cp ./ruyi.riscv64 /usr/local/bin/ruyi

检查安装版本:

$ ruyi version
Ruyi 0.3.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>

RUYI 新闻

从 0.3.0 版本开始新增新闻功能, ruyi update 命令将默认显示未读新闻条目:

$ ruyi update

There are 2 new news item(s):

No. ID Title
───────────────────────────────────────────────────────────────
1 2024-01-14-ruyi-news RuyiSDK 支持展示新闻了
2 2024-01-15-new-board-images 新增板卡支持 (2024-01-15)

You can read them with ruyi news read.

新闻的阅读状态将保存在 news.read.txt 文件中。该文件默认存放在 ~/.local/state/ruyi 目录下,该目录在 $XDG_STATE_HOME 变量被设置时为 "$XDG_STATE_HOME"/ruyi

使用 ruyi list 列出所有新闻:

$ ruyi news list
News items:

No. ID Title
───────────────────────────────────────────────────────────────
1 2024-01-14-ruyi-news RuyiSDK 支持展示新闻了
2 2024-01-15-new-board-images 新增板卡支持 (2024-01-15)

使用 ruyi news read 阅读所有未读新闻:

$ ruyi news read
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ RuyiSDK 支持展示新闻了 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

为方便您及时了解 RuyiSDK 的开发动态,我们为 ruyi 工具新增了新闻支持。

如果您使用 ruyi 0.3 或更高的版本,那么当您完成 ruyi update 之后,
如果软件源中有新增的新闻条目,将在命令输出中提示。 您可用 ruyi news list
列出它们,并用 ruyi news read 阅读它们。

感谢您对 RuyiSDK 的支持!

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ 新增板卡支持 (2024-01-15)
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

现已为以下板卡新增了镜像包。

您可用 ruyi install 安装它们:镜像文件会被自动解压或符号链接到
~/.local/share/ruyi/blobs/<包名>-<包版本号> 的位置。

感谢您对 RuyiSDK 的支持!

指定新闻编号或 ID 可以阅读任意新闻:

$ ruyi news read 1
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ RuyiSDK 支持展示新闻了 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

为方便您及时了解 RuyiSDK 的开发动态,我们为 ruyi 工具新增了新闻支持。

如果您使用 ruyi 0.3 或更高的版本,那么当您完成 ruyi update 之后,
如果软件源中有新增的新闻条目,将在命令输出中提示。 您可用 ruyi news list
列出它们,并用 ruyi news read 阅读它们。

感谢您对 RuyiSDK 的支持!

$ ruyi news read 2024-01-14-ruyi-news
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ RuyiSDK 支持展示新闻了 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

为方便您及时了解 RuyiSDK 的开发动态,我们为 ruyi 工具新增了新闻支持。

如果您使用 ruyi 0.3 或更高的版本,那么当您完成 ruyi update 之后,
如果软件源中有新增的新闻条目,将在命令输出中提示。 您可用 ruyi news list
列出它们,并用 ruyi news read 阅读它们。

感谢您对 RuyiSDK 的支持!

板卡镜像刷写

从 0.3.0 版本开始新增板卡镜像刷写功能, ruyi device provision 命令将执行一个向导,根据用户的输入选择镜像:

$ ruyi device provision

RuyiSDK Device Provisioning Wizard

This is a wizard intended to help you install a system on your device for your
development pleasure, all with ease.

You will be asked some questions that help RuyiSDK understand your device and
your intended configuration, then packages will be downloaded and flashed onto
the device's storage, that you should somehow make available on this host
system beforehand.

Note that, as Ruyi does not run as root, but raw disk access is most likely
required to flash images, you should arrange to allow your user account sudo
access to necessary commands such as dd. Flashing will fail if the sudo
configuration does not allow so.

Continue? (y/N) y

The following devices are currently supported by the wizard. Please pick your device:

1. Milk-V Duo
2. Milk-V Pioneer Box
3. Sipeed LicheePi 4A

Choice? (1-3)

注意刷写镜像的操作需要调用 sudo 以提权。除了荔枝派 4A 由 fastboot 自动识别设备,当前支持的其他设备镜像均需要用户手动指定目标刷写设备以执行 dd 命令。