Visible to Intel only — GUID: hbi1540272355393
Ixiasoft
Visible to Intel only — GUID: hbi1540272355393
Ixiasoft
D.1. Configuration File
The LIBRSU library relies on the resource file /etc/librsu.rc to set the logging level and the MTD QSPI partition to be used for RSU purposes.
Element | Description |
---|---|
Element: # COMMENT Usage: // COMMENT Options: None |
Single line comments
Required?: No |
Element: root Usage: root {type} {path} Options: type: Storage type = [qspi, datafile] |
Specifies the storage containing the RSU data region that LIBRSU manages. The datafile type is provided for testing purposes and treats an ordinary file as the RSU data region.
Required?: Yes |
Element: rsu-dev Usage: rsu-dev {path} Options:
|
Specifies the path for the RSU sysfs entries in Linux.
Required?: No. When not specified, it defaults to /sys/devices/platform/stratix10-rsu.0. |
Element: log Usage: log {level} [stderr|path] Options:
|
Instruct LIBRSU to open a logfile and append debug information as commands are performed. Three levels of verbosity are allowed. The log is directed to stderr by default.
Required?: No |
Element: write-protect Usage: write-protect {slot} Options: slot : Slot number |
Instruct LIBRSU to block any attempts to modify the specified slot. The priority of the selected slot might change based on changes to other slots. This option can be used multiple times.
Required?: No |
Element: rsu-spt-checksum Usage: rsu-spt-checksum {enable} Options: enable : 0-disabled, 1-enabled |
Instruct LIBRSU to enable checking and maintaining SPT checksums. Only has effect when the initial flash image was created with Quartus Programming File Generator v20.4 or newer. When not defined, it means the option is disabled.
Required?: No |
# cat /etc/librsu.rc
log med stderr
root qspi /dev/mtd0
rsu-dev /sys/devices/platform/stratix10-rsu.0
rsu-dev /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/
The ATF SMC handler, Linux* SVC driver and Linux* RSU driver do not export the SDM API for determining the SPT addresses. Therefore, the MTD QSPI partition to be used by LIBRSU must start at the location of the SPT0, in order for LIBRSU to be able to determine the flash partitioning information. This can either be hardcoded in the device tree, or U-Boot can edit the device tree with the appropriate information before passing it to Linux* using the rsu dtb command.