Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2019 21:42:16 +0100
From:      Kaya Saman <kayasaman@optiplex-networks.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Pine64-LTS and UART ports
Message-ID:  <371fe0f0-9f91-e4ba-ff4e-8338fe9d63de@optiplex-networks.com>

next in thread | raw e-mail | index | archive | help
Hi,


I've attached an RS232c converter board to UART2 on my Pine64-LTS board.=20
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=20
(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:=20
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=20
as a COM port?


Currently I've gone through the UART man page and am looking here:=20
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=20
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=20
r347570 PPS-GENERIC=C2=A0 arm64


The only change to my kernel is that I added PPS support to it:


# PPS Support
options=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 PPS_SYNC


Based on my reading I created a 'hints' file for it:

/boot/device.hints
hint.uart.2.disabled=3D"0"

but I'm not sure if this is correct?


Do I need to adjust anything in the gpioctl?=20
https://wiki.freebsd.org/FreeBSD/GPIO


Many thanks.


Kaya





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?371fe0f0-9f91-e4ba-ff4e-8338fe9d63de>