How to operate the gpio

Lei YU mine260309 at gmail.com
Tue Dec 11 18:57:35 AEDT 2018


> And I also find a python scripts in obmc: gpioutil
>
> But it need import obmc_system_config
>
> >>> import obmc_system_config
>
> Traceback (most recent call last):
>
>   File "<stdin>", line 1, in <module>
>
> ImportError: No module named obmc_system_config
>
>
>
> Does anyone know how to install this module in obmc?
>
>
>
> Or does anyone know a better way to operate the gpio?

gpioutil is an convenient util to operate gpio in user space.

The "obmc_system_config" is something legacy and will be deprecated, which is
installed by "workbook" recipe, e.g. [Romulus workbook][1] is from skeleton's
Romulus.py, or a dummy python config defined by [meta-q71l][2]

Optionally, you could try to remove the dependency of "obmc_system_config" in
gpioutil, and patches are welcome :D

[1]: https://github.com/openbmc/openbmc/tree/master/meta-ibm/meta-romulus/recipes-phosphor/workbook
[2]: https://github.com/openbmc/openbmc/tree/master/meta-quanta/meta-q71l/recipes-phosphor/workbook


More information about the openbmc mailing list