From nobody Wed Feb 05 00:37:38 2025 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 4YnhCm1LRKz5mlvq for ; Wed, 05 Feb 2025 00:37:56 +0000 (UTC) (envelope-from devesas.campos@gmail.com) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YnhCk4QkCz3W0x for ; Wed, 05 Feb 2025 00:37:54 +0000 (UTC) (envelope-from devesas.campos@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=bstX3HFW; spf=pass (mx1.freebsd.org: domain of devesas.campos@gmail.com designates 2a00:1450:4864:20::430 as permitted sender) smtp.mailfrom=devesas.campos@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-38da88e6db0so674211f8f.2 for ; Tue, 04 Feb 2025 16:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738715872; x=1739320672; darn=freebsd.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=XeEJtIQENVptHtbvy7nR+7DU8jg/ueSUcXPk7uqE76Y=; b=bstX3HFWULQGae2sm9i5m3Ag/ggr1ptDLDaPo2lKnJBWwaHWfvHZSNj/qOVmleiZB9 OqlsVsoEsp2yflI8JOiqlHzrvVB15JEJmRe1pM8a1+dCB0BQNFbR2fqYadE51KRla1zr F8BpBrWxysnakZ2SRFLd3eQMNGHqw3RpZi3IyfW3zeq4/RawB76W2vRK59Ce8iWjs7aJ T2caalChGKkBr4W6WvPd46q3Ldvemba2xqIILvKkXDQfKKi/KAK4NRTiiH4XdJABUNnJ nrjFNJ+bX7yI7vBybMtG45RKYWYvyvtlNLTx09VbqG7ZLyGdoBVNIIZfk19dcFGMWPYF JzzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738715872; x=1739320672; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XeEJtIQENVptHtbvy7nR+7DU8jg/ueSUcXPk7uqE76Y=; b=GoYsJup0845/mPHLY1JGBu8u0f+KFqJLEvNKKvT8CPO94PgfKeYZ1LfU32fShTbm1Z ne8smkwmCrxV9boPBr4Sv5TNYhGTyKTWSwII86pb6nbBBBhoySRPnf+XAHkW6h+a6aSw Z3YNx4OGhRGKAqp97mkMbdxh0aoB/zG665k4YzheoMLvlY28WVFvYnaE38KjV2TZ2Evc ZCtrE1wpJCd/hgbFv0uVOGsYd/awKTyruS6khylPFhMVB6ty90DsTPPyuVSEQcWsCbGY EBmbvd2yDlrJUglGjq84PEeTy9mib30iN3Jgus8e3cQvlaxpdOly0v8YB/bDwWMrKiPc mVxw== X-Gm-Message-State: AOJu0Yw6Q4nca9lcjUtz3AWCPyLOEDXNs9Q5odUNADPGmsE7Y0exugD2 rV2z4VT14FYgtNL9reLN/C5/iQv1eMurOYpVrjShm8EKnK9OfOPK X-Gm-Gg: ASbGncubdG5GhTNpJ6pnUkSkWcFLVUOHEWutETCrLGnc8ds15D7CMzDs00uW+LrlykC voW9F8HwuZbT5Qd0rwSLpFldvYuEeEnaYJY6O17shWVr5jbmLFcCt9J6JCyhONQZ99s7UTmm4UG mN3U9iTijoVAi5BjwisqDf5fM7mnEfR66c8sgCWxnJuReemwIvocAS/S4WRTDysZyHkJvmxuQeN TfLdBgO8FgdZdkNFVwDs7bIg0R07KWEzt9CExbR3nP6DHkXifrJ24iJg5QhTTegBBadCLCnv1HT sEscfx+k8GjY2YTSi4YmOcNnHcoLEI8Ya24Klvf7IEt5a/sSxCaJdbWxnhj6wQbjwEALTUc= X-Google-Smtp-Source: AGHT+IEiVLYQuK6aqxYes5odCkCMHsC5JyKSBT9sJyqhN5HKud07N+qsV3gZSiw2dsNI34zw9Ea53A== X-Received: by 2002:a5d:47ab:0:b0:385:e8b0:df13 with SMTP id ffacd0b85a97d-38db4929bb8mr450368f8f.40.1738715871427; Tue, 04 Feb 2025 16:37:51 -0800 (PST) Received: from smtpclient.apple (a213-22-242-181.cpe.netcabo.pt. [213.22.242.181]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4390d94d846sm4166135e9.10.2025.02.04.16.37.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Feb 2025 16:37:51 -0800 (PST) From: Marco Devesas Campos Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_79EF823E-BE94-447B-9174-23661F7CD30E" 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 16.0 \(3826.400.131.1.6\)) Subject: Re: Raimbow screen installing / booting FreeBSD-14.2-RELEASE-arm64-aarch64-RPI.img on the raspberry pi zero 2w Date: Wed, 5 Feb 2025 00:37:38 +0000 In-Reply-To: Cc: freebsd-arm To: Mario Marietto References: <5E12B96C-20A2-4FFB-A31E-00B259450707@gmail.com> X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::430:from] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4YnhCk4QkCz3W0x --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 = 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 > >=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 = > 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 2022-01-24 08:09:30 UTC >> (In reply to david.elliott3040 from comment #5 = ) >>=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 = > 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 > 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 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:

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 :

https://ibb.co/cXKFCtvJ

According with this but report = :


I should apply this fix = :


but I see that = it has already been applied :

<Screenshot_2025-02-04_23-47-23.png><= br>

but I get the rainbow screen anyway. I = would like to understand why,where is the error,how can I fix it = ?

Thanks.

On Tue, Feb = 4, 2025 at 8:31=E2=80=AFPM Mario Marietto <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).

It seems to be the wrong = approach :

" target=3D"_blank"> Emmanuel = Vadot 3D"freebsd_committer" 3D"freebsd_triage" 2022-01-24 08:09:30 UTC
(In reply to david.elliott3040 from comment #5)

This is a wrong approach, while they have the same SoC and most of the =
peripherals are 
the same they are not the same board and this can = only lead to problems.

source :

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D2611= 47

On Tue, Feb 4, 2025 at 8:19=E2=80=AFPM Marco = Devesas Campos <devesas.campos@gmail.com> = wrote:
If I recall correctly, it=E2=80=99= s enough to copy  bcm2710-rpi-3-b-plus.dtb to = bcm2710-rpi-zero-2.dtb (in the msdos = partition).

Best,
Marco


On 4 Feb 2025, at 17:35, Mario Marietto <marietto2008@gmail.com> = wrote:

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 :

https://ibb.co/cXKFCtvJ

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

What can I do to bypass the bug ?

--
Mario.



-- =
Mario.


--
Mario.

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