User Tools

Site Tools


installing_libnfc_libfreefare

Introduction

If you want to read/write Mifare Desfire or Mifare Desfire EV1 cards, then you have to install the latest version of libfreefare.

Getting things ready

Before you start installing these libraries, you need to add some installation and run-time dependencies:

sudo apt-get install autoconf automake libtool

sudo apt-get install libssl-dev libusb-0.1-4 libusb-dev

Installing libnfc

Get the source code, compile it and install it:

wget https://libnfc.googlecode.com/files/libnfc-1.7.0.tar.bz2

tar xvjf libnfc-1.7.0.tar.bz2

cd libnfc-1.7.0

Arygon's APPD:

./configure --prefix=/usr --with-drivers=arygon --sysconfdir=/etc

Adafruit's PN532 breakout board:

./configure --prefix=/usr --with-drivers=pn532_uart --sysconfdir=/etc

For either:

make

sudo make install

Configuration

Add the following files:

sudo mkdir /etc/nfc

sudo cp libnfc.conf.sample /etc/nfc/libnfc.conf

sudo nano /etc/nfc/libnfc.conf

For Arygon's APPD add to the end:

device.name = "arygon"
device.connstring = "arygon:/dev/ttyUSB0"

For Adafruit and microBuilder.eu's PN532 Breakout Board:

device.name = "microBuilder.eu"
device.connstring = "pn532_uart:/dev/ttyUSB0"

Test

That's it, you are ready! Go on and test it:

cd utils

sudo ./nfc-list

Installing libfreefare

wget https://libfreefare.googlecode.com/files/libfreefare-0.4.0.tar.bz2

tar xvjf libfreefare-0.4.0.tar.bz2

cd libfreefare-0.4.0

./configure --prefix=/usr

make

sudo make install
installing_libnfc_libfreefare.txt · Last modified: 2017/01/03 21:25 by admin