Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Set gpio mode failed, missing file or invalid permissions. #367

Open
jelledevleeschouwer opened this issue Aug 9, 2023 · 1 comment

Comments

@jelledevleeschouwer
Copy link

Still have the same issue as multiple users reported, though I'm running a quite recent BBB image U-boot. I also do not experience it every time, it seems to be some timing issue or something?

Aug  9 06:51:38 :     [ ... ]
Aug  9 06:51:38 :     GPIO.setup(io, GPIO.IN)
Aug  9 06:51:38 : ValueError: Set gpio mode failed, missing file or invalid permissions.
@jelledevleeschouwer
Copy link
Author

Output of version.sh:

git:/opt/scripts/:[a335abcf87d2ef5fd96e7de83cdf3f0ff5a4da2b]
eeprom:[A335BNLT00C03516BBBK0B7D]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2019.04-00002-gc9b3922522 (Aug 24 2020 - 16:42:18 -0500)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-gc9b3922522]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.bb.org-overlays]
kernel:[4.19.94-ti-r42]
nodejs:[v10.24.0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~buster+20210821]
pkg:[bb-customizations]:[1.20221108.0-0~buster+20221108]
pkg:[bb-usb-gadgets]:[1.20220816.0-0~buster+20220816]
pkg:[bb-wl18xx-firmware]:[1.20221201.0-0~buster+20221201]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc admin spi iio docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[   68.239034] remoteproc remoteproc0: wkup_m3 is available
[   68.382312] remoteproc remoteproc0: powering up wkup_m3
[   68.382348] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[   68.382644] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   73.722479] remoteproc remoteproc1: 4a334000.pru is available
[   73.763814] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   73.722479] remoteproc remoteproc1: 4a334000.pru is available
[   73.722684] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
[   73.763814] remoteproc remoteproc2: 4a338000.pru is available
[   73.764028] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
dmesg | grep pinctrl-single
[    0.949257] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.475081] pinctrl-single 44e10800.pinmux: pin PIN108 already requested by ocp:A15_pinmux; cannot claim for 0-0070
[    1.485720] pinctrl-single 44e10800.pinmux: pin-108 (0-0070) status -22
[    1.492402] pinctrl-single 44e10800.pinmux: could not request pin 108 (PIN108) from group nxp_hdmi_bonelt_pins  on device pinctrl-single
dmesg | grep gpio-of-helper
[    0.962619] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 002: ID 1915:c00a Nordic Semiconductor ASA 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
debian@cc-ringshifter-eol:~/test_setup$ date
Wed 09 Aug 2023 08:27:03 AM UTC
debian@cc-ringshifter-eol:~/test_setup$ cat /var/log/syslog | less
debian@cc-ringshifter-eol:~/test_setup$  sudo /opt/scripts/tools/version.sh
[sudo] password for debian: 
git:/opt/scripts/:[a335abcf87d2ef5fd96e7de83cdf3f0ff5a4da2b]
eeprom:[A335BNLT00C03516BBBK0B7D]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2019.04-00002-gc9b3922522 (Aug 24 2020 - 16:42:18 -0500)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-gc9b3922522]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.bb.org-overlays]
kernel:[4.19.94-ti-r42]
nodejs:[v10.24.0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~buster+20210821]
pkg:[bb-customizations]:[1.20221108.0-0~buster+20221108]
pkg:[bb-usb-gadgets]:[1.20220816.0-0~buster+20220816]
pkg:[bb-wl18xx-firmware]:[1.20221201.0-0~buster+20221201]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc admin spi iio docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[   68.239034] remoteproc remoteproc0: wkup_m3 is available
[   68.382312] remoteproc remoteproc0: powering up wkup_m3
[   68.382348] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[   68.382644] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   73.722479] remoteproc remoteproc1: 4a334000.pru is available
[   73.763814] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   73.722479] remoteproc remoteproc1: 4a334000.pru is available
[   73.722684] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
[   73.763814] remoteproc remoteproc2: 4a338000.pru is available
[   73.764028] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
dmesg | grep pinctrl-single
[    0.949257] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.475081] pinctrl-single 44e10800.pinmux: pin PIN108 already requested by ocp:A15_pinmux; cannot claim for 0-0070
[    1.485720] pinctrl-single 44e10800.pinmux: pin-108 (0-0070) status -22
[    1.492402] pinctrl-single 44e10800.pinmux: could not request pin 108 (PIN108) from group nxp_hdmi_bonelt_pins  on device pinctrl-single
dmesg | grep gpio-of-helper
[    0.962619] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 002: ID 1915:c00a Nordic Semiconductor ASA 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant