I got a problem about porting NFC OM5578/PN7150S module on the Digi board.
I’m using Digi ConnectCore 8X SBC Pro board, connected between the board and LVDS1 Port for I2C control.
I followed the porting manual(AN11690.pdf) provided by NXP to make pn5xx_i2c.ko.
However, pn5xx_i2c.ko file was not installed as insert mod(insmod) command, and Hal Layer patch was not working.
==========================================================
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#
==========================================================
Please check if PN7150 porting was available on Digi ConnectCore 8x SBC Pro board. If it doesn’t work, please let me know if there’s anything else I need to work on.
Thank you
※ NXP OM5578/PN7150S
https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/development-kits-for-pn7150-plugn-play-nfc-...
※ AN11690.pdf
https://www.nxp.com/docs/en/application-note/AN11690.pdf
I think this is a good reference for you.