6 Star 4 Fork 1

Bianbu Linux/opensbi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
debian
docs
external
firmware
platform
andes-ae350.md
fpga-ariane.md
fpga-openpiton.md
generic.md
nuclei_ux600.md
platform.md
qemu_virt.md
renesas-rzfive.md
shakti_cclass.md
sifive_fu540.md
spike.md
thead-c9xx.md
contributing.md
domain_support.md
doxygen.cfg
library_usage.md
platform_guide.md
platform_requirements.md
pmu_support.md
riscv_opensbi_logo_final_color.png
riscv_opensbi_logo_final_grey.png
firmware
include
lib
platform
scripts
tools
.clang-format
.gitignore
CONTRIBUTORS.md
COPYING.BSD
Kconfig
Makefile
README.md
ThirdPartyNotices.md
克隆/下载
generic.md 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
James Deng 提交于 1年前 . Initial commit of v1.3

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

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bianbu-linux/opensbi.git
git@gitee.com:bianbu-linux/opensbi.git
bianbu-linux
opensbi
opensbi
bl-v1.0.y

搜索帮助