【发布时间】:2021-08-27 14:06:27
【问题描述】:
我想使用连接到 Raspberry Pi 4 Model B 的 MCP2515 控制器运行 CAN 屏蔽。它已经在 Raspbian 下工作,但因为我需要 ROS2,我现在想在 Ubuntu (20.04) 下运行它。在这里它不再起作用了。
我所做的是编辑 /boot/config.txt 并添加以下行:
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25
dtoverlay=spi-bcm2835
但是ifconfig can给了
can: error fetching interface information: Device not found
问题似乎和this one很相似:
spi-bcm2835 模块未显示为 lsmod 的输出,而 dmesg 具有以下条目:
[ 1.428843] spi-bcm2835 fe204000.spi: could not get clk: -517
这是 Ubuntu 在 Raspberry Pi 上的普遍问题吗?如果是这样,是否有解决此问题的方法?
【问题讨论】:
标签: ubuntu raspberry-pi can-bus