Here the report using a different command: root@lede:/tmp# spi-pipe -d /dev/spidev1.0 -b 4 -n 40 < /dev/zero SPI_IOC_MESSAGE: Invalid argument
root@lede:/tmp# strace spi-pipe -d /dev/spidev1.0 -b 4 -n 40 < /dev/zero execve("/usr/bin/spi-pipe", ["spi-pipe", "-d", "/dev/spidev1.0", "-b", "4", "-n", "40"], [/* 14 vars */]) = 0 set_thread_area(0x778a2e50) = 0 set_tid_address(0x7789bd90) = 1152 open("/etc/ld-musl-mipsel-sf.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=76975, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\20(\0\0004\0\0\0"..., 936) = 936 mmap2(NULL, 143360, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x777d5000 mmap2(0x777f7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x777f7000 close(3) = 0 mprotect(0x411000, 4096, PROT_READ) = 0 open("/dev/spidev1.0", O_RDONLY|O_LARGEFILE) = 3 read(0, "\0\0\0\0", 4) = 4 ioctl(3, SPI_IOC_MESSAGE(32), 0x7fef0aa8) = -1 EINVAL (Invalid argument) writev(2, [{iov_base="", iov_len=0}, {iov_base="SPI_IOC_MESSAGE", iov_len=15}], 2SPI_IOC_MESSAGE) = 15 writev(2, [{iov_base="", iov_len=0}, {iov_base=":", iov_len=1}], 2:) = 1 writev(2, [{iov_base="", iov_len=0}, {iov_base=" ", iov_len=1}], 2 ) = 1 writev(2, [{iov_base="", iov_len=0}, {iov_base="Invalid argument", iov_len=16}], 2Invalid argument) = 16 writev(2, [{iov_base="", iov_len=0}, {iov_base="\n", iov_len=1}], 2 ) = 1 exit_group(1) = ? +++ exited with 1 +++ Bye. _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev