From nobody Mon Mar 14 15:10:01 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 109361A0F121 for ; Mon, 14 Mar 2022 15:10:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-20.consmr.mail.gq1.yahoo.com (sonic317-20.consmr.mail.gq1.yahoo.com [98.137.66.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KHKhz6RKFz3pw8 for ; Mon, 14 Mar 2022 15:10:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647270604; bh=k51Ul1sV6NoCwqmkupF7ZDkZa8tnoyA04U4QmLAHrgk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=MoV7Guy2xajJp6BDq+I1UXSqekPkJlSjwh1XI9ZKo382cau6hFQqSmw+ZJb2HX4FcQNIZohZAQRkYJyArzGIgKHtwJTPdTbWZEDsf+C9Ns53GsqWOIOkMjwTPUnjn9fNp31un910zVGaX+PiVd3UMngiwVIryT0Vih8v5lsrmXE2n6qQRSrXjEqbSDBQoCsqFGJl56b/c4Ml9e09ihwrJfOEIR1G6BqmbQgU2MhIHB3QkiUXoyQKSWsWts1Ym8iQ1+Dy+TnGBJv+nwP9Gdw5L1MfxmR1Hh6YZ4SjOeSAeegu0sdeMGfKIM1ctqxCC9jxp/69EM8XziGGlH6Uu/1I0Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647270604; bh=X+FDKnj/fRSmTURnrS8+E7IfB6wp9dCgsJxyAzOAR8f=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=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BFA_..f_TI_Tieb4UwhznSADnk 609h5Sg1K3A36wuQalUj9RQl7TUD6TD2MgmPDnl75pa22m3e_j3lhXmdFN0fUqYKs6vjYqtkNwDE HBtJ074qLkD.mfAXlG5Csdi8KtPM1l254ld9Y8TV700smYeHGpN605Q0X01mB.HXuM.zjBCERRMj lK1YKeBBI4V1CsgMKs2G3SonuoopnoQ9EcaBeab9Nf3gSDPJ11V1uwhlo0TXrLIVVEKlvRoEVx9K xWQlBMm1qNUQkHKb2KPTwZyuOxtXbx7RBqAbbJo5zGTGA3v.z2TqcUkwuLe2PgbBAeuqPV3N7AzP ThSu90nG898SJApxdE2OjoAY36GJMIeg1IdfbtdV9WzyrfMYuX7f7xydMYXBcph1NU1j30UMBSul 9oHd_cVuhiaWQIaCne2k.QfIjy2wepustltDpdK9lopH7y9vH8lShvvF96E5T4vbssUrqj89X78b c9ORTOPM6f2FCc9vQITsY8uFPi4g0Kx0u1KaTqup1LvurftKXNM6OmEq7VJa2WYlwZY6QGtQPHrT enfedGrdAsNCuTrpI X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Mon, 14 Mar 2022 15:10:04 +0000 Received: by kubenode513.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID fbe29f789e7d946fe64c5af860a70ae2; Mon, 14 Mar 2022 15:10:02 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Raspberry Pi 3B Slow Boot-up From: Mark Millard In-Reply-To: Date: Mon, 14 Mar 2022 08:10:01 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <71491D61-415D-4096-9BB1-CE07DCDFE185@yahoo.com> To: Archimedes Gaviola X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4KHKhz6RKFz3pw8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=MoV7Guy2; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.146:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.146:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Hello. On 2022-Mar-14, at 07:12, Archimedes Gaviola = wrote: > On Mon, Mar 14, 2022 at 9:50 PM Archimedes Gaviola = wrote: >=20 > On Mon, Mar 14, 2022 at 8:01 PM Mark Millard = wrote: > On 2022-Mar-14, at 02:55, Archimedes Gaviola = wrote: >=20 > > 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=3D1 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. > >=20 > > 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? > >=20 > > Below is the default config.txt and my current config.txt for = reference. > >=20 > > 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 > >=20 > > [pi4] > > hdmi_safe=3D1 > > armstub=3Darmstub8-gic.bin > >=20 > > 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 > >=20 > > hdmi_group=3D2 > > hdmi_mode=3D11 > > armstub=3Darmstub8-gic.bin >=20 > armstub8-gic.bin is specific to the BCM2711 and will not > work for the RPi3, as I understand. >=20 > armstub=3Darmstub8.bin is the default and is what was being > used for the RPi3 when the [pi4] was in place. >=20 > 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. >=20 > 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. >=20 > 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. >=20 >=20 > Hi Mark, >=20 > 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. >=20 > 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 >=20 > [pi4] > armstub=3Darmstub8-gic.bin >=20 > [pi3] > hdmi_group=3D2 > hdmi_mode=3D11 >=20 > Hi Mark, >=20 > I did further testing and these two configuration settings (removing = [pi4] and armstub=3Darmstub8-gic.bin lines) below will do too. >=20 > 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 >=20 > [pi3] > hdmi_group=3D2 > hdmi_mode=3D11 >=20 > or >=20 > 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 >=20 > hdmi_group=3D2 > hdmi_mode=3D11 >=20 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. =3D=3D=3D Mark Millard marklmi at yahoo.com