On Sat, 7 Sep 2024, Kenneth Adam Miller wrote:
I found this:
https://qemu-project.gitlab.io/qemu/system/linuxboot.html
and this:
https://nickdesaulniers.github.io/blog/2018/10/24/booting-a-custom-linux-kernel-in-qemu-and-debugging-it-with-gdb/

So I now have serial output. But I still need to know how to put a binary
in the image so I can run it.

There are several ways but maybe the easiest is to put the binary in the initrd if you can edir that (try 'file ramdisk.img' to find out what format it's in) or make an iso from it and use -cdrom option to add it as a CD drive that they you can mount it if the kernel has appropriate drivers.

Regards,
BALATON Zoltan

Reply via email to