пт, 31 янв. 2025 г. в 16:41, Ivan Ivanov <ivan.iva...@suse.com>: > > Hi, > > > On 30 Jan 2025, at 16:19, Matwey Kornilov <matwey.korni...@gmail.com> wrote: > > > > Torsten Duwe wrote: > >> Hi Matwey, > >> > >> On Tue, 28 Jan 2025 16:38:21 -0000 > >> "Matwey Kornilov" <matwey.korni...@gmail.com> wrote: > >>> Hello, > >>> What is the recommended way to apply device tree overlay when running > >>> openSUSE Tumbleweed on ARM single board computer? Is there any wiser > >>> way than just patch corresponding /boot/dtb/ file? > >>> I'm not an expert on DTBOs, I compile and hence patch DTSes on a daily > >> basis, but I think that our Raspberry Pi images provide a mechanism to > >> load overlays automatically. Maybe have a look there? > > > > What do you mean? I found only manual command in u-boot console, but it is > > not suitable for persistent configuration. > > Why not? You could modify bootcmd to apply your DTBO at boot.
My bootcmd is `bootflow scan` which also loads the main dtb from the filesystem. So I also have to read dtb manually in order to apply the overlay. > > > > While I would expect something like > > https://github.com/edk2-porting/edk2-rk3588?tab=readme-ov-file#custom-device-tree-blob-dtb-override-and-overlays > > > > IIUC this is similar to how U-Boot apply overlays, it is just EDK2. > If I understand correctly, it is not. There are some specific cases (like BeagleBone Black) when u-boot automatically apply overlays, while it doesn't discover any overlays generally. > >> > >> Which particular system are you considering? > > > > I am running OrangePi Zero 2W, but device tree overlays is rather generic > > feature required almost everywhere when you have extension header. > > Important point in cases above, including how RPi, is that applying > the overlay was done by device firmware before Linux boots. As far as I know there is no debug interface to apply the overlay when Linux is already booted. > > Regards, > Ivan -- With best regards, Matwey V. Kornilov