|
2 years ago | |
---|---|---|
.. | ||
.vscode | 2 years ago | |
applications | 2 years ago | |
drivers | 2 years ago | |
.config | 2 years ago | |
Kconfig | 2 years ago | |
README.md | 2 years ago | |
SConscript | 3 years ago | |
SConstruct | 3 years ago | |
link.lds | 3 years ago | |
qemu-debug.sh | 2 years ago | |
qemu-graphic.bat | 3 years ago | |
qemu-graphic.sh | 3 years ago | |
qemu.bat | 3 years ago | |
qemu.sh | 2 years ago | |
rtconfig.h | 2 years ago | |
rtconfig.py | 3 years ago |
The virt board is a platform which does not correspond to any real hardware; it is designed for use in virtual machines.
Supported guest CPU types: cortex-a7 (32-bit) cortex-a15 (32-bit; the default) cortex-a53 (64-bit) cortex-a57 (64-bit) cortex-a72 (64-bit) host (with KVM only) max (same as host for KVM; best possible emulation with TCG)
Guest code can rely on and hard-code the following addresses: Flash memory starts at address 0x0000_0000 RAM starts at 0x4000_0000
推荐使用[env工具][2],可以在console下进入到bsp/qemu-virt64-aarch64
目录中,运行以下命令:
scons
来编译这个板级支持包。如果编译正确无误,会产生rtthread.elf、rtthread.bin文件。
注: RT-Thread/ENV中携带的工具版本是:
gcc version 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]
如果在Linux下使用,请自行下载[GNU GCC工具链][3]。
当要执行编译好的RT-Thread时,在这个bsp目录下已经提供了运行脚本文件:qemu.bat/qemu.sh,工程可配置为使用Cortex-A53/A57/A72
等芯片,GIC支持V2/V3
版本,其中V2
最多可配置8个处理器。
这个执行脚本默认把串口输出到stdio(即控制台)上,所以直接执行脚本后就可以输出结果了。
\ | /
- RT - Thread Smart Operating System
/ | \ 5.0.0 build Aug 18 2021
2006 - 2020 Copyright by rt-thread team
hello rt-thread
msh />
如果需要使用VirtIO-Console,请在新终端使用以下命令连接控制台:
telnet 127.0.0.1 4321
如果使用tap网卡模式,以设备tap0为例,将qemu运行脚本
-netdev user,id=net0
修改为
-netdev tap,id=net0,ifname=tap0
驱动 | 支持情况 | 备注 |
---|---|---|
UART | 支持 | UART0 |
RTC | 支持 | - |
GPIO | 支持 | - |
VIRTIO BLK | 支持 | - |
VIRTIO NET | 支持 | - |
VIRTIO Console | 支持 | - |
VIRTIO GPU | 支持 | 2D |
VIRTIO Input | 支持 | Keyboard, Mouse, Tablet |