I am tying to load a dtbo at runtime with cat my.dtbo > sys/kernel/config/device-tree/overlays/dtbo
.
However the dir sys/kernel/config/device-tree/overlays
does not exist and creating it with mkdir -p sys/kernel/config/device-tree/overlays
says 'Operation not permitted'.
What am I missing?
The Kernel configs should be correct:
$ zcat /proc/config.gz | grep CONFIGFS_FS
CONFIG_CONFIGFS_FS=y
$ zcat /proc/config.gz | grep CONFIG_OF_OVERLAY
CONFIG_OF_OVERLAY=y
I have also tried to mount the configfs:
$ mount -t configfs none /sys/kernel/config/
mount: /sys/kernel/config: none already mounted on /sys/fs/bpf.
In /sys/fs/bpf
I can create the device-tree/overlay' directory. But
cat my.dtbo > sys/fs/bpp/device-tree/overlays/dtboreturns still a
Permission denied`
Im am using a Phyboard Pollux, with an i.MX 8M plus with Yocto:
$ lsb_release -a
Distributor ID: ampliPHY
Description: ampliPHY GNU/Linux BSP-Yocto-NXP-i.MX8MP-PD22.1.0 (hardknott)
Release: BSP-Yocto-NXP-i.MX8MP-PD22.1.0
Codename: hardknott
The loading with U-Boot does work. So the problem is not with the dtbo file