From nobody Sun Jan 22 02:34:59 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 4Nzy4y3ppcz2slfF for ; Sun, 22 Jan 2023 02:35:14 +0000 (UTC) (envelope-from jjrushford@gmail.com) Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nzy4x4Y5Vz3v03 for ; Sun, 22 Jan 2023 02:35:13 +0000 (UTC) (envelope-from jjrushford@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=YqPPZmAn; spf=pass (mx1.freebsd.org: domain of jjrushford@gmail.com designates 2607:f8b0:4864:20::132 as permitted sender) smtp.mailfrom=jjrushford@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-il1-x132.google.com with SMTP id f8so4621789ilj.5 for ; Sat, 21 Jan 2023 18:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=xjZCBw1jPoIRtyZwI2J9h6F2IA76Pu9f4E81UgeDeJM=; b=YqPPZmAnN7L9Vhl4vWZx0OjAyiJqsbpUwht2USWXDBoY2XlQXiKGpPOzLrCJn2A92N sZQWPbp3QKNhxWjpniFUHt65QKm7Bxms7NfP/WYMt+04+XcNX7FQLISB05SkY4g7e+X8 VpQzt7udDHMxQP6bZDkyun5uXjPlRzXKqQQy2gIH83RNY6XJ2McIdp//x1YZiV8DY+N6 VbPoX0wGY0ACmJiSrTgVWFT4eP2fu6laQo95zuyRzXia/wPbywfcPwDAmtdGbuIgq/q2 T9XHqHYqRnLJxyJJgrry2JwNLPvT9L6mccJULPLCi3ex8/7JY9cCBkEJZVaoANVBKjxO PGtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xjZCBw1jPoIRtyZwI2J9h6F2IA76Pu9f4E81UgeDeJM=; b=V8QSGGAziQPcsjQf7eMOMlKofdnTE0vBshLEhwRdjOjGJGoXlB+ysslFLPAPRO5Eme NY1tAa4cZOZvBrugIQ3Uv6Q38FzS6qnUbOIKxeGcDq0RMq8YR+18rSAKPgQJE6L+sWSl L2wirYtJs3hdG9lmLUapC+y6UpK791OGTPIt3sChWwmeEHEktue4B7so2VD2pADwzkHJ T3uXthYoHOHbQq0bH1Rw52SMvtM7DJ+ZZX+T9E2Fg8NFLgyE2z+C4FZcSH5r3WAWnIZ7 F2gcjRnk1vWKXfL9p3hllV3UZ+KZcLTnPx6yVXTGpXHgZjwOrIIAAFDFhxhZrkvS8I/X EqeQ== X-Gm-Message-State: AFqh2kqfuQautAXi7MSqJR1chaOhpRX5NXDRwObejoGqhDRtYyk+XJBi GjajG+YjhgXYSyRgn3X6SAlYg7vlt3/MHg== X-Google-Smtp-Source: AMrXdXsuO3ljyNl40vWKsbdom6BUWqXT952M4zkYltb0R0RIPSOkilaBIcp4WiXq2gIln9B7kZfeAQ== X-Received: by 2002:a05:6e02:492:b0:30f:36b1:dfac with SMTP id b18-20020a056e02049200b0030f36b1dfacmr10626783ils.10.1674354911366; Sat, 21 Jan 2023 18:35:11 -0800 (PST) Received: from smtpclient.apple ([2601:280:587f:1450:d1a3:f492:d408:e2b3]) by smtp.gmail.com with ESMTPSA id m4-20020a056638224400b0036c8a246f54sm13798789jas.142.2023.01.21.18.35.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jan 2023 18:35:10 -0800 (PST) From: John Rushford Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Pi 4 uarts Message-Id: <6496EB45-1CC8-4BF3-8A5E-A90039485D2F@gmail.com> Date: Sat, 21 Jan 2023 19:34:59 -0700 To: "freebsd-arm@freebsd.org" X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::132:from]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-Rspamd-Queue-Id: 4Nzy4x4Y5Vz3v03 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Greetings, 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. 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. 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. With FreeBSD, I have set the proper baud rate on the ports and I=E2=80=99v= e 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? thanks John jjrushford@gmail.com