User Tools

Site Tools


compiling_and_running_kernel_2.6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

compiling_and_running_kernel_2.6 [2017/01/03 21:25] (current)
admin created
Line 1: Line 1:
 +===== Introduction =====
 +If you want to read/write Mifare Desfire or Mifare Desfire EV1 cards, then you have to install the latest version of [[http://​nfc-tools.org/​index.php?​title=Libnfc libnfc] and [http://​nfc-tools.org/​index.php?​title=Libfreefare|libfreefare]].
  
 +==== Getting things ready ====
 +Before you start installing these libraries, you need to add some installation and run-time dependencies:​
 +
 +<​code>​
 +sudo apt-get install autoconf automake libtool
 +
 +sudo apt-get install libssl-dev libusb-0.1-4 libusb-dev
 +</​code>​
 +
 +==== Installing libnfc ====
 +Get the source code, compile it and install it:
 +
 +<​code>​
 +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
 +</​code>​
 +
 +Arygon'​s APPD:
 +
 +<​code>​
 +./configure --prefix=/​usr --with-drivers=arygon --sysconfdir=/​etc
 +</​code>​
 +
 +Adafruit'​s PN532 breakout board:
 +
 +<​code>​
 +./configure --prefix=/​usr --with-drivers=pn532_uart --sysconfdir=/​etc
 +</​code>​
 +
 +For either:
 +
 +<​code>​
 +make
 +
 +sudo make install
 +</​code>​
 +
 +==== Configuration ====
 +Add the following files:
 +
 +<​code>​
 +sudo mkdir /etc/nfc
 +
 +sudo cp libnfc.conf.sample /​etc/​nfc/​libnfc.conf
 +
 +sudo nano /​etc/​nfc/​libnfc.conf
 +</​code>​
 +
 +For Arygon'​s APPD add to the end:
 +
 +<​code>​
 +device.name = "​arygon"​
 +device.connstring = "​arygon:/​dev/​ttyUSB0"​
 +</​code>​
 +
 +For Adafruit and microBuilder.eu'​s PN532 Breakout Board:
 +
 +<​code>​
 +device.name = "​microBuilder.eu"​
 +device.connstring = "​pn532_uart:/​dev/​ttyUSB0"​
 +</​code>​
 +
 +==== Test ====
 +That's it, you are ready! Go on and test it:
 +
 +<​code>​
 +cd utils
 +
 +sudo ./nfc-list
 +</​code>​
 +
 +==== Installing libfreefare ====
 +<​code>​
 +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
 +</​code>​
compiling_and_running_kernel_2.6.txt ยท Last modified: 2017/01/03 21:25 by admin