Toybrick
标题:
spi5驱动调试失败
[打印本页]
作者:
tanggou
时间:
2020-7-22 09:32
标题:
spi5驱动调试失败
fail打印如下,
[root@localhost /]# echo read 0 10 255 > /dev/cspi_misc_test
[ 2232.193462] g_spi.0 is NULL
[ 2232.193742] g_spi.0 is NULL
[ 2232.194010] g_spi.0 is NULL
[ 2232.194276] g_spi.0 is NULL
[ 2232.194627] g_spi.0 is NULL
[ 2232.194893] g_spi.0 is NULL
[ 2232.195157] g_spi.0 is NULL
[ 2232.195443] g_spi.0 is NULL
[ 2232.195698] g_spi.0 is NULL
[ 2232.195962] g_spi.0 is NULL
[ 2232.196232] spi read 255*10 cost 2774us speed:919KB/S
使用的是toybrick rk3399prod,kernel version:
ubuntu@jifu-ubuntu:~/resource/kernel$ uname -a
Linux jifu-ubuntu 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
作者:
addy
时间:
2020-7-22 12:46
toybrick rk3399prod开发板是ARM64架构,目前支持的操作系统是debian10和fedora28
你uname -a命令是在哪儿执行,为什么是X86架构的,ubuntu系统?
另外,你echo的命令是在哪儿执行。
toybrick rk3399prod系统上并没有/dev/cspi_misc_test节点。
请确认是否不是toybrick rk3399prod开发板?把问题描述清楚!
作者:
tanggou
时间:
2020-7-22 13:44
贴错了,kernel version是:
[root@localhost toybrick]# uname -a
Linux localhost.localdomain 4.4.189 #13 SMP Wed Jul 22 03:15:25 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
cspi_misc_test是我改了的节点名称,默认是spi_misc_test,
作者:
tanggou
时间:
2020-7-22 13:49
echo 命令在串口下面执行。
作者:
addy
时间:
2020-7-22 14:13
跟下drivers/spi/spi-rockchip-test.c
里面有详细的配置说明和异常log的原因
欢迎光临 Toybrick (https://t.rock-chips.com/)
Powered by Discuz! X3.3