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 <<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>>= 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 <<a href=3D"mailto:archimed= es.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</a>>= ; wrote:<br> <br> > On Mon, Mar 14, 2022 at 9:50 PM Archimedes Gaviola <<a href=3D"mail= to:archimedes.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail= .com</a>> wrote:<br> > <br> > On Mon, Mar 14, 2022 at 8:01 PM Mark Millard <<a href=3D"mailto:mar= klmi@yahoo.com" target=3D"_blank">marklmi@yahoo.com</a>> wrote:<br> > On 2022-Mar-14, at 02:55, Archimedes Gaviola <<a href=3D"mailto:arc= himedes.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</= a>> wrote:<br> > <br> > > 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.<br= > > > <br> > > 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's no longer p= ossible. Any idea what's going on?<br> > > <br> > > Below is the default config.txt and my current config.txt for ref= erence.<br> > > <br> > > freebsd@generic:~ % cat /boot/msdos/config.txt<br> > > [all]<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> > > [pi4]<br> > > hdmi_safe=3D1<br> > > armstub=3Darmstub8-gic.bin<br> > > <br> > > freebsd@generic:~ % cat /boot/msdos/config.txt<br> > > [all]<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> > > hdmi_group=3D2<br> > > hdmi_mode=3D11<br> > > 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> > <br> > <br> > Hi Mark,<br> > <br> > 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> > <br> > 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> > [pi4]<br> > armstub=3Darmstub8-gic.bin<br> > <br> > [pi3]<br> > hdmi_group=3D2<br> > hdmi_mode=3D11<br> > <br> > Hi Mark,<br> > <br> > I did further testing and these two configuration settings (removing [= pi4] and armstub=3Darmstub8-gic.bin lines) below will do too.<br> > <br> > 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_mode=3D11<br> > <br> > or<br> > <br> > 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> > hdmi_group=3D2<br> > hdmi_mode=3D11<br> > <br> <br> The BCM2711 has both the older style hardware and the<br> new-to-RPi*'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'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>