PrincetonUniversity/openpiton

Baremetal booting

Closed this issue · 3 comments

Hi
I am trying to run a baremetal C program (I have converted it to bin and then I transfered it to DDR at 0x80000000). I want to use the baremetal bootloader. How should I configure the HW in order to boot in baremetal mode?

I'd need a little more information to understand what you're describing - Is this on FPGA? In simulation? How did you transfer the binary to DDR?

I'd need a little more information to understand what you're describing - Is this on FPGA? In simulation? How did you transfer the binary to DDR?

Thanks for reply!
Yes it's in FPGA, I used PCI (Xilinx QDMA) to transfer the binary to DDR

Ah ok got it. You have two options. One is you can just change the sense of the instantiation of the bootrom inside riscv_peripherals.sv so that the bare metal one is instantiated instead of the linux one. The other is you can modify the linux bootrom to remove the call to sd_copy(). The latter is what our colleagues at BSC do and it seems to work best for them.