Running RTEMS 6 "Hello.exe" on Raspberry Pi Emulation in QEmu

Hi, I’m trying to run the basic RTEMS 6 “hello.exe” on Raspberry Pi in QEmu before trying to run it on the real hardware. However, the exe appears to hang indefinitely and no output is displayed in the console. I’m using the following command to run QEmu.

qemu-system-arm -no-reboot -net none -nographic -M raspi2b -m 1G -kernel .\build\arm-rtems6-raspberrypi\hello.exe

My QEmu verions is 10.1.0. Could anyone please guide how to run RTEMS on Raspberry Pi emulation in QEmu?

However, the same program, when built for the realview-pbx-a9 runs correctly.

You might like to try running a Linux image for the RPi first, usually the Linux documentation is useful for Qemu since the Linux community heavily uses Qemu. Sometimes you need to set some specific command line arguments a little differently based on the emulated target.

qemu-system-aarch64 -M raspi4b -kernel build/kernel8.img -serial stdio This is the command I use for aarch64/raspberrypi. You can use the objcopy to generate the kernel8.img