Skip to content

Commit

Permalink
Merge pull request #95 from wychlw/lpi4a-deepin
Browse files Browse the repository at this point in the history
LPi4a/deepin: Update to 20240815
  • Loading branch information
KevinMX authored Nov 1, 2024
2 parents 8c3ba62 + 93e144d commit 1ca9447
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 24 deletions.
143 changes: 129 additions & 14 deletions LicheePi4A/Deepin/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
sys: deepin
sys_ver: null
sys_ver: 20240815
sys_var: null

status: good
last_update: 2024-06-21
status: cfh
last_update: 2024-10-31
---

# Deepin preview LPi4A Test Report
Expand All @@ -13,8 +13,8 @@ last_update: 2024-06-21

### System Information

- System Version: Deepin preview 20240603
- Download Link: https://cdimage.deepin.com/RISC-V/preview-20240613-riscv64/deepin-23-beige-preview-riscv64-lpi4a-20240613-122949.tar.xz
- System Version: Deepin preview 20240815
- Download Link: https://cdimage.deepin.com/RISC-V/preview-20240815-riscv64/deepin-23-beige-preview-riscv64-th1520-20240815-132955.tar.xz
- Reference Installation Document: https://cdimage.deepin.com/RISC-V/preview-20240517-riscv64/README.md

### Hardware Information
Expand All @@ -25,9 +25,11 @@ last_update: 2024-06-21

## Installation Steps

