[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <trinity-78347fc1-fe38-4035-a681-ff72fd4411cf-1732719843709@trinity-msg-rest-gmx-gmx-live-5cd5dd5458-pz7pz>
Date: Wed, 27 Nov 2024 15:04:03 +0000
From: frank-w@...lic-files.de
To: angelogioacchino.delregno@...labora.com, robh+dt@...nel.org,
matthias.bgg@...il.com
Cc: krzk+dt@...nel.org, conor+dt@...nel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-mediatek@...ts.infradead.org,
devicetree@...r.kernel.org, daniel@...rotopia.org, linux@...web.de,
leith@...e.nz
Subject: Aw: Re: Aw: Re: Aw: [PATCH v3 1/2] arm64: dts: mt7986: add dtbs
with applied overlays for bpi-r3
Hi,
> Gesendet: Mittwoch, 27. November 2024 um 14:23
> Von: "AngeloGioacchino Del Regno" <angelogioacchino.delregno@...labora.com>
> An: frank-w@...lic-files.de, robh+dt@...nel.org, matthias.bgg@...il.com
> CC: krzk+dt@...nel.org, conor+dt@...nel.org, linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org, linux-mediatek@...ts.infradead.org, devicetree@...r.kernel.org, daniel@...rotopia.org, linux@...web.de, leith@...e.nz
> Betreff: Re: Aw: Re: Aw: [PATCH v3 1/2] arm64: dts: mt7986: add dtbs with applied overlays for bpi-r3
>
> Il 06/11/24 19:49, frank-w@...lic-files.de ha scritto:
> > Hi
> >
> > any new state on this??
> >
> > https://patchwork.kernel.org/project/linux-mediatek/patch/20240608080530.9436-2-linux@fw-web.de/
> >
> > regards Frank
>
> I had a look at this one - and this is the situation:
>
> 1. Your bootloader supports loading DTBO, so you can indeed use DTBOs
> 2. Validation of the DTSO can still be done during kernel build without adding
> all of those possible X+Y+Z pre-joined DTBs
> 3. What if your hardware had more than 20 possible configurations?
> Would you write 20 different Makefile entries? "sd+nand+nor",
> "sd+nand-withoutnor", "emmc+nand+nor", "emmc+nand-withoutnor",
> "emmc+sd+nor", "emmc+sd-withoutnor", "ufs+emmc", "ufs+emmc+sd",
> "ufs+sd+nor", "ufs+emmc-withoutnor", "ufs+sd-withoutnor", ......
>
> Looks messy and unfeasible.
right, if we add all possible combinations...that was my point on first round of this patch after robs suggestion. So you have same opinion :)
imho rob is afraid that dtso are not checked during build-time and this is noticed at runtime where it can be checked earlier.
maybe we can find a way in the middle (i tried it in this patch doing the full dtb only for the core functionality, not adding e.g. sata).
> However, this is not a *global* no: I'm happy that your bootloader does support
> loading DTBOs and, as far as I remember, even uses straps to vary the DTB(o) to
> actually load - which is something proper and great... so it's a *no* for you,
> but more than just a no, this is "why are you treating your proper bootflow
> like it was a broken one?!?!" :-)
i still use the dtbos in a fit i created and build off-tree where i add the possible combinations like here as config options and add additional configs for e.g. sata to be combined by bootloader.
currently we use a "full dtb" in uboot where we can probe for emmc vs. sdcard (mmc partprobe) and the spi-device (nand/nor via "sf probe"). We can read the bootstrap pins defining the device from which board was booted, but this is only the half way for hw-detection.
> If anyone finds themselves in a situation in which there's no way to update a
> bootloader (and that unfortunately happens more often than anyone would like
> to see...) and in which the only way to apply DTBOs is to pre-overlay them
> during the kernel build, then that's fine and I would (if nice and clean)
> accept that.
>
> But again, you're not in this kind of situation - and you're lucky that you're
> dealing with a fully open device with a proper bootloader and bootflow: don't
> ruin it like that!
the patch does not break ability to use the dtbos, it only adds second way to create fuill dtbs from them, that of course should not be done extensively....4 full dtbs are enough in my PoV and should not be exceeded.
> Instead, if necessary, update the userspace tools that you're using to deal with
> multiple DTBOs during system upgrades: that's the right thing to do at this point.
i simply replace/add the fit image which contains base dtb and all dtbo with config options ;)
> Cheers,
> Angelo
so i would resend the sata-patch alone when rc1 is out, right?
regards Frank</angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists