From nobody Wed Feb 01 03:15: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 4P66Wd2lRWz3bsZB for ; Wed, 1 Feb 2023 03:16:13 +0000 (UTC) (envelope-from jjrushford@gmail.com) Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (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 4P66Wc1LwKz4NNF for ; Wed, 1 Feb 2023 03:16:12 +0000 (UTC) (envelope-from jjrushford@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=c4ZFlG2m; spf=pass (mx1.freebsd.org: domain of jjrushford@gmail.com designates 2607:f8b0:4864:20::12d as permitted sender) smtp.mailfrom=jjrushford@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-il1-x12d.google.com with SMTP id g16so7414899ilr.1 for ; Tue, 31 Jan 2023 19:16:12 -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=1e5HvSNXIG4b1EPCLZKSoCgY+EMsEdORkFKcW6mKv4E=; b=c4ZFlG2mXjGcbMQyQWm5H23xWwsPgieyv/MxYFA9sUNinTbznrA1KJ6L+UL7qnnZBE o5eHbzxk/ZXhmvCtB5OjqBBasxFmwU2whRihYG2JPqKgBrPuyKtm3sUKPMejy5pFdThC RO9xNgOkmNqPoEaf+IQh7Sp9lCWjnwo6i+OrYVT04I9xphsf3OcWrjCe8Eu/HCqkBF4W CGcAmyF+hAqdA57hnBdtiqoKS0aJCWfiHTWq2sxN2DlIxdjSrQi0vxoRwXHWvxNw85gS KnNqWXu4SXg+BC7Au9c4vnd6026w7FnqC1BQpSA8yjps/DhGsNxmTd15NQRdmk5ETV7l hFKA== 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=1e5HvSNXIG4b1EPCLZKSoCgY+EMsEdORkFKcW6mKv4E=; b=R2h3lqh5hGZV/sP1dwb0/F3LMJ8iu2vvlEy6C1ByHXcBzetslpvkgJJkl+tX0g7Joa dr0DpyGPSA3fbsVuscZs1GJL3PsQRvBDInKXEyaKEThuuPlT5MfBPXeUmTx/swnqcHAL mLTR54DjemwZOKq/RHuv8PHLFTziLnkBdGi8i/2Amg8d2OUOVkhbmS9dY3xDNv9igyH9 3Klbq690HD6SbieoHc9qCA7cBHvEvFs+jtwTjDL+T1pPcKQZ52izAqGLFFP6FRm2lIHb bnjLfDo88yYlLxO9hrT3LElMLhmwpcWfPM4AfTzgJUCkzBqUk+XKXrQfAsmQ7S1jJ10x CZcg== X-Gm-Message-State: AO0yUKUCEE3pbwkPysVOPr7e+/KRM2tAVBK+t0lsr1eLnMIfFYAvZvUC 4ssvLM413FCEjLjKBn6SI82TXyYyGy8iaQ== X-Google-Smtp-Source: AK7set8oD8y5CCeCYrpkEka0m6mPF3Ce2TCDyPhP19a0JNFje1bufgGTvEz39dflUIW+5SUYwHO0Tw== X-Received: by 2002:a05:6e02:1a68:b0:30f:5fb7:117e with SMTP id w8-20020a056e021a6800b0030f5fb7117emr756009ilv.2.1675221370738; Tue, 31 Jan 2023 19:16:10 -0800 (PST) Received: from smtpclient.apple ([2601:280:587f:1450:a46f:af1:48f7:55f0]) by smtp.gmail.com with ESMTPSA id v12-20020a02b90c000000b0039e8c12414asm2945403jan.164.2023.01.31.19.16.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2023 19:16: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: Compiling device tree overlays Message-Id: <20C31E7D-66F0-4097-8889-68503C299FEA@gmail.com> Date: Tue, 31 Jan 2023 20:15: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_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::12d:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-Rspamd-Queue-Id: 4P66Wc1LwKz4NNF X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Greetings, The additional uarts on raspberry pi 4 do not function in FreeBSD 13.1. = I=E2=80=99ve built the rpi-firmware port but it seems to extract = pre-built dtb=E2=80=99s for Linux, at least that=E2=80=99s my = understanding. I install these pre-built dtb=E2=80=99s into the boot/msdos/overlays = directory and I then try to enable uart3 with =E2=80=98dtoverlay=3Duart3=E2= =80=99 in config.txt. I can see after boot that there is an additional = ttyu1 and cuau1 but, Neither of these functions. Using vmstat -I I see no interrupts = generated for uart3 when I open the ttyu1 or cuau1 with =E2=80=9Ccu = -l=E2=80=9D. Also, when I write data to the device file, the write = blocks. =20 Using =E2=80=98watch=E2=80=99 on /dev/ttyu1, I see no data read ever. I = have a GPS card wired up to uart3 and I do not see the NMEA data there = but when I change out the SD card and boot into Debian, uart3 works = fine. So, I=E2=80=99m thinking there may be an issue with the pre-built = dtb=E2=80=99s and am trying to make changes to = ./sys/contrib/device-tree/src/arm/bcm2711.dtsi to troubleshoot uart3. = I=E2=80=99m a newbie to raspberry pi and device tree overlays. I do not know how to compile my changes and build a new uart3.dtbo and = am unable to find any documentation on this. I was wondering if someone = could help me out with this task? Thanks John Rushford=