mirror of
https://github.com/kidoman/embd
synced 2025-01-03 10:31:36 +01:00
bbb: add a comment explaining why we cannot disable the analog and pwm
modules by removing them from the slots file
This commit is contained in:
parent
9210e4ef1a
commit
6342dd3a19
4
bbb.go
4
bbb.go
@ -117,6 +117,10 @@ func bbbEnsureFeatureEnabled(id string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This cannot be currently used to disable things like the
|
||||||
|
// analog and pwm modules. Removing them from slots file can
|
||||||
|
// potentially cause a kernel panic and unsettle things. So the
|
||||||
|
// recommended thing to do is to simply reboot.
|
||||||
func bbbEnsureFeatureDisabled(id string) error {
|
func bbbEnsureFeatureDisabled(id string) error {
|
||||||
pattern := "/sys/devices/bone_capemgr.*/slots"
|
pattern := "/sys/devices/bone_capemgr.*/slots"
|
||||||
file, err := findFirstMatchingFile(pattern)
|
file, err := findFirstMatchingFile(pattern)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user