Quantcast
Viewing all articles
Browse latest Browse all 2593

Raspberry Pi OS • Re: Write to /sys/kernel/debug while OverlayFs is enabled

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
The overlay has not affected the writability of /sys.

The error "Invalid argument" basically means "User is doing something wrong". You should not use nano to "edit" a "file" in /proc or /sys. These are not regular files stored on disk, but kernel interfaces. nano wants to call fsync(), which is not supported. You should access them in basic ways, such as:

Code:

pi@pi64:~ $ cat /sys/kernel/debug/bluetooth/hci0/adv_max_interval 2048pi@pi64:~ $ echo 4096 |sudo tee /sys/kernel/debug/bluetooth/hci0/adv_max_interval 4096
The error "No such file or directory" means that the interface, or one of its parent directories, was not present at that time or in that context. Maybe your systemd service is starting before the driver has loaded. Maybe the overlay changes its behaviour in other ways. systemd is complaining about syntax, and also /var/dev/ should not be a thing.

Statistics: Posted by jojopi — Thu Sep 26, 2024 12:37 pm



Viewing all articles
Browse latest Browse all 2593

Trending Articles