The Generic platform is a flattened device tree (FDT) based platform where all platform specific functionality is provided based on FDT passed by previous booting stage. The Generic platform allows us to use same OpenSBI firmware binaries on various emulators, simulators, FPGAs, and boards.
By default, the generic FDT platform makes following assumptions:
- platform features are default
- platform stack size is default
- platform has no quirks or work-arounds
The above assumptions (except 1) can be overridden by adding special platform callbacks which will be called based on FDT root node compatible string.
Users of the generic FDT platform will have to ensure that:
- Various FDT based drivers under lib/utils directory are upto date based on their platform requirements
- The FDT passed by previous booting stage has DT compatible strings and DT properties in sync with the FDT based drivers under lib/utils directory
- The FDT must have "stdout-path" DT property in the "/chosen" DT node when a platform has multiple serial ports or consoles
- On multi-HART platform, the FDT must have a DT node for IPI device and lib/utils/ipi directory must have corresponding FDT based IPI driver
- The FDT must have a DT node for timer device and lib/utils/timer directory must have corresponding FDT based timer driver
To build the platform-specific library and firmware images, provide the
PLATFORM=generic parameter to the top level make
command.
The Generic platform does not have any platform-specific options.
- Andes AE350 Platform (andes-ae350.md)
- QEMU RISC-V Virt Machine (qemu_virt.md)
- Renesas RZ/Five SoC (renesas-rzfive.md)
- Shakti C-class SoC Platform (shakti_cclass.md)
- SiFive HiFive Unleashed (sifive_fu540.md)
- Spike (spike.md)
- T-HEAD C9xx series Processors (thead-c9xx.md)