NFC PN7150 i2c driver error

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

NFC PN7150 i2c driver error

2,109 Views
pratyushtomar
Contributor IV

I have a custom board based on imx6ulevk and I have PN7150 NFC on custom board. I have compiled it's driver following this page NFC PN7120 on the i.MX6Q . But when I try to load the driver using insmod command I have received following error :--

pn5xx_i2c: disagrees about version of symbol dev_warn
pn5xx_i2c: Unknown symbol dev_warn (err -22)
pn5xx_i2c: disagrees about version of symbol dev_err
pn5xx_i2c: Unknown symbol dev_err (err -22)
insmod: ERROR: could not insert module pn5xx_i2c.ko: Invalid parameters

I have downloaded driver from this link GitHub - NXPNFCLinux/nxp-pn5xx: NXP's NFC Open Source Kernel mode driver .

I am using Yocto and my kernel version is Linux imx6ulevk 4.1.15-1.1.1+gd5d7c02. Please guide how to build drivers for my custom board.

Labels (3)
Tags (2)
0 Kudos
4 Replies

1,072 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Pratyush Tomar,

I see this same issue raised on the github so I’m hoping it will get addressed there.

However, the disagreement over versions of symbols usually refer to the Kernel module using exported symbols of other kernel modules.

I would double check the document you followed and the Application Note for the driver below:

https://www.nxp.com/documents/application_note/AN11697.pdf

Did you installed and enabled the kernel modules from your module and then copied the libraries or did you took the libraries as binaries from other sources?

If you took the driver from other distribution you may want to look at the workaround shown here:

http://stackoverflow.com/questions/33734133/disagrees-about-version-of-symbol-symbol-name-after-insm...

Let us know of your findings!

Regards,

0 Kudos

1,072 Views
pratyushtomar
Contributor IV

Is their any way to download pre built poky-glibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.7.sh   ? 

Since I am unable to install meta-tooclchain.

0 Kudos

1,072 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Pratyush Tomar,

You may use the linaro toolchain instead. You would need to check on the release notes of the BSP you are interested in to see which toolchain version is being used. You may find the toolchain then on a repository like:

http://repository.timesys.com/buildsources/g/gcc/

I hope this helps!

Regards,

0 Kudos

1,072 Views
pratyushtomar
Contributor IV

Hello Thanks for the reply. I tried following the same document https://www.nxp.com/documents/application_note/AN11697.pdfand NFC PN7120 on the i.MX6Q  to compile the drivers but I failed at this step source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi. 

I think I failed at this step because I didn't have meta-toolchain installed so I tried building meta-toolchain but that also failed (I have created another thread for that problem. You have answered for the same). So to build drivers then I used menuconfig to include the drivers as module and then I bitbake a regular image (fsl-image-machine-test). Thus in the final image build pn5xx_i2c.ko driver was present. But when I tried loading this driver using insmod command I received the error mentioned above.

I think my procedure is also correct for compiling drivers but don't know where I am making mistake. Let me try to follow stackoverflow link you have mentioned and check if my problem is solved. If their is some mistake in method I used to build drivers then please correct me.

Thanks

0 Kudos