DietPi OS for Quartz64
#19
(09-27-2023, 02:14 AM)balbes150 Wrote:
(09-26-2023, 09:21 AM)MichaIng Wrote: If someone can show me a method to enable device tree overlays on-the-fly on mainline Linux 6.5.y, I am open to try it. I have however never seen such, despite for a very short time on Raspberry Pi with their vendor kernel/bootloader and "dtoverlay" command, which worked with only a very small number of their overlays, while in most cases it just caused kernel errors and did not enable the intended functionality. From that point on I was pretty sure that there is no reliable way to enable kernel device tree overlays on-the-fly, but I am open to be proven wrong.

In the meantime, even extlinux has support for (not on-the-fly) device tree overlays with fdtoverlay setting, so theoretically we could add some. Our U-Boot might be too old, as it is still a fork based on 2022.10, but I should be able to switch to mainline U-Boot, now that it supports adding (the sadly needed) SPL and DDR blobs properly.

But, it might be easier to enable I2S/SPI/... interfaces just OOTB, as long as they do not collide and the GPIO pins do not have conflicting uses.

link

https://forum.armbian.com/topic/24931-ar...ent=160812

Thanks. However, it does not seem to work reliably. Tested on VisionFive 2:

Code:
root@DietPi:~# cd /sys/kernel/config/device-tree/overlays
root@DietPi:/sys/kernel/config/device-tree/overlays# mkdir test
root@DietPi:/sys/kernel/config/device-tree/overlays# cat /boot/dietpi-visionfive2-8GB.dtbo > test/dtbo
root@DietPi:/sys/kernel/config/device-tree/overlays# cat test/status
applied
root@DietPi:/sys/kernel/config/device-tree/overlays# free -m
              gesamt      benutzt    frei      gemns.  Puffer/Cache verfügbar
Speicher:      3872        659        2753        198        700        3213
Swap:              0          0          0
root@DietPi:/sys/kernel/config/device-tree/overlays# dmesg | tail -1
[62252.093999] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /memory@40000000/reg

So the overlay was applied successfully, in this case for 8 GiB RAM support, but it did not have an effect. The very same was the case with the majority of the RPi overlays I tested this (with their dtoverlay comnmand) a while ago. I think most features simply cannot be changed or added plug&play with the device tree, but the kernel and/or driver(s) need to initialise with them being set in the first place. And the memory leak warning was the very same on RPi and at least does not sound great, though I am not 100% sure if/when/how this applies or not.
  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
RE: DietPi OS for Quartz64 - by kup4ooo - 07-16-2024, 12:18 AM
RE: DietPi OS for Quartz64 - by ifreislich - 08-08-2024, 07:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Quartz64 riscv64, aarch64 mara 4 1,103 11-20-2024, 10:45 AM
Last Post: mara
  USB on Quartz64 Zero litbulb 0 95 11-13-2024, 08:16 AM
Last Post: litbulb
  Armbian and LibreELEC and AltLinux for Quartz64 balbes150 149 81,983 10-25-2024, 01:53 PM
Last Post: gounthar
  slarm64 (unofficial slackware) Quartz64 RK3566 (aarch64) mara 56 49,968 10-17-2023, 10:55 AM
Last Post: mara
  quartz64-a - on-board SATA port problems manning 2 1,787 09-14-2023, 04:22 PM
Last Post: manning
  How the reset Quartz64-b onboard memory (emmc) beepy 2 1,391 07-20-2023, 10:44 PM
Last Post: beepy
  crux-arm Quartz64 RK3566 (aarch64) mara 5 5,916 10-29-2022, 06:55 AM
Last Post: mara
  Ov5647 camera attached via csi to Quartz64 /Soquartz Randomuser 0 1,517 07-21-2022, 01:08 PM
Last Post: Randomuser
  Armbian on Quartz64 dieselnutjob 34 32,190 03-17-2022, 06:29 AM
Last Post: balbes150

Forum Jump:


Users browsing this thread: 12 Guest(s)