I'm trying to build packages for Alpine Linux, which has official support for x86, x86_64, armhf, aarch64, s390x, ppc64le, so I want to build for all of these architectures.
Currently I'm using QEMU's user mode emulation to run chroot environments of these architectures on a x86_64 host, but it seems that it's quite unstable and often lead to crashes. So now I'm trying to run full virtual machines using QEMU.
Installing Alpine Linux for the non-ARM architectures is quite simple and can be done by attaching the .iso images provided in the official download page. However, it's a different story for ARM. There is no other things provided except the archives for netboot and u-boot so I have no idea how to install it. I have tried extracting the archive for netboot and setting -kernel
and -initrd
to the extracted files but that didn't work. (The full command I used was qemu-system-aarch64 -M vexpress-a9 -kernel vmlinuz-vanilla -initrd initrd-vanilla -append "root=/dev/ram"
) I got no output in the terminal and Guest had not initialized the display (yet)
in the VNC window.
So how can I get the virtual machine booted up? Thanks.