RTEMS booting on PolarFire SoC FPGA

Hesham Almatary hesham.almatary at cl.cam.ac.uk
Tue Jan 5 12:23:32 UTC 2021


I don't see why the "auipc" would fail. Are you sure that's the
faulting instruction? Can you read mcause/mepc from your debugger
after it hangs?
How/where do you prepare the FDT and pass it to RTEMS? bsp_fdt_copy
expects the bootloader to pass the HARTID in a0, and the FDT pointer
in a1.


On Tue, 5 Jan 2021 at 13:16, somesh deshmukh <someshdeshmukh07 at gmail.com> wrote:
>
> Hi All,
> I am trying to boot RTEMS on PolarFire SoC FPGA using rv64imafdc_medany BSP.
> 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.
> 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.
>
> Does anyone have any idea how to debug this issue? Any leads will be helpful.
>
>
> Thanks and Regards,
> Somesh
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list