I'm trying to use spi-tools on the current LEDE snapshot, but it fails at runtime:
root@lede:~# echo -n -e '\x80' | spi-pipe -d /dev/spidev1.0 | hexdump SPI_IOC_MESSAGE: Invalid argument root@lede:/tmp# strace echo -n -e '\x80' | spi-pipe -d /dev/spidev1.0 | hexdump execve("/bin/echo", ["echo", "-n", "-e", "\\x80"], [/* 14 vars */]) = 0 set_thread_area(0x77615e50) = 0 set_tid_address(0x7760ed90) = 1139 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) = 0x77548000 mmap2(0x7756a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x7756a000 close(3) = 0 getuid() = 0 write(1, "\200", 1SPI_IOC_MESSAGE: Invalid argument ) = 1 exit_group(0) = ? +++ exited with 0 +++ root@lede:/tmp# spi-pipe -v spi-pipe - cc6a41fdcec60610703ba6db488c621c64952898 root@lede:~# uname -a Linux lede 4.4.39 #0 Thu Dec 22 16:02:42 2016 mips GNU/Linux Can someone confirm the problem and/or suggest a solution? Thanks, Bye. _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev