From nobody Mon Mar 14 14:12:49 2022 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 F0A7F1A1FF78 for ; Mon, 14 Mar 2022 14:12:59 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 4KHJQz26C3z3M0j for ; Mon, 14 Mar 2022 14:12:59 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ej1-x62a.google.com with SMTP id r13so34279478ejd.5 for ; Mon, 14 Mar 2022 07:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JmA2OsGUBh3MnaLn89X7w4PX42sqifHdYV9oLlQ3N+E=; b=jprLdG5i5DWiRsbEVcK7s2VLe9BZ2GUpWtH9nlyfM8Z+bbwzoZZZrK/PYoVe1PMZb3 aOppJO0j6Rmfv2+EsF5HrVOkcMySD/AHVfxzQdKkbo3EUdSboA+lUjTKPytMF/gu3T7r tmCsnlMb+mmFrG3LVB3iX0lWNg2DHrWanG2cnJm04v+qIpsYUa890K9AAZoPmR0UNoxs fMxEdsgqpbWGUZEaONpxW6OzDD7WhuacOG2IsVgKsBpG1/lh8Aiv7ylIluZ5NyrJxxYq X3BU6iOlAnxtn6WyusloTfUFl1dGe/mXyC8AdIEc8OS+UsBs5UtOUByz7E5bUh5us6+D h8Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JmA2OsGUBh3MnaLn89X7w4PX42sqifHdYV9oLlQ3N+E=; b=wBW3gB4AKDUA2cABmhldoNM3A4D+DjJFneXJQfDDQet7KNbZOwd4aRoywXh6ba4LvV L8fx4Nb6nvDzzUwxAq9qwh4qwiJkpA8i30Unog5RQdgB8ZVdiV0EvvMXvKXNkOq7xQJf g1932QcoOwB8z2utqP9FzO/nKLCaxD7oPV7FvwUhkR6Vbtwnp3uIJygBsWGbYRneMtLM D77ntooXIVc4mFbAkzxhdfxtk6P7Rql5CIrU9FiI9t8IEH0RFU9tQcqncHxX7veniS3m HZX2zED6+XPsGR5GRLKJYS1g/XD65ZYpb7YgbRlWpP/EHAEW86/kdKxqdbfn+5wFcxf6 LPKQ== X-Gm-Message-State: AOAM532LtuwB2Epz/elA2kowO8ciidYvKSjnCSOgoItonYIoI/mHk4yO v5hU/Z8BIp2LrRb2Y7FvfgBNPtiLXkv79q7YFm8T4++sCcjgIg== X-Google-Smtp-Source: ABdhPJzxs1SW5brCV/Dg1QlmV/Lj3dEDDA0EElLg8KB6xiQZHaGcYF0J+gESMg2BJEigMIQ0qe66t9CztiCpWq+gpGg= X-Received: by 2002:a17:906:4fc4:b0:6da:b4c6:fadb with SMTP id i4-20020a1709064fc400b006dab4c6fadbmr19826203ejw.282.1647267178266; Mon, 14 Mar 2022 07:12:58 -0700 (PDT) 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 References: <71491D61-415D-4096-9BB1-CE07DCDFE185@yahoo.com> In-Reply-To: From: Archimedes Gaviola Date: Mon, 14 Mar 2022 22:12:49 +0800 Message-ID: Subject: Re: Raspberry Pi 3B Slow Boot-up To: Mark Millard Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="00000000000003362c05da2e47c1" X-Rspamd-Queue-Id: 4KHJQz26C3z3M0j X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=jprLdG5i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000003362c05da2e47c1 Content-Type: text/plain; charset="UTF-8" On Mon, Mar 14, 2022 at 9:50 PM Archimedes Gaviola < archimedes.gaviola@gmail.com> wrote: > > > On Mon, Mar 14, 2022 at 8:01 PM Mark Millard wrote: > >> On 2022-Mar-14, at 02:55, Archimedes Gaviola < >> archimedes.gaviola@gmail.com> wrote: >> >> > In the default config.txt file there is [pi4] line. If I'm going to >> remove this [pi4] line, the boot-up process is very slow. Slow in a sense >> that some extended time is observed as compared to the default. I already >> tested emphasizing the boot_delay=1 but to no avail. The reason why I >> removed it is because I want to change the settings of the HDMI display >> resolution as changes will not take effect with the [pi4] line in RPi 3B. >> > >> > With 14.0-CURRENT (February 24, 2022 snapshot) I have described my >> resolution here >> https://lists.freebsd.org/archives/freebsd-arm/2022-February/001070.html >> however with the latest 14.0-CURRENT (March 10, 2022 snapshot) it's no >> longer possible. Any idea what's going on? >> > >> > Below is the default config.txt and my current config.txt for reference. >> > >> > freebsd@generic:~ % cat /boot/msdos/config.txt >> > [all] >> > arm_64bit=1 >> > dtparam=audio=on,i2c_arm=on,spi=on >> > dtoverlay=mmc >> > dtoverlay=disable-bt >> > device_tree_address=0x4000 >> > kernel=u-boot.bin >> > >> > [pi4] >> > hdmi_safe=1 >> > armstub=armstub8-gic.bin >> > >> > freebsd@generic:~ % cat /boot/msdos/config.txt >> > [all] >> > arm_64bit=1 >> > dtparam=audio=on,i2c_arm=on,spi=on >> > dtoverlay=mmc >> > dtoverlay=disable-bt >> > device_tree_address=0x4000 >> > kernel=u-boot.bin >> > >> > hdmi_group=2 >> > hdmi_mode=11 >> > armstub=armstub8-gic.bin >> >> armstub8-gic.bin is specific to the BCM2711 and will not >> work for the RPi3, as I understand. >> >> armstub=armstub8.bin is the default and is what was being >> used for the RPi3 when the [pi4] was in place. >> >> You have the option of listing a [pi3] section last >> (after the [pi4] section). To have a [pi3] section >> be last, it should have an explicit >> armstub=armstub8.bin line. >> >> Listing older RPi* models last is done because some older >> RPi models ignore the [] notation and listing things last >> overrides earlier assignments, in this case overriding >> assignments for newer models. It is a safe notational >> ordering convention, even for models that do support >> the [] notation sufficiently. >> >> If one depended on RPi3 models processing [] notation, >> if it does, then another option would have been to move >> the [rpi4] line to be just before the >> armstub=armstub8-gic.bin line, causing the RPi3 to skip >> the assignment and use the default. >> > > > Hi Mark, > > Awesome, it works great! Below is my revised config.txt file now, no more > boot-up delay and display resolution was effectively changed. Thank you so > much for sharing your thoughts in well-explained details, now I learned. > > freebsd@generic:~ % cat /boot/msdos/config.txt > [all] > boot_delay=0 > arm_64bit=1 > dtparam=audio=on,i2c_arm=on,spi=on > dtoverlay=mmc > dtoverlay=disable-bt > device_tree_address=0x4000 > kernel=u-boot.bin > > [pi4] > armstub=armstub8-gic.bin > > [pi3] > hdmi_group=2 > hdmi_mode=11 > Hi Mark, I did further testing and these two configuration settings (removing [pi4] and armstub=armstub8-gic.bin lines) below will do too. freebsd@generic:~ % cat /boot/msdos/config.txt [all] boot_delay=0 arm_64bit=1 dtparam=audio=on,i2c_arm=on,spi=on dtoverlay=mmc dtoverlay=disable-bt device_tree_address=0x4000 kernel=u-boot.bin [pi3] hdmi_group=2 hdmi_mode=11 or freebsd@generic:~ % cat /boot/msdos/config.txt [all] boot_delay=0 arm_64bit=1 dtparam=audio=on,i2c_arm=on,spi=on dtoverlay=mmc dtoverlay=disable-bt device_tree_address=0x4000 kernel=u-boot.bin hdmi_group=2 hdmi_mode=11 Thanks again for the help! Archimedes > --00000000000003362c05da2e47c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Mar 14, 2022 at 9:50 PM Archi= medes Gaviola <archimede= s.gaviola@gmail.com> wrote:


