Raspberry Pi B+ and PN532 NFC/RFID controller breakout board

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
mattias_hl
 
Posts: 4
Joined: Fri Nov 28, 2014 10:13 am

Raspberry Pi B+ and PN532 NFC/RFID controller breakout board

Post by mattias_hl »

Hello,

I recently bought a Raspberry Pi B+ and a PN532 NFC/RFID controller breakout board - v1.6 for doing some experiments with NFC stickers/tags.

I try to follow this guide, Adafruit NFC/RFID on Raspberry Pi but I get stuck on step one in the link. I'm supposed to change /boot/cmdline.txt from:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 $
to:
dwc_otg.lpm_enable=0 console=tty1 $

In my Raspberri Pi the cmdline.txt looks like this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait

When I change cmdline.txt to what the guide suggests my Pi doesn't boot anymore and I'm forced to do reinstall the system, formatting the SD card and start all over again with NOOBS. Before reboot I've also done step two in the guide.

The Pi B+ has a fresh install of Raspbian from http://www.raspberrypi.org/downloads/. I've done sudo apt-get update and sudo apt-get upgrade and I've also installed Emacs and Synaptic. dmesg (before the changes suggested in the guide) gives me this if it is of any help:

Code: Select all

dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.12.28+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #709 PREEMPT Mon Sep 8 15:28:00 BST 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 8 MiB at 1b800000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c061dd90, node_mem_map c06cf000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0x10 bcm2708.serial=0xe2d3ed80 smsc95xx.macaddr=B8:27:EB:D3:ED:80 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 439532K/458752K available (4498K kernel code, 242K rwdata, 1344K rodata, 143K init, 701K bss, 19220K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05bca24   (5843 kB)
[    0.000000]       .init : 0xc05bd000 - 0xc05e0eac   ( 144 kB)
[    0.000000]       .data : 0xc05e2000 - 0xc061e8a0   ( 243 kB)
[    0.000000]        .bss : 0xc061e8ac - 0xc06ce080   ( 702 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:394
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.001187] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.001247] pid_max: default: 32768 minimum: 301
[    0.001767] Mount-cache hash table entries: 512
[    0.002584] Initializing cgroup subsys memory
[    0.002697] Initializing cgroup subsys devices
[    0.002735] Initializing cgroup subsys freezer
[    0.002768] Initializing cgroup subsys blkio
[    0.002917] CPU: Testing write buffer coherency: ok
[    0.003381] Setting up static identity map for 0xc04487f8 - 0xc0448854
[    0.005314] devtmpfs: initialized
[    0.021248] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.022827] NET: Registered protocol family 16
[    0.028164] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.028849] cpuidle: using governor ladder
[    0.028897] cpuidle: using governor menu
[    0.029311] bcm2708.uart_clock = 0
[    0.031401] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.031463] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.031498] mailbox: Broadcom VideoCore Mailbox driver
[    0.031595] bcm2708_vcio: mailbox at f200b880
[    0.031701] bcm_power: Broadcom power driver
[    0.031739] bcm_power_open() -> 0
[    0.031763] bcm_power_request(0, 8)
[    0.532481] bcm_mailbox_read -> 00000080, 0
[    0.532519] bcm_power_request -> 0
[    0.532776] Serial: AMBA PL011 UART driver
[    0.532948] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.896450] console [ttyAMA0] enabled
[    0.923584] bio: create slab <bio-0> at 0
[    0.929112] SCSI subsystem initialized
[    0.933114] usbcore: registered new interface driver usbfs
[    0.938816] usbcore: registered new interface driver hub
[    0.944376] usbcore: registered new device driver usb
[    0.950955] Switched to clocksource stc
[    0.955231] FS-Cache: Loaded
[    0.958396] CacheFiles: Loaded
[    0.974263] NET: Registered protocol family 2
[    0.980068] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.987483] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.994073] TCP: Hash tables configured (established 4096 bind 4096)
[    1.000521] TCP: reno registered
[    1.003816] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.009688] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.016467] NET: Registered protocol family 1
[    1.021451] RPC: Registered named UNIX socket transport module.
[    1.027411] RPC: Registered udp transport module.
[    1.032216] RPC: Registered tcp transport module.
[    1.036938] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.044276] bcm2708_dma: DMA manager at f2007000
[    1.049019] bcm2708_gpio: bcm2708_gpio_probe c05efef0
[    1.054589] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.064172] audit: initializing netlink socket (disabled)
[    1.069677] type=2000 audit(0.910:1): initialized
[    1.239937] VFS: Disk quotas dquot_6.5.2
[    1.244300] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.253277] FS-Cache: Netfs 'nfs' registered for caching
[    1.260184] NFS: Registering the id_resolver key type
[    1.265482] Key type id_resolver registered
[    1.269690] Key type id_legacy registered
[    1.274500] msgmni has been set to 874
[    1.280229] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.288094] io scheduler noop registered
[    1.292171] io scheduler deadline registered (default)
[    1.297647] io scheduler cfq registered
[    1.302864] BCM2708FB: allocated DMA memory 5bc00000
[    1.307911] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.318153] bcm2708_fb_pan_display(0,0) returns=0
[    1.328599] Console: switching to colour frame buffer device 160x64
[    1.329280] bcm2708_fb_pan_display(0,0) returns=0
[    1.356398] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.364248] uart-pl011 dev:f1: no DMA platform data
[    1.369896] vc-cma: Videocore CMA driver
[    1.373993] vc-cma: vc_cma_base      = 0x00000000
[    1.378784] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.384366] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.399693] brd: module loaded
[    1.408330] loop: module loaded
[    1.411961] vchiq: vchiq_init_state: slot_zero = 0xdb800000, is_master = 0
[    1.420091] Loading iSCSI transport class v2.0-870.
[    1.426335] usbcore: registered new interface driver smsc95xx
[    1.432541] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.638625] Core Release: 2.80a
[    1.641949] Setting default values for core params
[    1.646865] Finished setting default values for core params
[    1.852640] Using Buffer DMA mode
[    1.856043] Periodic Transfer Interrupt Enhancement - disabled
[    1.862009] Multiprocessor Interrupt Enhancement - disabled
[    1.867684] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.872157] Dedicated Tx FIFOs mode
[    1.876068] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xdbc14000 dma = 0x5bc14000 len=9024
[    1.886134] FIQ FSM acceleration enabled for :
[    1.886134] Non-periodic Split Transactions
[    1.886134] Periodic Split Transactions
[    1.886134] High-Speed Isochronous Endpoints
[    1.903120] dwc_otg: Microframe scheduler enabled
[    1.903213] WARN::hcd_init:473: FIQ at 0xc0321550
[    1.908013] WARN::hcd_init:474: FIQ ASM at 0xc0321800 length 36
[    1.918225] WARN::hcd_init:500: MPHI regs_base at 0xdc806000
[    1.928016] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.937016] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.948425] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.958003] Init: Port Power? op_state=1
[    1.965999] Init: Power Port (0)
[    1.973619] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.984603] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.995988] usb usb1: Product: DWC OTG Controller
[    2.004791] usb usb1: Manufacturer: Linux 3.12.28+ dwc_otg_hcd
[    2.014761] usb usb1: SerialNumber: bcm2708_usb
[    2.024254] hub 1-0:1.0: USB hub found
[    2.032274] hub 1-0:1.0: 1 port detected
[    2.040730] dwc_otg: FIQ enabled
[    2.040751] dwc_otg: NAK holdoff enabled
[    2.040761] dwc_otg: FIQ split-transaction FSM enabled
[    2.040783] Module dwc_common_port init
[    2.041373] usbcore: registered new interface driver usb-storage
[    2.052001] mousedev: PS/2 mouse device common for all mice
[    2.062429] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    2.072455] bcm2835-cpufreq: switching to governor powersave
[    2.082242] bcm2835-cpufreq: switching to governor powersave
[    2.092009] sdhci: Secure Digital Host Controller Interface driver
[    2.102204] sdhci: Copyright(c) Pierre Ossman
[    2.110602] sdhci: Enable low-latency mode
[    2.161031] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.173233] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.183466] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.195349] ledtrig-cpu: registered to indicate activity on CPUs
[    2.212890] hidraw: raw HID events driver (C) Jiri Kosina
[    2.222739] usbcore: registered new interface driver usbhid
[    2.234749] Indeed it is in host mode hprt0 = 00021501
[    2.246143] usbhid: USB HID core driver
[    2.259204] TCP: cubic registered
[    2.284085] Initializing XFRM netlink socket
[    2.301037] NET: Registered protocol family 17
[    2.309664] Key type dns_resolver registered
[    2.331393] mmc0: new high speed SDHC card at address e624
[    2.352222] registered taskstats version 1
[    2.361174] mmcblk0: mmc0:e624 SU08G 7.40 GiB
[    2.389714]  mmcblk0: p1 p2 < p5 p6 > p3
[    2.442963] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[    2.455605] VFS: Mounted root (ext4 filesystem) on device 179:6.
[    2.482378] devtmpfs: mounted
[    2.490164] Freeing unused kernel memory: 140K (c05bd000 - c05e0000)
[    2.501168] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.513242] Indeed it is in host mode hprt0 = 00001101
[    2.721478] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.733558] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.746129] hub 1-1:1.0: USB hub found
[    2.755276] hub 1-1:1.0: 5 ports detected
[    3.041296] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.151596] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.167702] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.186881] smsc95xx v1.0.4
[    3.268113] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:d3:ed:80
[    3.381238] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.497900] usb 1-1.2: New USB device found, idVendor=045e, idProduct=0040
[    3.510011] usb 1-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[    3.522004] usb 1-1.2: Product: Microsoft 3-Button Mouse with IntelliEye(TM)
[    3.533542] usb 1-1.2: Manufacturer: Microsoft
[    3.563762] input: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[    3.584665] hid-generic 0003:045E:0040.0001: input,hidraw0: USB HID v1.10 Mouse [Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)] on usb-bcm2708_usb-1.2/input0
[    3.701300] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[    3.871313] usb 1-1.3: New USB device found, idVendor=03f0, idProduct=0024
[    3.893826] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.921233] usb 1-1.3: Product: HP Basic USB Keyboard
[    3.939286] usb 1-1.3: Manufacturer: CHICONY
[    3.985766] input: CHICONY HP Basic USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input1
[    4.021649] hid-generic 0003:03F0:0024.0002: input,hidraw1: USB HID v1.10 Keyboard [CHICONY HP Basic USB Keyboard] on usb-bcm2708_usb-1.3/input0
[    4.151293] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[    4.282972] usb 1-1.5: New USB device found, idVendor=0bda, idProduct=8176
[    4.311150] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.337100] usb 1-1.5: Product: 802.11n WLAN Adapter
[    4.351151] usb 1-1.5: Manufacturer: Realtek
[    4.360569] usb 1-1.5: SerialNumber: 00e04c000001
[    4.425775] udevd[156]: starting version 175
[    6.717496] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[    8.464094] usbcore: registered new interface driver rtl8192cu
[   11.408343] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[   11.979233] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[   18.578283] FAT-fs (mmcblk0p5): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   22.276328] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   23.898076] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[   25.710890] rtw_wx_set_mlme
[   25.710928] rtw_wx_set_mlme, cmd=0, reason=3
[   28.849295] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[  151.845779] bcm2708_fb_pan_display(0,0) returns=0
[  151.889617] bcm2708_fb_blank(1) returns=1 p[1]=0x80000000
[  151.890176] bcm2708_fb_pan_display(0,0) returns=0
[  152.978979] bcm2708_fb_blank(0) returns=0 p[1]=0x80000000
[  160.833607] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 1308.811956] bcm2708_fb_pan_display(0,0) returns=0
[ 1308.812778] bcm2708_fb_pan_display(0,0) returns=0
[ 1308.834964] bcm2708_fb_pan_display(0,0) returns=0
[ 3111.031416] bcm2708_fb_blank(1) returns=1 p[1]=0x80000000
[64931.550283] bcm2708_fb_blank(0) returns=0 p[1]=0x80000000
[64931.551044] bcm2708_fb_pan_display(0,0) returns=0
[66737.271371] bcm2708_fb_blank(1) returns=1 p[1]=0x80000000
[253334.666560] bcm2708_fb_blank(0) returns=0 p[1]=0x80000000
[253334.667246] bcm2708_fb_pan_display(0,0) returns=0
[254381.638387] bcm2708_fb_pan_display(0,0) returns=0
[254381.670713] bcm2708_fb_blank(1) returns=1 p[1]=0x80000000
[254381.672532] bcm2708_fb_pan_display(0,0) returns=0
[254382.551788] bcm2708_fb_blank(0) returns=0 p[1]=0x80000000
[254604.451967] bcm2708_fb_pan_display(0,0) returns=0
[254604.452730] bcm2708_fb_pan_display(0,0) returns=0
[254604.475122] bcm2708_fb_pan_display(0,0) returns=0
[254607.488686] bcm2708_fb_pan_display(0,0) returns=0
[254607.504634] bcm2708_fb_pan_display(0,0) returns=0
[254694.061206] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
[254694.243514] usb 1-1.4: New USB device found, idVendor=090c, idProduct=1000
[254694.243551] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[254694.243567] usb 1-1.4: Product: Flash Disk
[254694.243580] usb 1-1.4: Manufacturer: USB
[254694.243594] usb 1-1.4: SerialNumber: FBH1111180516540
[254694.250429] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[254694.255943] scsi0 : usb-storage 1-1.4:1.0
[254695.389644] scsi 0:0:0:0: Direct-Access     USB      Flash Disk       1100 PQ: 0 ANSI: 4
[254695.392446] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
[254695.393114] sd 0:0:0:0: [sda] Write Protect is off
[254695.393148] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[254695.393792] sd 0:0:0:0: [sda] No Caching mode page found
[254695.393823] sd 0:0:0:0: [sda] Assuming drive cache: write through
[254695.397588] sd 0:0:0:0: [sda] No Caching mode page found
[254695.397625] sd 0:0:0:0: [sda] Assuming drive cache: write through
[254695.398854]  sda: sda1
[254695.404613] sd 0:0:0:0: [sda] No Caching mode page found
[254695.404658] sd 0:0:0:0: [sda] Assuming drive cache: write through
[254695.404684] sd 0:0:0:0: [sda] Attached SCSI removable disk
[254695.466774] sd 0:0:0:0: Attached scsi generic sg0 type 0
[254774.444038] bcm2708_fb_pan_display(0,0) returns=0
[254774.472953] bcm2708_fb_blank(1) returns=1 p[1]=0x80000000
[254774.473483] bcm2708_fb_pan_display(0,0) returns=0
[254775.282209] bcm2708_fb_blank(0) returns=0 p[1]=0x80000000
[254987.493464] usb 1-1.4: USB disconnect, device number 7
[254999.638039] bcm2708_fb_pan_display(0,0) returns=0
[254999.638778] bcm2708_fb_pan_display(0,0) returns=0
[254999.650698] bcm2708_fb_pan_display(0,0) returns=0
[255003.922126] bcm2708_fb_pan_display(0,0) returns=0
[255003.937132] bcm2708_fb_pan_display(0,0) returns=0
[256807.031389] bcm2708_fb_blank(1) returns=1 p[1]=0x80000000
Has anybody any idea of what I should do to get past these steps in the guide?

