没有sysfs/debugfs文件系统的Linux [英] Linux without sysfs/debugfs filesystem
问题描述
我需要使用没有任何sysfs/debugfs的系统(这是一个严格的要求,无法更改).
I need to use a system without any sysfs/debugfs (this is a strong requirement, can't change it).
我需要了解如何在没有此文件系统的情况下设法设置Linux.
I need to understand how I can manage to set the Linux without this filesystem.
例如,当配置各种omap PM(电源管理功能)时,我需要设置以下内容:
For example when configuring various omap PM (power management features) I need to set the following:
echo 1 > /dbg/pm_debug/sleep_while_idle
例如,您是否可以将其默认设置为1(我不需要在运行时更改值)?怎么办?
Do you think it is possible to set it as default to 1 for example (I don't need to change the value in runtime) ? How can it be done ?
推荐答案
我发现sysfs/debugfs设置的值实际上设置为内核中的某些变量,因此实际上是在内核中设置特定变量的问题具有预定义(默认)值.
I find that the values that are set by sysfs/debugfs are actually set into some variables in kernel, so it is actually an issue of setting specific variables in kernel with predefind (default) value.
这篇关于没有sysfs/debugfs文件系统的Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!