On Mon, Mar 14, 20= 22 at 8:01 PM Mark Millard <marklmi@yahoo.com> wrote:
On 2022-Mar-14, at 02:55, Archimedes Gaviola &= lt;archim= edes.gaviola@gmail.com> wrote:

> In the default config.txt file there is [pi4] line. If I'm going t= o remove this [pi4] line, the boot-up process is very slow. Slow in a sense= that some extended time is observed as compared to the default. I already = tested emphasizing the boot_delay=3D1 but to no avail. The reason why I rem= oved it is because I want to change the settings of the HDMI display resolu= tion as changes will not take effect with the [pi4] line in RPi 3B.
>
> With 14.0-CURRENT (February 24, 2022 snapshot) I have described my res= olution here https://lists.f= reebsd.org/archives/freebsd-arm/2022-February/001070.html however with = the latest 14.0-CURRENT (March 10, 2022 snapshot) it's no longer possib= le. Any idea what's going on?
>
> Below is the default config.txt and my current config.txt for referenc= e.
>
> freebsd@generic:~ % cat /boot/msdos/config.txt
> [all]
> arm_64bit=3D1
> dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don
> dtoverlay=3Dmmc
> dtoverlay=3Ddisable-bt
> device_tree_address=3D0x4000
> kernel=3Du-boot.bin
>
> [pi4]
> hdmi_safe=3D1
> armstub=3Darmstub8-gic.bin
>
> freebsd@generic:~ % cat /boot/msdos/config.txt
> [all]
> arm_64bit=3D1
> dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don
> dtoverlay=3Dmmc
> dtoverlay=3Ddisable-bt
> device_tree_address=3D0x4000
> kernel=3Du-boot.bin
>
> hdmi_group=3D2
> hdmi_mode=3D11
> armstub=3Darmstub8-gic.bin

