From b7bec39cd4f9e527fc500bced1e416172221c00d Mon Sep 17 00:00:00 2001 From: Reinhart Previano Koentjoro Date: Wed, 5 Jun 2024 16:47:01 +0700 Subject: [PATCH] Create sample config for Raspberry Pi 5 --- .../libnfc/pn532_uart_on_rpi_5.conf.sample | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 contrib/libnfc/pn532_uart_on_rpi_5.conf.sample diff --git a/contrib/libnfc/pn532_uart_on_rpi_5.conf.sample b/contrib/libnfc/pn532_uart_on_rpi_5.conf.sample new file mode 100644 index 0000000..1fa2ac9 --- /dev/null +++ b/contrib/libnfc/pn532_uart_on_rpi_5.conf.sample @@ -0,0 +1,21 @@ +## Typical configuration file for PN532 device on R-Pi 5 connected using miniUART +## Note: Changes have been made to R-Pi 5 with the removal of the /dev/ttyS0 address +## in favor of /dev/ttyAMA0. Additionally, the /boot/cmdline.txt has been replaced +## with /boot/firmware/cmdline.txt. +## +## Tested recipe with generic PN532 module (common clones of the Elechouse module) +## +## To enable uart on GPIO, add this line to bottom of /boot/config.txt +## enable_uart=1 +## +## Stop and disable serial console: +## $ sudo systemctl stop serial-getty@ttyAMA0.service +## $ sudo systemctl disable serial-getty@ttyAMA0.service +## +## Remove console from /boot/firmware/cmdline.txt by removing: +## console=serial0,115200 Save and reboot for changes to take effect. +## +name = "PN532 board via UART" +connstring = pn532_uart:/dev/ttyAMA0 +allow_intrusive_scan = true +