<div dir="ltr"><div>After testing multiple times I observed that the failing instruction is not consistent but I am getting mcause as 2 every time, which represents Illegal instruction. <br></div><div>Is it compulsory to use the device tree to boot RTEMS? I am trying to boot it using a simple bootloader application that will copy the executable at 0x8000 and point the processor to that location to start execution. As the primary goal is to execute the default hello world application on PolarFire SoC Hardware.<br></div><div>Is BSP_START_COPY_FDT_FROM_U_BOOT macro in the start.S enabled by default?</div><div><br></div><div>Thanks and Regards,</div><div>Somesh<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 5, 2021 at 5:53 PM Hesham Almatary <<a href="mailto:hesham.almatary@cl.cam.ac.uk">hesham.almatary@cl.cam.ac.uk</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">I don't see why the "auipc" would fail. Are you sure that's the<br>
faulting instruction? Can you read mcause/mepc from your debugger<br>
after it hangs?<br>
How/where do you prepare the FDT and pass it to RTEMS? bsp_fdt_copy<br>
expects the bootloader to pass the HARTID in a0, and the FDT pointer<br>
in a1.<br>
<br>
<br>
On Tue, 5 Jan 2021 at 13:16, somesh deshmukh <<a href="mailto:someshdeshmukh07@gmail.com" target="_blank">someshdeshmukh07@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
> I am trying to boot RTEMS on PolarFire SoC FPGA using rv64imafdc_medany BSP.<br>
> I am using a simple bare-metal bootloader application to copy the hello.bin(I generated a hello.bin file from hello.exe from testsuits/samples directory) at the address 0x80000000.<br>
> Attached is the disassembly of the example that I am using to boot the RTEMS. I kept breakpoint at 0x80000032  and the breakpoint gets a hit. After this instruction, the processor just hangs in some unknown state, and the breakpoints after this don't get hit as the processor is in the unknown state, the register values cant be read.<br>
><br>
> Does anyone have any idea how to debug this issue? Any leads will be helpful.<br>
><br>
><br>
> Thanks and Regards,<br>
> Somesh<br>
> _______________________________________________<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><br>
</blockquote></div>