Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2025 00:37:38 +0000
From:      Marco Devesas Campos <devesas.campos@gmail.com>
To:        Mario Marietto <marietto2008@gmail.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Raimbow screen installing / booting FreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img on the raspberry pi zero 2w
Message-ID:  <FEDBC538-E7B2-49CA-AD27-3641A1BF6E56@gmail.com>
In-Reply-To: <CA%2B1FSih9TauSj4YteGij2BFO7C4irxDE=RFoBtnKK6-EMzwV5Q@mail.gmail.com>
References:  <CA%2B1FSig9coHK-k1dNaong=rOSGGNW170gf%2B-13S7J3syORU_DA@mail.gmail.com> <5E12B96C-20A2-4FFB-A31E-00B259450707@gmail.com> <CA%2B1FSih6jzcy7po3Ux_nSfN6UF%2BzwBfp-iM1vzVgpPObnN3ukA@mail.gmail.com> <CA%2B1FSih9TauSj4YteGij2BFO7C4irxDE=RFoBtnKK6-EMzwV5Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_79EF823E-BE94-447B-9174-23661F7CD30E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

The problem isn=E2=80=99t the fix =E2=80=94 it=E2=80=99s that there is =
simply no appropriate device tree for the zero-2 that is bundled with =
the image so the board has no idea how to boot.

So, while not perfect, until someone from the projects adds a zero 2 =
dtb, I=E2=80=99m guessing copying one of the pi-3 images is your best =
bet (I just tried it and it works =E2=80=94 well, boots, at least).

Best,
Marco

