Bug 7390

Summary: neard can not startup with 1.8 M3 rc3
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: connectivityAssignee: Cristian Iorga <cristian.iorga>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, ke.zou, meta.mr.watcher, meta.watcher, ross.burton, yi.zhao, zhangle.yang
Version: 1.8   
Target Milestone: 1.8 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 7451    

Description Yi Zhao 2015-03-04 07:02:27 UTC
Image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.8_M3.rc3

Git rev: master/5c1c8af083ca7b57cc339d16ce0513b27c5dac90

The neard daemon can not start when boot up:

##################
Starting Linux NFC daemon
/etc/rc5.d/S64neard: line 27: /usr/lib/neard/neard: No such file or directory
##################

I found the neard binary had been moved to /usr/lib/neard/nfc directory.
################
# ls /usr/lib/neard/nfc/neard -l
-rwxr-xr-x 1 root root 217468 Mar  2 18:22 /usr/lib/neard/nfc/neard
################

But even I changed the correct path in /etc/init.d/neard script, the daemon still can not start up. I got the following error in /var/log/message:
#############
07:01:40 beaglebone daemon.info neard[663]: NEAR daemon version 0.15            
07:01:40 beaglebone daemon.err neard[663]: Unable to find NFC netlink family    
07:01:40 beaglebone daemon.err neard[663]: netlink init failed                  
07:01:40 beaglebone daemon.err neard[663]: *** NETLINK INITIALIZATION FAILED ***
#############
Comment 1 Cristian Iorga 2015-03-04 09:30:15 UTC
Investigation started.
Comment 2 Cristian Iorga 2015-03-04 11:28:31 UTC
Hello, can you please add the BSP/machine/target/image?
Also, how neard/JNFC feature was added to the image?

Thanks,
Cristian
Comment 3 Yi Zhao 2015-03-05 09:59:43 UTC
(In reply to comment #2)
> Hello, can you please add the BSP/machine/target/image?
> Also, how neard/JNFC feature was added to the image?
> 
> Thanks,
> Cristian

I only tested it on beaglebone black. I will try other bsps later.
Comment 4 Ross Burton 2015-03-05 15:33:39 UTC
So there's two bugs here:

1) init script is broken
2) meta-yocto BSPs don't enable NFC.

This bug needs to be split into two - Christian owns (1) and whoever owns the meta-yocto BSPs (Saul right now?) has (2).
Comment 5 Cristian Iorga 2015-03-16 10:51:58 UTC
Implementation started.
Comment 6 Cristian Iorga 2015-03-23 10:06:49 UTC
Patch sent for review.
Comment 8 Yi Zhao 2015-03-31 07:07:04 UTC
Verified with 1.8 M4 rc1