-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修改allImageSuites以及设置默认选项值 Signed-off-by: Mingle Tan <[email protected]>
- Loading branch information
1 parent
56f621e
commit 3d7e9a8
Showing
17 changed files
with
923 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<!-- 需要放在public目录下npm run build后自动存放在dist文件夹下 --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
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,77 @@ | ||
[ | ||
{ | ||
"name": "Pioneer", | ||
"vendor": "Milk-V", | ||
"thumbnail": "resources/milkv/pioneer/milk-v-pioneer-board_png_gallery-lg.jpg", | ||
"soc": "SG2042", | ||
"isa": [ | ||
"RVA20" | ||
], | ||
"kernel": [ | ||
"RVCK-6.6" | ||
], | ||
"userspace": [ | ||
"xfce4" | ||
], | ||
"uri": "products/milkv/pioneer.json", | ||
"status": "SUPPORTED" | ||
}, | ||
{ | ||
"name": "qemu-system", | ||
"vendor": "Qemu", | ||
"thumbnail": null, | ||
"soc": "virt", | ||
"isa": [ | ||
"RVA20" | ||
], | ||
"kernel": [ | ||
"RVCK-6.6" | ||
], | ||
"userspace": [ | ||
"xfce4" | ||
], | ||
"uri": "products/qemu/system.json", | ||
"status": "SUPPORTED" | ||
}, | ||
{ | ||
"name": "LicheePi 4A", | ||
"vendor": "Sipeed", | ||
"thumbnail": null, | ||
"soc": "TH1520", | ||
"isa": [ | ||
"RVA20" | ||
], | ||
"kernel": [ | ||
"RVCK-6.6", | ||
"VENDOR-5.4" | ||
], | ||
"userspace": [ | ||
"Headless", | ||
"xfce4" | ||
], | ||
"uri": "products/sipeed/licheepi_4a.json", | ||
"status": "SUPPORTED" | ||
}, | ||
{ | ||
"name": "MUSE PI", | ||
"vendor": "SpacemiT", | ||
"thumbnail": null, | ||
"soc": "M1", | ||
"isa": [], | ||
"kernel": [], | ||
"userspace": [], | ||
"uri": "products/spacemit/muse_pi.json", | ||
"status": "WIP" | ||
}, | ||
{ | ||
"name": "VisionFive 2", | ||
"vendor": "StarFive", | ||
"thumbnail": null, | ||
"soc": "JH7110", | ||
"isa": [], | ||
"kernel": [], | ||
"userspace": [], | ||
"uri": "products/starfive/visionfive2.json", | ||
"status": "WIP" | ||
} | ||
] |
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,15 @@ | ||
# 在 Milk-V Pioneer 上安装基于UEFI启动流程的 openEuler 24.03 | ||
|
||
Pioneer 出厂时 NOR Flash 固件没有支持基于 EDK2 的 UEFI 启动流程,因此需要首先部署 EDK2 固件。之后则可以使用 openEuler 官方发布的ISO安装镜像执行系统安装。 | ||
|
||
鉴于 Pioneer 的主控 SG2042 会优先从 SD 卡加载固件,因此本文档基于: | ||
|
||
- 在 microSD 卡上部署 UEFI 固件 | ||
- 将 ISO 安装镜像烧录至U盘 | ||
- 系统安装至 M.2 NVMe 硬盘上 | ||
|
||
的思路来部署 openEuler RISC-V。 | ||
|
||
## 固件安装 | ||
|
||
下载 `sg2042_firmware_uefi.img.zip` |
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,60 @@ | ||
# 在 Milk-V Pioneer 上安装基于UEFI启动流程的 openEuler 24.03 | ||
|
||
Pioneer 出厂时 NOR Flash 固件没有支持基于 EDK2 的 UEFI 启动流程,因此需要首先部署 EDK2 固件。之后则可以使用 openEuler 官方发布的ISO安装镜像执行系统安装。 | ||
|
||
鉴于 Pioneer 的主控 SG2042 会优先从 SD 卡加载固件,其次才会尝试从板载 NOR Flash 上加载,因此本文档基于: | ||
|
||
- 在 microSD 卡上部署 UEFI 固件 | ||
- 将 ISO 安装镜像烧录至U盘 | ||
- 系统安装至 M.2 NVMe 硬盘上 | ||
|
||
的思路来部署 openEuler RISC-V。 | ||
|
||
## 部署固件至 microSD | ||
|
||
下载 `sg2042_firmware_uefi.img.zip`。解压得到 `sg2042_firmware_uefi.img` 磁盘镜像。 | ||
|
||
将该镜像恢复到 microSD 卡中。使用 `dd` 命令如下: | ||
|
||
```shell | ||
export MICROSD_DEV="/dev/sdX" | ||
sudo dd if=sg2042_firmware_uefi.img of="${MICROSD_DEV}" bs=512k conv=sync status=progress oflag=direct | ||
``` | ||
|
||
将 `sdX` 替换为实际的 SD 卡块设备路径。 | ||
|
||
或使用图形化的工具例如: | ||
|
||
- gnome-disks | ||
- [balenaEtcher](https://etcher.balena.io/#download-etcher) | ||
|
||
## 部署 ISO 系统安装镜像至 U盘 | ||
|
||
下载 `openEuler-24.03-LTS-riscv64-dvd.iso`。 | ||
|
||
使用上述工具将该镜像写入至U盘。以 `dd` 为例: | ||
|
||
```shell | ||
sudo dd if=openEuler-24.03-LTS-riscv64-dvd.iso of="${MICROSD_DEV}" bs=512k conv=sync status=progress oflag=direct | ||
``` | ||
|
||
## 启动系统 | ||
|
||
将 microSD 卡插入板载的卡槽。将U盘接入板上任意一个 USB-A 接口。 | ||
|
||
接一套键鼠到板载 USB-A 口。 | ||
|
||
确保 AMD R5 230 显卡已接入,并通过线缆连接一台支持 1080P/2K 分辨率的显示器;以及目标 NMVe SSD 接在 M.2 插槽或通过转接卡接在 PCIe 插槽上。 | ||
|
||
给系统上电。 | ||
|
||
 | ||
|
||
将会进入 grub 启动项选择界面。 | ||
|
||
 | ||
|
||
由于固件实现上的缺陷,当前 GRUB 渲染速度很慢,因此需要等待较长时间才能观测到对用户输入的响应。摁方向上键选中 `Install openEuler 24.03 LTS`,回车确认。 | ||
|
||
 | ||
|
Binary file added
BIN
+67.6 KB
public/docs/milkv/pioneer-oerv2403-uefi.resc/edk2-boot-screenshot-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,52 @@ | ||
# 在 LPi4A 上安装 OpenEuler RISC-V | ||
|
||
在 LPi4A 验证过的部署流程为: | ||
|
||
- 板卡配置为通过 eMMC 启动 | ||
- 使用 USB fastboot 烧写 U-Boot 固件与系统 | ||
|
||
需要用到 Android SDK Platform Tools 中提供的 fastboot 工具。官方下载地址为: | ||
|
||
[https://developer.android.com/tools/releases/platform-tools#downloads.html](https://developer.android.com/tools/releases/platform-tools#downloads.html) | ||
|
||
## 驱动安装与配置 | ||
|
||
### Linux | ||
|
||
需要配置 udev rules 来解决 USB 设备文件权限问题。执行下述命令完成配置: | ||
|
||
```shell | ||
cat << EOF | sudo tee /etc/udev/rules.d/99-thead-th1520.rules | ||
SUBSYSTEM=="usb", ATTR{idVendor}=="2345", ATTR{idProduct}=="7654", MODE="0660", GROUP="plugdev", TAG+="uaccess" | ||
SUBSYSTEM=="usb", ATTR{idVendor}=="1234", ATTR{idProduct}=="8888", MODE="0660", GROUP="plugdev", TAG+="uaccess" | ||
EOF | ||
``` | ||
|
||
执行后需要重新插拔 USB 使新规则生效。 | ||
|
||
### Windows | ||
|
||
参考[官方文档](https://wiki.sipeed.com/hardware/zh/lichee/th1520/lpi4a/4_burn_image.html#Windows-%E4%B8%8B%E9%A9%B1%E5%8A%A8%E5%AE%89%E8%A3%85) | ||
|
||
## 镜像烧录 | ||
|
||
根据持有的板卡 DRAM 大小选择对应的 U-Boot 固件版本并下载。 | ||
|
||
将板卡上的 Type-C 接口与电脑连接,由电脑为板卡供电。摁住 Type-C 接口旁边的 BOOT 按键同时短摁 Type-C 接口旁边的 RESET 按键,进入 BOOTROM 的下载模式后,执行: | ||
|
||
```shell | ||
LPI4A_RAM_VARIANT='-16g' | ||
OERV_VERSION='24.03-LTS-SP1' | ||
|
||
zstd -d openEuler-${OERV_VERSION}-riscv64-lpi4a-base-boot.ext4.zst | ||
zstd -d openEuler-${OERV_VERSION}-riscv64-lpi4a-base-root.ext4.zst | ||
|
||
fastboot flash ram u-boot-with-spl-lpi4a${LPI4A_RAM_VARIANT}.bin | ||
fastboot reboot | ||
sleep 1 | ||
fastboot flash uboot u-boot-with-spl-lpi4a${LPI4A_RAM_VARIANT}.bin | ||
fastboot flash boot openEuler-${OERV_VERSION}-riscv64-lpi4a-base-boot.ext4 | ||
fastboot flash root openEuler-${OERV_VERSION}-riscv64-lpi4a-base-root.ext4 | ||
``` | ||
|
||
摁 RESET 按键重启板卡,即可进入系统。此时推荐拔下连接至电脑的 Type-C 线缆,更换为独立的电源适配器进行供电。 |
Oops, something went wrong.