我正在开发一些用户空间验证工具。我需要在其中验证 i2c 频率。
在我的 DT 文件中,我设置了 ,然后从用户空间clock-frequency = <400000>;
读回它 。/proc/device-tree/i2c@XXXXX/clock-frequency
但我得到了一些垃圾数据。
输出:
root@mymachine:~# od -bc /proc/device-tree/i2c\@XXXXXX/clock-frequency
0000000 000 006 032 200
\0 006 032 200
0000004
它是压缩形式的吗?如果是,我该如何解压?
命令输出file
:
root@nvidia:/proc/device-tree# file i2c\@7000*/clock-frequency
i2c@7000XXXX/clock-frequency: TTComp archive data
i2c@7000XXXX/clock-frequency: raw G3 data, byte-padded
i2c@7000XXXX/clock-frequency: TTComp archive data
i2c@7000XXXX/clock-frequency: raw G3 data, byte-padded
i2c@7000XXXX/clock-frequency: TTComp archive data
i2c@7000XXXX/clock-frequency: TTComp archive data