Best regards,
Mattias Johansson

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by adafruit_support_rick »

Our expert will be investigating this for you. He should respond next week some time.

User avatar
mattias_hl
 
Posts: 4
Joined: Fri Nov 28, 2014 10:13 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by mattias_hl »

Thank you,

Do you have any updates on this?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by adafruit_support_rick »

That step is to free the UART from the kernel. You can now do that using raspi-config.

Run sudo raspi-config. Select option 8, Advanced Options.
Select option A7, Serial.
Select No to disable shell and kernel messages on serial.

Then restart and proceed with the rest of the tutorial.

User avatar
mattias_hl
 
Posts: 4
Joined: Fri Nov 28, 2014 10:13 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by mattias_hl »

Hello again,

Thank you for the help. Now I'm having trouble on step three, Run Config. I have downloaded the libnfc-1.7.0 and copied the files according to the instructions in step 2. When I try to run the command $ ./configure --with-drivers=pn532_uart --sysconfdir=/etc --prefix=/usr I get an error:

I have tried these command with no success.

Code: Select all

pi@raspberrypi ~/libnfc/libnfc-1.7.0 $ ./configure --with-drivers=pn532_uart --sysconfdir=/etc --prefix=/usr
bash: ./configure: No such file or directory
pi@raspberrypi ~/libnfc/libnfc-1.7.0 $ sudo ./configure --with-drivers=pn532_uart --sysconfdir=/etc --prefix=/usr
sudo: ./configure: command not found
This is how the directory looks like:

