<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7390</bug_id>
          
          <creation_ts>2015-03-04 07:02:27 +0000</creation_ts>
          <short_desc>neard can not startup with 1.8 M3 rc3</short_desc>
          <delta_ts>2015-03-31 07:07:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          <blocked>7451</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhangle.yang</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49171</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-03-04 07:02:27 +0000</bug_when>
    <thetext>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 ***
#############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49173</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-04 09:30:15 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49174</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-04 11:28:31 +0000</bug_when>
    <thetext>Hello, can you please add the BSP/machine/target/image?
Also, how neard/JNFC feature was added to the image?

Thanks,
Cristian</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49193</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-03-05 09:59:43 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hello, can you please add the BSP/machine/target/image?
&gt; Also, how neard/JNFC feature was added to the image?
&gt; 
&gt; Thanks,
&gt; Cristian

I only tested it on beaglebone black. I will try other bsps later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49219</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-03-05 15:33:39 +0000</bug_when>
    <thetext>So there&apos;s two bugs here:

1) init script is broken
2) meta-yocto BSPs don&apos;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49463</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-16 10:51:58 +0000</bug_when>
    <thetext>Implementation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49638</commentid>
    <comment_count>6</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-23 10:06:49 +0000</bug_when>
    <thetext>Patch sent for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49639</commentid>
    <comment_count>7</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-23 10:11:20 +0000</bug_when>
    <thetext>Fixed with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b4578680f69b8f4727f379274b3e0aecc86bc927</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49944</commentid>
    <comment_count>8</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-03-31 07:07:04 +0000</bug_when>
    <thetext>Verified with 1.8 M4 rc1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>