Hi Heinz, Here's a couple notes I use to get things up and running, and I've attached my scripts.
1. You need an old version of the RPi firmware, the newer Device Tree Blobs are not supported. 2. I use GDB in another window to load the DTB and kick off the boot process. 3. I usually target the Raspberry Pi 2 or 3 with SMP (the Pi 1 is just too old). I've made a couple tweaks to get that one to boot that aren't in the docs yet. I use arm-rtems6-objcopy -O binary [exe_name].exe kernel.img to create a raw binary and load that into QEMU. Debugging symbols still work in GDB, but for whatever reason, the elf files from GCC don't work with SMP. 4. This article has some great pointers about configuring QEMU to run Linux on a Pi 3, which is essentially identical to the Pi 2, except with WiFi. https://raduzaharia.medium.com/system-emulation-using-qemu-raspberry-pi-3-4973260ffb3e Hope that helps, Jacob On Fri, Mar 17, 2023 at 9:49 AM Heinz Junkes <jun...@fhi-berlin.mpg.de> wrote: > Hi, > > I've been trying again for some time to get RTEMS (version 5 or 6) for > raspberryPi2 to work on a qemu. > > There is a lot of documentation about it. To those I have tried it there > are always some 'fuzzies’ and I > unfortunately get never any output message when starting > qemu-system-arm -M raspi2 -m 1G -kernel ./tests/hello.exe -serial > mon:stdio -nographic > > Has anyone ever done it successfully and can send me a script? > Danke, > Heinz > > P.S. no problems with RTEMS_BSP=xilinx_zynq_a9_qemu (on 5 and 6, > with/without rtems-libbsd). > I have never managed to get a bootable SD card here. > > _______________________________________________ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users
debug.sh
Description: application/shellscript
qemu.sh
Description: application/shellscript
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users