you need:
- qemu
- rust (nightly), rust-src, llvm-tools-preview
- cargo xbuild, bootlader
in Archlinux:
pacman -S qemu qemu-arch-extra
in Ubuntu:
apt install qemu-kvm
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Note: while installation, select rust Nightly
channel.
After installation is done, add this line to your shell config to load rust toolchain.
for Bash:
echo 'source $HOME/.cargo/env' >> ~/.bashrc
now install rust-src component:
rustup component add rust-src
rustup component add llvm-tools-preview
cargo install cargo-xbuild bootimage
cargo xrun