This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux without sysfs/debugfs filesystem

Guru 20755 points

Hello,

I hope you can help me with ideas for the following:

I need to use a system without any sysfs/debugfs (this is a strong requirement, can't change it).

I need to understand how I can manage to set the linux without this filesystem.

for example when configuring various omap PM (power management features) I need to set the following:
echo 1 > /dbg/pm_debug/sleep_while_idle

Do you think it is possible to set it as default ? How can it be done ?

Thank you for any idea,

Ran

  • Hi Ran,

    What is your kernel version ?

    I think, it can be done.

    I'm seeing this function "sleep_while_idle" called from "arch/arm/mach-omap1/pm.c" but not sure for the other kernel versions.

    Actually  the "echo 1 > /dbg/pm_debug/sleep_while_idle" command stuff done by "idle_store" function.

    So we can change it to default the "enable_dyn_sleep" variable to "1" always.

    Read this variable "enable_dyn_sleep" before and after of initiating the "echo 1 > /dbg/pm_debug/sleep_while_idle" command.

  • Hi Titusrathinaraj Stalin,

    You're Right, we can hack the variables where these values are set/shown, and set them the value we want directly.

    But I think that for the SDK of omap35x the solution is a bit different ant it is in mach-omap2/pm.debug.c (which does not use "enable_dyn_sleep" variable but sleep_while_idle variable)ץ

     

    Thanks,

    Ran

  • Hi Ran,

    You got my point.

    Sounds good.