- RISC-V 64
- LoongArch64
- AArch64
- x86_64 (work in progress)
- QEMU
- 海光CSV环境
- Linux kylin-x Pkvm 虚拟机环境
- Tee support
# Rust toolchain
rustup target add aarch64-unknown-none-softfloat
# QEMU (Debian/Ubuntu)
sudo apt install qemu-system| Architecture | GCC Version | Musl Version | Origin Link |
|---|---|---|---|
| x86_64 | 11.2.1 | git-b76f37f (2021-09-23) | musl.cc |
| aarch64 | 11.2.1 | git-b76f37f (2021-09-23) | musl.cc |
| riscv64 | 11.2.1 | git-b76f37f (2021-09-23) | musl.cc |
| loongarch64 | 13.2.0 | 1.2.5 | LoongsonLab |
Directly run the following commands to build the root filesystem image for the desired architecture:
# Default target: riscv64
make rootfs
# Explicit target
make ARCH=riscv64 rootfs
make ARCH=loongarch64 rootfsOr you can build your own root filesystem image(only supported ext4 and musl for now)
You can configure the kernel from the starter configuration with the following command:
make menuconfigor you can directly copy your own .config file to the kernel source directory,
cp platforms/aarch64-qemu-virst/defconfig .configYou can build and run the kernel on QEMU with the following commands:
# Default target: riscv64
make build
# Explicit target
make ARCH=riscv64 build
make ARCH=loongarch64 build
# Run on QEMU (also rebuilds if necessary)
make ARCH=riscv64 run
make ARCH=loongarch64 runYou can build the kernel for other supported platforms with the following commands:
make ARCH=xxx PLAT=[platforms/xxxxx] buildThis project is now released under the Apache License 2.0. See the LICENSE and NOTICE files for details.