Running system on riscv64-generic-qemu
This version is designated for RISC-V 64 processor based virt machine implemented by qemu-system-riscv64
. To launch this version two files should be provided - kernel file integrated with SBI firmware with embedded UART16550 interface driver, dummyfs filesystem and thepsh
shell and disk image with ext2 filesystem.
The files are created as the final artifact of the phoenix-rtos-project
building and are located in the _boot
directory. See how to build the Phoenix-RTOS system image.
Running image under qemu
Firstly, you need to install qemu emulator.
How to get qemu (Ubuntu 20.04)
- Install the required packages
sudo apt-get update && \
sudo apt-get install qemu-kvm \
qemu virt-manager \
virt-viewer libvirt-clients \
libvirt-daemon-system \
bridge-utils virtinst \
libvirt-daemon \
qemu-system-misc
- Check if qemu is properly installed:
qemu-system-riscv64 --version
To run the image under qemu you should type:
./scripts/riscv64-generic-qemu.sh
Using Phoenix-RTOS
Phoenix-RTOS will be launched and the psh
shell command prompt will appear in the terminal. To get the available command list please type:
help
To get the list of working processes please type:
ps