Skip to content

Commit

Permalink
Merge pull request #67 from panglars/vf2-diet
Browse files Browse the repository at this point in the history
VisionFive2/DietPi: add test report.
  • Loading branch information
KevinMX authored Oct 28, 2024
2 parents 68e950c + 200266e commit aba27b8
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 0 deletions.
150 changes: 150 additions & 0 deletions VisionFive2/DietPi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
---
sys: dietpi
sys_ver: v9.7.1 (MichaIng/master)
sys_var: null

status: basic
last_update: 2024-10-25
---

# DietPi VisionFive 2 Test Report

## Test Environment

### Operating System Information

- System Version: v9.7.1 (MichaIng/master)
- Download Link: https://dietpi.com/downloads/images/testing/DietPi_VisionFive2-RISC-V-Sid.img.xz
- Reference Installation Document: https://dietpi.com/blog/?p=2629

### Hardware Information

- StarFive VisionFive 2
- A USB Power Adapter
- A USB-A to C or C to C Cable
- A microSD Card
- A USB to UART Debugger (e.g., CH340, CH341, FT2232, etc.)
- Three Dupont Wires

## Installation Steps

### Decompress and Flash Image to microSD Card


```bash
xz -d DietPi_VisionFive2-RISC-V-Sid.img.xz
dd if=DietPi_VisionFive2-RISC-V-Sid.img of=/dev/<your-device>
```

### Boot Mode Selection

StarFive VisionFive 2 offers various boot modes, which can be configured via onboard dip switches before powering on; there are also silk screen labels on the development board itself.

