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

✨ feat: rm prebuilt #50

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 3 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# 介绍与快速入门

> 本文档环境为 `ubuntu 20.04`
>
> 更多文档请前往 https://club.rt-thread.org/ask/article/1c95a3e1c58c0c25.html

## 介绍

Expand Down Expand Up @@ -38,19 +36,7 @@ xmake 是一个基于 Lua 的轻量级跨平台构建工具,使用 xmake.lua
sudo apt install xmake
```

3. **安装 qemu**

userapps 已提供 qemu 7.1.0 的安装包,请自行下载 https://download-redirect.rt-thread.org/download/rt-smart/native/tools/qemu/qemu_7.1.0-2022111713_amd64.deb

```shell
sudo apt-get install -y libglib2.0-dev libpixman-1-dev
curl -L https://download-redirect.rt-thread.org/download/rt-smart/native/tools/qemu/qemu_7.1.0-2022111713_amd64.deb -o ./qemu.deb
sudo dpkg -i ./qemu.deb
```

如若想安装最新版本,请自行下载 qemu 源码进行编译安装

4. **编译**
3. **编译**

由于 smart 采用 xmake 编译用户态环境,因此 smart 的编译方式非常简单。

Expand All @@ -70,30 +56,17 @@ xmake 是一个基于 Lua 的轻量级跨平台构建工具,使用 xmake.lua

![image-20230531173059551](./assets/image-20230531173059551.png)

5. **镜像制作**
4. **镜像制作**

运行 `xmake smart-rootfs` 制作 rootfs ,运行 `xmake smart-image` 制作镜像

```shell
xmake smart-rootfs
xmake smart-image -o ../prebuilt/qemu-virt64-aarch64/ext4.img # 将镜像输出至 qemu-virt64-aarch64 目录
xmake smart-image -f ext4 #制作 ext4 镜像
```

![image-20230531173829621](./assets/image-20230531173829621.png)

6. **运行 qemu**

进入 `userapp/prebuilt/qemu-virt64-aarch64`,运行 qemu.sh 脚本启动 qemu

```shell
cd prebuilt/qemu-virt64-aarch64/
./run.sh
```

![image-20230531174321326](./assets/image-20230531174321326.png)

在 qemu 中 输入 `ctrl+a` 抬起后,再输入 `x` 即可退出 qemu

## prebuilt 的版本

会在每天凌晨生成 aarch64/riscv64 for qemu 的 prebuilt 版本,包括内核和 rootfs 文件系统:
Expand Down
Binary file removed assets/image-20230531174321326.png
Binary file not shown.
Binary file removed prebuilt/qemu-virt64-aarch64/ext4.img
Binary file not shown.
Binary file removed prebuilt/qemu-virt64-aarch64/rtthread.bin
Binary file not shown.
26 changes: 0 additions & 26 deletions prebuilt/qemu-virt64-aarch64/run.sh

This file was deleted.

28 changes: 0 additions & 28 deletions prebuilt/qemu-virt64-aarch64/run_debug.sh

This file was deleted.

Binary file removed prebuilt/qemu-virt64-riscv/ext4.img
Binary file not shown.
Binary file removed prebuilt/qemu-virt64-riscv/rtthread.bin
Binary file not shown.
25 changes: 0 additions & 25 deletions prebuilt/qemu-virt64-riscv/run.sh

This file was deleted.

27 changes: 0 additions & 27 deletions prebuilt/qemu-virt64-riscv/run_debug.sh

This file was deleted.

1 change: 0 additions & 1 deletion prebuilt/sha1sum.txt

This file was deleted.