From nobody Tue Mar 15 05:00:37 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 B26401A1ED2D for ; Tue, 15 Mar 2022 05:00:49 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450: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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KHh7N5Xhwz3hJW for ; Tue, 15 Mar 2022 05:00:48 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ej1-x629.google.com with SMTP id bg10so38690782ejb.4 for ; Mon, 14 Mar 2022 22:00:48 -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=od0ynYMc2QxgYrH2/LIQYJU13jFuefgsh0w4dLJUQ5w=; b=CR9hma6ynozxXXejfwhTzm2Sqf7KlfBTirb9Ka3r+OD3lpNjg5WD7Cg3bf076jSkPX uoulypPzcEKSZOcoLHAjOtGYia8he0GsHnZWCymEsBeGcUaAD7dwobB/ssKug3SbL5kq 6ptRHPQ5f8vVhzWBBk0z7bcZumnDxJlbdzFDAmM5Uv5Q9efTINJRXZyWMtMKygdQcWmj w00TvlJbobGP86Jjremjy+YquOIkniyL12K6/9foU1rQ9rnQQ2u5cCK+TUkzhD2wpJ0J kdMJpPEdv+Ei3LPCXf0XK4MAHMzaNwXN2Elhi/5fnECefruXAHjnF50bAjy1narrmgNY VQxA== 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=od0ynYMc2QxgYrH2/LIQYJU13jFuefgsh0w4dLJUQ5w=; b=OLsRyeZpR1J3zui68d6FSr9BOisv5qsRQwhusxw7K5oNHZnOpc8GTuuS/WLHDszFLz uVqhZ/yjKiog8CW26ZJJOt0AhOPXG6E2HyoCOqbjzUV+wpgetWurQK0kMMfRbeaDbxcH RYdAOITZW3HkoHPdYWksP3i7yPJ7YHac0FafIob1t/EH0oFN1vK44+1iULKxlgo7Bssf O0DYnMm01ogTHjU2kX/zqesXVj1ENoLDr18+K18ucOG7t06YQ/sA+9lxti9dHXw11c/m OtN/tyM2XWBFZM5Q/VMp2CfEhREyFpxQuAydBAcbgcNwtGwetr3bnXQ65LuDOm7pj00R dReA== X-Gm-Message-State: AOAM531gThJ06FFDVKPl9T05/GHPgKeAl2AHzP5eQtMk/q1vDeyflim+ 6zu5vPGzDIQKQqlSHffkdkcYbSjTTk6ilWSX19KF4V9mmQI= X-Google-Smtp-Source: ABdhPJwkGgYsVoxSmUmJxg0VTuhogWLMxWtS/YJPzVWlfENKZUN18aTu0eEcVvoyr3RpVe7xHcXJdxVcuv4nbhNH6Dk= X-Received: by 2002:a17:906:730c:b0:6d6:f8f2:fb92 with SMTP id di12-20020a170906730c00b006d6f8f2fb92mr20213938ejc.370.1647320447853; Mon, 14 Mar 2022 22:00:47 -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: Tue, 15 Mar 2022 13:00:37 +0800 Message-ID: Subject: Re: Raspberry Pi 3B Slow Boot-up To: Mark Millard Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="0000000000002026fd05da3aae1d" X-Rspamd-Queue-Id: 4KHh7N5Xhwz3hJW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=CR9hma6y; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::629 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::629:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --0000000000002026fd05da3aae1d Content-Type: text/plain; charset="UTF-8" On Mon, Mar 14, 2022 at 11:10 PM Mark Millard wrote: > Hello. > > On 2022-Mar-14, at 07:12, Archimedes Gaviola > wrote: > > > 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 > > > > The BCM2711 has both the older style hardware and the > new-to-RPi*'s gic. These two alternatives that do not > mention armstub8-gic.bin are having the BCM2711 use > the older, less capable type of hardware instead of > using the newer, more capable gic. (Or, at least, > that is what is explicitly initialized.) > > You are better off with the solution that has the > [pi4] and armstub=armstub8-gic.bin lines so that > the gic is explicitly initialized. > Hi Mark, Oh I see, thanks again! I'll apply your recommendation. Thanks, Archimedes --0000000000002026fd05da3aae1d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Mar 14, 2022 at 11:10 PM Mark= Millard <marklmi@yahoo.com>= wrote:
Hello.
On 2022-Mar-14, at 07:12, Archimedes Gaviola <archimedes.gaviola@gmail.com>= ; wrote:

> 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 <marklmi@yahoo.com> 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 go= ing 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 alr= eady tested emphasizing the boot_delay=3D1 but to no avail. The reason why = I removed it is because I want to change the settings of the HDMI display r= esolution as changes will not take effect with the [pi4] line in RPi 3B. > >
> > With 14.0-CURRENT (February 24, 2022 snapshot) I have described m= y resolution here
https://li= sts.freebsd.org/archives/freebsd-arm/2022-February/001070.html however = with the latest 14.0-CURRENT (March 10, 2022 snapshot) it's no longer p= ossible. Any idea what's going on?
> >
> > Below is the default config.txt and my current config.txt for ref= erence.
> >
> > 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 now, no m= ore 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=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
>
> [pi4]
> armstub=3Darmstub8-gic.bin
>
> [pi3]
> hdmi_group=3D2
> hdmi_mode=3D11
>
> Hi Mark,
>
> I did further testing and these two configuration settings (removing [= 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_mode=3D11
>
> or
>
> 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
>
> hdmi_group=3D2
> hdmi_mode=3D11
>

The BCM2711 has both the older style hardware and the
new-to-RPi*'s gic. These two alternatives that do not
mention armstub8-gic.bin are having the BCM2711 use
the older, less capable type of hardware instead of
using the newer, more capable gic. (Or, at least,
that is what is explicitly initialized.)

You are better off with the solution that has the
[pi4] and armstub=3Darmstub8-gic.bin lines so that
the gic is explicitly initialized.

Hi Mark,

=
Oh I see, thanks again! I'll apply your reco= mmendation.

Thanks,
Archimedes
--0000000000002026fd05da3aae1d--