11-05-2011
5,
0
Join Date: Sep 2011
Last Activity: 5 November 2011, 4:52 AM EDT
Posts: 5
Thanks Given: 0
Thanked 0 Times in 0 Posts
Hi Corona,
Thanks for your suggestion. Here is the log from strace:
_newselect(0, NULL, NULL, NULL, {0, 16576}) = 0 (Timeout)
open("/dev/spidev0.0", O_RDWR) = 6
ioctl(6, 0x80406b00, 0x7f812fe0) = 4
time([987124305]) = 987124305
getpid() = 881
socket(PF_FILE, SOCK_DGRAM, 0) = 7
fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
connect(7, {sa_family=AF_FILE, path="/dev/log"}, 16) = -1 ENOENT (No such file or directory)
close(7) = 0
time([987124305]) = 987124305
getpid() = 881
socket(PF_FILE, SOCK_DGRAM, 0) = 7
fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
connect(7, {sa_family=AF_FILE, path="/dev/log"}, 16) = -1 ENOENT (No such file or directory)
close(7)
If I enable syslog, then here is the log from syslog:
Apr 13 01:20:23 UNKNOWN[881]: -----------------------------------
Apr 13 01:20:23 UNKNOWN[881]: SPIRead:467 Error No. [25], Error: [Inappropriate ioctl for device]
Apr 13 01:20:23 UNKNOWN[881]: -----------------------------------
Apr 13 01:20:23 UNKNOWN[881]: _IOC_NR(SPI_IOC_MESSAGE( 0)) 0
Apr 13 01:20:23 UNKNOWN[881]: _IOC_NR(SPI_IOC_MESSAGE(1)) 0
Apr 13 01:20:23 UNKNOWN[881]: _IOC_NR(SPI_IOC_MESSAGE(2)) 0
Apr 13 01:20:23 UNKNOWN[881]: _IOC_DIR(SPI_IOC_MESSAGE(2)) 4
Apr 13 01:20:23 UNKNOWN[881]: _IOC_WRITE 4
Do you have any comment on this?