lkml.org 
[lkml]   [2018]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectCustom module to add device tree overlay - kernel 4.14-rc4
Date
Hi,

I made a custom module using the kernel API (of_fdt_unflatten_tree +
of_resolve_phandles + of_overlay_create ) to dynamically (after my
kernel has booted) insert an overlay.

It seems to work just fine, I can see the result in /proc/device-tree,
but theses changes are not propagated to /dev or to
/sys/devices/plateform. So I can't use what I have added using my overlay.

I first though that the device/plateform driver was not re-probed, but
even if I include a line like this one :

platform_device_register_simple("at91_rtc", -1, NULL, 0);

it does not work :/.

So I was wondering if someone knows a way to dynamically add an overlay
and can see the changes. (not only in /proc/device-tree).

PS: I don't use U-Boot, nor configfs, and I don't want to use my overlay
through the bootloader.

Best regards,
Carli-K

\
 
 \ /
  Last update: 2018-04-26 15:07    [W:0.029 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site