Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2022 13:00:37 +0800
From:      Archimedes Gaviola <archimedes.gaviola@gmail.com>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 3B Slow Boot-up
Message-ID:  <CAJFbk7Gwb_qhMaSZX9F9%2BSZNKLRnOdMSE0zmtbinLpwDy5L=nA@mail.gmail.com>
In-Reply-To: <CE9930A9-A454-49C6-9741-963281E2A06A@yahoo.com>
References:  <CAJFbk7GAzEOOf5-6VgM23kBRa_ASzyCDSRRrzjtK6ue9FhSZ1A@mail.gmail.com> <71491D61-415D-4096-9BB1-CE07DCDFE185@yahoo.com> <CAJFbk7E3LonfF365hr9sQYc-6Xd_2tLNCgB0mPWTR1RWHMUfRg@mail.gmail.com> <CAJFbk7GkHM-0KsWrGvfSZ5JccgBQF0_KRhWEHLfEo7mTH2y10A@mail.gmail.com> <CE9930A9-A454-49C6-9741-963281E2A06A@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000002026fd05da3aae1d
Content-Type: text/plain; charset="UTF-8"

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 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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, Mar 14, 2022 at 11:10 PM Mark=
 Millard &lt;<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>&gt;=
 wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello.<b=
r>
<br>
On 2022-Mar-14, at 07:12, Archimedes Gaviola &lt;<a href=3D"mailto:archimed=
es.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</a>&gt=
; wrote:<br>
<br>
&gt; On Mon, Mar 14, 2022 at 9:50 PM Archimedes Gaviola &lt;<a href=3D"mail=
to:archimedes.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail=
.com</a>&gt; wrote:<br>
&gt; <br>
&gt; On Mon, Mar 14, 2022 at 8:01 PM Mark Millard &lt;<a href=3D"mailto:mar=
klmi@yahoo.com" target=3D"_blank">marklmi@yahoo.com</a>&gt; wrote:<br>
&gt; On 2022-Mar-14, at 02:55, Archimedes Gaviola &lt;<a href=3D"mailto:arc=
himedes.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</=
a>&gt; wrote:<br>
&gt; <br>
&gt; &gt; In the default config.txt file there is [pi4] line. If I&#39;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.<br=
>
&gt; &gt; <br>
&gt; &gt; With 14.0-CURRENT (February 24, 2022 snapshot) I have described m=
y resolution here <a href=3D"https://lists.freebsd.org/archives/freebsd-arm=
/2022-February/001070.html" rel=3D"noreferrer" target=3D"_blank">https://li=
sts.freebsd.org/archives/freebsd-arm/2022-February/001070.html</a> however =
with the latest 14.0-CURRENT (March 10, 2022 snapshot) it&#39;s no longer p=
ossible. Any idea what&#39;s going on?<br>
&gt; &gt; <br>
&gt; &gt; Below is the default config.txt and my current config.txt for ref=
erence.<br>
&gt; &gt; <br>
&gt; &gt; freebsd@generic:~ % cat /boot/msdos/config.txt<br>
&gt; &gt; [all]<br>
&gt; &gt; arm_64bit=3D1<br>
&gt; &gt; dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don<br>
&gt; &gt; dtoverlay=3Dmmc<br>
&gt; &gt; dtoverlay=3Ddisable-bt<br>
&gt; &gt; device_tree_address=3D0x4000<br>
&gt; &gt; kernel=3Du-boot.bin<br>
&gt; &gt; <br>
&gt; &gt; [pi4]<br>
&gt; &gt; hdmi_safe=3D1<br>
&gt; &gt; armstub=3Darmstub8-gic.bin<br>
&gt; &gt; <br>
&gt; &gt; freebsd@generic:~ % cat /boot/msdos/config.txt<br>
&gt; &gt; [all]<br>
&gt; &gt; arm_64bit=3D1<br>
&gt; &gt; dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don<br>
&gt; &gt; dtoverlay=3Dmmc<br>
&gt; &gt; dtoverlay=3Ddisable-bt<br>
&gt; &gt; device_tree_address=3D0x4000<br>
&gt; &gt; kernel=3Du-boot.bin<br>
&gt; &gt; <br>
&gt; &gt; hdmi_group=3D2<br>
&gt; &gt; hdmi_mode=3D11<br>
&gt; &gt; armstub=3Darmstub8-gic.bin<br>
&gt; <br>
&gt; armstub8-gic.bin is specific to the BCM2711 and will not<br>
&gt; work for the RPi3, as I understand.<br>
&gt; <br>
&gt; armstub=3Darmstub8.bin is the default and is what was being<br>
&gt; used for the RPi3 when the [pi4] was in place.<br>
&gt; <br>
&gt; You have the option of listing a [pi3] section last<br>
&gt; (after the [pi4] section). To have a [pi3] section<br>
&gt; be last, it should have an explicit<br>
&gt; armstub=3Darmstub8.bin line.<br>
&gt; <br>
&gt; Listing older RPi* models last is done because some older<br>
&gt; RPi models ignore the [] notation and listing things last<br>
&gt; overrides earlier assignments, in this case overriding<br>
&gt; assignments for newer models. It is a safe notational<br>
&gt; ordering convention, even for models that do support<br>
&gt; the [] notation sufficiently.<br>
&gt; <br>
&gt; If one depended on RPi3 models processing [] notation,<br>
&gt; if it does, then another option would have been to move<br>
&gt; the [rpi4] line to be just before the<br>
&gt; armstub=3Darmstub8-gic.bin line, causing the RPi3 to skip<br>
&gt; the assignment and use the default.<br>
&gt; <br>
&gt; <br>
&gt; Hi Mark,<br>
&gt; <br>
&gt; 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=
.<br>
&gt; <br>
&gt; freebsd@generic:~ % cat /boot/msdos/config.txt<br>
&gt; [all]<br>
&gt; boot_delay=3D0<br>
&gt; arm_64bit=3D1<br>
&gt; dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don<br>
&gt; dtoverlay=3Dmmc<br>
&gt; dtoverlay=3Ddisable-bt<br>
&gt; device_tree_address=3D0x4000<br>
&gt; kernel=3Du-boot.bin<br>
&gt; <br>
&gt; [pi4]<br>
&gt; armstub=3Darmstub8-gic.bin<br>
&gt; <br>
&gt; [pi3]<br>
&gt; hdmi_group=3D2<br>
&gt; hdmi_mode=3D11<br>
&gt; <br>
&gt; Hi Mark,<br>
&gt; <br>
&gt; I did further testing and these two configuration settings (removing [=
pi4] and armstub=3Darmstub8-gic.bin lines) below will do too.<br>
&gt; <br>
&gt; freebsd@generic:~ % cat /boot/msdos/config.txt<br>
&gt; [all]<br>
&gt; boot_delay=3D0<br>
&gt; arm_64bit=3D1<br>
&gt; dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don<br>
&gt; dtoverlay=3Dmmc<br>
&gt; dtoverlay=3Ddisable-bt<br>
&gt; device_tree_address=3D0x4000<br>
&gt; kernel=3Du-boot.bin<br>
&gt; <br>
&gt; [pi3]<br>
&gt; hdmi_group=3D2<br>
&gt; hdmi_mode=3D11<br>
&gt; <br>
&gt; or<br>
&gt; <br>
&gt; freebsd@generic:~ % cat /boot/msdos/config.txt<br>
&gt; [all]<br>
&gt; boot_delay=3D0<br>
&gt; arm_64bit=3D1<br>
&gt; dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don<br>
&gt; dtoverlay=3Dmmc<br>
&gt; dtoverlay=3Ddisable-bt<br>
&gt; device_tree_address=3D0x4000<br>
&gt; kernel=3Du-boot.bin<br>
&gt; <br>
&gt; hdmi_group=3D2<br>
&gt; hdmi_mode=3D11<br>
&gt; <br>
<br>
The BCM2711 has both the older style hardware and the<br>
new-to-RPi*&#39;s gic. These two alternatives that do not<br>
mention armstub8-gic.bin are having the BCM2711 use<br>
the older, less capable type of hardware instead of<br>
using the newer, more capable gic. (Or, at least,<br>
that is what is explicitly initialized.)<br>
<br>
You are better off with the solution that has the<br>
[pi4] and armstub=3Darmstub8-gic.bin lines so that<br>
the gic is explicitly initialized.<br></blockquote><div><br></div></div><di=
v class=3D"gmail_quote">Hi Mark,</div><div class=3D"gmail_quote"><br></div>=
<div class=3D"gmail_quote">Oh I see, thanks again! I&#39;ll apply your reco=
mmendation.</div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_q=
uote">Thanks,</div><div class=3D"gmail_quote">Archimedes<br></div></div>

--0000000000002026fd05da3aae1d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7Gwb_qhMaSZX9F9%2BSZNKLRnOdMSE0zmtbinLpwDy5L=nA>