From: Cyril Brulebois <cyril@debamax.com>
To: Maxime Ripard <maxime@cerno.tech>
Cc: Stefan Wahren <stefan.wahren@i2se.com>,
Doug Berger <opendmb@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
netdev@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com,
Nicolas Saenz Julienne <nsaenz@kernel.org>
Subject: Re: GENET and UNIMAC MDIO probe issue?
Date: Tue, 26 Oct 2021 06:03:36 +0200 [thread overview]
Message-ID: <20211026040336.eiojc64jf7a3a3ov@debamax.com> (raw)
In-Reply-To: <20211022155839.ptgazrgyvemfa23q@gilmour>
[-- Attachment #1: Type: text/plain, Size: 2528 bytes --]
Hi,
Maxime Ripard <maxime@cerno.tech> (2021-10-22):
> > looks like you are using the vendor DTB, please use the upstream DTB
> > from linux-next:
> >
> > bcm2711-rpi-cm4-io.dtb
>
> I thought upstream_kernel would be enough, but following your message
> I forced it using device_tree, and indeed it works.
>
> But I'm confused now, I don't have any other DTB for the CM4 on that
> boot partition, where is that other device tree coming from?
It seems to be using the DTB for the Pi 4 B instead, at least judging
by:
# tr '\0' '\n' < /proc/device-tree/compatible
raspberrypi,4-model-b
brcm,bcm2711
For the avoidance of doubt, the relevant /boot/firmware has those files,
copied from the linux-image package without any name changes:
/boot/firmware/bcm2711-rpi-4-b.dtb
/boot/firmware/bcm2711-rpi-400.dtb
/boot/firmware/bcm2711-rpi-cm4-io.dtb
/boot/firmware/bcm2837-rpi-3-a-plus.dtb
/boot/firmware/bcm2837-rpi-3-b-plus.dtb
/boot/firmware/bcm2837-rpi-3-b.dtb
/boot/firmware/bcm2837-rpi-cm3-io3.dtb
so maybe some fallback to the Pi 4 B happened via the more generic
brcm,bcm2711 compatible fragment?
Initially I was wondering whether there might be some things on the
EEPROM side that might need an update, but wading through some issues
in the raspberrypi/rpi-eeprom repository[1], it seems start.elf is
responsible for passing the dtb file and a quick look into it suggests
there might be a single format string for that: bcm%d-rpi-%s.dtb
1. https://github.com/raspberrypi/rpi-eeprom
I'm also seeing filename fragments, but nothing that ressembles the io
suffix that's being used for the CM4 upstream DTB.
Since it seems that the bootloader might be expecting “vendor DTB” and
the kernel might use different names when it comes to “upstream DTB”,
are users/distributions expected to set the proper filename via
device_tree= all the time? If that's the case, I hadn't noticed until
now since we used to have things like this in Debian to put files into
place under the “expected filenames”:
cp <packaged>/bcm2837-rpi-cm3-io3.dtb /boot/firmware/bcm2710-rpi-cm3.dtb
Nowadays, our raspi-firmware package is just copying the DTB files (as
shipped by linux-image packages, meaning “upstream DTB” names without
any renaming), so we might have failed to notice a possible need for
this device_tree parameter…
Cheers,
--
Cyril Brulebois -- Debian Consultant @ DEBAMAX -- https://debamax.com/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-10-26 4:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-22 14:33 GENET and UNIMAC MDIO probe issue? Maxime Ripard
2021-10-22 15:35 ` Stefan Wahren
2021-10-22 15:58 ` Maxime Ripard
2021-10-26 4:03 ` Cyril Brulebois [this message]
2021-10-22 16:27 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211026040336.eiojc64jf7a3a3ov@debamax.com \
--to=cyril@debamax.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=f.fainelli@gmail.com \
--cc=maxime@cerno.tech \
--cc=netdev@vger.kernel.org \
--cc=nsaenz@kernel.org \
--cc=opendmb@gmail.com \
--cc=stefan.wahren@i2se.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox