<div dir="ltr">Hi Utkarsh,<div><br></div><div>It looks like your device tree is fine, since libbsd (using the device tree) initializes before the network is configured.</div><div>The network config starts <a href="https://github.com/nilhoel1/rtems-pru/blob/master/main.c#L356">here</a> and libbsd initializes <a href="https://github.com/nilhoel1/rtems-pru/blob/master/main.c#L329">here</a>.</div><div><br></div><div>The app is failing in this <a href="https://github.com/nilhoel1/rtems-pru/blob/master/main.c#L63">function</a>, since the shell has not started.</div><div>I am sorry, Inever encountered that problem, nor do I know what is causing your kernel to crash.</div><div>Hopefully my hints will help.</div><div><br></div><div>Best,</div><div>Nils</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 11 Feb 2020 at 19:38, Utkarsh Rai <<a href="mailto:utkarsh.rai60@gmail.com">utkarsh.rai60@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">While trying to boot the PRU app from <a href="https://github.com/nilhoel1/rtems-pru" target="_blank">this</a> repo. I encounter RTEMS_FATAL_SOURCE_EXCEPTION. The complete log goes something like this:-<div><br><div>media listener: event = PARTITION ATTACH, state = INQUIRY, src = /dev/mmcsd-0<br>media listener: event = PARTITION ATTACH, state = SUCCESS, src = /dev/mmcsd-0, dest = /dev/mmcsd-0-0<br>media listener: event = MOUNT, state = INQUIRY, src = /dev/mmcsd-0-0<br>media listener: event = MOUNT, state = SUCCESS, src = /dev/mmcsd-0-0, dest = /media/mmcsd-0-0<br>SD: OK<br>rc.conf: loading: /etc/rc.conf<br>rc.conf: start: /etc/rc.conf size:165, timeout: 10<br><br>*** FATAL ***<br>fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION)<br><br>R0   = 0x8064d5a8 R8  = 0x010100ae<br>R1   = 0x808081c6 R9  = 0x0000000d<br>R2   = 0x80807ef0 R10 = 0x00000001<br>R3   = 0x00000000 R11 = 0x80807ee8<br>R4   = 0x8064d5a8 R12 = 0x60000113<br>R5   = 0x80807ee8 SP  = 0x806502e0<br>R6   = 0x80807ee8 LR  = 0x8020eb3c<br>R7   = 0x0000000d PC  = 0x8020e824<br>CPSR = 0xa0000113 VEC = 0x00000004<br>RTEMS version: 5.0.0.e22554535796fc29a7ed7c5e2338128e324a621d<br>RTEMS tools: 7.5.0 20191114 (RTEMS 5, RSB 5 (599c4d7c87fa), Newlib d14714c69)<br>executing thread ID: 0x08a010001<br>executing thread name: UI1<br>U-Boot SPL 2019.04-00002-gbb4af0f50f (Jul 08 2019 - 11:44:39 -0500)<br>Trying to boot from MMC2<br>Loading Environment from EXT4...<br>** Unable to use mmc 0:1 for loading the env **<br><div><br></div><div>I have used the binary of <a href="https://gist.github.com/nilhoel1/90bad502dbe94eeb6dbb816f7e61e9e4" target="_blank">this</a> overlay and the relevant commands in uEnv.txt are:-</div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap">load mmc 0 0x82000000 pru.exe.img;</span><br></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap">load mmc 0 0x88000000 am335x-boneblack.dtb;</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap">load mmc 0 0x880f0000 AM335X-PRU-UIO-00A0.dtbo;</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div>fdt addr 0x88000000; fdt resize 65536; fdt apply 0x880f0000;  bootm 0x82000000 - 0x88000000;<span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre-wrap"><br></span></div><div>Now since the booting timeout occurs at the /etc/rc.conf I suppose the problem is with the device tree files. Can someone please help me out with this one?</div><div><br></div><div>Regards, </div><div>Utkarsh Rai</div><div><br></div></div></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>