View Issue Details

IDProjectCategoryView StatusLast Update
0007247Kali LinuxGeneral Bugpublic2021-07-08 23:01
Reporteruser6331Assigned ToGamb1t  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2021.2 
Summary0007247: Can't compile kernel module "nxp-nci" for Built-in NFC chip
Description

Hi,

I have a Thinkpad X1 Carbon 5th Gen with a built-in NFC Chip

Kali kernel doesn't include by default NCI and NXP-NCI modules, which are necessary for the NFC chip to work

When I try to compile those modules manually, I always get those errors:

ERROR: modpost: "nci_recv_frame" [drivers/nfc/nxp-nci/nxp-nci_i2c.ko] undefined!
ERROR: modpost: "nci_unregister_device" [drivers/nfc/nxp-nci/nxp-nci.ko] undefined!
ERROR: modpost: "nci_register_device" [drivers/nfc/nxp-nci/nxp-nci.ko] undefined!
ERROR: modpost: "nci_allocate_device" [drivers/nfc/nxp-nci/nxp-nci.ko] undefined!
ERROR: modpost: "nci_free_device" [drivers/nfc/nxp-nci/nxp-nci.ko] undefined!
make[1]: [scripts/Makefile.modpost:124: drivers/nfc/Module.symvers] Error 1
make[1]:
Deleting file 'drivers/nfc/Module.symvers'
make: *** [Makefile:1725: modules] Error 2

Any ideas ?

Steps To Reproduce
  • git clone https://gitlab.com/kalilinux/packages/linux.git
  • cd linux
  • cp /usr/src/linux-headers-uname -r/Module.symvers .
  • make menuconfig
  • Tick "M" for chosen modules
  • Untick Force/Unforce Loading modules
  • make scripts prepare modules_prepare
  • make -C . M=drivers/nfc && make -C . M=net/nfc
  • The shown errors above
Additional Information

I use those steps in order to compile "ec_sys" module for my thinkpad.

It's used to allow the Thinkpad Red Dot Logo to blink with some scripts available on Github.

Since the ec_sys module isn't compiled by default in kali, I do it manually.

Activities

Michu

Michu

2021-07-02 14:57

reporter   ~0014882

do you have nfc drivers for your thinkpad what kern.log shows

user6331

2021-07-02 15:07

  ~0014883

Yes I have the drivers for NFC
kern.log shows nothing because no module on Kali, but when I boot my laptop on live USB using Ubuntu, Mint or Manjaro, I have 3 kernel modules that loads the nfc driver

  • nci
  • nxp-nci
  • nxp-nci_i2c

Then to chcek nfc powered on/off I type:
root@thinx1c: rfkill list
nfc0: NFC
Soft blocked: no
Hard blocked: no

Those 3 modules I want to compile manually since Kali doesn't include them by default to be able to use my built-in NFC chip

Gamb1t

Gamb1t

2021-07-08 23:01

reporter   ~0014907

Thank you for your interest in Kali but this is not a bug report. It looks like that you need help and guidance to perform some task. We have community support forums on https://forums.kali.org/ or on IRC with the #kali-linux channel on irc.oftc.net), please post your questions there.

Issue History

Date Modified Username Field Change
2021-06-30 17:42 user6331 New Issue
2021-07-02 14:57 Michu Note Added: 0014882
2021-07-02 15:07 user6331 Note Added: 0014883
2021-07-08 23:01 Gamb1t Assigned To => Gamb1t
2021-07-08 23:01 Gamb1t Status new => closed
2021-07-08 23:01 Gamb1t Resolution open => no change required
2021-07-08 23:01 Gamb1t Note Added: 0014907