Same error using the spidev_test tool: root at lede:/tmp# spidev_test -D /dev/spidev1.0 -s 1000000 spi mode: 0x3 bits per word: 8 max speed: 1000000 Hz (1000 KHz) can't send spi message: Invalid argument Aborted The error occurs on this system call: ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr); if (ret < 1) pabort("can't send spi message");