hej1
March 14, 2025, 8:27am
1
Hello,
I'm trying to dynamically load a i2c dtoverlay, but I get an error:
root@OpenWrt:~# dtoverlay -l
mount: mounting none on /config/device-tree failed: No such file or directory
* Failed to mount configfs - 2
If I define it in the /boot/config.txt directory, it works. But not dynamically.
Any people encountered this with a raspberry CM4, on openwrt 24.10?
Dante
March 14, 2025, 11:40am
2
Do you have configfs
module loaded?
hej1
March 14, 2025, 12:35pm
3
What do you mean by this?
Dante
March 14, 2025, 12:38pm
4
I meant kmod-fs-configfs
. I don't think it comes installed as a default.
hej1
March 14, 2025, 1:26pm
5
I didn't have it, but after installing it, the same problem persists
Dante
March 14, 2025, 1:45pm
6
Did you restart? Does it show up in lsmod | grep configfs
and in mount | grep configfs
? Is /sys/kernel/config
non-empty?
hej1
March 14, 2025, 1:48pm
7
I did restart it. As you can see it is installed. But everything is empty
Dante
March 14, 2025, 2:22pm
8
Can you mount it manually mount -t configfs configfs /sys/kernel/config
?
If that works, you can either add it to fstab
or make a small procd init script something like (not tested):
#!/bin/sh /etc/rc.common
START=19
start() {
if ! mount | grep -q 'configfs on /sys/kernel/config'; then
mount -t configfs configfs /sys/kernel/config
fi
}
Don't forget to enable it first.
hej1
March 18, 2025, 5:21am
9
thanks, this did work.
I wonder why it doesn't mount by default
1 Like
system
Closed
March 28, 2025, 5:21am
10
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.