参考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/。
网友评论