wangqinglin 4003172797 删除ioremap 宏定义 (#7662) 2 years ago
..
.vscode c5cb58383c [BSP] Add vscode setting. (#6992) 2 years ago
applications e8504c7cf1 [smart/aarch64] code sync (#6750) 2 years ago
drivers 4003172797 删除ioremap 宏定义 (#7662) 2 years ago
.config 95e6b69b8e sync and update all projects (#7138) 2 years ago
Kconfig e8504c7cf1 [smart/aarch64] code sync (#6750) 2 years ago
README.md 747ed9b516 [bsp/qemu-virt64-aarch64] Update drivers' code (#6194) 2 years ago
README_zh.md 8b0610fc34 [bsp][readme] 增加scons --exec-path=xxx 命令的使用说明 2 years ago
SConscript b7dd004de0 [bsp/virt64/aarch64] Add 'qemu-virt64-aarch64' bsp 3 years ago
SConstruct 9bc68d26a4 format Kconfig and sconscript 2 years ago
link.lds 401ad16449 [bsp][smart] fix virt64 aarch64 link script for smart. 2 years ago
link_smart.lds 401ad16449 [bsp][smart] fix virt64 aarch64 link script for smart. 2 years ago
qemu-debug.bat e8504c7cf1 [smart/aarch64] code sync (#6750) 2 years ago
qemu-debug.sh 7450ef6c4d [rt-smart] kernel virtual memory management layer (#6809) 2 years ago
qemu-graphic.bat e8504c7cf1 [smart/aarch64] code sync (#6750) 2 years ago
qemu-graphic.sh e8504c7cf1 [smart/aarch64] code sync (#6750) 2 years ago
qemu.bat 2d36be841f aarch64:修复qemu.bat (#7276) 2 years ago
qemu.sh 7450ef6c4d [rt-smart] kernel virtual memory management layer (#6809) 2 years ago
rtconfig.h 95e6b69b8e sync and update all projects (#7138) 2 years ago
rtconfig.py e4edf7e182 [BSP] Add color build for qemu gcc config. (#6924) 2 years ago

README.md

QEMU/AArch64 VIRT BSP Introduction

中文页 | English

1. Introduction

The AArch64 execution state was introduced with the ARMv8 ISA for machines executing A64 instructions. This project ported RT-Thread on QEMU AArch64 VIRT machine.

2. Compiling

Usage ARM Developer GNU ToolChain, it support Linux and Windows:

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/

Download the xxx-aarch64-none-elf of x86_64 hosted platform,set the RTT_EXEC_PATH is system environment after decompress the binary.

Enter directory rt-thread/bsp/qemu-virt64-aarch64 and input:

scons

3. Execution

The project execution tool is qemu-system-aarch64, the project can be configured to Cortex-A53/A57/A72, GIC supports V2/V3 version, and V2 of GIC can use 8 processors max.

Download Windows platform from website:

https://www.qemu.org/download/

On Linux platform (Ubuntu, Deepin and so on), install QEMU by apt.

sudo apt update
sudo apt install qemu-system-arm

Please fixup the exec scripts if modify the default configuration of the project. Run qemu.bat or qemu.sh in terminal:

heap: [0x40042aa0 - 0x40142aa0]

 \ | /
- RT -     Thread Operating System
 / | \     4.0.4 build Aug  6 2021
 2006 - 2021 Copyright by rt-thread team
Hi, this is RT-Thread!!
msh />

Use VirtIO-Console in new terminal by:

telnet 127.0.0.1 4321

If use tap net mode with tap0 card, modify qemu run script config

-netdev user,id=net0

to

-netdev tap,id=net0,ifname=tap0

4. Condition

Driver Condition Remark
UART Support UART0
RTC Support -
GPIO Support -
VIRTIO BLK Support -
VIRTIO NET Support -
VIRTIO Console Support -
VIRTIO GPU Support 2D
VIRTIO Input Support Keyboard, Mouse, Tablet