RPi serial ports revisited

Peter Jeremy peter at rulingia.com
Thu Jun 20 19:44:15 UTC 2019


On 2019-Jun-16 11:32:44 +0200, Per olof Ljungmark <peo at nethead.se> wrote:
>I've gotten as far as I have the correct GPS output on /dev/cuau1 but I 
>want it on /dev/cuau0
>
>So with 12-STABLE, where and how do I switch GPIO pins between uart0 and 
>uart1?

The mapping is defined in the FDT, which should be loaded as part of
the boot process.  In theory, it should be possible to swap the uart0
and uart1 configuration but you will then need to flip the console
from uart0 to uart1 as well (so it remains on the same physical pins)
- and that may present more issues because the console isn't defined
in a single spot.

I would suggest that you might find it easier to read the GPS data off
/dev/cuau1.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20190621/9657d4aa/attachment.sig>


More information about the freebsd-arm mailing list