Score
0
1 Unstar Star 1 Fork 1

Gitee 极速下载 / OpenSBIC

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/riscv/opensbi
RISC-V Supervisor二进制接口(SBI)是以下之间的推荐接口: 在M模式下运行的特定于平台的固件,以S模式或HS模式执行的引导加载程序,管理程序或通用OS spread retract

https://www.oschina.net/p/opensbi

Clone or download
generic.md 2.12 KB
Copy Edit Web IDE Raw Blame History

Generic Platform

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:

  1. platform FW_TEXT_START is 0x80000000
  2. platform features are default
  3. platform stack size is default
  4. 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:

  1. Various FDT based drivers under lib/utils directory are upto date based on their platform requirements
  2. 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
  3. The FDT must have "stdout-path" DT property in the "/chosen" DT node when a platform has multiple serial ports or consoles
  4. 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
  5. 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.

For custom FW_TEXT_START, we can build the platform-specific library and firmware images by passing PLATFORM=generic FW_TEXT_START=<custom_text_start> parameter to the top level make command.

Platform Options

The Generic platform does not have any platform-specific options.

RISC-V Platforms Using Generic Platform

Comment ( 0 )

Sign in for post a comment

C
1
https://gitee.com/mirrors/OpenSBI.git
git@gitee.com:mirrors/OpenSBI.git
mirrors
OpenSBI
OpenSBI
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542