Note: The official deepin site has a really slow connection. Recommand use some mirror site like [Qilu University of Technology](https://mirrors.qlu.edu.cn/deepin-cd/deepin-cd/RISC-V/preview-20240815-riscv64/)

### Get uboot

The tar doesn't contain the u-boot bin, you need to get it on your own: https://cdimage.deepin.com/RISC-V/beta3-20240205-riscv64/lpi4a/index.html
The tar doesn't contain the u-boot bin, you need to get it on your own: https://cdimage.deepin.com/RISC-V/preview-20240815-riscv64/uboot-th1520-revyos.zip

Choose whether you need the 16g version based on your ram size.

Expand All @@ -37,39 +39,152 @@ Extract the installation suite.
Flash the u-boot and boot.

```bash
tar -xvf deepin-23-beige-preview-riscv64-lpi4a-20240613-122949.tar.xz
tar -xvf deepin-23-beige-preview-riscv64-th1520-20240815-132955.tar.xz
sudo fastboot flash ram u-boot-with-spl.bin
sudo fastboot reboot
sudo fastboot flash uboot u-boot-with-spl.bin
sudo fastboot flash boot deepin-lpi4a-riscv64-stable-desktop-installer.boot.ext4
sudo fastboot flash boot deepin-th1520-riscv64-stable-desktop-installer.boot.ext4
```

### Flashing the Image

Flash the root partition into the eMMC.

```bash
sudo fastboot flash root deepin-lpi4a-riscv64-stable-desktop-installer.root.ext4
sudo fastboot flash root deepin-th1520-riscv64-stable-desktop-installer.root.ext4
```

### Logging into the System

Reboot the system, then a installization guide will pop out.

Default username: `root`
Password: `deepin`

## Expected Results

The system should boot successfully, allowing login via the onboard serial console.

## Actual Results

The system booted up correctly, and login via the onboard serial console was successful.
AON firmware is not working properly, the system is not booting.

### How to fix

Just get a aon firmware from RevyOS and put it into the boot partition, then it works.

```bash
sudo losetup -P boot-lpi4a-20240720_171951.ext4
sudo losetup boot-lpi4a-20240720_171951.ext4
sudo losetup -f boot-lpi4a-20240720_171951.ext4
ls
ls /dev/loop
ls /dev/loop0
sudo fdisk
sudo fdisk -l
mkdir mnt
sudo mount /dev/loop0 mnt
ls
ls nt
ls mnt
cp mnt/light_aon_fpga.bin .
ls
sudo umount
sudo umount mnt
sudo losetup -f deepin-th1520-riscv64-stable-desktop-installer.boot.ext4
sudo mount /dev/loop1 mnt
ls mnt
sha256sum mnt/light_aon_fpga.bin
sha256sum light_aon_fpga.bin
sudo rm mnt/light_aon_fpga.bin
sudo cp light_aon_fpga.bin mnt/
sudo umount mnt
sudo losetup -d /dev/loop1
sudo fastboot flash ram light_lpi4a/u-boot-with-spl.bin
sudo fastboot reboot
sudo fastboot flash boot deepin-th1520-riscv64-stable-desktop-installer.boot.ext4

```

See [issue](https://github.com/linuxdeepin/developer-center/issues/10829)

### Boot Log

Screen recording (system login):
[![asciicast](https://asciinema.org/a/8EfjIFC3FLJBBwgOG8nZod4q7.svg)](https://asciinema.org/a/8EfjIFC3FLJBBwgOG8nZod4q7)

![startup](./startup.png)
Waiting for system to be fixed...

```log
deepin-riscv64-th1520 login: root
Password:
Verification successful
Linux deepin-riscv64-th1520 5.10.113-th1520 #1 SMP PREEMPT Wed Apr 24 13:12:14 UTC 2024 riscv64
Welcome to Deepin 23 GNU/Linux
* Homepage:https://www.deepin.org/
* Bugreport:https://bbs.deepin.org/
root@deepin-riscv64-th1520:~# cat /etc/os-release
PRETTY_NAME="Deepin 23"
NAME="Deepin"
VERSION_ID="23"
VERSION="23"
ID=deepin
HOME_URL="https://www.deepin.org/"
BUG_REPORT_URL="https://bbs.deepin.org"
VERSION_CODENAME=beige
root@deepin-riscv64-th1520:~# uname -a
Linux deepin-riscv64-th1520 5.10.113-th1520 #1 SMP PREEMPT Wed Apr 24 13:12:14 UTC 2024 riscv64 GNU/Linux
root@deepin-riscv64-th1520:~# cat /proc/cpuinfo
processor : 0
hart : 0
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
processor : 1
hart : 1
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
processor : 2
hart : 2
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
processor : 3
hart : 3
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
```

## Test Criteria

Expand All @@ -79,4 +194,4 @@ Failed: The actual result does not match the expected result.

## Test Conclusion

Test Successful.
CFH
136 changes: 126 additions & 10 deletions LicheePi4A/Deepin/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

### 系统信息

- 系统版本:Deepin preview 20240603
- 下载链接:https://cdimage.deepin.com/RISC-V/preview-20240613-riscv64/deepin-23-beige-preview-riscv64-lpi4a-20240613-122949.tar.xz
- 系统版本:Deepin preview 20240815
- 下载链接:https://cdimage.deepin.com/RISC-V/preview-20240815-riscv64/deepin-23-beige-preview-riscv64-th1520-20240815-132955.tar.xz
- 参考安装文档:https://cdimage.deepin.com/RISC-V/preview-20240517-riscv64/README.md

### 硬件信息
Expand All @@ -16,9 +16,11 @@

## 安装步骤

注:deepin 的官方站点连接速度较慢,推荐使用一些镜像站点,如[齐鲁工业大学](https://mirrors.qlu.edu.cn/deepin-cd/deepin-cd/RISC-V/preview-20240815-riscv64/)

### 获取 u-boot

官方压缩包内不附带 u-boot,需要自己获取,地址为:https://cdimage.deepin.com/RISC-V/beta3-20240205-riscv64/lpi4a/index.html
官方压缩包内不附带 u-boot,需要自己获取,地址为:https://cdimage.deepin.com/RISC-V/preview-20240815-riscv64/uboot-th1520-revyos.zip

根据 ram 大小自行选择是否需要 16g 的版本。

Expand All @@ -28,39 +30,153 @@
刷入 u-boot 与 boot。

```bash
tar -xvf deepin-23-beige-preview-riscv64-lpi4a-20240613-122949.tar.xz
tar -xvf deepin-23-beige-preview-riscv64-th1520-20240815-132955.tar.xz
sudo fastboot flash ram u-boot-with-spl.bin
sudo fastboot reboot
sudo fastboot flash uboot u-boot-with-spl.bin
sudo fastboot flash boot deepin-lpi4a-riscv64-stable-desktop-installer.boot.ext4
sudo fastboot flash boot deepin-th1520-riscv64-stable-desktop-installer.boot.ext4
```

### 刷写镜像

将 root 分区刷入 eMMC 中。

```bash
sudo fastboot flash root deepin-lpi4a-riscv64-stable-desktop-installer.root.ext4
sudo fastboot flash root deepin-th1520-riscv64-stable-desktop-installer.root.ext4
```

### 登录系统

重启系统后可见安装界面。

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

## 预期结果

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

## 实际结果

系统正常启动,成功通过板载串口登录。
AON 固件不正常,无法启动。

### 如何修复

从 RevyOS 借个 AON 固件,扔进 boot 分区,然后刷入就工作了。

```bash
sudo losetup -P boot-lpi4a-20240720_171951.ext4
sudo losetup boot-lpi4a-20240720_171951.ext4
sudo losetup -f boot-lpi4a-20240720_171951.ext4
ls
ls /dev/loop
ls /dev/loop0
sudo fdisk
sudo fdisk -l
mkdir mnt
sudo mount /dev/loop0 mnt
ls
ls nt
ls mnt
cp mnt/light_aon_fpga.bin .
ls
sudo umount
sudo umount mnt
sudo losetup -f deepin-th1520-riscv64-stable-desktop-installer.boot.ext4
sudo mount /dev/loop1 mnt
ls mnt
sha256sum mnt/light_aon_fpga.bin
sha256sum light_aon_fpga.bin
sudo rm mnt/light_aon_fpga.bin
sudo cp light_aon_fpga.bin mnt/
sudo umount mnt
sudo losetup -d /dev/loop1
sudo fastboot flash ram light_lpi4a/u-boot-with-spl.bin
sudo fastboot reboot
sudo fastboot flash boot deepin-th1520-riscv64-stable-desktop-installer.boot.ext4

```

[issue](https://github.com/linuxdeepin/developer-center/issues/10829)

### 启动信息

屏幕录像(登录系统):
[![asciicast](https://asciinema.org/a/8EfjIFC3FLJBBwgOG8nZod4q7.svg)](https://asciinema.org/a/8EfjIFC3FLJBBwgOG8nZod4q7)
等待官方修复中...

```log
deepin-riscv64-th1520 login: root
Password:
Verification successful
Linux deepin-riscv64-th1520 5.10.113-th1520 #1 SMP PREEMPT Wed Apr 24 13:12:14 UTC 2024 riscv64
Welcome to Deepin 23 GNU/Linux
* Homepage:https://www.deepin.org/
* Bugreport:https://bbs.deepin.org/
root@deepin-riscv64-th1520:~# cat /etc/os-release
PRETTY_NAME="Deepin 23"
NAME="Deepin"
VERSION_ID="23"
VERSION="23"
ID=deepin
HOME_URL="https://www.deepin.org/"
BUG_REPORT_URL="https://bbs.deepin.org"
VERSION_CODENAME=beige
root@deepin-riscv64-th1520:~# uname -a
Linux deepin-riscv64-th1520 5.10.113-th1520 #1 SMP PREEMPT Wed Apr 24 13:12:14 UTC 2024 riscv64 GNU/Linux
root@deepin-riscv64-th1520:~# cat /proc/cpuinfo
processor : 0
hart : 0
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
processor : 1
hart : 1
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
processor : 2
hart : 2
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
processor : 3
hart : 3
isa : rv64imafdcvsu
mmu : sv39
cpu-freq : 1.848Ghz
cpu-icache : 64KB
cpu-dcache : 64KB
cpu-l2cache : 1MB
cpu-tlb : 1024 4-ways
cpu-cacheline : 64Bytes
cpu-vector : 0.7.1
```

![startup](./startup.png)

## 测试判定标准

Expand All @@ -70,4 +186,4 @@ sudo fastboot flash root deepin-lpi4a-riscv64-stable-desktop-installer.root.ext4

## 测试结论

测试成功。
CFH

0 comments on commit 1ca9447

Please sign in to comment.