> On 4 Feb 2025, at 22:57, Mario Marietto <marietto2008@gmail.com> =
wrote:
>=20
> Hello.
> I've dd'ed FreeBSD 14.2 RELEASE on a sd card and I tried to boot it =
with my Raspberry Pi zero 2 w :
>=20
> # dd if=3DFreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img of=3D/dev/sdf
>=20
> but unfortunately when I turned on the board I got the rainbow screen =
:
>=20
> https://ibb.co/cXKFCtvJ
>=20
> According with this but report :
>=20
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261147
>=20
> I should apply this fix :
>=20
> =
https://cgit.freebsd.org/src/commit/?id=3D9873b171697033f9f19608d98bcd1c16=
cacb92af
>=20
> but I see that it has already been applied :
>=20
> <Screenshot_2025-02-04_23-47-23.png>
>=20
> but I get the rainbow screen anyway. I would like to understand =
why,where is the error,how can I fix it ?
>=20
> Thanks.
>=20
> On Tue, Feb 4, 2025 at 8:31=E2=80=AFPM Mario Marietto =
<marietto2008@gmail.com <mailto:marietto2008@gmail.com>> wrote:
>> > If I recall correctly, it=E2=80=99s enough to copy  =
bcm2710-rpi-3-b-plus.dtb to bcm2710-rpi-zero-2.dtb (in the msdos =
partition).
>>=20
>> It seems to be the wrong approach :
>>=20
>> Emmanuel Vadot <mailto:manu@freebsd.org>     2022-01-24 08:09:30 UTC
>> (In reply to david.elliott3040 from comment #5 =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261147#c5>)
>>=20
>> This is a wrong approach, while they have the same SoC and most of =
the peripherals are=20
>> the same they are not the same board and this can only lead to =
problems.
>>=20
>> source :
>>=20
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261147
>>=20
>> On Tue, Feb 4, 2025 at 8:19=E2=80=AFPM Marco Devesas Campos =
<devesas.campos@gmail.com <mailto:devesas.campos@gmail.com>> wrote:
>>> If I recall correctly, it=E2=80=99s enough to copy  =
bcm2710-rpi-3-b-plus.dtb to bcm2710-rpi-zero-2.dtb (in the msdos =
partition).
>>>=20
>>> Best,
>>> Marco
>>>=20
>>>=20
>>>> On 4 Feb 2025, at 17:35, Mario Marietto <marietto2008@gmail.com =
<mailto:marietto2008@gmail.com>> wrote:
>>>>=20
>>>> Hello.
>>>>=20
>>>> I've dd'ed FreeBSD 14.2 RELEASE on a sd card and I tried to boot it =
with my Raspberry Pi zero 2 w :
>>>>=20
>>>> # dd if=3DFreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img of=3D/dev/sdf
>>>>=20
>>>> but unfortunately when I turned on the board I got the rainbow =
screen :
>>>>=20
>>>> https://ibb.co/cXKFCtvJ
>>>>=20
>>>> So I suppose that the fix hasn't been upstreamed for FreeBSD =
14.2-RELEASE.=20
>>>>=20
>>>> What can I do to bypass the bug ?
>>>>=20
>>>> --
>>>> Mario.
>>>=20
>>=20
>>=20
>>=20
>> --
>> Mario.
>=20
>=20
>=20
> --
> Mario.


--Apple-Mail=_79EF823E-BE94-447B-9174-23661F7CD30E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">The problem =
isn=E2=80=99t the fix =E2=80=94 it=E2=80=99s that there is simply no =
appropriate device tree for the zero-2 that is bundled with the image so =
the board has no idea how to boot.<div><br></div><div>So, while not =
perfect, until someone from the projects adds a zero 2 dtb, I=E2=80=99m =
guessing copying one of the pi-3 images is your best bet (I just tried =
it and it works =E2=80=94 well, boots, at =
least).</div><div><br></div><div>Best,</div><div>Marco<br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On 4 Feb 2025, at 22:57, Mario Marietto =
&lt;marietto2008@gmail.com&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div =
dir=3D"ltr"><div>Hello.</div><div><pre =
id=3D"m_-2225931148016240260m_-1333010098621185368gmail-comment_text_10">I=
've dd'ed FreeBSD 14.2 RELEASE on a sd card and I tried to boot it with =
my Raspberry Pi zero 2 w :

# dd if=3DFreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img of=3D/dev/sdf

but unfortunately when I turned on the board I got the rainbow screen :

<a href=3D"https://ibb.co/cXKFCtvJ" =
target=3D"_blank">https://ibb.co/cXKFCtvJ</a></pre></div><div><br></div><d=
iv></div><div>According with this but report =
:</div><div><br></div><div><a =
href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261147" =
target=3D"_blank">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D2611=
47</a></div><div><br></div><div>I should apply this fix =
:</div><div><br></div><div><a =
href=3D"https://cgit.freebsd.org/src/commit/?id=3D9873b171697033f9f19608d9=
8bcd1c16cacb92af" =
target=3D"_blank">https://cgit.freebsd.org/src/commit/?id=3D9873b171697033=
f9f19608d98bcd1c16cacb92af</a></div><div><br></div><div>but I see that =
it has already been applied :</div><div><br></div><div><span =
id=3D"cid:ii_m6r2ucw00">&lt;Screenshot_2025-02-04_23-47-23.png&gt;</span><=
br></div><div><br></div><div>but I get the rainbow screen anyway. I =
would like to understand why,where is the error,how can I fix it =
?</div><div><br></div><div>Thanks.<br></div></div><br><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Feb =
4, 2025 at 8:31=E2=80=AFPM Mario Marietto &lt;<a =
href=3D"mailto:marietto2008@gmail.com" =
target=3D"_blank">marietto2008@gmail.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"><div dir=3D"ltr"><div><span>&gt; =
</span>If I recall correctly, it=E2=80=99s enough to copy =
&nbsp;bcm2710-rpi-3-b-plus.dtb to bcm2710-rpi-zero-2.dtb (in the msdos =
partition).</div><div><br></div><div><span>It seems to be the wrong =
approach :</span></div><div><span><br></span></div><div><span>
          <span><a href=3D"mailto:manu@freebsd.org" title=3D"Emmanuel =
Vadot <manu@freebsd.org>" target=3D"_blank"> <span>Emmanuel =
Vadot</span></a>
</span>
        </span>

        <span>
            <img =
src=3D"https://bugs.freebsd.org/bugzilla/images/committer.png" =
alt=3D"freebsd_committer" title=3D"freebsd_committer - FreeBSD =
Committer">
            <img =
src=3D"https://bugs.freebsd.org/bugzilla/images/triager.png" =
alt=3D"freebsd_triage" title=3D"freebsd_triage - FreeBSD Triagers">
        </span>

        <span>
          2022-01-24 08:09:30 UTC
        </span>

      </div>




<pre =
id=3D"m_-2225931148016240260m_4228728695165874955m_3183943497796044895gmai=
l-comment_text_6">(In reply to david.elliott3040 from <a =
href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261147#c5" =
target=3D"_blank">comment #5</a>)

This is a wrong approach, while they have the same SoC and most of the =
peripherals are <br>the same they are not the same board and this can =
only lead to problems.<br><br></pre><pre =
id=3D"m_-2225931148016240260m_4228728695165874955m_3183943497796044895gmai=
l-comment_text_6">source :<br><br><a =
href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261147" =
target=3D"_blank">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D2611=
47</a></pre></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Tue, Feb 4, 2025 at 8:19=E2=80=AFPM Marco =
Devesas Campos &lt;<a href=3D"mailto:devesas.campos@gmail.com" =
target=3D"_blank">devesas.campos@gmail.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"><div>If I recall correctly, it=E2=80=99=
s enough to copy &nbsp;bcm2710-rpi-3-b-plus.dtb to =
bcm2710-rpi-zero-2.dtb (in the msdos =
partition).<div><br></div><div>Best,</div><div>Marco</div><div><br =
id=3D"m_-2225931148016240260m_4228728695165874955m_3183943497796044895m_-7=
106475431873752186lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On 4 Feb 2025, at 17:35, Mario Marietto &lt;<a =
href=3D"mailto:marietto2008@gmail.com" =
target=3D"_blank">marietto2008@gmail.com</a>&gt; =
wrote:</div><br><div><div dir=3D"ltr"><div><pre =
id=3D"m_-2225931148016240260m_4228728695165874955m_3183943497796044895m_-7=
106475431873752186gmail-comment_text_10">Hello.

I've dd'ed FreeBSD 14.2 RELEASE on a sd card and I tried to boot it with =
my Raspberry Pi zero 2 w :

# dd if=3DFreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img of=3D/dev/sdf

but unfortunately when I turned on the board I got the rainbow screen :

<a href=3D"https://ibb.co/cXKFCtvJ" =
target=3D"_blank">https://ibb.co/cXKFCtvJ</a>;

So I suppose that the fix hasn't been upstreamed for FreeBSD =
14.2-RELEASE.=20

What can I do to bypass the bug ?</pre></div><br><span =
class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" =
class=3D"gmail_signature">Mario.<br></div></div>
</div></blockquote></div><br></div></div></blockquote></div><div><br =
clear=3D"all"></div><br><span class=3D"gmail_signature_prefix">-- =
</span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></div>
</blockquote></div><div><br clear=3D"all"></div><br><span =
class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" =
class=3D"gmail_signature">Mario.<br></div>
</div></blockquote></div><br></div></body></html>=

--Apple-Mail=_79EF823E-BE94-447B-9174-23661F7CD30E--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FEDBC538-E7B2-49CA-AD27-3641A1BF6E56>