Code: Select all

pi@raspberrypi ~/libnfc/libnfc-1.7.0 $ ls -la
total 236
drwxr-xr-x 11 pi pi  4096 Dec 17 10:29 .
drwxr-xr-x  3 pi pi  4096 Dec 17 10:30 ..
-rw-r--r--  1 pi pi   685 Dec 17  2014 AUTHORS
-rw-r--r--  1 pi pi 33523 Dec 17  2014 ChangeLog
drwxr-xr-x  3 pi pi  4096 Dec 17 10:29 cmake
-rw-r--r--  1 pi pi  6520 Dec 17  2014 CMakeLists.txt
-rw-r--r--  1 pi pi  5852 Dec 17  2014 configure.ac
drwxr-xr-x  7 pi pi  4096 Dec 17 10:29 contrib
-rw-r--r--  1 pi pi  7637 Dec 17  2014 COPYING
drwxr-xr-x  3 pi pi  4096 Dec 17 10:29 debian
-rw-r--r--  1 pi pi 64390 Dec 17  2014 Doxyfile.in
drwxr-xr-x  4 pi pi  4096 Dec 17 10:29 examples
-rw-r--r--  1 pi pi  2084 Dec 17  2014 .gitignore
-rw-r--r--  1 pi pi  2077 Dec 17  2014 HACKING
drwxr-xr-x  3 pi pi  4096 Dec 17 10:29 include
drwxr-xr-x  5 pi pi  4096 Dec 17 10:29 libnfc
-rw-r--r--  1 pi pi   958 Dec 17  2014 libnfc.conf.sample
-rw-r--r--  1 pi pi   247 Dec 17  2014 libnfc.pc.in
drwxr-xr-x  2 pi pi  4096 Dec 17 10:29 m4
-rw-r--r--  1 pi pi  1510 Dec 17  2014 Makefile.am
-rw-r--r--  1 pi pi  1604 Dec 17  2014 make_release.sh
-rw-r--r--  1 pi pi  7608 Dec 17  2014 manual-test-results.txt
-rw-r--r--  1 pi pi  2880 Dec 17  2014 mingw-cross-configure.sh
-rw-r--r--  1 pi pi 15105 Dec 17  2014 NEWS
-rw-r--r--  1 pi pi  5069 Dec 17  2014 README
-rw-r--r--  1 pi pi  2554 Dec 17  2014 README-Windows.txt
drwxr-xr-x  2 pi pi  4096 Dec 17 10:29 test
drwxr-xr-x  2 pi pi  4096 Dec 17 10:29 utils
The only file close to be called configure is configure.ac and when I try to use this file instead I get the same errors:

