← Back to team overview

ubuntu-phone team mailing list archive

Hacking around with libnfc on an Ubuntu phone?

 

Hi everyone,

For fun, I would like to use standard NFC utils (like nfc-list from the
libnfc-bin package) with my Nexus 4, a PN533 key[1] and an OTG cable.

Ubuntu is much more convenient than Android for this, because one can
just use apt-get after enabling the read-write filesystem.

First, I have to say that nfc-list detects the key on a Trusty desktop,
so it should be able to work on the phone (userland seems to be ok).

However, it does not work on the Nexus 4.
Apparently, the kernel does not have the right modules (nfc, usb) and,
of course, modprobe does not help.

Now, some questions:
- Where are the Ubuntu-kernel-for-Nexus-4 sources hosted?
- Is there an easier way to add these modules than just building a
custom kernel?
- Is there some good (Ubuntu?) tutorial somewhere on how to
build/install a custom kernel for a phone?
- Some suggestions?


Thanks,
Nicolas

[1] http://www.nxp.com/documents/short_data_sheet/PN533_SDS.pdf