Created
April 30, 2023 14:23
-
-
Save eirikb/0e0ec512f32a742d299f179c4864f8c2 to your computer and use it in GitHub Desktop.
QEMU Arch Linux ARM64 aarch64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz | |
qemu-img create root.img 32G | |
mkfs.ext4 root.img | |
mkdir root | |
sudo mount root.img root | |
sudo bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C root | |
sudo cp -r root/boot . | |
sudo umount root | |
qemu-system-aarch64 -M virt -cpu cortex-a72 -kernel boot/Image -hda root.img -append "root=/dev/vda rw" | |
# Press ctrl+alt+2 to change to serial view. Or append this to above command: | |
# -serial stdio -display none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment