





















在"/boot/firmware/config.txt"中,DT(Device Tree)是配置文件,基于基配置(base DTBs),可以叠加配置(overlay)。
The
dtoverlayoption requests the firmware to load a named Device Tree overlay - a configuration file that can enable kernel support for built-in and external hardware.
-- dtoverlay
配置可以带参数(param)。
支持两种形式的参数传递:
dtoverlays同行末尾(有行内容长度限制)。dtoverlays=name,param=value。dtparam。dtoverlays=name、dtparam=param=valueDevice Tree configuration files for Raspberry Pi devices support various parameters
Many DT overlays are configurable via the use of parameters.
In addition, overlay parameters can be appended to the
dtoverlayoption, separated by commas, but keep in mind the line length limit of 98 characters.
-- dtparam
[!notice] 参数从属
dtparam从属于其上最近的DT,可能是:
- 叠加配置(dtoverlays)
- 基配置(base DTBs)
dtparam、dtoverlay是(bash)命令。
dtparam -h、dtoverlay -h可以查看帮助说明,其中:
dtparam可以查看全部"base Raspberry Pi hardware"
[!tip] 注意
dtparam命令针对基配置(base DTBs)(而非叠加配置(overlay))。
dtoverlays -l、dtoverlays -a、dtoverlays -h overlay可以查看已激活的、全部可用的、指定的的叠加配置。
以上(param、dtoverlays)信息同下:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。