From 3ac57a0aebea2c62c1900c2db01ed477a67e636e Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Mon, 26 Sep 2022 00:16:52 +0800 Subject: [PATCH 1/3] riscv-linux-distros: commit correct result of tinycorrect-header Signed-off-by: Wu Zhangjin --- articles/20220330-riscv-linux-distros.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/articles/20220330-riscv-linux-distros.md b/articles/20220330-riscv-linux-distros.md index 0bdcaa7..6c60dca 100644 --- a/articles/20220330-riscv-linux-distros.md +++ b/articles/20220330-riscv-linux-distros.md @@ -1,5 +1,7 @@ +> Corrector: [TinyCorrect](https://gitee.com/tinylab/tinycorrect) v0.1-rc2 - [header]
> Author: Falcon
> Date: 2022/03/30
+> Revisor: Falcon
> Project: [RISC-V Linux 内核剖析](https://gitee.com/tinylab/riscv-linux)
> Sponsor: PLCT Lab, ISCAS -- Gitee From e037d272072ce9601f902330e85afa7cf057d998 Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Mon, 26 Sep 2022 00:17:00 +0800 Subject: [PATCH 2/3] riscv-linux-distros: commit correct result of tinycorrect-urls Signed-off-by: Wu Zhangjin --- articles/20220330-riscv-linux-distros.md | 53 ++++++++++++++++-------- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/articles/20220330-riscv-linux-distros.md b/articles/20220330-riscv-linux-distros.md index 6c60dca..51e800d 100644 --- a/articles/20220330-riscv-linux-distros.md +++ b/articles/20220330-riscv-linux-distros.md @@ -1,17 +1,17 @@ -> Corrector: [TinyCorrect](https://gitee.com/tinylab/tinycorrect) v0.1-rc2 - [header]
+> Corrector: [TinyCorrect](https://gitee.com/tinylab/tinycorrect) v0.1-rc2 - [header urls]
> Author: Falcon
> Date: 2022/03/30
> Revisor: Falcon
-> Project: [RISC-V Linux 内核剖析](https://gitee.com/tinylab/riscv-linux)
+> Project: [RISC-V Linux 内核剖析][005]
> Sponsor: PLCT Lab, ISCAS # 两分钟内体验 RISC-V Linux 系统发行版 ## 背景简介 -随着 [RISC-V Linux 内核兴趣小组](https://tinylab.org/riscv-linux-analyse/) 活动的不断推进,大家迫切需要更完善的 RISC-V 开发环境。 +随着 [RISC-V Linux 内核兴趣小组][013] 活动的不断推进,大家迫切需要更完善的 RISC-V 开发环境。 -在 RISC-V Linux 内核开发方面,社区研发的 [Linux Lab](https://tinylab.org/linux-lab) 已经完美支持了 [RISC-V Linux 内核 v5.17](https://www.bilibili.com/video/BV1aU4y1d7zi?spm_id_from=333.999.0.0) 的开发支持: +在 RISC-V Linux 内核开发方面,社区研发的 [Linux Lab][010] 已经完美支持了 [RISC-V Linux 内核 v5.17][016] 的开发支持: * 支持 riscv32/virt 虚拟开发板 * 支持 riscv64/virt 虚拟开发板 @@ -20,19 +20,19 @@ 并且都提供了可以直接运行的内核和小型文件系统,但是我们还需要一个方便软件安装的较为完整的 RISC-V Linux 发行版。 -好消息是,Linux Lab 和 [Linux Lab Disk](https://gitee.com/tinylab/linux-lab-disk) 在这方面也做了非常非常便利的功能,且听一一道来。 +好消息是,Linux Lab 和 [Linux Lab Disk][004] 在这方面也做了非常非常便利的功能,且听一一道来。 ## RISC-V Linux 发行版支持状态 -RISC-V 的各个主流 Linux 发行版都在火热开发中,比如社区前段刚介绍过 [为哪吒 D1 开发板安装 ArchLinux RISC-V rootfs](https://tinylab.org/nezha-d1-archlinux/),除了 ArchLinux,咱们也在本次活动参考资料的 [思维导图](https://gitee.com/tinylab/riscv-linux/raw/master/refs/riscv-linux.xmind) 中做了详细地整理: +RISC-V 的各个主流 Linux 发行版都在火热开发中,比如社区前段刚介绍过 [为哪吒 D1 开发板安装 ArchLinux RISC-V rootfs][012],除了 ArchLinux,咱们也在本次活动参考资料的 [思维导图][006] 中做了详细地整理: -* [Ubuntu](https://wiki.ubuntu.com/RISC-V) -* [Fedora](https://lwn.net/Articles/749443/) -* [openEuler](https://gitee.com/openeuler/RISC-V) -* [Debian](https://wiki.debian.org/RISC-V) -* [ArchLinux](https://archriscv.felixc.at/) -* [AIpine](https://drewdevault.com/2018/12/20/Porting-Alpine-Linux-to-RISC-V.html) -* [Deepin](https://github.com/linuxdeepin/deepin-riscv) +* [Ubuntu][015] +* [Fedora][009] +* [openEuler][003] +* [Debian][014] +* [ArchLinux][001] +* [AIpine][002] +* [Deepin][008] ## 如何使用 RISC-V Linux 发行版 @@ -44,7 +44,7 @@ RISC-V 的各个主流 Linux 发行版都在火热开发中,比如社区前段 第一步就很麻烦,目前的板子都比较贵而且性能极慢(大概在 1-1.2G 左右),问题是还很难买到。 -第二步也相当困难,首先是大部分发行版的支持正在开发过程中,其次是安装方式还是嵌入式或 Hacker 级别的,如 [为哪吒 D1 开发板安装 ArchLinux RISC-V rootfs](https://tinylab.org/nezha-d1-archlinux/)。 +第二步也相当困难,首先是大部分发行版的支持正在开发过程中,其次是安装方式还是嵌入式或 Hacker 级别的,如 [为哪吒 D1 开发板安装 ArchLinux RISC-V rootfs][012]。 第三步如果要换一个大一点外置存储卡启动,可能得去设置启动开关,很多时候,找开发板手册上的开关序列跟猜密码一样。 @@ -60,7 +60,7 @@ RISC-V 的各个主流 Linux 发行版都在火热开发中,比如社区前段 ### 简单准备 -咱们以本次活动推荐的统一实验环境 [Linux Lab Disk](https://tinylab.org/linux-lab-disk) 为例(其他环境请自行安装 Docker)。 +咱们以本次活动推荐的统一实验环境 [Linux Lab Disk][011] 为例(其他环境请自行安装 Docker)。 Linux Lab Disk 已经支持 6 大主流 Linux 发行版,包括 Ubuntu, Kali, Mint, Deepin, Manjaro, Fedora 等,这里任选了一个 Kali 版本来做实验。 @@ -139,7 +139,7 @@ Linux Lab Disk 已经支持 6 大主流 Linux 发行版,包括 Ubuntu, Kali, M ## 跑个测试验证系统完整度和性能 -刚好最近我们开发了一套 [microbench](https://gitee.com/tinylab/riscv-linux/tree/master/test/microbench) 测试工具,正缺少 RISC-V 的开发环境,这不,一拍即合。 +刚好最近我们开发了一套 [microbench][007] 测试工具,正缺少 RISC-V 的开发环境,这不,一拍即合。 这里同样用 chroot 方式运行,先准备好这个套件需要的基本工具: @@ -217,7 +217,7 @@ Linux Lab Disk 已经支持 6 大主流 Linux 发行版,包括 Ubuntu, Kali, M root@linux-lab-host:/home# file benchmark/build/test/riscv64 benchmark/build/test/riscv64: ELF 64-bit LSB executable, UCB RISC-V, RVC, double-float ABI, version 1 (GNU/Linux), statically linked, BuildID[sha1]=9936c98555982fefd19eb014fe575a11aeb5aa6c, for GNU/Linux 4.15.0, not stripped -然后,把这个测试程序放到 RISC-V 目标系统上运行就可以评估 RISC-V 板子的真实性能了。欢迎大家在各种不同厂家的 RISC-V 开发板上测试,然后把数据提交到 [RISC-V Linux](https://gitee.com/tinylab/riscv-linux) 项目中。 +然后,把这个测试程序放到 RISC-V 目标系统上运行就可以评估 RISC-V 板子的真实性能了。欢迎大家在各种不同厂家的 RISC-V 开发板上测试,然后把数据提交到 [RISC-V Linux][005] 项目中。 提交数据很简单,这样就可以: @@ -233,7 +233,7 @@ Linux Lab Disk 已经支持 6 大主流 Linux 发行版,包括 Ubuntu, Kali, M ## 小结 -由 [Linux Lab Disk](https://tinylab.org/linux-lab-disk) 提供的这种使用 RISC-V Linux 发行版的方式非常方便: +由 [Linux Lab Disk][011] 提供的这种使用 RISC-V Linux 发行版的方式非常方便: * 无需购买 RISC-V 开发板 * 无需复杂的安装过程,不用懂嵌入式等 Hacking 技巧 @@ -244,3 +244,20 @@ Linux Lab Disk 已经支持 6 大主流 Linux 发行版,包括 Ubuntu, Kali, M 除了 RISC-V,大家也可以用同样地方式体验其他处理器架构的 Linux 系统发行版,一样轻松自如。 最后,我们来留一个悬念,如果需要的 RISC-V Linux 发行版还不在 docker 镜像库呢,怎么办?且听下回分解。 + +[001]: https://archriscv.felixc.at/ +[002]: https://drewdevault.com/2018/12/20/Porting-Alpine-Linux-to-RISC-V.html +[003]: https://gitee.com/openeuler/RISC-V +[004]: https://gitee.com/tinylab/linux-lab-disk +[005]: https://gitee.com/tinylab/riscv-linux +[006]: https://gitee.com/tinylab/riscv-linux/raw/master/refs/riscv-linux.xmind +[007]: https://gitee.com/tinylab/riscv-linux/tree/master/test/microbench +[008]: https://github.com/linuxdeepin/deepin-riscv +[009]: https://lwn.net/Articles/749443/ +[010]: https://tinylab.org/linux-lab +[011]: https://tinylab.org/linux-lab-disk +[012]: https://tinylab.org/nezha-d1-archlinux/ +[013]: https://tinylab.org/riscv-linux-analyse/ +[014]: https://wiki.debian.org/RISC-V +[015]: https://wiki.ubuntu.com/RISC-V +[016]: https://www.bilibili.com/video/BV1aU4y1d7zi?spm_id_from=333.999.0.0 -- Gitee From a5fe5b0adce73ece91d65b021c60ee66735664ce Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Mon, 26 Sep 2022 00:17:06 +0800 Subject: [PATCH 3/3] riscv-linux-distros: commit correct result of tinycorrect-autocorrect Signed-off-by: Wu Zhangjin --- articles/20220330-riscv-linux-distros.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/articles/20220330-riscv-linux-distros.md b/articles/20220330-riscv-linux-distros.md index 51e800d..e2ee78b 100644 --- a/articles/20220330-riscv-linux-distros.md +++ b/articles/20220330-riscv-linux-distros.md @@ -1,4 +1,4 @@ -> Corrector: [TinyCorrect](https://gitee.com/tinylab/tinycorrect) v0.1-rc2 - [header urls]
+> Corrector: [TinyCorrect](https://gitee.com/tinylab/tinycorrect) v0.1-rc2 - [header urls autocorrect]
> Author: Falcon
> Date: 2022/03/30
> Revisor: Falcon
@@ -16,7 +16,7 @@ * 支持 riscv32/virt 虚拟开发板 * 支持 riscv64/virt 虚拟开发板 -两款板子都已经支持最新的 qemu 6.0 和 Linux v5.17。 +两款板子都已经支持最新的 QEMU 6.0 和 Linux v5.17。 并且都提供了可以直接运行的内核和小型文件系统,但是我们还需要一个方便软件安装的较为完整的 RISC-V Linux 发行版。 @@ -84,7 +84,7 @@ Linux Lab Disk 已经支持 6 大主流 Linux 发行版,包括 Ubuntu, Kali, M riscv64/alpine A minimal Docker image based on Alpine Linux… 0 riscv64/ubuntu Ubuntu is a Debian-based Linux operating sys… 0 -可以看到已经有 busybox, debian, alpine 和 ubuntu,接下来以 ubuntu 为例,先看看支持的 tags: +可以看到已经有 busybox, debian, alpine 和 Ubuntu,接下来以 Ubuntu 为例,先看看支持的 tags: $ ../../tools/docker/tags riscv64/ubuntu "latest" -- Gitee