armstub8-gic.bin is specific to the BCM2711 and will not
work for the RPi3, as I understand.

armstub=3Darmstub8.bin is the default and is what was being
used for the RPi3 when the [pi4] was in place.

You have the option of listing a [pi3] section last
(after the [pi4] section). To have a [pi3] section
be last, it should have an explicit
armstub=3Darmstub8.bin line.

Listing older RPi* models last is done because some older
RPi models ignore the [] notation and listing things last
overrides earlier assignments, in this case overriding
assignments for newer models. It is a safe notational
ordering convention, even for models that do support
the [] notation sufficiently.

If one depended on RPi3 models processing [] notation,
if it does, then another option would have been to move
the [rpi4] line to be just before the
armstub=3Darmstub8-gic.bin line, causing the RPi3 to skip
the assignment and use the default.


Hi Mark,

Awesome, it works great! Below is my revised config.txt file no= w, no more boot-up delay and display resolution was effectively changed. Th= ank you so much for sharing your thoughts in well-explained details, now I = learned.

freebsd@generic:~ % cat /boot/msdos/config.txt
[all]
boot_dela= y=3D0
arm_64bit=3D1
dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don
dto= verlay=3Dmmc
dtoverlay=3Ddisable-bt
device_tree_address=3D0x4000
k= ernel=3Du-boot.bin

[pi4]
armstub=3Darmstub8-gic.bin

[pi3]<= br>hdmi_group=3D2
hdmi_mode=3D11

=
Hi Mark,

I did further testing and these two = configuration settings (removing=20 [pi4] and armstub=3Darmstub8-gic.bin lines) below will do too.

freebsd@generic:~ % cat /boot/msdos/config.txt
[all]boot_delay=3D0
arm_64bit=3D1
dtparam=3Daudio=3Don,i2c_arm=3Don,spi= =3Don
dtoverlay=3Dmmc
dtoverlay=3Ddisable-bt
device_tree_address= =3D0x4000
kernel=3Du-boot.bin

[pi3]
hdmi_group=3D2
hdmi_mod= e=3D11

or

freebsd@generic:~ % cat /boot/msdos/config.txt
[all]
boot_delay= =3D0
arm_64bit=3D1
dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don
dtov= erlay=3Dmmc
dtoverlay=3Ddisable-bt
device_tree_address=3D0x4000
ke= rnel=3Du-boot.bin

hdmi_group=3D2
hdmi_mode=3D11

Thanks again for the help!

Archimedes
<= /div>
=C2=A0
--00000000000003362c05da2e47c1--