From nobody Mon Oct 11 16:32:11 2021 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 882D11807CDE for ; Mon, 11 Oct 2021 16:32:18 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HSkpn3z6pz3rXn for ; Mon, 11 Oct 2021 16:32:17 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 19BGWCAI098630 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 11 Oct 2021 09:32:12 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 19BGWC9K098629 for freebsd-arm@freebsd.org; Mon, 11 Oct 2021 09:32:12 -0700 (PDT) (envelope-from fbsd) Date: Mon, 11 Oct 2021 09:32:11 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Oddities on Pi4 under -current Message-ID: <20211011163211.GA98507@www.zefox.net> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4HSkpn3z6pz3rXn X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [0.81 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[zefox.net]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_LONG(0.84)[0.839]; NEURAL_HAM_MEDIUM(-0.93)[-0.928]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N Recently a Pi4 running -current has been disconnecting certain ssh connections and is also slow initially responding to pings and ssh login attempts. The disconnects seem to happen only when the ssh session is used to establish a cu or tip connection to a usb-serial adapter, in this case a TTL232R. In either case the ssh/cu combination seems to exit, but no obvious error is reported beyond, for example, packet_write_wait: Connection to 192.168.1.11 port 22: Broken pipe at the originating end. The last log mention of the device appears to be sometime in the middle of the night: Oct 11 03:17:04 nemesis kernel: genet0: link state changed to DOWN Oct 11 03:17:04 nemesis kernel: genet0: link state changed to UP Oct 11 03:17:04 nemesis kernel: ums0 on uhub2 Oct 11 03:17:04 nemesis kernel: ums0: on usbus0 Oct 11 03:17:04 nemesis kernel: ums0: 3 buttons and [XYZ] coordinates ID=0 Oct 11 03:17:04 nemesis kernel: uftdi0 on uhub2 Oct 11 03:17:04 nemesis kernel: uftdi0: on usbus0 Oct 10 20:24:46 nemesis su[1323]: BAD SU bob to root on /dev/pts/0 Oct 10 20:24:53 nemesis su[1325]: bob to root on /dev/pts/0 Oct 10 23:28:27 nemesis su[1569]: bob to root on /dev/pts/1 Half a dozen other ssh connections from the originating host remain up to both the Pi4 and various Pi2 and Pi3 boxes. Only sessions involving the usb serial adapter seem affected. The slow response to ssh login appeared only in the past week or so. It isn't entirely reproducible, usually happening after idle time. The delay isn't more then five or ten seconds, but very noticeable. A ping after ~ 30 minutes idle time looks like this: bob@raspberrypi:~ $ ping 192.168.1.11 PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data 64 bytes from 192.168.1.11: icmp_seq=1 ttl=64 time=5022 ms 64 bytes from 192.168.1.11: icmp_seq=2 ttl=64 time=4004 ms 64 bytes from 192.168.1.11: icmp_seq=3 ttl=64 time=2964 ms 64 bytes from 192.168.1.11: icmp_seq=4 ttl=64 time=1925 ms 64 bytes from 192.168.1.11: icmp_seq=5 ttl=64 time=885 ms 64 bytes from 192.168.1.11: icmp_seq=6 ttl=64 time=3.49 ms 64 bytes from 192.168.1.11: icmp_seq=7 ttl=64 time=2.31 ms 64 bytes from 192.168.1.11: icmp_seq=8 ttl=64 time=2.15 ms 64 bytes from 192.168.1.11: icmp_seq=9 ttl=64 time=2.17 ms --- 192.168.1.11 ping statistics --- 9 packets transmitted, 9 received, 0% packet loss, time 151ms rtt min/avg/max/mdev = 2.151/1645.587/5021.971/1830.554 ms bob@raspberrypi:~ $ Pings to other hosts in my cluster do not exhibit the large initial delay, suggesting it isn't a network property. Any suggestions of things to check would be welcome. Thanks for reading, bob prohaska From nobody Mon Oct 11 22:33:49 2021 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 20E2617F7141 for ; Mon, 11 Oct 2021 22:33:57 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HStr42ghyz3tQt for ; Mon, 11 Oct 2021 22:33:56 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pj1-x1030.google.com with SMTP id lk8-20020a17090b33c800b001a0a284fcc2so479336pjb.2 for ; Mon, 11 Oct 2021 15:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=dw0T7Ywn8SRtokDNNUa0dkXlFYMTv92p6Vy8ZxNjj2E=; b=LGEDxiLoXon/G+1olmpRtA3WSvbgzcNS0wzUr40JeOPG0HWjO3ruK8qmOfwOoq8W3M oPvd0uV9MxBKqdJJ2ukOQ3r0WJrd7/WIpu098ZnRkar4goa6KJbtpm43u04phFpAhsqI WhXlsiI3vMjvmNFvqQx5LSbQNbLbOgZWXys84/Kpm1PjY1SoucLbUVqA3ZJWojTe8NT5 /aRaqcVQUAKsSOLcuQqutUCA8ochPYseJsZmJFrbsh5IlaVQD93UWatfZJhNdDi3ClD7 WTQ42eE4FOHP4Q0YQenGEVXcJZVqxwjM8Pv3j/J3Comxg2ueUrupPoiH8ID45aMFrdW2 Fx9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dw0T7Ywn8SRtokDNNUa0dkXlFYMTv92p6Vy8ZxNjj2E=; b=2Y/wZH4V1AMPEjFZssRq+4hMSSH0D9iuTFvCPM2urAXxSy+cF1KQv80fJTjg6uPAal FYjRdvyb8sv7VwBwWfw8i9pLFvkgLI5dCT/BAdK2BwWiteYvSQhhWbEtwScFrjLLSaC3 VEtcwqReZQ5UwrOsBNI0JfXMHEKDIM2h9VLhtln0vHfRx3npfIxjRrxqDlJr7/r+krZd x2EBGY2NCUJ3q+Xd6emFROynQFDdKdGOUj7DblpaZ36JVxoPkxncLEyCfICOpv3sEVfq iGU4Uhn/MuoXWnemD5u3rI3cDX6F42X1QRkDCwRY7d0A89NCgHBhHTgLDQJjxlBnW4WB n+cA== X-Gm-Message-State: AOAM532u0xPsLsZFq7qcM7EpH8VMhkeFRuPLBp9qYextX6THsajUdRm6 pwLvdB4bCNhXUH3eh2Nei0JbEGnZpbqLvQ== X-Google-Smtp-Source: ABdhPJyO80ancMgDSgiBOnjA4Ziv51zSGS6/VTMTGSE8D2UPxjFYv9VbPeN8fQrseILh4kHcSq6QpQ== X-Received: by 2002:a17:90a:fa2:: with SMTP id 31mr1788880pjz.175.1633991635265; Mon, 11 Oct 2021 15:33:55 -0700 (PDT) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id c64sm3344129pga.40.2021.10.11.15.33.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Oct 2021 15:33:54 -0700 (PDT) Subject: Re: Oddities on Pi4 under -current To: freebsd-arm@freebsd.org References: <20211011163211.GA98507@www.zefox.net> From: MJ Message-ID: Date: Tue, 12 Oct 2021 09:33:49 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 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 In-Reply-To: <20211011163211.GA98507@www.zefox.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HStr42ghyz3tQt X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=LGEDxiLo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.97 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.97)[-0.971]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1030:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On 12/10/2021 3:32 am, bob prohaska wrote: > The slow response to ssh login appeared only in the past week or so. > It isn't entirely reproducible, usually happening after idle time. > The delay isn't more then five or ten seconds, but very noticeable. > > A ping after ~ 30 minutes idle time looks like this: > bob@raspberrypi:~ $ ping 192.168.1.11 > PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data > 64 bytes from 192.168.1.11: icmp_seq=1 ttl=64 time=5022 ms > 64 bytes from 192.168.1.11: icmp_seq=2 ttl=64 time=4004 ms > 64 bytes from 192.168.1.11: icmp_seq=3 ttl=64 time=2964 ms > 64 bytes from 192.168.1.11: icmp_seq=4 ttl=64 time=1925 ms > 64 bytes from 192.168.1.11: icmp_seq=5 ttl=64 time=885 ms > 64 bytes from 192.168.1.11: icmp_seq=6 ttl=64 time=3.49 ms > 64 bytes from 192.168.1.11: icmp_seq=7 ttl=64 time=2.31 ms > 64 bytes from 192.168.1.11: icmp_seq=8 ttl=64 time=2.15 ms > 64 bytes from 192.168.1.11: icmp_seq=9 ttl=64 time=2.17 ms > --- 192.168.1.11 ping statistics --- > 9 packets transmitted, 9 received, 0% packet loss, time 151ms > rtt min/avg/max/mdev = 2.151/1645.587/5021.971/1830.554 ms > bob@raspberrypi:~ $ The RPI4 has green-mode on idle. If your switch supports it, then it's activated. This might account for some delay, but that looks a little too large what you've reported. Maybe someone else with an RPI4 could provide a confirmation? Reference: https://forums.raspberrypi.com/viewtopic.php?t=257144#p1569652 Cheers M. From nobody Tue Oct 12 00:56:41 2021 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 EB979180E17E for ; Tue, 12 Oct 2021 00:56:41 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HSy0n4sbmz3GM9 for ; Tue, 12 Oct 2021 00:56:41 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 19C0ufeC099785 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 11 Oct 2021 17:56:42 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 19C0ufnt099784; Mon, 11 Oct 2021 17:56:41 -0700 (PDT) (envelope-from fbsd) Date: Mon, 11 Oct 2021 17:56:41 -0700 From: bob prohaska To: MJ Cc: freebsd-arm@freebsd.org Subject: Re: Oddities on Pi4 under -current Message-ID: <20211012005641.GA99640@www.zefox.net> References: <20211011163211.GA98507@www.zefox.net> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4HSy0n4sbmz3GM9 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Oct 12, 2021 at 09:33:49AM +1100, MJ wrote: > > > On 12/10/2021 3:32 am, bob prohaska wrote: > > > The slow response to ssh login appeared only in the past week or so. > > It isn't entirely reproducible, usually happening after idle time. > > The delay isn't more then five or ten seconds, but very noticeable. > > [ping session omitted] > The RPI4 has green-mode on idle. If your switch supports it, then it's activated. This might account for some delay, but that looks a little too large what you've reported. Maybe someone else with an RPI4 could provide a confirmation? > > Reference: https://forums.raspberrypi.com/viewtopic.php?t=257144#p1569652 > A power conservation feature seems a likely culprit, if one has been newly added or turned on. The delayed response appeared after a world/kernel update, I think about two weeks ago. I didn't make any manual config changes. Dropped ssh sessions have been a problem for a while now, but this seems noticeably worse. Right now there are two ssh sessions open between my desktop machine (Pi4 running WiFi on RaspiOS) and the Pi4 running -current. One is interactive, and has been up all day. The other is used to run a tip session to the serial console of a Pi2. That usually drops within half a day leaving a stale lock on the device file. At other times there have been four or more ssh connections to the offending Pi4, only the one running the serial connection seems to be affected. There are quite a few links in the chain: USB-serial adapter, wired ethernet, router, WiFi and finally the RaspiOS workstation. The only link associated with the trouble is the USB-serial adapter. Thanks for reading, and any hints where to look for the trouble. bob prohaska From nobody Tue Oct 12 01:11:26 2021 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 B004112DEE3E for ; Tue, 12 Oct 2021 01:11:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.gq1.yahoo.com (sonic302-20.consmr.mail.gq1.yahoo.com [98.137.68.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HSyL24B9Vz3Lhq for ; Tue, 12 Oct 2021 01:11:38 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634001091; bh=ICjTyFxlKvNKc3/d4MMZAehZPZ+LNRgNpB8G3bwnobE=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=DO/qXFCPqoVEWHuDD343SbA5EzZ2jygv09IMifzu6rw/xphIQyVk4mj6IH3RDytOxH5qiGXJC9Pi0WEzMHxFZf+X+RlFyts1qNNUXAH+WstWqumVF4p2+IvNm9uwdrm8ueKWfBfTXI0H9gMjqDFKqjaNpbSzMpOj52kxIyqk6lPS7vEsRaKwDGxMTUgmOUOhKk3AVozESZJkeDLG8ASlL4YNW2zZIP3biBUmLcH1LJrhq1KSYTOyh2tktffcj0LLlhHfCvfN0668Ldvibgeog8KQM3b4bjItJjfBzYJZHyOckWgdf5v1Phx53v3b3MH3app7lM7xa/B3y5sCGF36Ag== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634001091; bh=yRYJYjpL6dWQrImarUQoeKNg7JHOHvFTVNDbdvBGIEe=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=iQksubGQ7jlASaWTonyZ7jKvxWRLg1BWNOBHvetM0tsctimv+AVoleqEvFE4hx+cjuMxEDJ0rFb5NSVPL8crvQJL3+xUG7FshG1wbsuIXolVQ1MFjij3s5BfOLK9JoJO8MGCxou+nMcVMPSkH0Dmq1yKB81WpCj3zWN7+dJJzHULpi5iLejnMNoY781idFYYkYsgOF9Z0XOSJzrVvU8rU2l7R5Ua/HbI93b33nCLncYYgDvsQ3KLBCzgDj56Ea9eSGamWBQcXne95N5VKLKhgcI+9eC6U1zcbkNA8Kr/H014QOqIppwM5rzjmGH/apBruV4abYkNfOFlvhvIZ5g90Q== X-YMail-OSG: 6PZM_xwVM1lVkHmG7VRO0b2cMkFYoCT8WzQWAh4juxMZ_6E4L4EDrY2nTuF0Dnx EEMXQGsa_IzBBJ.xOTRKrK9hvyqwVTvZCfGAoSgXKQVteqiPrtvIirLjBonCkednNuNXH8a6gtJD tnhii6BUfWuyjKEdiCJU2E0ZlGD2OsaPYIt6uGk1wvOKfYPXcTUnukbksKXrqnckfA1UgYNWjFjH qklSSKoiL5m2e8TJG1ed9mBv9UbhvJXn692fUPUCrtwjoTseW7mEw2DEKOZXfUcDFffH30suCMlN UAXnPiq4L0rjSDDx9JBTr0.f_z2I._l7TyBEwdCDqeAIJenynSVGpuWW_diAhnNPIvzoZIZThDN. a3rWK.23IRD13pLFRqBIPjAdu9y4YJMHpLpiR7vBSDWaSxBH1KRWfT4EtjFaJlVgDU29Ji9J2C0K QqwfVrQqZth5_WrOLwwUZDYY16orQ2ynLTmbLH8qwkIKajq_Igh8wmkYqR31NQlDe4aKmZP3iLX0 wU_00bX0SSsSFGTeZqHcvUAcn9YHz3M7pFC8YGjogvhuhs9lFVnWIaqW6_rbnhAmNp36qV.KtTdh x6FQYyMLdjRDL5xs8ZnFgcvfrfNC5DBrTIVgO1HIrXN6GBrSWRYkwqQ2qyeqSPZoGtNd2L_08Vr. poz_5EUHPo5x14aFBDx_JNRmmUhHeqizpvVPm_L4369jYbGHO3k.cTYF1.QPP1WOCSqz5GQQKK9x NhmtHgXKxhrna.b6nu2UaTJHn1QXNNE_IjavbyPOSc812TABdsl8IxZ2.WRUtHO0bwi9YSwCNwXY 2LpgGfN8npz0MJvyybmlQxtNBX5b_hzAwQOjq05WIL6q7YK1UuhXNXAOehPbW_.IZx7EufEsno_c 4TW.UuX0ak9UZxEO.zUfgui9DshzmCVEXHISqz8t9XARCDJ_EAb4Q_bJN9ALfixWjCUPPgTvM.Sj fXmuOkbv_UZRtFE1XoudT2bUQz62pyziYjNZKFm7DnQc41siTMi64FT3puw_7cR69lbXMkYq8Qux iGqr6eDGw0vRpNicZMDqh990qlLtmleaBz8y8NtQREk4gDh8OZS1HcrOBK.3wulaZhe7_OnGC9WM Ao90fjgclNTFPz.SeQJYVmaVs3egFf5qKOszeiLX9ZWgY90BZOIQNUaDhEaULqSXHMKQE2v..S3q 5rUWtGZhqDaAJAbCAR1QQbvdQOQSwN3pXO91t7un08lbA9FwIUvoJ84ghsHuRYJzWdNaJlBQOTE4 .DUyFPePep9Fa4Mm_s5zen7eyyoHQAcEqkcFWVimyz0CKaE4KEsMuypWQqZZaNkeeXHMxm7F.H75 fzMvvvMsgUIaOoEobwoSW69MphdD..fNeCf.BtOjgPKBTy9DoFJy1cyJXOvYRdZqtN9_rKVC9kEG 2d6ZQoeAvp2FpyQrc1PhLo3CWyZDk2DGHRn2QiqDW.jN1KfvMVRzLrl4FwANqm7YqqCKl2O94zm6 T7MUSvAsSahFUPfl3DhMNARUo4cZOKG3xpMPHwi0ECL0_ouot.YZQgvGYbh2UdQ_if5JYUjhaT0r iIwqD1SgI3dYFlk6Xe.VtzVrpEdlNYCaePSsXnAnjtNZ.rbH4f6BOvCISa9GHs4L12ybJ2fcmDSW WttWKO8cbX9Xs6SH1RxIneDOyw3RCyAXfGWwG7ioK3oIrxNv3.T.tJZMYyRvhNoXeDqFM4l5eQgH iA8itGCGK0ya7cazeBm46F6fYWJ3klu9qMeHYUGK9DGYpdw9__8w1yavb9_LPb2vVHXggWAE_JZf gnJ0F0wuBpsBx12rHFfeusqb2O._56OrprA2cKrzhPHUtALX3FOGm_gM0IGd92s8Xa2_a5s_ONXE X6ilwDSSTXDwQsyON4WNeLlE_vpYuZ01qlct.icH96uOmMoWySOFOORRljhDH9uGtjGolyt1SsPF 8v96_kCVuJOgCKujmnwpiilYR3uv8deB0cbNrHxurO4TbKHoQ.xzSsxk348Fc6hR04e49Uvw4mLl 9nnfj4BJiWx_bgS_l7YEob_E28g8bdydKWUpSc0l4o9N0P.bZNjh8QzT.hNyZXBGJY0LWGCyJtxT FCrxBiU94hcaXsQdzNc1atDWl6MyoFqdlxOX3ZiLfjGKjpwheZyMu06v9mqFV9SoTLsjUdIYHyEp LJX1zuQeAfa2QUSK7LhTXvCfuyrc._XWC4ZPTyt1E7_lxhhOSdxy33ScSxTrvxqCwOIewKIBvDVW s2VMMYsjrkWdBFH2jOfW_wn5CXo9rzGWeq33EH_G.tcV7 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Tue, 12 Oct 2021 01:11:31 +0000 Received: by kubenode528.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f335e29d007d0f7f37e0aabe87a96415; Tue, 12 Oct 2021 01:11:27 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 14.0 \(3654.120.0.1.13\)) Subject: After updating main (so: 14) Orange Pi+ 2E panicked: ucom_cons_softc "'Translation Fault (L2)' on read" while typing first command after login Message-Id: Date: Mon, 11 Oct 2021 18:11:26 -0700 To: Free BSD , freebsd-current X-Mailer: Apple Mail (2.3654.120.0.1.13) References: X-Rspamd-Queue-Id: 4HSyL24B9Vz3Lhq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="DO/qXFCP"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.49 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.146:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.146:from] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N I did not even get a chance to finish typing a command after login for the fist boot after updating: Fatal kernel mode data abort: 'Translation Fault (L2)' on read trapframe: 0xe18d6998 FSR=3D00000007, FAR=3Dfffffff4, spsr=3Da0000013 r0 =3D00000001, r1 =3D00000000, r2 =3D00000000, r3 =3D00000000 r4 =3Dd8ce7100, r5 =3D000007d0, r6 =3D90001010, r7 =3D00000000 r8 =3Dc08dfc10, r9 =3D00000001, r10=3Dc08dfc1c, r11=3De18d6aa8 r12=3De18d69e0, ssp=3De18d6a28, slr=3De18d6a28, pc =3De18d6a4c panic: Fatal abort cpuid =3D 0 time =3D 1633999791 KDB: stack backtrace: db_trace_self() at db_trace_self pc =3D 0xc062ef7c lr =3D 0xc007eb58 = (db_trace_self_wrapper+0x30) sp =3D 0xe18d6770 fp =3D 0xe18d6888 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc =3D 0xc007eb58 lr =3D 0xc030ee04 (vpanic+0x17c) sp =3D 0xe18d6890 fp =3D 0xe18d68b0 r4 =3D 0x00000100 r5 =3D 0x00000000 r6 =3D 0xc07cac38 r7 =3D 0xc0941d68 vpanic() at vpanic+0x17c pc =3D 0xc030ee04 lr =3D 0xc030ec88 (vpanic) sp =3D 0xe18d68b8 fp =3D 0xe18d68bc r4 =3D 0xe18d6998 r5 =3D 0x00000013 r6 =3D 0xfffffff4 r7 =3D 0x00000007 r8 =3D 0x00000007 r9 =3D 0xda5e9000 r10 =3D 0xfffffff4 vpanic() at vpanic pc =3D 0xc030ec88 lr =3D 0xc0652f68 (abort_align) sp =3D 0xe18d68c4 fp =3D 0xe18d68f0 r4 =3D 0x00000007 r5 =3D 0x00000007 r6 =3D 0xda5e9000 r7 =3D 0xfffffff4 r8 =3D 0xe18d68bc r9 =3D 0xc030ec88 r10 =3D 0xe18d68c4 abort_align() at abort_align pc =3D 0xc0652f68 lr =3D 0xc0652a90 (abort_handler+0x2a8) sp =3D 0xe18d68f8 fp =3D 0xe18d6990 r4 =3D 0x00000013 r5 =3D 0xfffffff4 abort_handler() at abort_handler+0x2a8 pc =3D 0xc0652a90 lr =3D 0xc063191c (exception_exit) sp =3D 0xe18d6998 fp =3D 0xe18d6aa8 r4 =3D 0xd8ce7100 r5 =3D 0x000007d0 r6 =3D 0x90001010 r7 =3D 0x00000000 r8 =3D 0xc08dfc10 r9 =3D 0x00000001 r10 =3D 0xc08dfc1c exception_exit() at exception_exit pc =3D 0xc063191c lr =3D 0xe18d6a28 (0xe18d6a28) sp =3D 0xe18d6a28 fp =3D 0xe18d6aa8 r0 =3D 0x00000001 r1 =3D 0x00000000 r2 =3D 0x00000000 r3 =3D 0x00000000 r4 =3D 0xd8ce7100 r5 =3D 0x000007d0 r6 =3D 0x90001010 r7 =3D 0x00000000 r8 =3D 0xc08dfc10 r9 =3D 0x00000001 r10 =3D 0xc08dfc1c r12 =3D 0xe18d69e0 ucom_cons_softc() at 0xe18d6a4c pc =3D 0xe18d6a4c lr =3D 0xe18d6a28 (0xe18d6a28) sp =3D 0xe18d6a28 fp =3D 0xe18d6aa8 KDB: enter: panic [ thread pid 894 tid 100135 ] Stopped at kdb_enter+0x58: ldrb r15, [r15, r15, ror r15]! db> It is not reliably repeatable. Unsure if I can get a repeat at all. There is this "mixer" oddity for each boot: Feeding entropy: . mixer: 75:75: no such device mixer: 75:75: no such device mixer: 75:75: no such device mixer: 25:25: no such device mixer: 75:75: no such device mixer: 75:75: no such device mixer: =3Drec: no such device lo0: link state changed to UP (in case that matters for some reason). For reference: # uname -apKU FreeBSD OPiP2E_RPi2v11 14.0-CURRENT FreeBSD 14.0-CURRENT #10 = main-n249978-032448cd2c52-dirty: Sat Oct 9 02:11:35 PDT 2021 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA7-nodbg-clang/usr/main-src/arm.a= rmv7/sys/GENERIC-NODBG-CA7 arm armv7 1400036 1400036 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From nobody Tue Oct 12 08:43:45 2021 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 901CD17F8535; Tue, 12 Oct 2021 08:44:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4HT8N439m4z3Q3x; Tue, 12 Oct 2021 08:44:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 6C2FA260245; Tue, 12 Oct 2021 10:43:57 +0200 (CEST) Subject: Re: After updating main (so: 14) Orange Pi+ 2E panicked: ucom_cons_softc "'Translation Fault (L2)' on read" while typing first command after login To: marklmi@yahoo.com, Free BSD , freebsd-current References: From: Hans Petter Selasky Message-ID: Date: Tue, 12 Oct 2021 10:43:45 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HT8N439m4z3Q3x X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N On 10/12/21 3:11 AM, Mark Millard via freebsd-arm wrote: > There is this "mixer" oddity for each boot: > > Feeding entropy: . > mixer: 75:75: no such device > mixer: 75:75: no such device > mixer: 75:75: no such device > mixer: 25:25: no such device > mixer: 75:75: no such device > mixer: 75:75: no such device > mixer: =rec: no such device > lo0: link state changed to UP > > (in case that matters for some reason). Hi, Add this script to /etc/rc.d/ and you'll be fine from now on. https://cgit.freebsd.org/src/tree/libexec/rc/rc.d/mixer Then run: service mixer stop && service mixer start And the problem should go away. See "git: 903873ce1560 - main - Implement and use new mixer(3) library for FreeBSD" --HPS From nobody Tue Oct 12 15:08:31 2021 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 3FA5D17E67B1 for ; Tue, 12 Oct 2021 15:08:34 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HTJvj47kFz3RFd for ; Tue, 12 Oct 2021 15:08:33 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 72F0C5C00E3 for ; Tue, 12 Oct 2021 11:08:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 12 Oct 2021 11:08:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=X18aJUDyA+wJUWh9oIPJY6baRat TzEAVt8lBy9B1ep8=; b=xgfKEBZS8hFMPqFRWNGrNiFeNti5grxPVs6xOx1DDyb 1RxjQ9xhbI62HCu4Ocak8w1ZspsXdePcoK6a/8nCf/+D4ckJwSPRcgzu76r6L8fA 3uDu5rFzdUW9AEMDvakTvVB+U/RWdhAyR+PB4Hb02fyrGQuwUKFst/xcuQhcUkBC wK9539SpIj2nmYhe8hJ1bZ3C9hczKqG+JXPJ+CLECFxD8hzSJnuNqbIQryjWrM4s E+x0qVW79hZdRm4/j2+uL2HyRdHBEJvlYV6bvLiJx3I1SscFiakT7y5vbUf+bXrb Ab4KUuk9QTJLe9eohyWODEbT1Xg1izErhIviRoFIiUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=X18aJU DyA+wJUWh9oIPJY6baRatTzEAVt8lBy9B1ep8=; b=VPZQFBeBVAhmA9BnuSJ+Y/ SLtwsZvpJYkzHxKabSMY0BFnsPsT73SpJoLIt7JOqckaLjDxUKQrSBTfV1UAz0vd F/qvd1IFyvUXj7UTiol/RaF2ZKcqOtuA6A3JlAdnQW/2BEcxPuIEN7wPYWNYw18P Rrf3VTGICzx+wDUWSsXf48lt3tyqCrY6nPRBLZUNQNFzn4cyw5Pv1UarJ2GC/odC NpFEuyjOFkPmobWJ/BXblJ4valE6IwWJ+8AEIRPi+1Bda1YZlW9ZtGI/6OUL69B5 1UJwtIEodcqqBmUnYdyQGOqR/z5xgS+cEhfkJx8oDpbBQO2hcNJaMyYGviQVLr5A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtkedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomhepthgvtghhqdhlihhsthhsuceothgvtghhqdhlihhsthhsseii hiigshhtrdhnvghtqeenucggtffrrghtthgvrhhnpeeftdefieeitdduueduvdduhffhte egudeihfdvledvueffudelgfdvhfeijeefhfenucffohhmrghinhepughofihnrdhinhen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtvggthh dqlhhishhtshesiiihgihsthdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 12 Oct 2021 11:08:33 -0400 (EDT) Date: Tue, 12 Oct 2021 16:08:31 +0100 From: tech-lists To: freebsd-arm@freebsd.org Subject: Re: Oddities on Pi4 under -current Message-ID: Mail-Followup-To: freebsd-arm@freebsd.org References: <20211011163211.GA98507@www.zefox.net> <20211012005641.GA99640@www.zefox.net> 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 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kw8dVrXPSXixk43i" Content-Disposition: inline In-Reply-To: <20211012005641.GA99640@www.zefox.net> X-Rspamd-Queue-Id: 4HTJvj47kFz3RFd X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm3 header.b=xgfKEBZS; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=VPZQFBeB; dmarc=none; spf=none (mx1.freebsd.org: domain of tech-lists@zyxst.net has no SPF policy when checking 66.111.4.28) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-6.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.28:from]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.0.0/20, country:US]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm3,messagingengine.com:s=fm1]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[zyxst.net]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; DBL_PROHIBIT(0.00)[0.0.0.0:email]; R_SPF_NA(0.00)[no SPF record] X-ThisMailContainsUnwantedMimeParts: N --Kw8dVrXPSXixk43i Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Mon, Oct 11, 2021 at 05:56:41PM -0700, bob prohaska wrote: >A power conservation feature seems a likely culprit, if one has been >newly added or turned on. > >The delayed response appeared after a world/kernel update, I think about >two weeks ago. I didn't make any manual config changes. Dropped ssh sessio= ns >have been a problem for a while now, but this seems noticeably worse. ** this rpi4 has aluminium case heatsink and recommended-by-rpi PSU. My rpi4/8GB has the following in /etc/rc.conf [...] powerd_enable=3D"YES" powerd_flags=3D"-r 1" [...] means it'd only shift down if use was 0.00 IIUC. So in practice it never shifts down. in /boot/msdos/config.txt : [...] over_voltage=3D8 arm_freq=3D2147 sdram_freq_min=3D3200 [...] results in: [...] % sysctl dev.cpu.0 dev.cpu.0.temperature: 72.0C dev.cpu.0.freq_levels: 2100/-1 600/-1 dev.cpu.0.freq: 2100 dev.cpu.0.%parent: cpulist0 dev.cpu.0.%pnpinfo: name=3Dcpu@0 compat=3Darm,cortex-a72 dev.cpu.0.%location: dev.cpu.0.%driver: cpu dev.cpu.0.%desc: Open Firmware CPU at the time of writing: % uptime 4:01p.m. up 16 days, 3:10, 5 users, load averages: 4.49, 6.47, 4.68 because it's running a poudriere build. ssh never times out. It's running stable/13-n245223-af8d48ac4b8 built 15th Sept. --=20 J. --Kw8dVrXPSXixk43i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmFlpOYACgkQs8o7QhFz NAXpaQ//ZEcdNDEL0l90IaOSlxkdv5lGRtq/xL08xJvx8iaF7Yh+pZD/Rd8S5ISX IYRqmGS3v0NVbUd02m85abLHBYaPUvqrOXRBa4MPug1DV7GM4LCfO8o50+zmkfWd PzQ2FgRRauDlUXbMDYxrJpw2IVSIak68vi6Hzp5Vq1AgOpPSLzmZS8j6FE78U/XH Fl7CyJeCvsUr0ZgOc/n1A6mp46tN5kUqPkmXC0qa2Lz/YhXdk5v4lrGFUd7NlGEh RLyxmlTGiT7zJkes1MXAoTOyH3TE2/8PuBQaG03Cu7t15NuYr0Z8a1TVxebi8jS1 j0f8LqVwe+Pq1PXvxT6oQb2TuvB4V3zKSChYSPnFs3dj9uW6+ZR0nu94HFXNCWxI tCqfivUT9fECgnZmyksUmy4Iaw8nX6ezhvr4okEzcYhWQLP7EGna5uWs5lWJ6lJZ 1iFHeAc4fqOFe7FlCn0QtPOquEjee+0Vmvmie1R4SogAmmjQGnuXFDtcUbsHgWUt haGZTedZKvhbinjZ6lbjtfCxXLCIahFlgj5vA8QAb/1S5UK3H8mVTAq9zvkbxf09 /ex7LTt0PkBQvLt62B/Idl/W8HND79R4CCk1GW4P1kgiLhajotgCmMyzB3XCKEaq Ui55Uc+EZbhGsIiq3/cLqNRXoUcDGwoh5itIvJ/oJt0vvvxUe2c= =3sS1 -----END PGP SIGNATURE----- --Kw8dVrXPSXixk43i-- From nobody Tue Oct 12 18:33:50 2021 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 897331804DD5 for ; Tue, 12 Oct 2021 18:33:57 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HTPSh3wSjz3sKT for ; Tue, 12 Oct 2021 18:33:56 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 19CIXpec002592 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Tue, 12 Oct 2021 11:33:51 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 19CIXpCW002591 for freebsd-arm@freebsd.org; Tue, 12 Oct 2021 11:33:51 -0700 (PDT) (envelope-from fbsd) Date: Tue, 12 Oct 2021 11:33:50 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Re: Oddities on Pi4 under -current Message-ID: <20211012183350.GA2046@www.zefox.net> References: <20211011163211.GA98507@www.zefox.net> <20211012005641.GA99640@www.zefox.net> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4HTPSh3wSjz3sKT X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [1.37 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[zefox.net]; NEURAL_HAM_SHORT(-0.12)[-0.120]; NEURAL_SPAM_LONG(0.53)[0.531]; NEURAL_HAM_MEDIUM(-0.94)[-0.943]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Oct 12, 2021 at 04:08:31PM +0100, tech-lists wrote: > > On Mon, Oct 11, 2021 at 05:56:41PM -0700, bob prohaska wrote: > > A power conservation feature seems a likely culprit, if one has been > > newly added or turned on. > > > > The delayed response appeared after a world/kernel update, I think about > > two weeks ago. I didn't make any manual config changes. Dropped ssh sessions > > have been a problem for a while now, but this seems noticeably worse. > > ** this rpi4 has aluminium case heatsink and recommended-by-rpi PSU. Mine has a plastic case with a ~1" fan, no heatsinks installed, and a Canakit power supply. > > My rpi4/8GB has the following in /etc/rc.conf > [...] > powerd_enable="YES" Same here. > powerd_flags="-r 1" No flags for powerd > [...] > > means it'd only shift down if use was 0.00 IIUC. So in practice it never > shifts down. > > in /boot/msdos/config.txt : > [...] > over_voltage=8 > arm_freq=2147 > sdram_freq_min=3200 No such changes > [...] > > results in: > [...] > % sysctl dev.cpu.0 > dev.cpu.0.temperature: 72.0C > dev.cpu.0.freq_levels: 2100/-1 600/-1 > dev.cpu.0.freq: 2100 I get bob@nemesis:~ % sysctl dev.cpu.0 dev.cpu.0.temperature: 43.1C dev.cpu.0.freq_levels: 1500/-1 600/-1 dev.cpu.0.freq: 1500 > > at the time of writing: > % uptime > 4:01p.m. up 16 days, 3:10, 5 users, load averages: 4.49, 6.47, 4.68 > > because it's running a poudriere build. > Mine just started a poudriere build of www/firefox. It'll heat up some, but probably stay below 60 C. Uptime hasn't been a problem. > ssh never times out. It's running stable/13-n245223-af8d48ac4b8 built > 15th Sept. I'm dealing with -current built October 10th. Most ssh connections to the machine remain connected just fine. It's just those communicating with the usb-serial adapter that tend to break off. Thanks for writing, bob prohaska From nobody Tue Oct 12 19:36:36 2021 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 C7ED017F500B for ; Tue, 12 Oct 2021 19:36:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-22.consmr.mail.gq1.yahoo.com (sonic302-22.consmr.mail.gq1.yahoo.com [98.137.68.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HTQsF3ZJgz4ghR for ; Tue, 12 Oct 2021 19:36:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634067402; bh=h5C7I8LCAcw5Q4tEf0GHCCzPXTDoAElXQo57LM/SV8Q=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=dyM8Olg+WNwd2QHISUWqTwBU4IwfXLZOEEetCE6tDVB2V2vtGeJhFKNesGGa6YTGZuXeWd34AqvzOfB8+ZwFk71mEobWf1AoyW+H0elSJw/Wy1A6yNahMCjDLvP4OSS5r7oMc7GL4Ybgb0Jok+1XmQ3J4t4GUjK3LMrtcSHWbQC+k2W577Qy1pXlitMJap3yX86auw0xVMqN+VasUXz0Tw965LZzIg5IoY128lH/vYcOKUUCsrKuKOcFMRmuBTHZl7rkV7WT74ghrseZW4DiwYMvEbXuIxenvKe9a5X4cVBqeI3Mm+eoTDC+HKIBoQ5ISWEjmxdw6r3wO6Nhr3oc2w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634067402; bh=5wMbPGyxCIAXoiBWepl2aw8BJKqZTh1Dl0B6muUXFLG=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=UdGmI8rBdohkBe5V+d6LsSECUo+OW4tNHmFYhEpOHDooevd369fkRaIWoivkEsLHOcgJKy/WH7KR7VMHzZCF1ckuJ7x2AsX4gDtnVWZvRCVvYEPx0GJtgClTwsOhlrAXOOieV0kC1oAZxCt+bdn+87qtP35WAepVjCS8ViGL0Ok7rUkkWsGG66Z7T2P6v+g9DdrTBa74nBKlP4IdZf1HTM0GVjqYIpsAoBYIH6QtRtnOVprBL6fNRlsSAc1sgelV11G5NXNUfo2FjMCHmzqTcWhPaUTi0xxe5P8nhrGOeqyb9kOYSEDUq/7HYo5vmlRGLF1Ht+v91ElQ/AxLVBSy/Q== X-YMail-OSG: .SJ6O6oVM1kgznPnQCxITgMWyE90m9AnjWRFvy9FGYp4wTnacH8PPL9x8bHe7ld t80vOmrMyYy4vt1Vdv63QEp66zVkf5ppeCiyd48HlewzOMca7kOsrrewMPANdAf.QFPv3u0LMrzM rTsUkXLXvDeXGjhVDzmUjkM3IIZC6bSynmImKJIV9JWpKf4l9GUGZvkFUWyF6DEefjQsjckBJRNI yLzEBcT3XdQfN7A78GCJy3JwY5czz.4aOHC_03EmtxuMQsiUjSDwkVhm_MPDFWR3usiQNoRxwCuF t6MAlM1sLD0fFOQUL8zbWe12YkNhzn5NFsST5PISKIRVl2NH0AH2Z6GIR0_elU.nWC9b8OPARo0a O9rbJPGe9NTW8eiNjOZq01n.B.WrnHlJp0LDu1XfSFnwRaJ2UIpujMaBzwPgF8bpwyBQgoxJJWBP r1.Peic6taipAttYv2szzHF5Z0IDf3FJbiRI32I3BARb2sVJsO2r.tJ1tIk7HpMBV_EK62e00afZ HL1R_1FXR0H0CI5UzJudWNdcVnkc1oK66aEJCIcT05SDpgD2w6ArmDnjUipSKpS1M1J5cr4UkfMC r4bv3IUIQcRdR.NtyHzTvOGy6Xy_SivYH3mc.KqXcP5QFb.5ojSfaa8A06Vq5bD3wJXBRb9eiCmJ kWXj1iGLdUUOT5dIvRvI9lRUvLo9AV8DGBL9Ec8BZYRmTvOk2inpNy_yquH.GFw1njNT7AitnITC TDi5Taz3.KzWSqdLF42XSs_OX7lmRZMiID5ShGYHv9zwFsDqVr6rh8e75znTu9R9lsuXZvcYoBe_ kYu8rnINWt1ZRPNJEAZ1HK8NlCH8FU1vU1PvLOTmZ_zC0CSMwc8Z7pqfu.q39Vt9h_ba9k.wytrv 9FJguQS5La3XX1N.vPeu7TBgvNM_Tr4QjI7kTZT8kwPrKvP49DDn0zoAN1JTx0SCRO2.1sWFFwFv rhl04g9GvpydIFHULX5yXS5I9uD3c5W0l3sxAOcP8a.DQe17TxEAmULUxEjAE_DWU2Sobra8BWwG wOGQKqLfz5.5uC0sYC.46.mk3M2uUzAfWtoDf9A0HCejYqUA58_QiBiCZRUEjVo8WX9dbzHadigY Njg8jkePGlRV_GYobbX.QS3fA6t..CSxLfSfD0j88ksTnLrcwWq3Wf7lA0wWnIA_wSp0rVmU5Trq uMCgTvOIUdCmDsZq81hQoU6WnfjMHl6CQdFonv_XuBHLIxu6V2D_No_0oa1Yv9cU6PqdM71EiFF0 4uyriq00QVY4PE9VCHlnDW8MtL_JvUOAG3d67efPrU1kya61dFHiZH_tYHqiEKuMuWpmBVTWKkQf B09PseOwt7v_YpRhNRmFaYVfr.pG2N4VCpU16odOZBcm56gRNzoj8DTRC6SHUi5uAyAyKr0iGdF. e4SHHBw25sIToY8ZGYTpC.5cl.vSEzzFVkITjVdvib._lxfiGnwaBqi2KUMRlaqZ12nRx_UR31_v gQnwXHwaGOCeITE3NCJCNpRD_2FcDc1O.4nEgr0f1ceT18pYj6s2q.wcODnWZ5uoenPCeuUMueeI lBzqEiBJ_WBUr4.3g1S688VKNA4evqeQpDEJY6XTOVa83yHnjL01sXbyZQBR60kIH27IkzXyRFw2 VcwZTB3QIPZJfMvS1U9QIijZGrB3G0M1PZoKDL2RPhrCrur1LPpQTBRLO7_9g3md.FIhQllXXW2J MvlCLzT0MG.yCBWS952RotQMwlH1wSyYu7XVr7T9.vspuCLHxqjPlvuX84ELKwR5RxnqPLYq3zfY NND7viEficNAOYK1LEnnqPwwdyPtFE4F1OJ7NsE4mQ5Qd4nLpnIKYZqHFTtpK95NhlVTWyn5ZZJc jdMldXfnDztHZ.ELLJX4Prb49N9g0d7Z9GwK_Mo2P0EiYH0hFAUXONvV70qou8x4tN.NiseQgxzX D_Lw._Drz56EVaL0DiXraPA.3jhtrntRansr7ZCAJagb0tVi0zGHaDNMFkbA61R.LcTYguIhMugB Do2dEIuuZigLSv0jhHmSzBhWmjODrLtmGVQl.f_uM_yYvdBfn5bUSHg9P40U5l47VvAcx76KgU4N jbponX9EgRXjeHsaKPKGQ4Cbeyl.3iVRPV9Z4BWAWWTzd1TRJZ.DL.27nWWqJk87Oc9BfQF0.CTQ pHofAbn5wwIMCBGJQ9EvHFUG4ifWcSMpw.Ujmiak4auZmyQ06K2tpJlos4F1upk26TXRXdKVwGbZ GwNEmp1neLCH8_H0CW8WFqC0AYxjNnuworO7NfrHa0u5tpShxJtnQz5yUC8KfGRKnf7o_fq56DqZ oaJnuWhpyntbx_2J2Skzaw1Ty_WAushLvqtvg4HGeHMrgWZL__VB9qev81EHN9hWxgFEu X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Tue, 12 Oct 2021 19:36:42 +0000 Received: by kubenode520.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b60da538148605756499374c12b210c8; Tue, 12 Oct 2021 19:36:37 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 14.0 \(3654.120.0.1.13\)) Subject: Re: After updating main (so: 14) Orange Pi+ 2E panicked: ucom_cons_softc "'Translation Fault (L2)' on read" while typing first command after login In-Reply-To: Date: Tue, 12 Oct 2021 12:36:36 -0700 Cc: Free BSD , freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Hans Petter Selasky X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4HTQsF3ZJgz4ghR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Oct-12, at 01:43, Hans Petter Selasky = wrote: > On 10/12/21 3:11 AM, Mark Millard via freebsd-arm wrote: >> There is this "mixer" oddity for each boot: >> Feeding entropy: . >> mixer: 75:75: no such device >> mixer: 75:75: no such device >> mixer: 75:75: no such device >> mixer: 25:25: no such device >> mixer: 75:75: no such device >> mixer: 75:75: no such device >> mixer: =3Drec: no such device >> lo0: link state changed to UP >> (in case that matters for some reason). >=20 > Hi, >=20 > Add this script to /etc/rc.d/ and you'll be fine from now on. > https://cgit.freebsd.org/src/tree/libexec/rc/rc.d/mixer >=20 > Then run: > service mixer stop && service mixer start >=20 > And the problem should go away. >=20 > See "git: 903873ce1560 - main - Implement and use new mixer(3) library = for FreeBSD" Copying /usr/main-src/libexec/rc/rc.d/mixer and then doing the stop/start sequence made the boot messages go away. Thanks. (I've never done anything explicit with mixer or such. The default installation must have involved it, despite this file not being put in place by the update.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From nobody Fri Oct 15 04:41:57 2021 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 F2B48180E9A7 for ; Fri, 15 Oct 2021 04:42:23 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4HVtsn0mC1z4b6F for ; Fri, 15 Oct 2021 04:42:21 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id CD500112505 for ; Fri, 15 Oct 2021 11:42:10 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= selector1; t=1634272930; x=1636087331; bh=qWI7n9zY2CVUnYJkSHdBeH RavzQMiQVXbY1Vb6TDkvo=; b=fVTf6g0QJJlxdQtDSludczfOitU6E1bRKOLe88 8VCHxuqoc7uBDREZyu09fiVASkfo+ObrDq6Zc10wbfId8yHSe7x3/HQhoINA3x1W vamnrbAoXmWcgVSiH3bsVF6uXwqndj5RBuKX7Ege2jj+OK/3Qlw+Dx+2hQESg+G8 1PINA= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WwchPDMwauWn for ; Fri, 15 Oct 2021 11:42:10 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 3D5CA112502 for ; Fri, 15 Oct 2021 11:42:10 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 19F4fvxU093092; Fri, 15 Oct 2021 11:41:57 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: freebsd-arm@freebsd.org Subject: Patching a kernel on RPi Date: Fri, 15 Oct 2021 11:41:57 +0700 Message-ID: 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 Content-Type: text/plain X-Rspamd-Queue-Id: 4HVtsn0mC1z4b6F X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b=fVTf6g0Q; dmarc=pass (policy=none) header.from=cs.ait.ac.th; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th X-Spamd-Result: default: False [-4.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-ThisMailContainsUnwantedMimeParts: N Hi, I am trying to work on a Raspberry Pi with FreeBSD for the first time. One thing I need it enabling interrupts on GPIO. I have found the patch to applied, but I am not fully sure how to recompile the kernel and install the new kernel on RPi. I understand that the disk/boot organisation is not really the same as with another arcitecture and would prefer to not do something that would make the system unbootable. TIA, Olivier -- From nobody Fri Oct 15 04:52:52 2021 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 E8B8E1812AD1 for ; Fri, 15 Oct 2021 04:52:57 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HVv611DXVz4d9v for ; Fri, 15 Oct 2021 04:52:57 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x629.google.com with SMTP id t11so5639838plq.11 for ; Thu, 14 Oct 2021 21:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=0QfpHBrJg6kGEWQcJP6Rn76rwgwJFtXmSxnjUxSMcyI=; b=pYVpRnpTejkh0+/DYqNqd0eCrnzdOLuvU9TyWL16Ec40VNEnQfMskM9mXW3J1jc3DA 7adrvRZUhbMbaobor8e0/Gj+5kG7YXr16WHJKgl7IyzXky04cL2YkxXRX4KUq+gatDHp AYsh7KfQn+9Shc31N9LekjXe2/+bk5NxA2rZvXLK95TGVmo0ygNDJ8SNcSsp6L4nrNsV y/tkYPgW9EkJTk2ouoTj1uCFB62asgZkJXUEu1Cp2GpS0VMYx3+Hw5fF+LEh6IWuFUd0 SFenRTanxgf2yiiTQWWG78kiFMytwDC43z/BxUV8N0ZYgYbZDVzkZiiZY1zV4eMu1kxq t4jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0QfpHBrJg6kGEWQcJP6Rn76rwgwJFtXmSxnjUxSMcyI=; b=pS6NNFHVqMt4Q1lDrs0sB8eRIa0He08XWOmr3841I0KnEI9mjDmhu2y3IalaS6jf4c f4CX1jdb6bVup+Kz039MgsE729GBoYA7SKBuLMAMRQB/bmchvjlWLf1Hv+DtP0RvMBaw 1b79nkI5xs5h++tj+sZjbVnRzybjjSyWpcck2wGo6Rcbkn6ht3GPtvxW0omxNHwJxh++ 7nmf7mTdTD4f7q1TPYyVpjQVPnH5mGY2KsaqNipfZkZwFxc+3CejBaRPnzEOemwGdzPN dnk5FEUKy9GHYWitys7fM9sT+GrsHUWk4YTMdq4tZNjnhi13EHFFIQY0XrgttueG5F9C McMA== X-Gm-Message-State: AOAM531CjbunZdhp39xkoQy8DSb1aGtx6QksIY4xkMqvf94EtgsWoutS hMBG3253gbGiEXLeC94yWiiVZEBWbX1tiQ== X-Google-Smtp-Source: ABdhPJwj879jvCffL/CgxflACLzhwe7vpu92xAUObJZAriFKJbkuXsqDehPaD87uy3b0wH/W/FCfUA== X-Received: by 2002:a17:902:7e4b:b0:13d:c03f:5946 with SMTP id a11-20020a1709027e4b00b0013dc03f5946mr8997779pln.4.1634273576041; Thu, 14 Oct 2021 21:52:56 -0700 (PDT) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id z4sm3808795pfb.107.2021.10.14.21.52.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Oct 2021 21:52:55 -0700 (PDT) Subject: Re: Patching a kernel on RPi To: freebsd-arm@freebsd.org References: From: MJ Message-ID: Date: Fri, 15 Oct 2021 15:52:52 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HVv611DXVz4d9v X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=pYVpRnpT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-2.78 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-0.87)[-0.873]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.984]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::629:from]; NEURAL_SPAM_SHORT(0.08)[0.080]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On 15/10/2021 3:41 pm, Olivier wrote: > Hi, > > I am trying to work on a Raspberry Pi with FreeBSD for the first time. > > One thing I need it enabling interrupts on GPIO. I have found the patch > to applied, but I am not fully sure how to recompile the kernel and > install the new kernel on RPi. > > I understand that the disk/boot organisation is not really the same as > with another arcitecture and would prefer to not do something that would > make the system unbootable. > > TIA, > > Olivier > Hi Olivier, The same way you compile a kernel on an AMD64 is how you do it on an ARM64. IFF that is all you want to do is have a new kernel. In which case, there's no need to modify booting etc. This information can be readily found in the handbook. If, however, you want to make an image that you can burn onto an uSD card, then crochet is a good place to start: https://github.com/freebsd/crochet. This approach will be faster than building a kernel on an RPI (assuming you have an AMD64 machine running FreeBSD, that is). Cheers Matt. From nobody Fri Oct 15 14:53:35 2021 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 6D21E1809D9D for ; Fri, 15 Oct 2021 14:53:45 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound5b.ore.mailhop.org (outbound5b.ore.mailhop.org [54.190.72.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4HW8RF10RDz3Dvk for ; Fri, 15 Oct 2021 14:53:45 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1634309618; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=I0mrknf2rIy4PcbTGdMc9Y6RoCF9G4IbpkH30e3aZPhWn6mBheQXGp0fRPHT/aZ2RZcrBYZDrX1OE TrLpXgiuno9U/buXcMwqQenLrbLmo6XYbC0yJcln1IkNSgwhiWUEa6UnarEauvFLIhXCjDuu0aMYvo EmFAct03WgLpunkhUqwANvuR/2KppQ4WYSjVb9BkARNIYCNDqzrMiRbp4UfTrQHd/szpZAal9QgWQ7 Ju5SMEFeaUfCgD/T1QiXbTyASzzpdV75p1+9aO4zKqmCKBeps3WR2fDiMwLT2vxfVC3qJgL5NFIM5g RJ1GSYOGkcWMytModDLWdgCky0lpmWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=ZVQb8vl5+TpvVXVI9J6l2HB9wwAW2yuRvbqLXZeWuNM=; b=n0WEuE+3aFKEBq6BIAH1ojDC1dyg6TAlZCGyrXHgzxjgYtNIKV7ngSOQqs/vENoLBHd8PphTkXUzk XR77DDRMv2UY4Z4k1wDOetIT6UkhYGN5p36B/JLzy7m1LZNVW/1wDmIhKQndebZTT+zqGFsXdGS3OU cGUsgxjFYOLY1j0niQWavOxilubCV0m1hzms7ag+7h7iJx5VLPzyXqAGTLC/fRQlaVAeV3ZJn+6LFL 9TIQnUjy0D1W+/zMi+bb3LcI3KcgkuCWJNJdHaJt20zYQkxD60egRYN29irVRhakuyLfIR7ZJJGjuP tKH7IiESHWwDEmf2qnBTqNAQuCgcHWg== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=24.8.225.114; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=ZVQb8vl5+TpvVXVI9J6l2HB9wwAW2yuRvbqLXZeWuNM=; b=LGTxpOPEaVpe6c454i3dzEQi5tWgk511GjTLq1t2nu+/mlIv+htyIg9u92arXdmJqzEU4yPGwDrRl 69XGrrJRXXzhi80+vRVVwayhm0Y4mip3jVcek1uvXH8IsefEmU/oG0jmu9HCMDcLFVTtPY9ga6cDJ+ ZdkjxGnFQD58m3dsdaGE09EEIK8W35hLKQ+gV52LsI2RdduDsDcjBeUh/3gvVs2KoifJi7f3DweB9H DFj30liAP8kLqQSIO62a7+zKbizt3kR2rEqg1iYT9H72sEvJLFOLroyVgpB048ZU1F/TBrbe/hEbAO YXqtMuXq5/q53V4y+nkM/rxDWdQhbMg== X-Originating-IP: 24.8.225.114 X-MHO-RoutePath: aGlwcGll X-MHO-User: ac45f96b-2dc7-11ec-9d09-bf9d68d023b6 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-24-8-225-114.hsd1.co.comcast.net [24.8.225.114]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id ac45f96b-2dc7-11ec-9d09-bf9d68d023b6; Fri, 15 Oct 2021 14:53:37 +0000 (UTC) Received: from [172.22.42.84] (rev2.hippie.lan [172.22.42.84]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 19FErZ7m055150; Fri, 15 Oct 2021 08:53:35 -0600 (MDT) (envelope-from ian@freebsd.org) X-Authentication-Warning: paranoia.hippie.lan: Host rev2.hippie.lan [172.22.42.84] claimed to be [172.22.42.84] Message-ID: <842857e232438ab4734e2e6100473451f99ef967.camel@freebsd.org> Subject: Re: Patching a kernel on RPi From: Ian Lepore To: Olivier , freebsd-arm@freebsd.org Date: Fri, 15 Oct 2021 08:53:35 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ASCII" User-Agent: Evolution 3.40.3 FreeBSD GNOME Team 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 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HW8RF10RDz3Dvk X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 2021-10-15 at 11:41 +0700, Olivier wrote: > Hi, > > I am trying to work on a Raspberry Pi with FreeBSD for the first > time. > > One thing I need it enabling interrupts on GPIO. I have found the > patch > to applied, but I am not fully sure how to recompile the kernel and > install the new kernel on RPi. > > I understand that the disk/boot organisation is not really the same > as > with another arcitecture and would prefer to not do something that > would > make the system unbootable. > > TIA, > > Olivier There is no need to patch and recompile the kernel to use gpio interrupts on RPi. The native RPi gpio driver supports interrupts. -- Ian From nobody Fri Oct 15 14:57:22 2021 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 5F34A180C558 for ; Fri, 15 Oct 2021 14:57:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HW8WQ27pHz3GWP for ; Fri, 15 Oct 2021 14:57:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 255A025D for ; Fri, 15 Oct 2021 14:57:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 19FEvMvd087789 for ; Fri, 15 Oct 2021 14:57:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19FEvMU5087788 for freebsd-arm@FreeBSD.org; Fri, 15 Oct 2021 14:57:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 259187] Use of thumb NEON instructions in thread causes SIGILL Date: Fri, 15 Oct 2021 14:57:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fuz@fuz.su X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259187 Bug ID: 259187 Summary: Use of thumb NEON instructions in thread causes SIGILL Product: Base System Version: 13.0-RELEASE Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: fuz@fuz.su CC: cognet@FreeBSD.org Flags: mfc-stable13?, mfc-stable12? The following program crashes with a SIGILL on armv7 FreeBSD 13.0-RELEASE. = It does not crash in an armv7 jail on arm64 FreeBSD and does not crash when compiled without -mthumb. #include #include void *a(void *x) { (void)x; struct { int b[4]; } c =3D c; return (NULL); } int main() { pthread_t d; pthread_create(&d, NULL, a, NULL); pthread_join(d, NULL); } Save the program in a file name min.c, then type cc -mthumb min.c -lpthread && ./a.out to reproduce. The assembly code for function a() looks as follows: 00020754 : 20754: b086 sub sp, #24 20756: 9005 str r0, [sp, #20] 20758: 4668 mov r0, sp 2075a: f960 0a8f vld1.32 {d16-d17}, [r0] 2075e: f940 0acf vst1.64 {d16-d17}, [r0] 20762: 2000 movs r0, #0 20764: b006 add sp, #24 20766: 4770 bx lr The program crashes at address 2075a at the vld1.32 instruction. When compiled for ARM mode, the same instruction is used but no crash occur= s.=20 I do not understand what causes this issue. It also does not seem to happen when executing the function a() without usi= ng a separate thread. I've used a Raspberry Pi 3B (Cortex-A7) to find this issue. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sat Oct 16 10:04:25 2021 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 8A105180B250 for ; Sat, 16 Oct 2021 10:04:52 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4HWdzP3L4bz3Q9f for ; Sat, 16 Oct 2021 10:04:49 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 058CC112502 for ; Sat, 16 Oct 2021 17:04:38 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1634378677; x=1636193078; bh=w42Xb0ygF Fdasn3dcr0jrtCKfdAUXQ3gDSjiVnpahlg=; b=fbZLCapXCQA7pH7TwazovbGm+ L9qn0N5NWjSOcZv/3lCGzG31HQpatXR3bvG04Gmpq+AkFPkZo2DLyEnIWqZwrbsO dqCUllJW6MklHNR7/RiOl1WzRRVvSWkgVAw4HuHWV+qwpwNwayCWR/uWM/I4jtdP NZEhwh9fe3nTTgCgUI= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BCLegQjsTgXv for ; Sat, 16 Oct 2021 17:04:37 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 608AE112501 for ; Sat, 16 Oct 2021 17:04:37 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 19GA4PZE061604; Sat, 16 Oct 2021 17:04:25 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: freebsd-arm@freebsd.org Subject: Re: Patching a kernel on RPi In-Reply-To: <842857e232438ab4734e2e6100473451f99ef967.camel@freebsd.org> (message from Ian Lepore on Fri, 15 Oct 2021 08:53:35 -0600) Date: Sat, 16 Oct 2021 17:04:25 +0700 Message-ID: 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 Content-Type: text/plain X-Rspamd-Queue-Id: 4HWdzP3L4bz3Q9f X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b=fbZLCapX; dmarc=pass (policy=none) header.from=cs.ait.ac.th; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th X-Spamd-Result: default: False [-2.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-ThisMailContainsUnwantedMimeParts: N Ian Lepore writes: > On Fri, 2021-10-15 at 11:41 +0700, Olivier wrote: >> Hi, >> >> I am trying to work on a Raspberry Pi with FreeBSD for the first >> time. >> >> One thing I need it enabling interrupts on GPIO. I have found the >> patch >> to applied, but I am not fully sure how to recompile the kernel and >> install the new kernel on RPi. >> >> I understand that the disk/boot organisation is not really the same >> as >> with another arcitecture and would prefer to not do something that >> would >> make the system unbootable. >> >> TIA, >> >> Olivier > > There is no need to patch and recompile the kernel to use gpio > interrupts on RPi. The native RPi gpio driver supports interrupts. Is that for FreeBSD 12.2 or 13? From all information I could find, it said that kernel 12.2 needs patch. Thank you, Olivier From nobody Sat Oct 16 19:51:54 2021 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 F2C1417F9CFC for ; Sat, 16 Oct 2021 19:52:09 +0000 (UTC) (envelope-from ticso@cicely18.cicely.de) Received: from raven.bwct.de (raven.bwct.de [IPv6:2a02:21e0:16e0:fe::101:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HWv150CR5z4nWY for ; Sat, 16 Oct 2021 19:52:08 +0000 (UTC) (envelope-from ticso@cicely18.cicely.de) Received: from mail.cicely.de (mail.cicely.de [IPv6:2a02:21e0:16e0:20fe:0:0:101:c]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id 19GJpvDJ095673 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL) for ; Sat, 16 Oct 2021 21:51:59 +0200 (CEST) (envelope-from ticso@cicely18.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1634413919; bh=a5WyVyA2CKTEuXACd8MSgGogOdxR7PH9alBRMGM3Zmk=; h=Date:From:To:Cc:Subject:Reply-To; b=OIqWiiV352KubgwAm0MV8JTZS65Qcf4+AAiDdqxVOoJhi07+NtD6AstVIS4WnBNmw 8Ohx5K3i4vhCKWEx47K/EV7DsZvmD8DMeT4FB+uU+BoMBbYJDVOBhcw0/T0nJiDQTT j+oEhZTfCtq6zZqVge85HEj8EOsRpmzZss0GiynU= Received: from cicely18.cicely.de (cicely18.cicely.de [10.177.1.50]) by mail.cicely.de (8.16.1/8.16.1) with ESMTPS id 19GJpsDI022869 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL); Sat, 16 Oct 2021 21:51:55 +0200 (CEST) (envelope-from ticso@cicely18.cicely.de) Received: from cicely18.cicely.de (localhost [127.0.0.1]) by cicely18.cicely.de (8.16.1/8.16.1) with ESMTPS id 19GJpsxb004369 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 16 Oct 2021 21:51:54 +0200 (CEST) (envelope-from ticso@cicely18.cicely.de) Received: (from ticso@localhost) by cicely18.cicely.de (8.16.1/8.16.1/Submit) id 19GJps7v004368; Sat, 16 Oct 2021 21:51:54 +0200 (CEST) (envelope-from ticso) Date: Sat, 16 Oct 2021 21:51:54 +0200 From: Bernd Walter To: freebsd-arm@freebsd.org Cc: Bernd Walter Subject: X11 on Pi 4 Message-ID: Reply-To: ticso@cicely.de 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely18.cicely.de 13.0-RELEASE-p4 amd64 X-Spam-Status: No, score=-1.9 required=4.5 tests=BAYES_00=-1.9,SPF_HELO_NONE=0.001,SPF_NONE=0.001 autolearn=ham autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on spamd.cicely.de X-Rspamd-Queue-Id: 4HWv150CR5z4nWY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=OIqWiiV3; dmarc=none; spf=none (mx1.freebsd.org: domain of ticso@cicely18.cicely.de has no SPF policy when checking 2a02:21e0:16e0:fe::101:1) smtp.mailfrom=ticso@cicely18.cicely.de X-Spamd-Result: default: False [-3.00 / 15.00]; HAS_REPLYTO(0.00)[ticso@cicely.de]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; FREEFALL_USER(0.00)[ticso]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[cicely.de]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[ticso@cicely7.cicely.de,ticso@cicely18.cicely.de]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:44700, ipnet:2a02:21e0::/32, country:DE]; FROM_NEQ_ENVFROM(0.00)[ticso@cicely7.cicely.de,ticso@cicely18.cicely.de]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I'm trying to get X11 runing on the Pi4. So far I don't get a signal on the screen. I'd tried both HDMI ports. FreeBSD mentions: VT(efifb): resolution 592x448 ... fb0: on simplebus0 fb0: keeping existing fb bpp of 32 fbd0 on fb0 WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 14.0. VT: Replacing driver "efifb" with new "fb". fb0: 592x448(592x448@0,0) 32bpp fb0: fbswap: 1, pitch 2368, base 0x3eaf5000, screen_size 1060864 On a Pi3B with the same screen: VT(efifb): resolution 1280x800 ... fb0: on simplebus0 fbd0 on fb0 VT: Replacing driver "efifb" with new "fb". fb0: 1280x800(1280x800@0,0) 24bpp fb0: fbswap: 1, pitch 3840, base 0x3e90c000, screen_size 3072000 Is there some kind of initialisation missing from u-boot? I noticed that raspbian on the Pi4 also leave the screen disabled until X starts. Unfortunately starting X on FreeBSD doesn't change anything. -- B.Walter https://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From nobody Sat Oct 16 20:04:03 2021 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 DFCB417FF84A for ; Sat, 16 Oct 2021 20:04:09 +0000 (UTC) (envelope-from ticso@cicely18.cicely.de) Received: from raven.bwct.de (raven.bwct.de [IPv6:2a02:21e0:16e0:fe::101:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HWvGx3bNgz4rh0 for ; Sat, 16 Oct 2021 20:04:09 +0000 (UTC) (envelope-from ticso@cicely18.cicely.de) Received: from mail.cicely.de (mail.cicely.de [IPv6:2a02:21e0:16e0:20fe:0:0:101:c]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id 19GK45xh097248 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL) for ; Sat, 16 Oct 2021 22:04:08 +0200 (CEST) (envelope-from ticso@cicely18.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1634414648; bh=TYDxluS083Q10JR6kfRQdsYe/l/NA/yirQLnQe0zd+U=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=XsP0TNhJiSSXPNuvBUdEG1y41lwR/lio0wXWM1xRQES5i20mO917nOjln/o3oGJbC MzdnepFn5j/0EgVKAzry0di7ETuj9NYKPoVKksSb8mmmfE4Je39dYXz+NKKQk50yiY hWAlZu/ZTHMWjhKEsHEif1d+fCRKyIinTONtikIc= Received: from cicely18.cicely.de (cicely18.cicely.de [10.177.1.50]) by mail.cicely.de (8.16.1/8.16.1) with ESMTPS id 19GK43f0023365 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL); Sat, 16 Oct 2021 22:04:04 +0200 (CEST) (envelope-from ticso@cicely18.cicely.de) Received: from cicely18.cicely.de (localhost [127.0.0.1]) by cicely18.cicely.de (8.16.1/8.16.1) with ESMTPS id 19GK43OP004534 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 16 Oct 2021 22:04:03 +0200 (CEST) (envelope-from ticso@cicely18.cicely.de) Received: (from ticso@localhost) by cicely18.cicely.de (8.16.1/8.16.1/Submit) id 19GK43CW004533; Sat, 16 Oct 2021 22:04:03 +0200 (CEST) (envelope-from ticso) Date: Sat, 16 Oct 2021 22:04:03 +0200 From: Bernd Walter To: ticso@cicely.de Cc: freebsd-arm@freebsd.org, Bernd Walter Subject: Re: X11 on Pi 4 Message-ID: Reply-To: ticso@cicely.de References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely18.cicely.de 13.0-RELEASE-p4 amd64 X-Spam-Status: No, score=-1.9 required=4.5 tests=BAYES_00=-1.9,SPF_HELO_NONE=0.001,SPF_NONE=0.001 autolearn=ham autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on spamd.cicely.de X-Rspamd-Queue-Id: 4HWvGx3bNgz4rh0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sat, Oct 16, 2021 at 09:51:54PM +0200, Bernd Walter wrote: > I'm trying to get X11 runing on the Pi4. > So far I don't get a signal on the screen. > I'd tried both HDMI ports. > FreeBSD mentions: > VT(efifb): resolution 592x448 > ... > fb0: on simplebus0 > fb0: keeping existing fb bpp of 32 > fbd0 on fb0 > WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 14.0. > VT: Replacing driver "efifb" with new "fb". > fb0: 592x448(592x448@0,0) 32bpp > fb0: fbswap: 1, pitch 2368, base 0x3eaf5000, screen_size 1060864 Ok, there was hdmi_safe=1, now I see the resultion. However, the screen still has no signal. > Is there some kind of initialisation missing from u-boot? > I noticed that raspbian on the Pi4 also leave the screen disabled > until X starts. > Unfortunately starting X on FreeBSD doesn't change anything. -- B.Walter https://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From nobody Sat Oct 16 21:24:56 2021 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 10BDE1801B2A for ; Sat, 16 Oct 2021 21:25:10 +0000 (UTC) (envelope-from carlj@peak.org) Received: from smtp.email-protect.gosecure.net (smtp.email-protect.gosecure.net [208.80.203.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.email-protect.gosecure.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HWx4N6j1kz3FLV for ; Sat, 16 Oct 2021 21:25:08 +0000 (UTC) (envelope-from carlj@peak.org) Received: from envoy14.neonova.net ([137.118.58.100]) by smtp.email-protect.gosecure.net ({770115aa-f1b1-11eb-87ca-11230400d9b0}) via TCP (outbound) with ESMTP id 20211016212501434_00003548 for ; Sat, 16 Oct 2021 14:25:01 -0700 X-RC-FROM: X-RC-RCPT: Received: from bay.localnet (unknown [199.58.99.76]) (Authenticated sender: carlj@peak.org) by envoy14.neonova.net (Postfix) with ESMTPA id 4HWx493WxFz9tLP for ; Sat, 16 Oct 2021 17:24:57 -0400 (EDT) Received: from carlj by bay.localnet with local (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mbrAm-0005lo-75 for freebsd-arm@freebsd.org; Sat, 16 Oct 2021 14:24:56 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: X11 on Pi 4 References: Date: Sat, 16 Oct 2021 14:24:56 -0700 In-Reply-To: (Bernd Walter's message of "Sat, 16 Oct 2021 22:04:03 +0200") Message-ID: <86r1ckbr2v.fsf@bay.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix) 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 Content-Type: text/plain X-MAG-OUTBOUND: greymail.email-protect.gosecure.net@137.118.58.100/32 X-Rspamd-Queue-Id: 4HWx4N6j1kz3FLV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 208.80.203.2 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-3.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:208.80.200.0/21]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:14618, ipnet:208.80.202.0/23, country:US]; MIME_TRACE(0.00)[0:+] X-ThisMailContainsUnwantedMimeParts: N Bernd Walter writes: > On Sat, Oct 16, 2021 at 09:51:54PM +0200, Bernd Walter wrote: >> I'm trying to get X11 runing on the Pi4. >> So far I don't get a signal on the screen. >> I'd tried both HDMI ports. >> FreeBSD mentions: >> VT(efifb): resolution 592x448 >> ... >> fb0: on simplebus0 >> fb0: keeping existing fb bpp of 32 >> fbd0 on fb0 >> WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 14.0. >> VT: Replacing driver "efifb" with new "fb". >> fb0: 592x448(592x448@0,0) 32bpp >> fb0: fbswap: 1, pitch 2368, base 0x3eaf5000, screen_size 1060864 > > Ok, there was hdmi_safe=1, now I see the resultion. > However, the screen still has no signal. > >> Is there some kind of initialisation missing from u-boot? >> I noticed that raspbian on the Pi4 also leave the screen disabled >> until X starts. >> Unfortunately starting X on FreeBSD doesn't change anything. I don't know if this is your problem, but FreeBSD doesn't seem to initialize HDMI unless it connects to a monitor at boot. That means that you have to have a monitor plugged in when it boots up, and the monitor has to be turned on. If you boot up without a monitor plugged in, then I don't know any way to turn the HDMI output on, other than rebooting. -- Carl Johnson carlj@peak.org From nobody Sun Oct 17 09:04:22 2021 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 BED5D17FB198 for ; Sun, 17 Oct 2021 09:04:31 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [IPv6:2a02:21e0:16e0:fe::101:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HXDbM4DGbz3MtZ for ; Sun, 17 Oct 2021 09:04:31 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de (mail.cicely.de [IPv6:2a02:21e0:16e0:20fe:0:0:101:c]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id 19H94PAD013695 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL); Sun, 17 Oct 2021 11:04:28 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1634461468; bh=IHefhpwoo9SGHXEkcbskFtTnV2bL0t0UhnAkL/rZZtM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=fzoofUI+cNcRKq9vs2/e7cpnTm34OhIAKak3A1IBJrOmnZzLwXJr4s8x5NvJhVT1O 3BbqMZsI5x4EYsGeKa8A9TADO9eOE5fR3uHY9fOXqwsoIGsYvWOX6juj6aJyU5+iNh L0/tBRcduH+jYMTY3QFumrD8fQ6VADwyj8OLKOpE= Received: from cicely7.cicely.de (c7-old.cicely.de [IPv6:2a02:21e0:16e0:20fe:0:0:101:d]) by mail.cicely.de (8.16.1/8.16.1) with ESMTPS id 19H94O5U049024 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 17 Oct 2021 11:04:24 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.16.1/8.16.1) with ESMTP id 19H94Olg056362; Sun, 17 Oct 2021 11:04:24 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.16.1/8.16.1/Submit) id 19H94MRX056361; Sun, 17 Oct 2021 11:04:22 +0200 (CEST) (envelope-from ticso) Date: Sun, 17 Oct 2021 11:04:22 +0200 From: Bernd Walter To: Carl Johnson Cc: freebsd-arm@freebsd.org Subject: Re: X11 on Pi 4 Message-ID: Reply-To: ticso@cicely.de References: <86r1ckbr2v.fsf@bay.localnet> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86r1ckbr2v.fsf@bay.localnet> X-Operating-System: FreeBSD cicely7.cicely.de 13.0-RELEASE-p3 amd64 X-Spam-Status: No, score=-1.5 required=4.5 tests=BAYES_00=-1.9,KHOP_HELO_FCRDNS=0.398,SPF_HELO_NONE=0.001,SPF_NONE=0.001 autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on spamd.cicely.de X-Rspamd-Queue-Id: 4HXDbM4DGbz3MtZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sat, Oct 16, 2021 at 02:24:56PM -0700, Carl Johnson wrote: > Bernd Walter writes: > > > On Sat, Oct 16, 2021 at 09:51:54PM +0200, Bernd Walter wrote: > >> I'm trying to get X11 runing on the Pi4. > >> So far I don't get a signal on the screen. > >> I'd tried both HDMI ports. > >> FreeBSD mentions: > >> VT(efifb): resolution 592x448 > >> ... > >> fb0: on simplebus0 > >> fb0: keeping existing fb bpp of 32 > >> fbd0 on fb0 > >> WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 14.0. > >> VT: Replacing driver "efifb" with new "fb". > >> fb0: 592x448(592x448@0,0) 32bpp > >> fb0: fbswap: 1, pitch 2368, base 0x3eaf5000, screen_size 1060864 > > > > Ok, there was hdmi_safe=1, now I see the resultion. > > However, the screen still has no signal. > > > >> Is there some kind of initialisation missing from u-boot? > >> I noticed that raspbian on the Pi4 also leave the screen disabled > >> until X starts. > >> Unfortunately starting X on FreeBSD doesn't change anything. > > I don't know if this is your problem, but FreeBSD doesn't seem to > initialize HDMI unless it connects to a monitor at boot. That means > that you have to have a monitor plugged in when it boots up, and the > monitor has to be turned on. If you boot up without a monitor plugged > in, then I don't know any way to turn the HDMI output on, other than > rebooting. I had it connected (tried both ports) and powered. On the Pi3B it works fine with the same display. Will try some other displays soon and do some more tests with raspbian. As I wrote, with raspbian the display also didn't show anything until X got up. -- B.Walter https://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From nobody Sun Oct 17 21:00:32 2021 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 4D6581807A37 for ; Sun, 17 Oct 2021 21:00:33 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HXXTY0Rkqz4SyP for ; Sun, 17 Oct 2021 21:00:32 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9465F140D7 for ; Sun, 17 Oct 2021 21:00:32 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 19HL0Wrl070570 for ; Sun, 17 Oct 2021 21:00:32 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19HL0WC1070569 for freebsd-arm@FreeBSD.org; Sun, 17 Oct 2021 21:00:32 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202110172100.19HL0WC1070569@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: freebsd-arm@FreeBSD.org Subject: Problem reports for freebsd-arm@FreeBSD.org that need special attention Date: Sun, 17 Oct 2021 21:00:32 +0000 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 Content-Type: multipart/alternative; boundary="16345044324.bD51.69093" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: Y --16345044324.bD51.69093 Date: Sun, 17 Oct 2021 21:00:32 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 238576 | Raspberry Pi 3B+ "shutdown -p" does not shut off Open | 239673 | Spurious Interrupt message from /dev/led/led1 Open | 257670 | mpr(4): SAS3008 PCI-Express Fusion-MPT SAS-3: Fat 3 problems total for which you should take action. --16345044324.bD51.69093--