Hi, How can I boot the kernel in the image using qemu-aarch64
and mount the rootfs
to update it?
Boot Ubuntu Server Image for rock pi 4b in QEMU
sudo apt-get install binfmt-support qemu-user-static
sudo mount rootfs.ext4 /mnt
sudo chroot /mnt
1 Like
Yes,we can do that. But in some cases I wanted to check if the image is build correctly then how can I do that.
We can flash and check it, but if we were some how able to emulate the machine then we can check image faster and our image creation cycles can be fast.
check image faster and our image creation cycles can be fast
You can use network file system and test on real hardware. Use nfs as rootfs, and mount your boot
partition on /boot. You can test new kernel and applications in this way.