<div dir="ltr">I want to simulate old raspberry pi 1 and 2 using qemu.<div><b> qemu-system-arm -kernel hello.exe  -cpu cortex-a7 -M raspi2 -m 512 -no-reboot -serial stdio</b><div><br></div></div><div>I use the above command to run the examples, and it does run, but not always sometimes I get this weird output's where my whole screen gets filled up with 0's. and sometimes I get an <b>RTEMS_FATAL_SOURCE_EXCEPTION</b> with <b>executing thread is NULL </b>message at the bottom. </div><div>with a dump of something like this:</div><div><br></div><div>RTEMS RPi 2B 1.1 (1GB) [00a21041]                                                                                                                                                   <br>*** FATAL                                                                                                                                                                                                          <br>**<br>fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION)<br><br>R0   = 0x0020e6d8 R8  = 0x00000000<br>R1   = 0x00000000 R9  = 0x00000001<br>R2   = 0x00303e10 R10 = 0x00001000<br>R3   = 0x00000000 R11 = 0x49444c45<br>R4   = 0x00000000 R12 = 0x00303c78<br>R5   = 0x0020e6d8 SP  = 0x00300b80<br>R6   = 0x00000000 LR  = 0x00302b1c<br>R7   = 0x00000000 PC  = 0x00204016<br>CPSR = 0x600001f3 VEC = 0x00000004<br>FPEXC = 0x40000000<br>FPSCR = 0x00000000<br>D00 = 0x0000000000000000<br>D01 = 0x0000000000000000<br>D02 = 0x0000000000000000<br>D03 = 0x0000000000000000<br>D04 = 0x0000000000000000<br>D05 = 0x0000000000000000<br>D06 = 0x0000000000000000<br>D07 = 0x0000000000000000<br>D08 = 0x0000000000000000<br>D09 = 0x0000000000000000<br>D10 = 0x0000000000000000<br>D11 = 0x0000000000000000<br>D12 = 0x0000000000000000<br>D13 = 0x0000000000000000<br>D14 = 0x0000000000000000<br>D15 = 0x0000000000000000<br>D16 = 0x0000000000000000<br>D17 = 0x0000000000000000<br>D18 = 0x0000000000000000<br>D19 = 0x0000000000000000<br>D20 = 0x0000000000000000<br>D21 = 0x0000000000000000<br>D22 = 0x0000000000000000<br>D23 = 0x0000000000000000<br>D24 = 0x0000000000000000<br>D25 = 0x0000000000000000<br>D26 = 0x0000000000000000<br>D27 = 0x0000000000000000<br>D28 = 0x0000000000000000<br>D29 = 0x0000000000000000<br>D30 = 0x0000000000000000<br>D31 = 0x0000000000000000<br>RTEMS version: 5.0.0.c6d8589bb00a9d2a5a094c68c90290df1dc44807-modified<br></div><div>RTEMS tools: 7.5.0 20191114 (RTEMS 5, RSB 83fa79314dd87c0a8c78fd642b2cea3138be8dd6, Newlib 3e24fbf6f)<br>executing thread ID: 0x089010001<br>executing thread name:<br></div><div><br></div><div>I also did try running the examples on the real raspi3 but still got no luck. The steps I followed where mixture from where sources.</div><div>1. I first created a img file using objcopy.</div><div>2. Copied the kernel.img to SD card and modified the config.txt,</div><div>But still it couldn't boot got no output on my serial.</div></div>