From nobody Sun Jan 22 03:18:03 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nzz2f12Tsz2srJH for ; Sun, 22 Jan 2023 03:18:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nzz2d55F9z3wwx for ; Sun, 22 Jan 2023 03:18:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674357495; bh=P0O+Rso1P25p0atIX4w6rYzKNZrbBCBJzZYjI9r42I0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=qQ8c1rO+lZbq6lRPo9DqTAuFnLLgAg9asfzr3vPGUq2PTQV7qBmCu0m+SQ8W9dQHr1q46o5vUYqIS+IaxuaoywW3ztDDYREK3CRLiSVAsIyuF1ne8klO53mVsNkxifNm4IX24b3lpVvdSyWxS6bgTgPpudU44tkBHqHv3SRbKkvMOMSmZDp8ro94I7oP/ATvBT2EDfzVbfG7jFNcSc8gkYGLD3/7//A3Tr4Wq3a0a56QOw4kF8IA9x60gQgip7lvO8g1t0FnCTDalsbkYpteXVCgrXWeRQqMZJvn4W6vy4WayKtZfi7Nfn4VxaqF8492PFckbPP/TunqD/opST9QIw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674357495; bh=CJdJysXHFkGuIcTYDU5L4le8ZiBbN9V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YqLRA5tqVw0WCYH9_Nxbb4IsoT37oi0oaABfbkIi0giy HFhjGo3BPOpCLXWwwIhBWO7emYqr.DKCgulhMtjA.6CWZEpphiV0HxUAck8h31kyRRB5JPRziMTs e7gzMe8yG8DaLgpVO2HeonOOyaBmIByRPvoJRcgKbBketeQHc8q6dF6Jy5DTQkec7MMTVB1KM6lb 4JOr906DhI52clvt0arK.qpuviBSCkFmatuSmDPuyxf9S9Rgs82jw_drO7yXe_X1t7DlfCQ15xN4 CeFfeFCEe1mx6VEjYqlq5Tw9H4eCffCXKChDyXdV8iS25EtMSn57jiAS0zxVlJcOuPIkzVuNQbyg JStb5D2d1VGLFqC1jHrXKa2I2EBoAhFwQcY3svw_ebVF9QCiFyohsgX2NHa_Tl599WyPWupPCePg akb3DnQ8m3o1WWHO0cFNQRaqNNn36ndD08A3jKO_1xRSzxK39KCUxKZCnmSzX0s7UfaQw8kAgKk. lNbQL6YyNVlGzoNaVaEz039SadRV5g8cu7KP7i00E2ZZ0iMqfD1h79UuGGST_qx5RmkNjJhPFK7S Q X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 22 Jan 2023 03:18:15 +0000 Received: by hermes--production-ne1-749986b79f-29jwl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1063d271c8d0fa56962f2df96a3052c8; Sun, 22 Jan 2023 03:18:14 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: Pi 4 uarts From: Mark Millard In-Reply-To: <6496EB45-1CC8-4BF3-8A5E-A90039485D2F@gmail.com> Date: Sat, 21 Jan 2023 19:18:03 -0800 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <07307CEC-9C0B-42AC-8D17-2C81427081A0@yahoo.com> References: <6496EB45-1CC8-4BF3-8A5E-A90039485D2F@gmail.com> To: John Rushford X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4Nzz2d55F9z3wwx X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Jan 21, 2023, at 18:34, John Rushford wrote: > 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? You did not mention /etc/ttys editing. So I wonder if you changed any of the lines like, say, # 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 to use, say, none instead of "/usr/libexec/getty 3wire", and other related edits. 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. =3D=3D=3D Mark Millard marklmi at yahoo.com