|
刚玩BBB,请教一下大家。
如题,按照网上的资料不成功。
网上的资料基本都是先改写dts文件,然后/dev目录下就会有spidev文件。
现在刷的最新系统,dev目录下已经有了这些文件,有四个spidev1.0,spidev1.1,spidev2.0,spidev2.1
说是要禁用hdmi。用
cat /sys/devices/bone_capemgr.8/slots
查看加载的模块
我的bbb的/sys/devices目录下没有bone_开头的目录?
官方的文档
https://elinux.org/BeagleBone_Black_Enable_SPIDEV
2. Apply the following diff to the kernel:
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 911e9e0..622adf5 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -646,6 +646,7 @@ static int spidev_remove(struct spi_device *spi)
static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "rohm,dh2228fv" },
+ { .compatible = "linux,spidev" },
{},
};
这个Apply the following diff to the kernel:,应该怎么操作?
3. Run the spidev_test program (sources in kernel/Documentation/spi), the following is a typical log:
这个 spidev_test在哪儿?网上也能搜到这个文件,但都是个人的,官方/源出处在哪儿?
|
|