Code: Select all

pi@raspberrypi ~/libnfc/libnfc-1.7.0 $ ./configure.ac --with-drivers=pn532_uart --sysconfdir=/etc --prefix=/usr
bash: ./configure.ac: Permission denied
pi@raspberrypi ~/libnfc/libnfc-1.7.0 $ sudo ./configure.ac --with-drivers=pn532_uart --sysconfdir=/etc --prefix=/usr
sudo: ./configure.ac: command not found
Any ideas what I'm doing wrong?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by adafruit_support_rick »

It's probably a permissions issue.

Try either ' sh configure' or 'chmod a+x configure', and then run it again.

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by ktownsend »

Sorry ... there were indeed some problems with recent versions of Raspbian and noobs. I just setup a fresh install and updated the tutorial accordingly if you want to give it a try: https://learn.adafruit.com/adafruit-nfc ... ing-libnfc

Thanks for the heads up on this, and let me know if you have any problems.

User avatar
mattias_hl
 
Posts: 4
Joined: Fri Nov 28, 2014 10:13 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by mattias_hl »

Thank you for all your help. Now I have a working setup.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by adafruit_support_rick »

excellent!

jgreen
 
Posts: 5
Joined: Fri Mar 05, 2010 2:17 pm

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by jgreen »

Pondering whether to use this board or a Parallax USB RFID reader. The latter is appealing as it appears to be a soldering-free option. Can anyone comment on the relative merits of 13.56 MHz v 125 kHz tags? Would another option be to run an S50 reader (product 923) through a PS/2 to USB adapter into the Pi? I appreciate the Adafruit community, but am not sure I'm up to the soldering.

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: Raspberry Pi B+ and PN532 NFC/RFID controller breakout b

Post by ktownsend »

Please create a new thread in the forums for your questions ... this isn't the right place to pose your question and none of the support people are likely to see it.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”