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@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@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@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 | | [email protected] | 签名由网易邮箱大师定制
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 <[email protected]> on behalf of 赵东浩 <[email protected]>
Date: Wednesday, January 1, 2020 at 4:39 PM
To: "[email protected]" <[email protected]>
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@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@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@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 [email protected] 签名由 网易邮箱大师<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=> 定制