To boot the Dietpi image, you can select the 1-bit QSPI Nor Flash mode (i.e., `RGPIO_0 = 0`, `RGPIO_1 = 0`). Note that this mode may require a prior firmware update in the Flash. If your boot is unsuccessful, please refer to the official documentation for firmware upgrading: [Update SPL and U-Boot](https://doc.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_QSG/spl_u_boot_0.html)

### Logging into the System

Logging into the system via the serial port.

Username: `root`
Default Password: `dietpi`

## Expected Results

The system boots normally and allows login via the serial port.

## Actual Results

The system booted normally and login via the serial port was successful.

### Boot Log

```log
Debian GNU/Linux trixie/sid DietPi ttyS0
DietPi login: root
Password:
Linux DietPi 6.1.97 #1 SMP Fri Jul 5 23:02:10 UTC 2024 riscv64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
─────────────────────────────────────────────────────
DietPi v9.7.1 : 14:51 - Fri 10/25/24
─────────────────────────────────────────────────────
- LAN IP : 192.168.31.87 (eth0)
DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for available DietPi update
[ OK ] DietPi-Update | Checking IPv4 network connectivity
[ OK ] DietPi-Update | Checking DNS resolver
[ OK ] DietPi-TimeSync | systemctl start systemd-timesyncd
[ INFO ] DietPi-TimeSync | Waiting for time sync (1/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (2/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (3/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (4/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (5/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (6/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (7/60)
[ OK ] DietPi-TimeSync | Time sync completed
[ OK ] DietPi-TimeSync | systemctl stop systemd-timesyncd
[ OK ] DietPi-TimeSync | mkdir -p /run/systemd/timesync
[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
[ OK ] DietPi-Update | Got valid latest version: 9.8.0
[ OK ] DietPi-Update | Update available:
[ INFO ] DietPi-Update | Current version : v9.7.1
[ INFO ] DietPi-Update | Latest version : v9.8.0
DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for update pre-requirements
[ OK ] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
[ OK ] DietPi-Update | Free space check: path=/ | available=28171 MiB | required=100 MiB
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
DietPi-Update
─────────────────────────────────────────────────────
Phase: Applying pre-patches
[ OK ] DietPi-Update | Downloading pre-patches
[ OK ] DietPi-Update | Applying execute permission
[ OK ] DietPi-Update | Successfully applied pre-patches
DietPi-Update
StarFive VisionFive 2 (riscv64) | IP: 192.168.31.87 | Use up/down buttons to scr
│ APT update
│ - Command: apt-get -y -eany update
│ - Exit code: 100
│ - DietPi version: v9.7.1 (MichaIng/master) | HW_MODEL: 81 | HW_ARCH: 11 |
│ DISTRO: 8
root@DietPi:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@DietPi:~# uname -a
Linux DietPi 6.1.97 #1 SMP Fri Jul 5 23:02:10 UTC 2024 riscv64 GNU/Linux
```

Screen recording (logging into the system):
[![asciicast](https://asciinema.org/a/IMU31fDOjU2FgiYnFjriTaycE.svg)](https://asciinema.org/a/IMU31fDOjU2FgiYnFjriTaycE)

## Test Criteria

Successful: The actual result matches the expected result.

Failed: The actual result does not match the expected result.

## Test Conclusion

Test successful.
141 changes: 141 additions & 0 deletions VisionFive2/DietPi/README_zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# DietPi VisionFive 2 测试报告

## 测试环境

### 操作系统信息

- 系统版本:v9.7.1 (MichaIng/master)
- 下载链接:https://dietpi.com/downloads/images/testing/DietPi_VisionFive2-RISC-V-Sid.img.xz
- 参考安装文档:https://dietpi.com/blog/?p=2629

### 硬件信息

- StarFive VisionFive 2
- USB 电源适配器一个
- USB-A to C 或 C to C 线缆一条
- microSD 卡一张
- USB to UART 调试器一个(如:CH340, CH341, FT2232 等)
- 杜邦线三根

## 安装步骤

### 解压并刷写镜像到 microSD 卡

```bash
xz -d DietPi_VisionFive2-RISC-V-Sid.img.xz
dd if=DietPi_VisionFive2-RISC-V-Sid.img of=/dev/<your-device>
```

### 引导模式选择

StarFive VisionFive 2 提供了多种引导模式,可在上电前通过板载拨码开关进行配置;开发板本体上亦有丝印标注。

为了启动 DietPi 镜像,可以选择 1-bit QSPI Nor Flash 模式(即:`RGPIO_0 = 0`, `RGPIO_1 = 0`)。注意,此模式可能需要提前更新 Flash 内的固件,若您启动不成功,请参考官方文档进行固件升级:[更新 SPL 和 U-Boot](https://doc.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_QSG/spl_u_boot_0.html)

### 登录系统

通过串口登录系统。

用户名:`root`
默认密码:`dietpi`

## 预期结果

系统正常启动,能够通过串口登录。

## 实际结果

系统正常启动,成功通过串口登录。

### 启动信息

```log
Debian GNU/Linux trixie/sid DietPi ttyS0
DietPi login: root
Password:
Linux DietPi 6.1.97 #1 SMP Fri Jul 5 23:02:10 UTC 2024 riscv64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
─────────────────────────────────────────────────────
DietPi v9.7.1 : 14:51 - Fri 10/25/24
─────────────────────────────────────────────────────
- LAN IP : 192.168.31.87 (eth0)
DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for available DietPi update
[ OK ] DietPi-Update | Checking IPv4 network connectivity
[ OK ] DietPi-Update | Checking DNS resolver
[ OK ] DietPi-TimeSync | systemctl start systemd-timesyncd
[ INFO ] DietPi-TimeSync | Waiting for time sync (1/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (2/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (3/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (4/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (5/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (6/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (7/60)
[ OK ] DietPi-TimeSync | Time sync completed
[ OK ] DietPi-TimeSync | systemctl stop systemd-timesyncd
[ OK ] DietPi-TimeSync | mkdir -p /run/systemd/timesync
[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
[ OK ] DietPi-Update | Got valid latest version: 9.8.0
[ OK ] DietPi-Update | Update available:
[ INFO ] DietPi-Update | Current version : v9.7.1
[ INFO ] DietPi-Update | Latest version : v9.8.0
DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for update pre-requirements
[ OK ] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
[ OK ] DietPi-Update | Free space check: path=/ | available=28171 MiB | required=100 MiB
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
DietPi-Update
─────────────────────────────────────────────────────
Phase: Applying pre-patches
[ OK ] DietPi-Update | Downloading pre-patches
[ OK ] DietPi-Update | Applying execute permission
[ OK ] DietPi-Update | Successfully applied pre-patches
DietPi-Update
StarFive VisionFive 2 (riscv64) | IP: 192.168.31.87 | Use up/down buttons to scr
│ APT update
│ - Command: apt-get -y -eany update
│ - Exit code: 100
│ - DietPi version: v9.7.1 (MichaIng/master) | HW_MODEL: 81 | HW_ARCH: 11 |
│ DISTRO: 8
root@DietPi:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@DietPi:~# uname -a
Linux DietPi 6.1.97 #1 SMP Fri Jul 5 23:02:10 UTC 2024 riscv64 GNU/Linux
```

屏幕录像(登录系统):
[![asciicast](https://asciinema.org/a/IMU31fDOjU2FgiYnFjriTaycE.svg)](https://asciinema.org/a/IMU31fDOjU2FgiYnFjriTaycE)

## 测试判定标准

测试成功:实际结果与预期结果相符。

测试失败:实际结果与预期结果不符。

## 测试结论

测试成功。
7 changes: 7 additions & 0 deletions VisionFive2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ cpu_core: SiFive U74 + SiFive S7 + SiFive E24
- Alpine
- Download Link: https://dev.alpinelinux.org/~mps/riscv64/visionfive-v2-mmc.img.xz
- Reference INstallation Document: https://arvanta.net/alpine/alpine-on-visionfive/
- DietPi
- Download Link: https://dietpi.com/downloads/images/testing/DietPi_VisionFive2-RISC-V-Sid.img.xz
- Reference Installation Document: https://dietpi.com/blog/?p=2629


### Hardware Information
Expand All @@ -70,6 +73,7 @@ cpu_core: SiFive U74 + SiFive S7 + SiFive E24
| Debian Image | N/A | [Successful][Debian] (Official StarFive Image) |
| openKylin Image | N/A | [Successful][oK] (Official Support) |
| Ubuntu Image | N/A | [Successful][Ubuntu] (Official Support) |
| Ubuntu LTS Image | N/A | [Successful][Ubuntu-LTS] (Official Support) |
| BuildRoot Image | N/A | [Successful][BuildRoot] (Official StarFive Image) |
| Arch Linux Image | N/A | [Successful][Arch] |
| Gentoo Image | N/A | [Successful][Gentoo] |
Expand All @@ -84,11 +88,13 @@ cpu_core: SiFive U74 + SiFive S7 + SiFive E24
| Deepin Image | N/A | [Successful][Deepin] |
| NetBSD Image | N/A | [Successful][NetBSD] |
| Alpine Image | N/A | [Successful][Alpine] |
| DietPi Image | N/A | [Successful][DietPi] |

[oERV]: ./openEuler/README.md
[Debian]: ./Debian/README.md
[oK]: ./openKylin/README.md
[Ubuntu]: ./Ubuntu/README.md
[Ubuntu-LTS]: ./Ubuntu/Ubuntu_LTS.md
[BuildRoot]: ./BuildRoot/README.md
[Arch]: ./ArchLinux/README.md
[Gentoo]: ./Gentoo/README.md
Expand All @@ -102,3 +108,4 @@ cpu_core: SiFive U74 + SiFive S7 + SiFive E24
[Deepin]: ./Deepin/README.md
[NetBSD]: ./NetBSD/README.md
[Alpine]: ./Alpine/README.md
[DietPi]: ./DietPi/README.md
7 changes: 7 additions & 0 deletions VisionFive2/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
- Alpine
- 下载链接:https://dev.alpinelinux.org/~mps/riscv64/visionfive-v2-mmc.img.xz
- 参考安装文档:https://arvanta.net/alpine/alpine-on-visionfive/
- DietPi
- 下载链接:https://dietpi.com/downloads/images/testing/DietPi_VisionFive2-RISC-V-Sid.img.xz
- 参考安装文档:https://dietpi.com/blog/?p=2629


### 硬件开发板信息
Expand All @@ -64,6 +67,7 @@
| Debian 镜像启动 | N/A | [成功][Debian](StarFive 厂商镜像) |
| openKylin 镜像启动 | N/A | [成功][oK](官方支持) |
| Ubuntu 镜像启动 | N/A | [成功][Ubuntu](官方支持) |
| Ubuntu LTS 镜像启动 | N/A | [成功][Ubuntu-LTS](官方支持) |
| BuildRoot 镜像启动 | N/A | [成功][BuildRoot](StarFive 厂商镜像) |
| Arch Linux 镜像启动 | N/A | [成功][Arch] |
| Gentoo 镜像启动 | N/A | [成功][Gentoo] |
Expand All @@ -78,12 +82,14 @@
| Deepin 镜像启动 | N/A | [成功][Deepin] |
| NetBSD 镜像启动 | N/A | [成功][NetBSD] |
| Alpine 镜像启动 | N/A | [成功][Alpine] |
| DietPi 镜像启动 | N/A | [成功][DietPi] |


[oERV]: ./openEuler/README_zh.md
[Debian]: ./Debian/README_zh.md
[oK]: ./openKylin/README_zh.md
[Ubuntu]: ./Ubuntu/README_zh.md
[Ubuntu-LTS]: ./Ubuntu/Ubuntu_LTS_zh.md
[BuildRoot]: ./BuildRoot/README_zh.md
[Arch]: ./ArchLinux/README_zh.md
[Gentoo]: ./Gentoo/README_zh.md
Expand All @@ -97,3 +103,4 @@
[Deepin]: ./Deepin/README_zh.md
[NetBSD]: ./NetBSD/README_zh.md
[Alpine]: ./Alpine/README_zh.md
[DietPi]: ./DietPi/README_zh.md

0 comments on commit aba27b8

Please sign in to comment.