pi64之raspi-config问题

来源:互联网 发布:h3c交换机查看mac地址 编辑:程序博客网 时间:2024/05/19 18:00

pi64,64位的情况下,raspi-config程序无法识别系统为树莓派,仔细研究,发现raspi-config是shell程序,那就好办了,改一下,就识别了
然后设置i2c,发现还不好使,说
/usr/bin/raspi-config: 797: /usr/bin/raspi-config: dtparam: not found

https://www.raspberrypi.org/documentation/configuration/device-tree.md
这个网址有讲

仔细一看,raspi-config实际上修改了/boot/config.txt
里面改成了dtparam=i2c_arm=on
再一设置停用i2c,这里就会是off

在32位系统上dpkg -l |grep device
看到device-tree-compiler
那就下载

但还是缺dtparam,看来这个是树莓派自己的程序
从32位系统拷贝过来,然后放到相同位置
然后
sudo dpkg –add-architecture armhf
sudo apt-get update
sudo apt-get install libc6:armhf

然后,把vc/lib所有文件拷贝到一个位置,然后
在/etc/ld.so.conf.d添加此文件
00-vmcs.conf
文件内容是拷贝到的那个位置
然后sudo ldconfig

然后就可以使用了