<div dir="ltr"><div>Great progress Noor!</div><div>I will try your branch today.</div><div>Alan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 19, 2022 at 12:15 PM Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 19, 2022 at 10:11 AM Noor Aman <<a href="mailto:nooraman5718@gmail.com" target="_blank">nooraman5718@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hey everyone, <br></div><div>I've managed to get RTEMS6 on the Raspberry pi 4B rev 1.4. Every test ran fine except for minimum.exe, It gave a fatal error.</div></div></blockquote><div><br></div><div>Congratulations! Hoozah!<br><br>minimum.exe is supposed to reflect the smallest application you can have. </div><div>It barely qualifies as an application as the Initialization task exits from the</div><div>thread body and that's what triggers the fatal error. It is expected so that's a</div><div>pass. Unfortunately, the exception frame you posted to Discord has what </div><div>looks like a mistake in printing the idle thread id (see name on next line):<br><br>*** FATAL ***<br>fatal source: 0 (INTERNAL_ERROR_CORE)<br>fatal code: 5 (INTERNAL_ERROR_THREAD_EXITTED)<br>RTEMS version: 6.0.0.ee92899632c823e19aa4f2e7048af3d910f59be2<br>RTEMS tools: 12.1.1 20220622 (RTEMS 6, RSB eea379370116628dbe91f19e61ad6129aa1951ac, Newlib ea99f21)<br>executing thread ID: 0x089010001 <====<br>executing thread name: IDLE<br><br><br>Kinsey can you run this on one of the aarch64 bit targets you have?</div><div>I suspect this is not a Pi specific issue but maybe something in </div><div>printk? Or the printf format specifier used. Once more is known, this</div><div>likely will need a ticket.</div><div><br></div><div>Try the fileio, cdtest, nsecs, and paranoia samples next. If those</div><div>look ok, it is highly likely that most of the single processor tests</div><div>will run.</div><div><br></div><div>fileio requires working console input.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Here's my setup for running RTEMS6 on RPi4B:</div><div><br></div><div>TF-A is required to enable GIC on RPi. I had tried to use armstub-gic.S (<a href="https://github.com/raspberrypi/tools/blob/master/armstubs/armstub8.S" target="_blank">https://github.com/raspberrypi/tools/blob/master/armstubs/armstub8.S</a>) but it didn't work out. TF-A on other hand did work pretty well. <br></div><div><br></div><div>Steps to get TF-A binary are described here: <a href="https://trustedfirmware-a.readthedocs.io/en/latest/plat/rpi4.html" target="_blank">https://trustedfirmware-a.readthedocs.io/en/latest/plat/rpi4.html</a></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Config.txt section:</div><div>arm_64bit=1<br>enable_uart=1<br>gpio=22-27=np<br>enable_jtag_gpio=1<br>dtoverlay=disable-bt<br>kernel=kernel8.img<br>enable_gic=1<br>armstub=bl31.bin</div><div><br></div><div>RTEMS6 <br></div><div>My branch (noov-dev): <a href="https://github.com/0xnoor/rtems/tree/noor-dev" target="_blank">https://github.com/0xnoor/rtems/tree/noor-dev</a></div></div></blockquote><div><br></div><div>Now work to get this all cleaned up, merged, and documented. Kinsey</div><div>now has a Pi4 ready to double check your work is repeatable from</div><div><a href="http://rtems.org" target="_blank">rtems.org</a> sources.</div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>
</blockquote></div>