Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2023 20:27:38 -0700
From:      John Rushford <jjrushford@gmail.com>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@FreeBSD.org>
Subject:   Re: Pi 4 uarts
Message-ID:  <E6DEFBCF-AAD6-4E74-BF6E-F22974BFCB96@gmail.com>
In-Reply-To: <07307CEC-9C0B-42AC-8D17-2C81427081A0@yahoo.com>
References:  <6496EB45-1CC8-4BF3-8A5E-A90039485D2F@gmail.com> <07307CEC-9C0B-42AC-8D17-2C81427081A0@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_C7B40EBF-C50B-4CB3-913E-23EAF42AF00F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Mark,

Thanks for the reply.  I only have =E2=80=9Cdtoverlay=3Duart3=E2=80=9D =
in the config.txt and with that entry, FreeBSD creates /dev/ttyu1 and =
/dev/cuau1 along with the .init and .lock files.
So, I tried with this entry in /etc/ttys and it was of no help, still no =
data:

	ttyu1 "none" vt100 on secure

thanks
John
jjrushford@gmail.com <mailto:jjrushford@gmail.com>

> On Jan 21, 2023, at 8:18 PM, Mark Millard <marklmi@yahoo.com> wrote:
>=20
> On Jan 21, 2023, at 18:34, John Rushford <jjrushford@gmail.com> wrote:
>=20
>> I have installed FreeBSD 13.1 on a raspberry PI 4b rev 1.4 and I am =
trying to use the additional serial ports that are available with the PI =
4 with an Adafruit ultimate GPS card.
>> I found that it was problematic using the first serial port ttyu0 on =
GPIO pins 14 and 15 as data on the line from the GPS would interrupt the =
boot process and I verified that I was in fact able see data time stamps =
from the GPS card on the first uart port once I got FreeBSD to boot.
>>=20
>> Now since I do not wish to use the first serial port, I=E2=80=99ve =
built the rpi-firmware port and copied all the uart dtb=E2=80=99s to =
/boot/msdos/overlays and I=E2=80=99ve tried enabling the uart=E2=80=99s =
in /boot/msdos/config.txt with =E2=80=9Cdtoverlay=3Duart3=E2=80=9D for =
example. =20
>> Enabling them does in fact  result in device entries created for them =
in /dev but, I am unable to see any data on the corresponding ttyuX or =
cuauX ports.
>>=20
>> Just to eliminate a wiring error, I installed another SD card with =
Raspberry PI OS, enabled uart3 and I am able to see data on uart3 =
without any issue confirming I have everything wired up properly.
>>=20
>> With FreeBSD, I have set the proper baud rate on the ports and I=E2=80=99=
ve tried disabling flow control on them, using stty, but no matter what =
I do, I never see any data on them.  Unless I=E2=80=99m missing =
something, I can only conclude there is some bug in FreeBSD preventing =
me from using these additional serial ports.  Has anyone here on this =
mailing list been able to use them?  If so, what does it take?
>=20
> You did not mention /etc/ttys editing. So I wonder if you
> changed any of the lines like, say,
>=20
> # Serial terminals
> # The 'dialup' keyword identifies dialin lines to login, fingerd etc.
> ttyu0   "/usr/libexec/getty 3wire"      vt100   onifconsole secure
> ttyu1   "/usr/libexec/getty 3wire"      vt100   onifconsole secure
> ttyu2   "/usr/libexec/getty 3wire"      vt100   onifconsole secure
> ttyu3   "/usr/libexec/getty 3wire"      vt100   onifconsole secure
>=20
> to use, say, none instead of "/usr/libexec/getty 3wire", and other
> related edits.
>=20
> But I've not tried to get any extra serial ports going on
> an RPi4B. So the above is just guess work about something
> to experiment with.
>=20
> =3D=3D=3D
> Mark Millard
> marklmi at yahoo.com
>=20


