Buildroot recompilation

58 views
Skip to first unread message

Giacomo Mammarella

unread,
Mar 13, 2025, 12:35:52 PMMar 13
to OpenPiton Discussion
Hi, is there any "guide" to help recompile linux kernel through buildroot in order to include some more packages?
What I'm missing is mostly the bootloader configuration as well as the Genesys 2 device tree. If there's the "guide" or some hints on how the released bbl.bin ( Release OpenPiton 12 + Ariane 4.2 release · openhwgroup/cva6-sdk · GitHub) is generated I can start from this to modify as per my own needs.
My goal would be in particular to enable perf support in order to extract software traces and performance counters.

Any kind of support is greatly appreciated! Thank you very much for your work and help!
Giacomo

Jonathan Balkind

unread,
Mar 13, 2025, 12:53:42 PMMar 13
to OpenPiton Discussion
Hi Giacomo,

I'd suggest you use this repo and branch instead: https://github.com/Jbalkind/ariane-sdk/tree/openpiton-opensbi

This has a more up to date kernel and is set up to be much easier to build. You should not need the g2 device tree because it's contained in the bootrom already and passed to opensbi and the kernel directly. You can just modify the buildroot config under configs/ to add additional packages. Similarly the linux defconfig if you need to add any particular linux configs related to your needs.

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, visit https://groups.google.com/d/msgid/openpiton/a305fb79-78d8-4f5a-8671-aee0a0797977n%40googlegroups.com.

Giacomo Mammarella

unread,
Mar 14, 2025, 12:24:43 PMMar 14
to OpenPiton Discussion
Hi Jon,

And thanks for quick reply. I tried the steps you mentioned even though I still have some doubts.
For a first run I want the default configuration so I build the Image and fw_payload.bin following the README.md in your repo.

The first doubt regards the bitstream. Does it need to "support" OpenSBI, by mean recompile some "special" protosyn flag? Currently I'm using the default available here (https://www.princeton.edu/~cloud/openpiton/bitfiles/openpiton_ariane_genesys2_2core_r13.bit) and what I see is that it seems like I never past the copying stage as shown in UART log attached.

Thanks!
Giacomo
openpiton_fw_payload.bin

Jonathan Balkind

unread,
Mar 14, 2025, 12:26:56 PMMar 14
to OpenPiton Discussion
Yeah I think it's just an opensbi version issue. I think if you switch to a different opensbi version then it might/will get past this.

Giacomo Mammarella

unread,
Apr 1, 2025, 12:26:46 PMApr 1
to OpenPiton Discussion
Thanks Jon!
So in my case, in the end of the day, was the very old bitstream file (the one that's currently available on the Princeton Repo) which seems non-compatible with the firmware as generated using this repo --> https://github.com/Jbalkind/ariane-sdk/tree/openpiton-opensbi.

Using a newer bitstream worked as expected, thanks for the support!!

Ciao,
Giacomo

Reply all
Reply to author
Forward
0 new messages