klokik / alice-linux-kernel

Mainline linux kernel for LG G5 aka h1 aka h850 aka Alice
Other
1 stars 0 forks source link

NFC module not working #14

Open klokik opened 3 years ago

klokik commented 3 years ago
klokik commented 3 years ago

Hey, there is a nice official nxp driver at https://github.com/NXPNFCLinux/nxp-pn5xx compared to misc device driver from an lg kernel, should be much better.

klokik commented 3 years ago

Crap, it is basically the same driver as used in LG kernel. Good news is that pn544 and pn547 might be compatible

klokik commented 3 years ago

Some info on linux nfc stack https://elinux.org/images/d/d1/Near_Field_Communication_with_Linux.pdf

klokik commented 3 years ago

Crap

#  nfctool -l
nfc0:
          Tags: [ ]
          Devices: [ ]
          Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ]
          Powered: No
          RF Mode: None
          lto: 0
          rw: 0
          miux: 0

# nfctool -1
Please specify a device with -d nfcX option
Invalid argument
# nfctool -1 -d nfc0
[  290.114626] pn544_i2c: pn544_hci_i2c_enable
[  290.144892] pn544_hci_i2c 1-0028: NFC: invalid len byte
[  290.168818] pn544_hci_i2c 1-0028: NFC: invalid len byte
[  290.192479] pn544_hci_i2c 1-0028: NFC: invalid len byte
[  290.216498] pn544_hci_i2c 1-0028: NFC: invalid len byte
[  290.240491] pn544_hci_i2c 1-0028: NFC: invalid len byte
[  290.305786] nfc: nfc_dev_up: SE discovery failed
Timer expired
#