Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split LicheeRV and Nezha #115

Merged
merged 11 commits into from
Dec 20, 2024
38 changes: 19 additions & 19 deletions D1_LicheeRV/ArchLinux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ sys_ver: null
sys_var: null

status: basic
last_update: 2024-09-26
last_update: 2024-12-04
---

# Arch Linux LicheeRV / AWOL Nezha D1 Test Report
# Arch Linux Lichee RV Dock Test Report

## Test Environment

### Operating System Information

- Base Image: Ubuntu 24.10 Beta: [ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz](https://mirror.tuna.tsinghua.edu.cn/ubuntu-cdimage/releases/24.10/beta/ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz)
- Base Image: Ubuntu 24.10: [ubuntu-24.10](https://ubuntu.com/download/risc-v)
- Or any arbitrary image for D1
- Rootfs: [archriscv-20220727.tar.zst](https://archriscv.felixc.at/images/archriscv-20220727.tar.zst)
- Rootfs[archriscv-2024-09-22.tar.zst](https://archriscv.felixc.at/images/archriscv-2024-09-22.tar.zst)
- Reference Installation Document: https://github.com/felixonmars/archriscv-packages/wiki/RV64-%E6%9D%BF%E5%AD%90%E6%9B%B4%E6%8D%A2-rootfs-%E6%8C%87%E5%8D%97

### Hardware Information

- Nezha D1
- Lichee RV Dock
- A Type-C Power Cable
- A UART to USB Debugger
- SD Card
Expand All @@ -34,12 +34,12 @@ Get the base images and rootfs. You can use arbitrary any images for D1 as the b
We have used Debian images and Ubuntu images and know that they work well. Below we use the Ubuntu images as an example.

```bash
wget https://mirror.tuna.tsinghua.edu.cn/ubuntu-cdimage/releases/24.10/beta/ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz
wget https://archriscv.felixc.at/images/archriscv-20220727.tar.zst
xz -kd ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz
wget https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/releases/24.10/release/ubuntu-24.10-preinstalled-server-riscv64%2Blicheerv.img.xz
wget https://archriscv.felixc.at/images/archriscv-2024-09-22.tar.zst
xz -kd ubuntu-24.10-preinstalled-server-riscv64+licheerv.img.xz
mkdir rfs
tar -xf archriscv-20220727.tar.zst -C rfs
mndir mnt
mkdir mnt
```

### Replace the rootfs
Expand All @@ -48,8 +48,8 @@ Replace the rootfs with the one from the Ubuntu image. Change the following moun

```bash
sudo losetup -f
sudo losetup -P /dev/loopx ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img
sudo mount /dev/loopxp1 mnt
sudo losetup -P /dev/loopX ubuntu-24.10-preinstalled-server-riscv64+licheerv.img
sudo mount /dev/loopXp1 mnt
cd mnt
sudo mkdir old
sudo mv etc home media mnt opt root srv var usr old/
Expand All @@ -66,7 +66,7 @@ Don't forget to clean up the files.
```bash
cd ..
sudo umount mnt
sudo losetup -d /dev/loopx
sudo losetup -d /dev/loopX
```

### Flash the image
Expand All @@ -75,7 +75,7 @@ Flash the image to the SD card.

```bash
sudo wipefs -a /dev/sdX
sudo dd if=ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img of=/dev/sdX bs=4M status=progress
sudo dd if=ubuntu-24.10-preinstalled-server-riscv64+licheerv.img.xz of=/dev/sdX bs=4M status=progress
```

### Logging into the System
Expand All @@ -99,7 +99,9 @@ Screen recording (from flashing the image to logging into the system):
[![asciicast](https://asciinema.org/a/G3j3MjoOZ8rcTD28kfMLDao6a.svg)](https://asciinema.org/a/G3j3MjoOZ8rcTD28kfMLDao6a)

```log
[root@archlinux ~]# cat /etc/os-release
archlinux login: root
Password:
[root@archlinux ~]# cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
Expand All @@ -112,19 +114,17 @@ BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
[root@archlinux ~]# uname -a
Linux archlinux 6.8.0-31-generic #31.1-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 21 01:12:53 UTC 2024 riscv64 GNU/Linux
Linux archlinux 6.11.0-8-generic #8.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 1 11:40:56 UTC 2024 riscv64 GNU/Linux
[root@archlinux ~]# cat /proc/cpuinfo
processor : 0
hart : 0
isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm
isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm_zca_zcd
mmu : sv39
uarch : thead,c906
mvendorid : 0x5b7
marchid : 0x0
mimpid : 0x0
hart isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm


hart isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm_zca_zcd
```

## Test Criteria
Expand Down
40 changes: 20 additions & 20 deletions D1_LicheeRV/ArchLinux/README_zh.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Arch Linux LicheeRV / AWOL Nezha D1 测试报告
# Arch Linux Lichee RV Dock 测试报告

## 测试环境

### 操作系统信息

- 基础镜像:Ubuntu 24.10 Beta: [ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz](https://mirror.tuna.tsinghua.edu.cn/ubuntu-cdimage/releases/24.10/beta/ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz)
- 基础镜像:Ubuntu 24.10: [ubuntu-24.10](https://ubuntu.com/download/risc-v)
- 或任意 D1 的镜像
- Rootfs:[archriscv-20220727.tar.zst](https://archriscv.felixc.at/images/archriscv-20220727.tar.zst)
- Rootfs:[archriscv-2024-09-22.tar.zst](https://archriscv.felixc.at/images/archriscv-2024-09-22.tar.zst)
- 参考安装文档:https://github.com/felixonmars/archriscv-packages/wiki/RV64-%E6%9D%BF%E5%AD%90%E6%9B%B4%E6%8D%A2-rootfs-%E6%8C%87%E5%8D%97
h

### 硬件信息

- Nezha D1
- Lichee RV Dock
- Type-C 电源线一根
- UART 转 USB 调试器一个
- SD 卡
Expand All @@ -26,12 +26,12 @@ h
Debian 镜像和 Ubuntu 镜像曾被验证过能工作。接下来以 Ubuntu 镜像为例。

```bash
wget https://mirror.tuna.tsinghua.edu.cn/ubuntu-cdimage/releases/24.10/beta/ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz
wget https://archriscv.felixc.at/images/archriscv-20220727.tar.zst
xz -kd ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img.xz
wget https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/releases/24.10/release/ubuntu-24.10-preinstalled-server-riscv64%2Blicheerv.img.xz
wget https://archriscv.felixc.at/images/archriscv-2024-09-22.tar.zst
xz -kd ubuntu-24.10-preinstalled-server-riscv64+licheerv.img.xz
mkdir rfs
tar -xf archriscv-20220727.tar.zst -C rfs
mndir mnt
tar -xf archriscv-2024-09-22.tar.zst -C rfs
mkdir mnt
```

### 替换 rootfs
Expand All @@ -40,15 +40,14 @@ mndir mnt

```bash
sudo losetup -f
sudo losetup -P /dev/loopx ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img
sudo mount /dev/loopxp1 mnt
sudo losetup -P /dev/loopX ubuntu-24.10-preinstalled-server-riscv64+licheerv.img
sudo mount /dev/loopXp1 mnt
cd mnt
sudo mkdir old
sudo mv etc home media mnt opt root srv var usr old/
sudo cp -r ../rfs/{etc,home,mnt,opt,root,srv,var,usr} .
sudo cp -r old/usr/lib/firmware usr/lib/
sudo cp -r old/usr/lib/modules/ usr/lib/
rm etc/fstab
sudo rm etc/fstab
sudo cp -r old/etc/fstab etc/fstab
```
Expand All @@ -58,7 +57,7 @@ sudo cp -r old/etc/fstab etc/fstab
```bash
cd ..
sudo umount mnt
sudo losetup -d /dev/loopx
sudo losetup -d /dev/loopX
```

### 刷写镜像
Expand All @@ -67,7 +66,7 @@ sudo losetup -d /dev/loopx

```bash
sudo wipefs -a /dev/sdX
sudo dd if=ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img of=/dev/sdX bs=4M status=progress
sudo dd if=ubuntu-24.10-preinstalled-server-riscv64+licheerv.img.xz of=/dev/sdX bs=4M status=progress
```


Expand All @@ -92,7 +91,9 @@ sudo dd if=ubuntu-24.10-beta-preinstalled-server-riscv64%2Bnezha.img of=/dev/sdX
[![asciicast](https://asciinema.org/a/G3j3MjoOZ8rcTD28kfMLDao6a.svg)](https://asciinema.org/a/G3j3MjoOZ8rcTD28kfMLDao6a)

```log
[root@archlinux ~]# cat /etc/os-release
archlinux login: root
Password:
[root@archlinux ~]# cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
Expand All @@ -105,18 +106,17 @@ BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
[root@archlinux ~]# uname -a
Linux archlinux 6.8.0-31-generic #31.1-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 21 01:12:53 UTC 2024 riscv64 GNU/Linux
Linux archlinux 6.11.0-8-generic #8.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 1 11:40:56 UTC 2024 riscv64 GNU/Linux
[root@archlinux ~]# cat /proc/cpuinfo
processor : 0
hart : 0
isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm
isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm_zca_zcd
mmu : sv39
uarch : thead,c906
mvendorid : 0x5b7
marchid : 0x0
mimpid : 0x0
hart isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm

hart isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm_zca_zcd

```

Expand All @@ -129,4 +129,4 @@ hart isa : rv64imafdc_zicntr_zicsr_zifencei_zihpm

## 测试结论

成功
成功
61 changes: 30 additions & 31 deletions D1_LicheeRV/Debian/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sys_ver: 11
sys_var: null

status: good
last_update: 2024-06-21
last_update: 2024-12-06
---

# Debian 11 D1 Test Report
Expand All @@ -14,13 +14,12 @@ last_update: 2024-06-21
### Operating System Information

- System Version: Debian
- Download Link: [http://www.perfxlab.cn:8080/rvboards/](http://www.perfxlab.cn:8080/rvboards/)
- Web Disk: [https://pan.baidu.com/s/1leAXR2VPHvTqkaDqfeY9ag](https://pan.baidu.com/s/1leAXR2VPHvTqkaDqfeY9ag) Access Code: 3o5v
- Reference Installation Document: [https://d1.docs.aw-ol.com/strong/strong_4debian/#v041](https://d1.docs.aw-ol.com/strong/strong_4debian/#v041)
- Download Link: [MEGA](https://mega.nz/folder/lx4CyZBA#PiFhY7oSVQ3gp2ZZ_AnwYA)
- Reference Installation Document: https://wiki.sipeed.com/hardware/en/lichee/RV/flash.html

### Hardware Information

- AWOL Nezha D1 / Sipeed Lichee RV Dock
- Sipeed Lichee RV Dock
- Power Adapter
- A microSD card
- A USB to UART Debugger
Expand All @@ -29,22 +28,17 @@ last_update: 2024-06-21

### Flashing Image

Use `unzip` to decompress the image.
Clear your SD card.
Use `dd` to write the image to the microSD card.

```bash
unzip /path/to/RVBoards_D1_Debian_lxde_img_linux.img.zip
sudo wipefs -a /dev/your_device
sudo dd if=/path/to/RVBoards_D1_Debian_lxde_img_linux.img of=/dev/your_device bs=1M status=progress
```
1. Run [PhoenixCard](https://dl.sipeed.com/shareURL/LICHEE/D1/Lichee_RV/tool),Click Image marked to choose your target firmware
2. We choose `Startup` marked
3. Click `Burn` marked to burn your target firmware into tf card
4. From Status bar marked to see your progress;If it's red when finishing this means it fails burning, then we should rerun `SD Card Formatter` to format the TF card to increase its success possibility.

### Logging into the System

Log into the system via the serial port.

Default Username: `root`
Default Password: `rvboards`
Default Password: `licheepi`

## Expected Results

Expand All @@ -56,31 +50,27 @@ The system booted successfully and login via the onboard serial port was also su

### Boot Log

Screen recording (From flashing image to login):

[![asciicast](https://asciinema.org/a/7osW4u2FvkucqlfODK4nEBMQm.svg)](https://asciinema.org/a/7osW4u2FvkucqlfODK4nEBMQm)

```log
Debian GNU/Linux 11 RVBoards ttyS0
Debian GNU/Linux 11 sipeed ttyS0

RVBoards login: root
sipeed login: root
Password:

Login incorrect
RVBoards login: root
Password:
Linux RVBoards 5.4.61 #12 PREEMPT Thu Jun 3 08:39:01 UTC 2021 riscv64
Linux sipeed 5.4.61 #217 PREEMPT Thu Dec 30 06:50:31 UTC 2021 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.
Last login: Wed May 19 18:39:24 CST 2021 on ttyS0
root@RVBoards:~# uname -a
Linux RVBoards 5.4.61 #12 PREEMPT Thu Jun 3 08:39:01 UTC 2021 riscv64 GNU/Linux
root@RVBoards:~# cat /etc/os-release
Last login: Mon May 24 06:56:42 UTC 2021 on ttyS0
root@sipeed:~# uname
Message from syslogd@sipeed at May 24 06:57:35 ...
kernel:[ 102.178091] Oops [#6]

root@sipeed:~# uname -a
Linux sipeed 5.4.61 #217 PREEMPT Thu Dec 30 06:50:31 UTC 2021 riscv64 GNU/Linux
root@sipeed:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
Expand All @@ -90,8 +80,17 @@ ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@RVBoards:~#
root@sipeed:~#
Message from syslogd@sipeed at May 24 06:58:00 ...
kernel:[ 127.198571] Oops [#7]

root@sipeed:~# cat /proc/cpuinfo
processor : 0
hart : 0
isa : rv64imafdcvu
mmu : sv39

root@sipeed:~#
```

## Test Criteria
Expand Down
Loading