Skip to content

Commit 3379466

Browse files
reinhart1010neomilium
authored andcommitted
Add Raspberry Pi OS version change notice and official documentation links
1 parent b7bec39 commit 3379466

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Typical configuration file for PN532 device on R-Pi connected using UART
22
## Note: to use UART port on R-Pi, you have to disable linux serial console:
33
## http://learn.adafruit.com/adafruit-nfc-rfid-on-raspberry-pi/freeing-uart-on-the-pi
4+
##
5+
## For more information about UART differences between R-Pi models, visit:
6+
## https://www.raspberrypi.com/documentation/computers/configuration.html#configure-uarts
7+
##
48
name = "PN532 board via UART"
59
connstring = pn532_uart:/dev/ttyAMA0

contrib/libnfc/pn532_uart_on_rpi_3.conf.sample

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,27 @@
44
## use the PN532 device with the "mini UART", which is still hijacked by the linux kernel
55
## as a serial console
66
##
7+
## For more information about UART differences between R-Pi models, visit:
8+
## https://www.raspberrypi.com/documentation/computers/configuration.html#configure-uarts
9+
##
710
## Tested recipe with PN532 breakout from Adafruit
811
##
9-
## To enable uart on GPIO, add this line to bottom of /boot/config.txt
12+
## To enable uart on GPIO, add this line to bottom of /boot/firmware/config.txt
1013
## enable_uart=1
1114
##
15+
## If you are using an earlier version of Raspberry Pi OS (prior to Bookworm),
16+
## the config file is available instead on /boot/config.txt.
17+
##
1218
## Stop and disable serial console:
1319
## $ sudo systemctl stop serial-getty@ttyS0.service
1420
## $ sudo systemctl disable serial-getty@ttyS0.service
1521
##
16-
## Remove console from /boot/cmdline.txt by removing:
22+
## Remove console from /boot/firmware/cmdline.txt by removing:
1723
## console=serial0,115200 Save and reboot for changes to take effect.
1824
##
25+
## If you are using an earlier version of Raspberry Pi OS (prior to Bookworm),
26+
## the config file is available instead on /boot/cmdline.txt.
27+
##
1928
name = "PN532 board via UART"
2029
connstring = pn532_uart:/dev/ttyS0
2130
allow_intrusive_scan = true
22-

contrib/libnfc/pn532_uart_on_rpi_5.conf.sample

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
## Typical configuration file for PN532 device on R-Pi 5 connected using miniUART
2-
## Note: Changes have been made to R-Pi 5 with the removal of the /dev/ttyS0 address
3-
## in favor of /dev/ttyAMA0. Additionally, the /boot/cmdline.txt has been replaced
4-
## with /boot/firmware/cmdline.txt.
1+
## Typical configuration file for PN532 device on R-Pi 5
2+
## Note: Changes have been made to R-Pi 5 with the removal of the mini UART
3+
## (/dev/ttyS0), hence the module can be accessed through the original R-Pi
4+
## UART address (/dev/ttyAMA0).
55
##
6-
## Tested recipe with generic PN532 module (common clones of the Elechouse module)
6+
## For more information about UART differences between R-Pi models, visit:
7+
## https://www.raspberrypi.com/documentation/computers/configuration.html#configure-uarts
78
##
8-
## To enable uart on GPIO, add this line to bottom of /boot/config.txt
9-
## enable_uart=1
9+
## This configuration is almost identical to pn532_uart_on_rpi.conf.sample
10+
## except the allow_intrusive_scan option from the R-Pi 3 sample.
11+
##
12+
## Tested recipe with generic PN532 module (common Elechouse module clones)
1013
##
11-
## Stop and disable serial console:
12-
## $ sudo systemctl stop serial-getty@ttyAMA0.service
13-
## $ sudo systemctl disable serial-getty@ttyAMA0.service
14+
## To enable uart on GPIO, add this line to bottom of /boot/firmware/config.txt
15+
## enable_uart=1
1416
##
15-
## Remove console from /boot/firmware/cmdline.txt by removing:
16-
## console=serial0,115200 Save and reboot for changes to take effect.
17+
## If you are using an earlier version of Raspberry Pi OS (prior to Bookworm),
18+
## the config file is available instead on /boot/config.txt.
1719
##
1820
name = "PN532 board via UART"
1921
connstring = pn532_uart:/dev/ttyAMA0
2022
allow_intrusive_scan = true
21-

0 commit comments

Comments
 (0)