Failed to export GPIO from sysfs

Vijay Khemka vijaykhemka at fb.com
Fri Jan 3 06:02:41 AEDT 2020


Are you setting these GPIO in any other applications. Quickly if you are using libgpiod then these line might be already open.

More importantly, are you able to export any other GPIO?

Regards
-Vijay

From: openbmc <openbmc-bounces+vijaykhemka=fb.com at lists.ozlabs.org> on behalf of 赵东浩 <z1908144712 at 163.com>
Date: Wednesday, January 1, 2020 at 4:39 PM
To: "openbmc at lists.ozlabs.org" <openbmc at lists.ozlabs.org>
Subject: Failed to export GPIO from sysfs

I want to control GPIO F1, F2 and F3, but I can't export from sysfs. When I execute echo 333 > export, the following error is reported:
root at xxxx:/sys/class/gpio# echo 333 > export
[  120.060018] aspeed-g4-pinctrl 1e6e2000.syscon:pinctrl: request() failed for pin 41
[  120.067642] aspeed-g4-pinctrl 1e6e2000.syscon:pinctrl: pin-41 (1e780000.gpio:333) status -1
-sh: echo: write error: Operation not permitted
root at xxxx:/sys/class/gpio# echo 334 > export
[  136.689801] aspeed-g4-pinctrl 1e6e2000.syscon:pinctrl: request() failed for pin 42
[  136.697423] aspeed-g4-pinctrl 1e6e2000.syscon:pinctrl: pin-42 (1e780000.gpio:334) status -1
-sh: echo: write error: Operation not permitted
root at xxxx:/sys/class/gpio# echo 335 > export
[  140.289975] aspeed-g4-pinctrl 1e6e2000.syscon:pinctrl: request() failed for pin 43
[  140.297601] aspeed-g4-pinctrl 1e6e2000.syscon:pinctrl: pin-43 (1e780000.gpio:335) status -1
-sh: echo: write error: Operation not permitted
Since these gpios are used to control remote switch machines, no other devices occupy these gpios. I wonder if there are any places where gpios need to be set?
[Image removed by sender.]
Hao
z1908144712 at 163.com
签名由 网易邮箱大师<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.163.com_dashi_dlpro.html-3Ffrom-3Dmail81&d=DwMGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=v9MU0Ki9pWnTXCWwjHPVgpnCR80vXkkcrIaqU7USl5g&m=719HaK2CWp3m6IIQfrKLklkNnP-WWR-bFC4JTyKun7o&s=sp7UV3R0HaZqVTGB_NkClI0P1CYliHpv2695c_QxRV8&e=> 定制
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200102/cfa5f7e4/attachment-0001.htm>


More information about the openbmc mailing list