Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2022 22:12:49 +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:  <CAJFbk7GkHM-0KsWrGvfSZ5JccgBQF0_KRhWEHLfEo7mTH2y10A@mail.gmail.com>
In-Reply-To: <CAJFbk7E3LonfF365hr9sQYc-6Xd_2tLNCgB0mPWTR1RWHMUfRg@mail.gmail.com>
References:  <CAJFbk7GAzEOOf5-6VgM23kBRa_ASzyCDSRRrzjtK6ue9FhSZ1A@mail.gmail.com> <71491D61-415D-4096-9BB1-CE07DCDFE185@yahoo.com> <CAJFbk7E3LonfF365hr9sQYc-6Xd_2tLNCgB0mPWTR1RWHMUfRg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <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

Thanks again for the help!

Archimedes


>

--00000000000003362c05da2e47c1
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 9:50 PM Archi=
medes Gaviola &lt;<a href=3D"mailto:archimedes.gaviola@gmail.com">archimede=
s.gaviola@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div cla=
ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Mar 14, 20=
22 at 8:01 PM Mark Millard &lt;<a href=3D"mailto:marklmi@yahoo.com" target=
=3D"_blank">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(20=
4,204,204);padding-left:1ex">On 2022-Mar-14, at 02:55, Archimedes Gaviola &=
lt;<a href=3D"mailto:archimedes.gaviola@gmail.com" target=3D"_blank">archim=
edes.gaviola@gmail.com</a>&gt; wrote:<br>
<br>
&gt; In the default config.txt file there is [pi4] line. If I&#39;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.<br>
&gt; <br>
&gt; With 14.0-CURRENT (February 24, 2022 snapshot) I have described my res=
olution here <a href=3D"https://lists.freebsd.org/archives/freebsd-arm/2022=
-February/001070.html" rel=3D"noreferrer" target=3D"_blank">https://lists.f=
reebsd.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 possib=
le. Any idea what&#39;s going on?<br>
&gt; <br>
&gt; Below is the default config.txt and my current config.txt for referenc=
e.<br>
&gt; <br>
&gt; freebsd@generic:~ % cat /boot/msdos/config.txt<br>
&gt; [all]<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; hdmi_safe=3D1<br>
&gt; armstub=3Darmstub8-gic.bin<br>
&gt; <br>
&gt; freebsd@generic:~ % cat /boot/msdos/config.txt<br>
&gt; [all]<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; armstub=3Darmstub8-gic.bin<br>
<br>
armstub8-gic.bin is specific to the BCM2711 and will not<br>
work for the RPi3, as I understand.<br>
<br>
armstub=3Darmstub8.bin is the default and is what was being<br>
used for the RPi3 when the [pi4] was in place.<br>
<br>
You have the option of listing a [pi3] section last<br>
(after the [pi4] section). To have a [pi3] section<br>
be last, it should have an explicit<br>
armstub=3Darmstub8.bin line.<br>
<br>
Listing older RPi* models last is done because some older<br>
RPi models ignore the [] notation and listing things last<br>
overrides earlier assignments, in this case overriding<br>
assignments for newer models. It is a safe notational<br>
ordering convention, even for models that do support<br>
the [] notation sufficiently.<br>
<br>
If one depended on RPi3 models processing [] notation,<br>
if it does, then another option would have been to move<br>
the [rpi4] line to be just before the<br>
armstub=3Darmstub8-gic.bin line, causing the RPi3 to skip<br>
the assignment and use the default.<br></blockquote></div><div class=3D"gma=
il_quote"><br></div><div class=3D"gmail_quote"><br></div><div class=3D"gmai=
l_quote">Hi Mark,</div><div class=3D"gmail_quote"><br></div><div class=3D"g=
mail_quote">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.<br></div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_=
quote">freebsd@generic:~ % cat /boot/msdos/config.txt<br>[all]<br>boot_dela=
y=3D0<br>arm_64bit=3D1<br>dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don<br>dto=
verlay=3Dmmc<br>dtoverlay=3Ddisable-bt<br>device_tree_address=3D0x4000<br>k=
ernel=3Du-boot.bin<br><br>[pi4]<br>armstub=3Darmstub8-gic.bin<br><br>[pi3]<=
br>hdmi_group=3D2<br>hdmi_mode=3D11</div></div></blockquote><div><br></div>=
<div>Hi Mark,</div><div><br></div><div>I did further testing and these two =
configuration settings (removing=20
[pi4] and armstub=3Darmstub8-gic.bin lines) below will do too.<br></div><di=
v><br></div><div>freebsd@generic:~ % cat /boot/msdos/config.txt<br>[all]<br=
>boot_delay=3D0<br>arm_64bit=3D1<br>dtparam=3Daudio=3Don,i2c_arm=3Don,spi=
=3Don<br>dtoverlay=3Dmmc<br>dtoverlay=3Ddisable-bt<br>device_tree_address=
=3D0x4000<br>kernel=3Du-boot.bin<br><br>[pi3]<br>hdmi_group=3D2<br>hdmi_mod=
e=3D11</div><div><br></div><div>or</div><div><br></div><div>
<div>freebsd@generic:~ % cat /boot/msdos/config.txt<br>[all]<br>boot_delay=
=3D0<br>arm_64bit=3D1<br>dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don<br>dtov=
erlay=3Dmmc<br>dtoverlay=3Ddisable-bt<br>device_tree_address=3D0x4000<br>ke=
rnel=3Du-boot.bin<br><br>hdmi_group=3D2<br>hdmi_mode=3D11</div><div><br></d=
iv><div>Thanks again for the help!</div><div><br></div><div>Archimedes<br><=
/div></div><div>=C2=A0<br></div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><div></div></div></div>
</blockquote></div></div>

--00000000000003362c05da2e47c1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7GkHM-0KsWrGvfSZ5JccgBQF0_KRhWEHLfEo7mTH2y10A>