您尚未登录。

楼主 # 2022-04-07 00:56:04

8z00z8
会员
注册时间: 2022-03-27
已发帖子: 8
积分: 13

芒果派 R3 在echo xxx > /sys/class/gpio/export 时,说已被占用

# l
total 0
drwxr-xr-x    2 root     root             0 Jan  1 00:00 .
drwxr-xr-x   44 root     root             0 Jan  1 00:00 ..
--w-------    1 root     root          4096 Jan  1 00:00 export
lrwxrwxrwx    1 root     root             0 Jan  1 00:00 gpiochip0 -> ../../deviorm/soc/1c20800.pinctrl/gpio/gpiochip0
--w-------    1 root     root          4096 Jan  1 00:00 unexport
# c
# ls
export     gpiochip0  unexport
# echo 133 > export
[  559.339394] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin PE5 already requested 0.csi; cannot claim for 1c20800.pinctrl:133
[  559.351183] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin-133 (1c20800.pinctrl:1s -22
sh: write error: Invalid argument
# echo 132 > export
[  570.416007] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin PE4 already requested 0.csi; cannot claim for 1c20800.pinctrl:132
[  570.427781] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin-132 (1c20800.pinctrl:1s -22
sh: write error: Invalid argument
# mdev -s
# echo 134 > export
[ 2553.646357] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin PE6 already requested 0.csi; cannot claim for 1c20800.pinctrl:134
[ 2553.658140] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin-134 (1c20800.pinctrl:1s -22
sh: write error: Invalid argument
# echo 135 > export
[ 2558.647273] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin PE7 already requested 0.csi; cannot claim for 1c20800.pinctrl:135
[ 2558.659060] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin-135 (1c20800.pinctrl:1s -22
sh: write error: Invalid argument
#

离线

楼主 #2 2022-04-07 11:51:49

8z00z8
会员
注册时间: 2022-03-27
已发帖子: 8
积分: 13

Re: 芒果派 R3 在echo xxx > /sys/class/gpio/export 时,说已被占用

cube 说:

dts里面把csi disabled掉。

请教一下大神,dts文件太多,不知道找哪个,在哪里?用的buildroot-tiny200的buildroot

离线

楼主 #4 2022-04-07 14:36:31

8z00z8
会员
注册时间: 2022-03-27
已发帖子: 8
积分: 13

Re: 芒果派 R3 在echo xxx > /sys/class/gpio/export 时,说已被占用

@abnerl
是在make uboot-menuconfig查看吗?

离线

楼主 #6 2022-04-14 00:16:01

8z00z8
会员
注册时间: 2022-03-27
已发帖子: 8
积分: 13

Re: 芒果派 R3 在echo xxx > /sys/class/gpio/export 时,说已被占用

abnerl 说:
8z00z8 说:

@abnerl
是在make uboot-menuconfig查看吗?

可以,也可以在uboot启动时,终止查看环境变量

已解决,是因为修改设备树后,直接make,设备树并不会重新编译,要删除掉output/build/下面,uboot和对应版本Linux的.stamp_build,重新make才能生效

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn