Failed to export GPIO from sysfs

赵东浩 z1908144712 at 163.com
Thu Dec 19 22:46:28 AEDT 2019


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?
| |
Hao
|
|
z1908144712 at 163.com
|
签名由网易邮箱大师定制
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191219/ff06f2a6/attachment.htm>


More information about the openbmc mailing list