ubuntu 12.04 编译安装mfoc全过程
lz已经体验过了。效果不错,速度比win下的mfoc快。废话不说了。
依赖关系
apt-get install flex libpcsclite-dev libusb-dev checkinstall
1.硬件:ACR122U
2.软件:
(1)驱动安装
root@bt:~# wget http://www.acs.com.hk/drivers/eng/ACR122_Driver_Lnx_Mac10.5_10.6_10.7_104_P.zip
root@bt:~# unzip ACR122_Driver_Lnx_Mac10.5_10.6_10.7_104_P.zip
root@bt:~# cd ACR122_Driver_Lnx_Mac10.5_10.6_10.7_104_P
root@bt:~# tar -jxvf acsccid-1.0.4.tar.bz2
root@bt:~# cd acsccid-1.0.4
root@bt:~# ./configure
root@bt:~# make
root@bt:~# checkinstall -D -y --install
(2)安装libnfc
需要使用 libnfc-1.7.0-rc3.tar.gz(mfoc-0.10.6)
安装方法不在叙述
(3)检查设备,驱动等情况
root@bt:~# nfc-list
nfc-list use libnfc 1.4.2 (r891)
Connected to NFC device: ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
1 ISO14443A passive target(s) was found:
ATQA(SENS_RES):00 02
UID (NFCID1): xx xx xx xx
SAK (SEL_RES): 08
If your reader is rejected because of the firmware (log message: „Firmware (x.y) is bogus!“) just disable version checking. All you need to do is change ifdDriverOptions (line 55 in Info.plist) to skip version checking like this:
root@bt:~# nano /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
ifdDriverOptions
0×0005
(4)编译。安装mfoc
root@bt:~# wget http://nfc-tools.googlecode.com/files/mfoc-0.10.6.tar.gz && tar -xvzf mfoc-0.10.6.tar.gz
root@bt:~# cd mfoc-0.10.6
root@bt:~# autoreconf -vis
root@bt:~# ./configure
root@bt:~# make
root@bt:~# checkinstall -D -y --install
(5)完成。测试。
root@bt:~# mfoc -O test.dump(跟win下的差不多。)
树莓派mfoc 0.10.6笔记
树莓派编译mfoc 0.10.6后,接口供电不足,破解或启动过acr122u后,需重新插拔acr122u才可进行下一步操作。
树莓派编译mfoc 0.10.6后,接口供电不足,破解速度过慢,破解公交卡开始时间:16:04/结束时间:16:39 用时35min(卧槽。)