PN7150 Pi Yocto - NfcService Init Failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PN7150 Pi Yocto - NfcService Init Failed

600 Views
eldeencm
Contributor I

Hi,

I have an OM5578/PN7150S along with a Raspberry Pi 4, the NFC reader is working fine when I build the Pi image with Raspbian image following the instruction from here. https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Easy-set-up-of-NFC-on-Raspberry-Pi/ta-p/1099.... I was able to get "nfcDemoApp" poll working. So the hardware should be working.

 

In recent, I was trying to build a Pi image with yocto which can work with PN7150. However, when I run "nfcDemoApp poll", I was seeing "NfcService Init Failed".  (See attachment 1)

 

I was building a yocto image with poky, pull from poky, meta-raspberrypi, meta-openembedded and meta-nxp-nfc. (https://github.com/NXPNFCLinux/meta-nxp-nfc)

To enable I2C, I added

```

ENABLE_I2C = "1"
KERNAL_MODULE_AUTOLOAD += "i2c-dev i2c-bcm2835"

``` 

(See attachment 2)

I have also modified a bit nxp-nfc_git.bb during my debug session. (See attachment 3)

And also 

IMAGE_INSTALL_append = " kernel-module-nxp-pn5xx nxp-nfc-bin "

from https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/PN7150-NFC-Controller-on-i-MX8M-mini-evk...

 

After flashing the image, i2c and pn7150 module wasn't loaded so I ran "modprobe i2c_dev" and " modprobe pn5xx_i2c" and check with lsmod. (See attachment 4).

 

Both module wasn't loading automatically so something might be wrong there. However, I thought I suppose to get nfcDemoApp working after loading them. Is there any step I might be missing? Can you shed some light on this issue? Let me know if you need more info. Thanks.

 

 

0 Kudos
0 Replies