SPI write error by use raspberry Compute Module 3 Lite&POE IO board

Hello,I am use raspberry Compute Module 3 Lite&POE IO board instead of raspberry 3B,I think Their configuration is the same. but when I use raspberry 3B ,everything is OK,the same TF card to Compute Module 3 Lite, WEB manager have no DWM1001,like picture,then I run minicom from terminal,some information:

  1. lsmod

Module Size Used by
bluetooth 368640 0
ecdh_generic 28672 1 bluetooth
fuse 106496 3
cfg80211 573440 0
rfkill 28672 3 bluetooth,cfg80211
spidev 16384 0
snd_bcm2835 32768 1
snd_pcm 98304 1 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 5 snd_timer,snd_bcm2835,snd_pcm
spi_bcm2835 16384 0
uio_pdrv_genirq 16384 0
fixed 16384 0
uio 20480 1 uio_pdrv_genirq
dwm 77824 0
i2c_dev 16384 0
ip_tables 24576 0
x_tables 32768 1 ip_tables
ipv6 434176 39
2. ls -la /dev/dwm0
ls: cannot access ‘/dev/dwm0’: No such file or directory
3. ps ax | grep dwm

404 ? Sl 0:06 /usr/local/bin/dwm-proxy -c /etc/dwm1001/dwm1001-proxy.config
1280 pts/0 S+ 0:00 grep --color=auto dwm

  1. uname -a
    Linux raspberrypi 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux

5 cat /proc/cpuinfo

processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 2
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

Hardware : BCM2835
Revision : a220a0
Serial : 00000000a64f9538

6 . tail -n50 -f /var/log/dwm-daemon.log
Thu 7 Feb 08:57:27 UTC 2019
Starting daemon dwm-daemon with command ‘/usr/local/bin/dwm-daemon’ and options ‘-c /etc/dwm1001/dwm1001.config -l /var/log/dwm-daemon.log’…

2019-02-07 08:57:28.157 INFO [463] [leaps::core::run@60] starting…
2019-02-07 08:57:28.164 ERROR [463] [leaps::core::write@388] write failed! error -1
2019-02-07 08:57:33.165 INFO [463] [leaps::core::run@134] stopping…

Thu 7 Feb 08:57:25 UTC 2019
Starting daemon dwm-daemon with command ‘/usr/local/bin/dwm-daemon’ and options ‘-c /etc/dwm1001/dwm1001.config -l /var/log/dwm-daemon.log’…

2019-02-07 08:57:26.566 INFO [406] [leaps::core::run@60] starting…
2019-02-07 08:57:26.590 ERROR [406] [leaps::core::write@388] write failed! error -1
2019-02-07 08:57:31.592 INFO [406] [leaps::core::run@134] stopping…

Thanks so much! This is my Board,the dwm1001 board is my design ,it works well on raspberry 3B

Hi Peter,

I’m not sure it;s going to be compatible with the lite raspberry pi.

The gateway application has a kernel module specifically design for the raspberry pi 3b (and even for a specific version of the raspberry pi kernel itself). When porting it to a new platform, there is a risk the kernel will not be compatible and resulting in bugs.

Thanks
Yves

anyone who can try???

help me please, compute module pi 3 B SPI not work

Hi Sun Hao,

maybe it is a bit late. This issue:
ls: cannot access ‘/dev/dwm0’: No such file or directory
indicates the DWM Kernel Module could not be loaded.

You might try to load it manually and check the dmesg to see what was wrong:

$ sudo modprobe dwm
$ sudo dmesg

The Raspberry 3B I have here has the same hardware but a different revision:

Hardware : BCM2835
Revision : a02082
Serial : 00000000ca4172ef

I am not sure if there might some incompatibility between the Device Tree on the DWM RPI image and the physical hardware. You will need to figure that out by looking at the low level stuffs first. The DWM Kernel module must run else nothing will work.

lsmod | grep dwm
dwm 77824 4

Cheers,
TDK