Score
0
1 Unstar Star 1 Fork 1

Gitee 极速下载 / OpenSBIC

Clone or download
platform_guide.md
Copy Edit Web IDE Raw Normal History
Anup Patel   docs: Add platform support guide 2019-01-29
OpenSBI Platform Support Guideline==================================
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
The OpenSBI platform support allows an implementation to define a set ofplatform-specific hooks (hardware manipulation functions) in the form of a
Damien Le Moal   docs: platform guide updates 2019-02-07
*struct sbi_platform* data structure instance. This instance is required by
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
the platform-independent *libsbi.a* to execute platform-specific operations.
Anup Patel   docs: Add platform support guide 2019-01-29
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
Each of the reference platform supports provided by OpenSBI defines an instance
Damien Le Moal   docs: platform guide updates 2019-02-07
of the *struct sbi_platform* data structure. For each supported platform,
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
*libplatsbi.a* integrates this instance with *libsbi.a* to create aplatform-specific OpenSBI static library. This library is installed
Damien Le Moal   docs: platform guide updates 2019-02-07
in *<install_directory>/platform/<platform_subdir>/lib/libplatsbi.a*OpenSBI also provides implementation examples of bootable runtime firmwares forthe supported platforms. These firmwares are linked against *libplatsbi.a*.Firmware binaries are installed in*<install_directory>/platform/<platform_subdir>/bin*. These firmwares can beused as executable runtime firmwares on the supported platforms as a replacementfor the legacy *riskv-pk* boot loader (BBL).
Anup Patel   docs: Add platform support guide 2019-01-29
A complete doxygen-style documentation of *struct sbi_platform* and related
Damien Le Moal   docs: platform guide updates 2019-02-07
APIs is available in the file *include/sbi/sbi_platform.h*.
Anup Patel   docs: Add platform support guide 2019-01-29
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
Adding support for a new platform---------------------------------
Anup Patel   docs: Add platform support guide 2019-01-29
Damien Le Moal   docs: platform guide updates 2019-02-07
Support for a new platform named *<xyz>* can be added as follows:
Anup Patel   docs: Add platform support guide 2019-01-29
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
1. Create a directory named *<xyz>* under the *platform/* directory.2. Create a platform configuration file named *config.mk* under the
Anup Patel   docs: Add platform support guide 2019-01-29
   *platform/<xyz>/* directory. This configuration file will provide
Atish Patra   docs: Update docs as per new static library. 2019-06-18
   compiler flags, and select firmware options.
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
3. Create a *platform/<xyz>/objects.mk* file for listing the   platform-specific object files to be compiled.4. Create a *platform/<xyz>/platform.c* file providing a *struct sbi_platform*   instance.
Anup Patel   docs: Add platform support guide 2019-01-29
Karsten Merker   docs: miscellaneous documentation fixes and updates 2019-05-05
A platform support code template is available under the *platform/template*
Damien Le Moal   docs: platform guide updates 2019-02-07
directory. Copying this directory and its content as a new directory named*<xyz>* under the *platform/* directory will create all the files mentionedabove.
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