From nobody Mon Mar 14 13:50:05 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 59F8B1A1A1DC for ; Mon, 14 Mar 2022 13:50:17 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 4KHHwm357Dz3GvB for ; Mon, 14 Mar 2022 13:50:16 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ej1-x62d.google.com with SMTP id qa43so33918492ejc.12 for ; Mon, 14 Mar 2022 06:50:16 -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=ahXQK3Kf6X0Ir4iy71jSq+suE2uI3JQkove+2cY7lCs=; b=dVbYTErujkLBw8ERlGVYeZvywIsXSEQE+OUfcPcAidc24iUpyFkQ8Ht7tcf6NUjVgf 1jJnIHW3NTsdEG6HptC7PvJLxMmL9kFVSr249B7uIm0lzaUari9lrBQnxaqutsHKBErH FJSHLlqa09ln3ufqLi62HqZD0OIWSHfRc/P0vtEtBkn/O3Xomt/ab+D0Z3y+i2GEZBsl F4ePWhRHgh/lYcTt1uIR/zAD0zyBeZcepMQ8Zz6QpWudgctJvU/40piTK1ZzVdSdk4bF FlzAGCpfIEZeQY7ZB/5oat391xLyiwcuaTrJzP/j/l4Bh1u7Hs5RyCF7EFNdsNsdkQK0 eLzg== 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=ahXQK3Kf6X0Ir4iy71jSq+suE2uI3JQkove+2cY7lCs=; b=6KOzz8XfTlvjHy8QHZMCS6V1M5oSB/UTX7rkgbowAcZw90hXnf72FdxzM779u1Ak8W M9HPLDBBEl/WQfSlIMkeEJAP4gbWSS8MOmoPfiLgVCjESY0E0woHgqEVhjWi15nsbw98 52FEZT8vXyHCZCFkJRutPdNpBZ5RHtJAU+lciyccGuYYwUk50Y0DStSb5vI6dOIgyHUm ShHK3rKAbCbk8ovY2QkSnLFD22EQk5zJz5fW7aXaXZXXRUBNrw7Pxi2LlitFl2Nzz84T CvGY60AX//y1ZCNqA9Opf6fni36qxoFjPqnCfhue6YsePkCH2zDelIPyVkjedG4eNKGl EhnA== X-Gm-Message-State: AOAM532FLMAorl+mLbTs9VE24DNNmxq7BcgdZNk2i3knASdFzCSNjIrn a83Yt8jDHMI3ISW4inwj1FiEKH+EUqvDRh9xwxYKSRaHah81iA== X-Google-Smtp-Source: ABdhPJzCmWr7xBELAPWdNBC2J86vFHYaenRJlo1lXyqgeuwTJNj3uZoeNekxA3ZY6c2NxFiEshXTQZPKUEr2E6qdrf8= X-Received: by 2002:a17:906:3cb1:b0:6ce:2a97:5ade with SMTP id b17-20020a1709063cb100b006ce2a975ademr18379524ejh.728.1647265814530; Mon, 14 Mar 2022 06:50:14 -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: <71491D61-415D-4096-9BB1-CE07DCDFE185@yahoo.com> From: Archimedes Gaviola Date: Mon, 14 Mar 2022 21:50:05 +0800 Message-ID: Subject: Re: Raspberry Pi 3B Slow Boot-up To: Mark Millard Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000b9cebf05da2df523" X-Rspamd-Queue-Id: 4KHHwm357Dz3GvB X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=dVbYTEru; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-3.97 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; 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(-0.97)[-0.975]; 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::62d:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000b9cebf05da2df523 Content-Type: text/plain; charset="UTF-8" On Mon, Mar 14, 2022 at 8:01 PM Mark Millard wrote: > On 2022-Mar-14, at 02:55, Archimedes Gaviola > 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 Thanks, Archimedes --000000000000b9cebf05da2df523 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Mar 14, 2022 at 8:01 PM Mark = Millard <marklmi@yahoo.com> = wrote:
On 2022-M= ar-14, at 02:55, Archimedes Gaviola <archimedes.gaviola@gmail.com> wrote:<= br>
> In the default config.txt file there is [pi4] line. If I'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.
>
> With 14.0-CURRENT (February 24, 2022 snapshot) I have described my res= olution here https://lists.f= reebsd.org/archives/freebsd-arm/2022-February/001070.html however with = the latest 14.0-CURRENT (March 10, 2022 snapshot) it's no longer possib= le. Any idea what's going on?
>
> Below is the default config.txt and my current config.txt for referenc= e.
>
> 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 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.

freebsd@generic:~ % cat /boot/msdos/config.txt
[all]
boot_dela= y=3D0
arm_64bit=3D1
dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don
dto= verlay=3Dmmc
dtoverlay=3Ddisable-bt
device_tree_address=3D0x4000
k= ernel=3Du-boot.bin

[pi4]
armstub=3Darmstub8-gic.bin

[pi3]<= br>hdmi_group=3D2
hdmi_mode=3D11

Thanks,
Archi= medes



=C2=A0
--000000000000b9cebf05da2df523--