Pine64-LTS and UART ports
Kaya Saman
kayasaman at optiplex-networks.com
Sun Jun 23 20:42:21 UTC 2019
Hi,
I've attached an RS232c converter board to UART2 on my Pine64-LTS board.
I followed the pinout diagrams from here:
http://synfare.com/599N105E/hwdocs/pine64/gpiosgeo.html
I'm using Pin 4 and 6 to power the board and have In1 connected to Pin 8
(TX) and Out1 connected to Pin 10 (RX), on the Pi-2-BUS header.
AK-3232 In1 <- Pine64 Pin8 (UART2 TX)
AK-3232 Out1 -> Pine64 pin10 (UART2 RX)
The converter I'm using is an AK-3232:
https://www.artekit.eu/ak-3232-usage-guide/ based on the ST3232B chip.
What do I have to do to get FreeBSD to see the AK-3232 board and use it
as a COM port?
Currently I've gone through the UART man page and am looking here:
https://www.freebsd.org/doc/en_US.ISO8859-1/articles/serial-uart/article.html
At the moment the only TTY devices listed are the UART0 from the Exp
connector and the Prolific USB serial converter U0 I have attached.
Here is the version I'm running: 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3
r347570 PPS-GENERIC arm64
The only change to my kernel is that I added PPS support to it:
# PPS Support
options PPS_SYNC
Based on my reading I created a 'hints' file for it:
/boot/device.hints
hint.uart.2.disabled="0"
but I'm not sure if this is correct?
Do I need to adjust anything in the gpioctl?
https://wiki.freebsd.org/FreeBSD/GPIO
Many thanks.
Kaya
More information about the freebsd-arm
mailing list