Running custom tests on multicore FPGA design

21 views
Skip to first unread message

Yasas Senevirathne

unread,
May 10, 2024, 11:11:15 AMMay 10
to OpenPiton Discussion
Hi

I was able to boot the Ariane Linux image on FPGA. Now I need to run several tests on the core. 
I tried several approaches to get this working.
  1. Copy the test executables to rootfs and rebuild the image
    • When the image is copied to the Ariane core memory the device hangs. This happens because the new image size is around 35MB and the number of blocks copied by the bootloader is around 32MB. Can this be changed while building the bootloader?
  2. Mounting the second partition
    • I could not find the device for the second partition under /dev/ after booting Linux on FPGA. Could you let me know if the current implementation supports this?
Also, let me know if there are other workarounds to skip this issue.

Thank you,
Yasas

Jonathan Balkind

unread,
May 10, 2024, 11:47:56 AMMay 10
to OpenPiton Discussion
Hi Yasas,

Regarding the first, I think this is probably explained in a prior issue. You need to change sd_copy() in the bootloader to copy a larger block. You also need to change one of the initialisation header files as it has a fixed location to place the synchronisation variable for SMP bringup which is just after the end of the copied block, so if you increase the former without the latter, you'll overwrite the synchronisation variable and break SMP bringup.

You need the piton_sd driver to be compiled into your kernel. If it is and you properly formatted your disk (that is, put a GPT header at the start of the disk, place an ext4 fs in the second partition), then it should show. Could be that you missed a step. Weirdly the book can sometimes still work with no partition header.

Thanks,
Jon

--
You received this message because you are subscribed to the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/42aae56e-32f0-44a2-8974-197447cf9ac2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages