[Unstrung-hackers] Problem running sunshine on RPI2

Marcin Aronowski marcin.aronowski at gmail.com
Thu May 11 09:39:31 EDT 2017


Hi,

I'm trying to do something similar that Andread did. I got a RPI with 4.9
kernel, openlabs radio and sunshine compiled.

6Lowpan is working, I can communicate with the node. What I can't get
working is RPL. I compiled sunshine and the rest of the package and I'm
able to run it. Here's the log of my sunshine:

pi at gateway:/opt/src/unstrung/programs/sunshine $ sudo ./sunshine -i lowpan0
-I 35 --prefix 2001:470:614a:dead::1/64 --dagid 0xDEAD --verbose  --stderr
PANDORA unstrung version 1.0 (20170511_1494506675) starting at Thu May 11
13:26:33 2017
link found[1]: lo type=loopback (inactive new)
link found[2]: eth0 type=ether (inactive new)
link found[3]: wpan0 type=[804] (inactive new)
link found[4]: lowpan0 type=[825] (inactive new)
ip found[1]: lo scope=0 address=2001:470:614a:dead:1ac0:ffee:1ac0:ffee
ip found[1]: lo scope=254 address=::1
ip found[2]: eth0 scope=0 address=2001:470:614a:500:cbfd:e48d:da7c:c1fb
ip found[2]: eth0 scope=0 address=2001:470:614a:500::22
ip found[2]: eth0 scope=253 address=fe80::ba27:ebff:fecc:a8b2
ip found[4]: lowpan0 scope=0 address=2001:470:614a:dead::1
ip found[4]: lowpan0 scope=253 address=fe80::1ac0:ffee:1ac0:ffee
RTNETLINK answers: File exists
2001:470:614a:500::/64 dev eth0  proto kernel  metric 202  mtu 1280
unreachable 2001:470:614a:dead:1ac0:ffee:1ac0:ffee dev lo  proto kernel
 metric 256  error -101
2001:470:614a:dead::/64 dev lowpan0  proto kernel  metric 256
unreachable 2001:470:614a:dead::/64 dev lo  metric 1024  error -113
fe80::/64 dev eth0  proto kernel  metric 256
fe80::/64 dev lowpan0  proto kernel  metric 256
default via fe80::ca00:84ff:fe4c:2920 dev eth0  metric 202  mtu 1280
default via 2001:470:614a:500::1 dev eth0  metric 1024
  peer '<ME>fe80::1ac0:ffee:1ac0:ffee' announces prefix:
2001:470:614a:dead::/64
  adding prefix: 2001:470:614a:dead:1ac0:ffee:1ac0:ffee/128 learnt from
iface: lowpan0
2001:470:614a:500::/64 dev eth0  proto kernel  metric 202  mtu 1280
unreachable 2001:470:614a:dead:1ac0:ffee:1ac0:ffee dev lo  proto kernel
 metric 256  error -101
2001:470:614a:dead::/64 dev lowpan0  proto kernel  metric 256
unreachable 2001:470:614a:dead::/64 dev lo  metric 1024  error -113
fe80::/64 dev eth0  proto kernel  metric 256
fe80::/64 dev lowpan0  proto kernel  metric 256
default via fe80::ca00:84ff:fe4c:2920 dev eth0  metric 202  mtu 1280
default via 2001:470:614a:500::1 dev eth0  metric 1024
Scheduling dio in 5001 ms
inserting event #1 at 1494509198/866528 0
ip found[1]: lo scope=0 address=2001:470:614a:dead:1ac0:ffee:1ac0:ffee

The problem is that I don't see any packets being sent by RPI. Even though
you can see sending DIO is scheduled it's not happening.

When I do a strace on sunshine I'm getting one error but I'm not sure it's
related:

--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25689, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
open("/var/run/sunshine.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x76ff4000
write(5, "25680\n", 6)                  = 6
close(5)                                = 0
munmap(0x76ff4000, 4096)                = 0
gettimeofday({1494509728, 729412}, NULL) = 0
write(2, "Scheduling dio in 5001 ms\n", 26Scheduling dio in 5001 ms
) = 26
gettimeofday({1494509728, 729700}, NULL) = 0
write(2, "inserting event #1 at 1494509733"..., 42inserting event #1 at
1494509733/730412 0
) = 42
rt_sigaction(SIGUSR1, {0x16394, [TRAP BUS FPE KILL USR1 USR2 PIPE ALRM
STKFLT CONT TTIN TTOU URG XCPU RT_3 RT_4 RT_6 RT_7 RT_11 RT_13 RT_14 RT_17
RT_18 RT_19 RT_22 RT_23 RT_24 RT_26 RT_27 RT_28 RT_29 RT_30 RT_31],
SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x76c791a0}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {0x163d8, [QUIT ILL TRAP BUS FPE SEGV PIPE ALRM CHLD
CONT STOP TTOU URG XCPU VTALRM PROF WINCH IO PWR SYS RT_4 RT_5 RT_6 RT_8
RT_9 RT_11 RT_13 RT_14 RT_16 RT_18 RT_21 RT_22 RT_23 RT_24],
SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x76c791a0}, NULL, 8) = 0
fcntl64(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
gettimeofday({1494509728, 730495}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}], 2, 5000) = 1 ([{fd=3,
revents=POLLIN}])
gettimeofday({1494509728, 730904}, NULL) = 0
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000100},
msg_iov(1)=[{"H\0\0\0\25\0\0\0\0\0\0\0\0\0\0\0\n\200\200\0\1\0\0\0\24\0\1\0
\1\4p"..., 8192}], msg_controllen=0, msg_flags=0}, 0) = 72
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000100},
msg_iov(1)=[{"H\0\0\0\24\0\0\0\0\0\0\0\0\0\0\0\n\200\200\0\1\0\0\0\24\0\1\0
\1\4p"..., 8192}], msg_controllen=0, msg_flags=0}, 0) = 72
write(2, "ip found[1]: lo scope=0 address="..., 71ip found[1]: lo scope=0
address=2001:470:614a:dead:1ac0:ffee:1ac0:ffee
) = 71
recvmsg(3, 0x7ee73334, 0)               = -1 EAGAIN (Resource temporarily
unavailable)


What's ineterseting, when I try to debug sunshine with gdb I can see DIO
being sent ;)

Other problem is that sunshine is not getting any packets from 6lowpan
nodes. I can DIO/DIS packet in the tcpdump but there's anything in sunshine
log.


Any idea what can be the case here? What more info can I provide?


kind regards,
Marcin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sandelman.ca/pipermail/unstrung-hackers/attachments/20170511/523a47ea/attachment.html>


More information about the Unstrung-hackers mailing list