From: Andre Heider <a.heider@gmail.com>
To: Eric Chung <eric.chung@riscstar.com>
Cc: u-boot-spacemit@groups.io, u-boot@lists.u-boot-project.org,
Yao Zi <me@ziyao.cc>, Tom Rini <trini@konsulko.com>,
Tim Ouyang <tim609@andestech.com>,
Leo Liang <leo.liang@sifive.com>, Wei Fu <wefu@redhat.com>,
Scott Bambrough <scott@riscstar.com>,
Huan Zhou <pericycle.cc@gmail.com>,
Raymond Mao <raymond.mao@riscstar.com>,
Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>,
Anshul Dalal <anshuld@ti.com>, Siu Ming Tong <smtong@axiado.com>,
Johan Jonker <jbx6244@gmail.com>
Subject: Re: [PATCH v13 7/7] spacemit: k1: fix product name detection and DTB matching in SPL
Date: Mon, 5 Oct 2026 09:23:47 +0200 [thread overview]
Message-ID: <2575486d-429d-4044-9b78-bf9b13bb0aa9@gmail.com> (raw)
In-Reply-To: <CAH22mJw3MfVyEva=CGgaEp4y_V2cCv-=n3vz9oKpHtkjsScAPQ@mail.gmail.com>
On 05.10.26 6:01 AM, Eric Chung wrote:
> On Fri, Oct 2, 2026 at 8:58 PM Andre Heider <a.heider@gmail.com> wrote:
>>
>> Hi,
>>
>> just a general question related to this patch, not about the patch itself, see below:
>>
>> On 12.09.26 2:37 PM, Eric Chung wrote:
>>> +static const struct {
>>> + const char *eeprom_name;
>>> + const char *fit_name;
>>> +} k1_board_map[] = {
>>> + { "k1-x_MUSE-Pi-Pro", "spacemit/k1-musepi-pro" },
>>> + { "k1-x_deb1", "spacemit/k1-bananapi-f3" },
>>> + { "k1-x_milkv-jupiter", "spacemit/k1-milkv-jupiter" },
>>> +};
>> This maps the EEPROMs product_name to the dtb, just like the vendor fork, nice.
>>
>> But does the BPI F3 really have "k1-x_deb1" in there?
>> I know that's the fallback dtb of the vendor's fork [0][1], in case there's nothing there, and I thought that was the case for the F3?
>>
>
> k1-x_deb1 means the internal development board. And it could work
> smoothly on the Banana Pi F3.
Yes, but maybe someone with a F3 board can verify via `tlv_eeprom` if that string is actually in there?
>
>
>> Because it seems it's not set for BPI-CM6 IO board either [2], which then makes it impossible to distinguish, at least based on the EEPROM value :\
>>
>
> What's BPI-CM6 IO board? Is the BPI-CM6 IO board similar to the Banana
> Pi F3? Is it supported by linux kernel now?
This one:
https://docs.banana-pi.org/en/BPI-CM6/BananaPi_BPI-CM6
Supported by mainline via:
arch/riscv/boot/dts/spacemit/k1-bananapi-cm6-io.dts
Apparently sinovoip *edited* k1-x_deb1.dts for CM6 and even ship that hack in their OS images (visible in the logs on that OpenWrt PR):
https://github.com/BPI-SINOVOIP/pi-linux/commit/333b99e8cd9b18e98bf71821518548df345dbb61
/o\
>
>> Are there any ideas how to handle that, yet?
>>
>> Can we distinguish between those boards in the SPL based on something different?
>>
>> Or can we make up our own strings and let users write that to EEPROM? Mainline and vendor technically allows it via e.g.:
>> tlv_eeprom set 0x21 "k1-x_BPI-CM6-IO"
>> tlv_eeprom write
>> But that's assuming the EEPROM is writable, which I haven't checked.
>> (And I neither have a F3 nor a CM6).
>>
>
> tlv_eeprom should support to write EEPROM. If it fails, we could
> enable ENV in SPL. I have a patch in the mailing list to enable ENV.
> But that patch was abandoned. You could review the mailing list to
> reuse it.
In the meantime a board owner verified the EEPROM write as working:
https://github.com/openwrt/openwrt/pull/23231#issuecomment-5972395785
For the record, I made up "k1-x_BPI-CM6-IO" as product name with a matching vendor fork device-tree file name, which makes u-boot as well as the kernel pick up their matching device-trees via CONFIG_FIT_BEST_MATCH.
In case mainline u-boot goes the same way (let CM6 owners add a value to EEPROM) to properly make multi-dtb fit images boot, can we agree on a value? Or maybe someone here has connections to sinovoip and ask them to put that/anything in there?
>
>> Cheers,
>> Andre
>>
>> [0] https://gitee.com/spacemit-buildroot/uboot-2022.10/blob/k1-bl-v2.2.y/include/configs/k1-x.h#L28
>> [1] https://gitee.com/spacemit-buildroot/uboot-2022.10/blob/k1-bl-v2.2.y/board/spacemit/k1-x/spl.c#L558
>> [2] https://github.com/openwrt/openwrt/pull/23231#issuecomment-5943699070
next prev parent reply other threads:[~2026-10-05 8:37 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 12:36 [PATCH v13 0/7] spacemit mmc driver Eric Chung
2026-09-12 12:36 ` [PATCH v13 1/7] spacemit: k1: select boot device via config registers Eric Chung
2026-09-12 12:36 ` [PATCH v13 2/7] mmc: k1: add sdhci platform driver Eric Chung
2026-09-16 12:40 ` Yixun Lan
2026-09-23 13:23 ` Yixun Lan
2026-09-12 12:36 ` [PATCH v13 3/7] dts: k1: enable mmc devices in SPL Eric Chung
2026-09-12 12:36 ` [PATCH v13 4/7] configs: k1: enable SD and eMMC support Eric Chung
2026-09-12 12:36 ` [PATCH v13 5/7] MAINTAINER: update Spacemit K1 entry Eric Chung
2026-09-12 12:36 ` [PATCH v13 6/7] doc: spacemit: flash on K1 SoC based boards Eric Chung
2026-09-12 12:37 ` [PATCH v13 7/7] spacemit: k1: fix product name detection and DTB matching in SPL Eric Chung
2026-10-02 12:58 ` Andre Heider
2026-10-05 4:01 ` Eric Chung
2026-10-05 7:23 ` Andre Heider [this message]
2026-10-05 15:34 ` Eric Chung
2026-10-05 21:33 ` E Shattow
2026-10-06 6:57 ` Andre Heider
2026-09-16 12:27 ` [PATCH v13 0/7] spacemit mmc driver Yixun Lan
2026-09-29 10:14 ` Yixun Lan
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=2575486d-429d-4044-9b78-bf9b13bb0aa9@gmail.com \
--to=a.heider@gmail.com \
--cc=anshuld@ti.com \
--cc=bastien.curutchet@bootlin.com \
--cc=eric.chung@riscstar.com \
--cc=jbx6244@gmail.com \
--cc=jh80.chung@samsung.com \
--cc=leo.liang@sifive.com \
--cc=me@ziyao.cc \
--cc=peng.fan@nxp.com \
--cc=pericycle.cc@gmail.com \
--cc=raymond.mao@riscstar.com \
--cc=scott@riscstar.com \
--cc=smtong@axiado.com \
--cc=tim609@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.u-boot-project.org \
--cc=wefu@redhat.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