DietPi OS for Quartz64
#23
Yes, rewriting the DTB in U-Boot, which is what StarFive does, has nothing to do with overlays. I find this a highly problematic practice, hence I solved the 8 GiB support with an actual overlay, which works great when applying it via extlinux. And what I do has again nothing to do with dynamic overlay loading, but my method works, while loading the same overlay dynamically does not.

My point really is that you seem to indicate that dynamic overlay loading is the only correct method and doing it via U-Boot script or extlinux is not great as you need to reboot the system every time. And IMO this is a wrong view of things, as dynamic overlay loading, like in above example, does not work for all overlays, might cause subtile problems, memory leaks when removing them again (not sure, but the kernel messages say so) etc. So for systems where a lot of overlays are offered, like when using Armbian kernels and many of the vendor kernels, when aiming for a generic method to toggle overlays, IMO, doing this via boot script/extlinux/whatever non-dynamically is the only correct way. As only some overlays can be dynamically loaded, if this is wanted, then any distro offering it via some kind of UI or documentation, must implement or document two ways of toggling overlays, to assure or make clear that users are not trying to toggle an overlay dynamically which cannot work that way or causes even larger issues when trying it. And I am not sure whether either Armbian or DietPi are keen to implement and maintain two methods, given that both (all such) projects are chronically under-stuffed, and that a reboot, at least IMO, really is a very minor issue as you usually do not regularly toggle hardware features back and forth.

However, for the Quartz64, our kernel build does not ship with any overlay so far, and we have no UI or documentation to toggle them yet. So if the here requested I2C and SPI interfaces can be toggled reliably dynamically, without any downsides, I am open to implement it that way.

Ah one thing: Of course one usually expects hardware feature changes to persist reboots. So when implementing dynamic overlay loading, one needs to apply then statically anyway. And before adding a userland script which does the dynamic loading on every boot, it is much better (at least easier) to additionally add them via extlinux/boot script/..., isn't it? The only problem then surely is that a statically loaded overlay cannot be dynamically removed, at least not without adding another dynamic overlay which reverts the change of the static one Rolleyes. Hmm, the more I think about it, the more I dislike the mix of these methods. Probably I should read a little more into the related kernel docs, to check whether this really is a future-prove API or is seen problematic and might eventually get removed anyway. That there is a kernel warning spit out at all to me looks like a "do this if you must for testing, but do not do this on a production system/on a regular basis".
  Reply


Messages In This Thread
DietPi OS for Quartz64 - by MichaIng - 11-13-2022, 05:06 AM
RE: DietPi OS for Quartz64 - by mig - 03-06-2023, 10:54 AM
RE: DietPi OS for Quartz64 - by fxc - 03-06-2023, 04:11 PM
RE: DietPi OS for Quartz64 - by mig - 03-08-2023, 04:52 AM
RE: DietPi OS for Quartz64 - by balbes150 - 03-09-2023, 12:42 AM
RE: DietPi OS for Quartz64 - by MichaIng - 03-15-2023, 07:48 AM
RE: DietPi OS for Quartz64 - by hughsheehy - 03-26-2023, 03:29 AM
RE: DietPi OS for Quartz64 - by hughsheehy - 03-26-2023, 09:48 AM
RE: DietPi OS for Quartz64 - by hughsheehy - 04-05-2023, 07:01 AM
RE: DietPi OS for Quartz64 - by CounterPillow - 04-08-2023, 09:15 AM
RE: DietPi OS for Quartz64 - by balbes150 - 04-09-2023, 04:41 AM
RE: DietPi OS for Quartz64 - by CounterPillow - 04-09-2023, 07:59 AM
RE: DietPi OS for Quartz64 - by balbes150 - 04-10-2023, 01:24 AM
RE: DietPi OS for Quartz64 - by CounterPillow - 04-10-2023, 04:13 AM
RE: DietPi OS for Quartz64 - by hughsheehy - 04-10-2023, 02:45 PM
RE: DietPi OS for Quartz64 - by balbes150 - 04-11-2023, 01:01 AM
RE: DietPi OS for Quartz64 - by MichaIng - 09-26-2023, 09:21 AM
RE: DietPi OS for Quartz64 - by balbes150 - 09-27-2023, 02:14 AM
RE: DietPi OS for Quartz64 - by MichaIng - 09-29-2023, 09:37 AM
RE: DietPi OS for Quartz64 - by balbes150 - 09-29-2023, 02:02 PM
RE: DietPi OS for Quartz64 - by MichaIng - 09-29-2023, 02:17 PM
RE: DietPi OS for Quartz64 - by balbes150 - 09-30-2023, 04:44 AM
RE: DietPi OS for Quartz64 - by MichaIng - 09-30-2023, 06:27 AM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-17-2023, 12:02 AM
RE: DietPi OS for Quartz64 - by MichaIng - 11-17-2023, 09:38 AM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-17-2023, 10:22 AM
RE: DietPi OS for Quartz64 - by MichaIng - 11-17-2023, 10:45 AM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-17-2023, 11:01 AM
RE: DietPi OS for Quartz64 - by MichaIng - 11-17-2023, 11:56 AM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-17-2023, 12:18 PM
RE: DietPi OS for Quartz64 - by MichaIng - 11-17-2023, 12:52 PM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-17-2023, 02:00 PM
RE: DietPi OS for Quartz64 - by MichaIng - 11-17-2023, 02:03 PM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-17-2023, 02:23 PM
RE: DietPi OS for Quartz64 - by MichaIng - 11-17-2023, 02:26 PM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-26-2023, 09:47 PM
RE: DietPi OS for Quartz64 - by MichaIng - 11-27-2023, 08:41 AM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-29-2023, 02:47 AM
RE: DietPi OS for Quartz64 - by MichaIng - 11-29-2023, 10:41 AM
RE: DietPi OS for Quartz64 - by diederik - 11-29-2023, 07:34 PM
RE: DietPi OS for Quartz64 - by stormwyrm - 11-30-2023, 12:57 AM
RE: DietPi OS for Quartz64 - by MichaIng - 11-30-2023, 07:07 AM
RE: DietPi OS for Quartz64 - by diederik - 11-30-2023, 09:25 AM
RE: DietPi OS for Quartz64 - by MichaIng - 11-30-2023, 09:44 AM
RE: DietPi OS for Quartz64 - by diederik - 11-30-2023, 04:02 AM
RE: DietPi OS for Quartz64 - by sickos - 12-12-2023, 02:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Armbian and LibreELEC and AltLinux for Quartz64 balbes150 148 60,260 05-02-2024, 09:09 AM
Last Post: balbes150
  irradium (based on crux linux) Quartz64 riscv64, aarch64 mara 0 221 03-27-2024, 12:53 PM
Last Post: mara
  slarm64 (unofficial slackware) Quartz64 RK3566 (aarch64) mara 56 41,603 10-17-2023, 10:55 AM
Last Post: mara
  quartz64-a - on-board SATA port problems manning 2 1,156 09-14-2023, 04:22 PM
Last Post: manning
  How the reset Quartz64-b onboard memory (emmc) beepy 2 845 07-20-2023, 10:44 PM
Last Post: beepy
  crux-arm Quartz64 RK3566 (aarch64) mara 5 5,033 10-29-2022, 06:55 AM
Last Post: mara
  Ov5647 camera attached via csi to Quartz64 /Soquartz Randomuser 0 1,253 07-21-2022, 01:08 PM
Last Post: Randomuser
  Armbian on Quartz64 dieselnutjob 34 26,966 03-17-2022, 06:29 AM
Last Post: balbes150

Forum Jump:


Users browsing this thread: 1 Guest(s)