Coreboot or U-Boot?

Greetings,

I’m toying with the idea of porting u-root (linuxboot.org) to the unleashed. With that in mind I am wondering if anyone is playing with either coreboot or U-Boot on the unleashed?

Cheers,
Curt

I have seen some discussion on the IRC freenode #riscv channel. There is already a coreboot port in progress.
https://review.coreboot.org/#/c/coreboot/+/25792/
I don’t know the status of it. I don’t know about u-boot. You could ask on the IRC channel.

Have the sources for the existing firmware https://static.dev.sifive.com/dev-kits/hifive-unleashed/hifive-unleashed-firmware-1.0.zip, such as FSBL, been posted?

The coreboot port is unfinished, and currently on hold, because I (the main contributor to this port), don’t have time to work on it, for a few months. Sorry about that. Patches welcome.

1 Like

Hi Jonathan,

If I wanted to play with the RISCV port, is there any code other than what’s in /src/arch/riscv in https://github.com/coreboot/coreboot/ ?

I don’t know if I’m going to have a lot of bandwidth in the next couple of months either, but if I (or someone else) wanted to pick it up and run with it, do you have code somewhere else we should be looking at?

-Cheers
-M

  • src/soc/sifive and src/mainboard/sifive for SiFive specific code
  • src/mainboard/emulation/spike-riscv for code that lets coreboot run on (a slightly patched) spike

Also check out https://doc.coreboot.org/mainboard/sifive/hifive-unleashed.html which describes how to get started with coreboot on the HiFive Unleashed board.

The next thing that the port needs (IMHO) is some code to set up the PLLs and the rest of the clock tree, but there’s a longer TODO list in the documentation.