美文网首页
CentOS 7 安装设备树编译器 DTC (Device Tr

CentOS 7 安装设备树编译器 DTC (Device Tr

作者: Armlinux | 来源:发表于2023-02-17 15:29 被阅读0次

参考https://blog.csdn.net/qq_36393978/article/details/128904867

yum install epel-release
yum install snapd
systemctl enable --now snapd.socket
 ln -s /var/lib/snapd/snap /snap
snap install device-tree-compiler

执行最后一句报错

 system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:

参考http://www.uoyo.net/2021/12/04/9/
执行

semodule -i /usr/share/selinux/packages/snappy.pp.bz2

成功后,再执行

snap install device-tree-compiler

搞定收工!

另外可以复制安装了设备树编译器 DTC的debian系统下面的/usr/bin/dtc到centos的/usr/bin/。

相关文章

网友评论

      本文标题:CentOS 7 安装设备树编译器 DTC (Device Tr

      本文链接:https://www.haomeiwen.com/subject/asamkdtx.html