--Apple-Mail=_C7B40EBF-C50B-4CB3-913E-23EAF42AF00F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: =
after-white-space;">Mark,<div><br></div><div>Thanks for the reply. =
&nbsp;I only have =E2=80=9Cdtoverlay=3Duart3=E2=80=9D in the config.txt =
and with that entry, FreeBSD creates /dev/ttyu1 and /dev/cuau1 along =
with the .init and .lock files.</div><div>So, I tried with this entry in =
/etc/ttys and it was of no help, still no =
data:</div><div><br></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>ttyu1   "none"  vt100   on =
secure</div><div><br></div><div>thanks</div><div>John</div><div><a =
href=3D"mailto:jjrushford@gmail.com">jjrushford@gmail.com</a></div><div><b=
r><div><blockquote type=3D"cite"><div>On Jan 21, 2023, at 8:18 PM, Mark =
Millard &lt;marklmi@yahoo.com&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div>On Jan 21, 2023, at 18:34, =
John Rushford &lt;jjrushford@gmail.com&gt; wrote:<br><br><blockquote =
type=3D"cite">I have installed FreeBSD 13.1 on a raspberry PI 4b rev 1.4 =
and I am trying to use the additional serial ports that are available =
with the PI 4 with an Adafruit ultimate GPS card.<br>I found that it was =
problematic using the first serial port ttyu0 on GPIO pins 14 and 15 as =
data on the line from the GPS would interrupt the boot process and I =
verified that I was in fact able see data time stamps from the GPS card =
on the first uart port once I got FreeBSD to boot.<br><br>Now since I do =
not wish to use the first serial port, I=E2=80=99ve built the =
rpi-firmware port and copied all the uart dtb=E2=80=99s to =
/boot/msdos/overlays and I=E2=80=99ve tried enabling the uart=E2=80=99s =
in /boot/msdos/config.txt with =E2=80=9Cdtoverlay=3Duart3=E2=80=9D for =
example. &nbsp;<br>Enabling them does in fact &nbsp;result in device =
entries created for them in /dev but, I am unable to see any data on the =
corresponding ttyuX or cuauX ports.<br><br>Just to eliminate a wiring =
error, I installed another SD card with Raspberry PI OS, enabled uart3 =
and I am able to see data on uart3 without any issue confirming I have =
everything wired up properly.<br><br>With FreeBSD, I have set the proper =
baud rate on the ports and I=E2=80=99ve tried disabling flow control on =
them, using stty, but no matter what I do, I never see any data on them. =
&nbsp;Unless I=E2=80=99m missing something, I can only conclude there is =
some bug in FreeBSD preventing me from using these additional serial =
ports. &nbsp;Has anyone here on this mailing list been able to use them? =
&nbsp;If so, what does it take?<br></blockquote><br>You did not mention =
/etc/ttys editing. So I wonder if you<br>changed any of the lines like, =
say,<br><br># Serial terminals<br># The 'dialup' keyword identifies =
dialin lines to login, fingerd etc.<br>ttyu0 =
&nbsp;&nbsp;"/usr/libexec/getty 3wire" =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vt100 &nbsp;&nbsp;onifconsole =
secure<br>ttyu1 &nbsp;&nbsp;"/usr/libexec/getty 3wire" =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vt100 &nbsp;&nbsp;onifconsole =
secure<br>ttyu2 &nbsp;&nbsp;"/usr/libexec/getty 3wire" =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vt100 &nbsp;&nbsp;onifconsole =
secure<br>ttyu3 &nbsp;&nbsp;"/usr/libexec/getty 3wire" =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vt100 &nbsp;&nbsp;onifconsole =
secure<br><br>to use, say, none instead of "/usr/libexec/getty 3wire", =
and other<br>related edits.<br><br>But I've not tried to get any extra =
serial ports going on<br>an RPi4B. So the above is just guess work about =
something<br>to experiment with.<br><br>=3D=3D=3D<br>Mark =
Millard<br>marklmi at =
yahoo.com<br><br></div></div></blockquote></div><br></div></body></html>=

--Apple-Mail=_C7B40EBF-C50B-4CB3-913E-23EAF42AF00F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E6DEFBCF-AAD6-4E74-BF6E-F22974BFCB96>