微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

移植错误在NXP PN7150和I.mx8qxp之间

如何解决移植错误在NXP PN7150和I.mx8qxp之间

我在Digi板上移植NFC OM5578 / PN7150S模块时遇到问题。

我正在使用Digi ConnectCore 8X SBC Pro板,该板连接在板和LVDS1端口之间以进行I2C控制。

我遵循了NXP提供的移植手册(AN11690.pdf)来制作pn5xx_i2c.ko。

但是,未作为insert mod(insmod)命令安装pn5xx_i2c.ko文件,并且Hal Layer修补程序无法正常工作。

root@ubuntu:/lib/modules/4.14.153/kernel/drivers/nfc# insmod pn5xx_i2c.ko
insmod: ERROR: Could not insert module pn5xx_i2c.ko: Invalid module format
root@ubuntu:/lib/modules/4.14.153/kernel/drivers/nfc# 




root@ubuntu:/usr/local/dea-9.0-r2/vendor/nxp/nfc# ./install_NFC.sh

+++ Installing NXP-NCI NFC support for PN7150 +++

- patching required files
patching file 1.1/Nfc.h
patching file extns/intf/nxpnfc/1.0/manifest.xml
patching file halimpl/hal/phNxpNciHal.cc
Reversed (or prevIoUsly applied) patch detected!  Assume -R? [n] y
Hunk #2 succeeded at 964 (offset 2 lines).
Hunk #3 succeeded at 1370 (offset 2 lines).
Hunk #4 succeeded at 1638 (offset 2 lines).
patching file halimpl/hal/phNxpNciHal_ext.cc
Reversed (or prevIoUsly applied) patch detected!  Assume -R? [n] y
Hunk #3 succeeded at 355 (offset 9 lines).
Hunk #4 succeeded at 863 (offset 9 lines).
patching file halimpl/utils/NxpNfcCapability.cpp
Reversed (or prevIoUsly applied) patch detected!  Assume -R? [n] y
(Stripping trailing CRs from patch; use --binary to disable.)
patching file nci/jni/NativeNfcManager.cpp
Reversed (or prevIoUsly applied) patch detected!  Assume -R? [n] y
Hunk #2 succeeded at 165 (offset 1 line).
Hunk #3 succeeded at 206 (offset 1 line).
Hunk #4 succeeded at 745 (offset 1 line).
Hunk #5 succeeded at 753 (offset 1 line).
Hunk #6 succeeded at 806 (offset 1 line).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file nci/jni/extns/pn54x/inc/phNxpExtns.h
Hunk #1 succeeded at 107 with fuzz 2 (offset 58 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file nci/jni/extns/pn54x/src/phNxpExtns.cpp
Hunk #1 succeeded at 104 with fuzz 1.
(Stripping trailing CRs from patch; use --binary to disable.)
patching file nci/jni/extns/pn54x/src/phNxpExtns_DebugAgc.cpp
(Stripping trailing CRs from patch; use --binary to disable.)
patching file nci/jni/extns/pn54x/src/utils/phNxpconfig.h
Hunk #1 Failed at 40.
1 out of 1 hunk Failed -- saving rejects to file 
nci/jni/extns/pn54x/src/utils/phNxpconfig.h.rej

+++ NXP-NCI NFC support installation completed +++
root@ubuntu:/usr/local/dea-9.0-r2/vendor/nxp/nfc# 

请检查Digi ConnectCore 8x SBC Pro板上是否提供PN7150移植。 如果它不起作用,请告诉我是否还有其他需要处理的地方。

谢谢

※NXP OM5578 / PN7150S

https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/development-kits-for-pn7150-plugn-play-nfc-controller:OM5578

※AN11690.pdf

https://www.nxp.com/docs/en/application-note/AN11690.pdf

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。