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

IOError: [Errno 2] No such file or directory: '/slots'. #167

Closed
Rohi23 opened this issue Oct 2, 2017 · 16 comments
Closed

IOError: [Errno 2] No such file or directory: '/slots'. #167

Rohi23 opened this issue Oct 2, 2017 · 16 comments
Assignees
Labels

Comments

@Rohi23
Copy link

Rohi23 commented Oct 2, 2017

Hello ,

I am new to beagle bone.
I am trying to run pwm program. But getting
IOError: [Errno 2] No such file or directory: '/slots'.

Below is the program .

import Adafruit_BBIO.PWM as PWM
#PWM.start(channel, duty, freq=2000, polarity=0)
PWM.start("P9_14", 50)

PWM.set_duty_cycle("P9_14", 25.5)
PWM.set_frequency("P9_14", 10)
PWM.stop("P9_14")
PWM.cleanup()

When i run getting below error.

File "pwm.py", line 5, in
PWM.set_duty_cycle("P9_14", 25.5)
IOError: [Errno 2] No such file or directory: '/slots'

Please advice.

@RobertCNelson
Copy link
Contributor

@Rohi23 please run:

sudo /opt/scripts/tools/version.sh

@pdp7 with later u-boot and kernel combinations, the "slots" file is now disabled when running u-boot overlays. (this was changed to stop users from echoing into "slots" and locking up the system)..

So the "bone_capemgr" directory is still there:

/sys/devices/platform/bone_capemgr/

While this file only exists if the old "kernel" overlays method is active (non-u-boot-overlays)

/sys/devices/platform/bone_capemgr/slots

Regards,

@pdp7
Copy link
Collaborator

pdp7 commented Oct 2, 2017

Thanks @RobertCNelson. I believe I addressed that in #147 (f811062)

@Rohi23 if /opt/scripts/tools/version.sh does not exist, then please paste the output of these two commands:

uname -a

cat /etc/dogtag

@pdp7 pdp7 self-assigned this Oct 2, 2017
@Rohi23
Copy link
Author

Rohi23 commented Oct 3, 2017

Hi pdp7.

Not able to execute
sudo /opt/scripts/tools/version.sh

Below is the output.

root@beaglebone:# uname -a
Linux beaglebone 4.4.9-ti-r25 #1 SMP Thu May 5 23:08:13 UTC 2016 armv7l GNU/Linu x
root@beaglebone:
# cat /etc/dogtag
BeagleBoard.org Debian Image 2016-05-13
root@beaglebone:~#

@pdp7
Copy link
Collaborator

pdp7 commented Oct 3, 2017

@Rohi23 that 2016-05-13 image is a bit old at this point. Please download the latest image (Debian 9.1 2017-09-21 4GB SD IoT image) from http://beagleboard.org/latest-images

@pdp7
Copy link
Collaborator

pdp7 commented Oct 8, 2017

@Rohi23 are you still having an issue? Please let me know. Thanks.

@pdp7 pdp7 added the question label Oct 10, 2017
@pdp7
Copy link
Collaborator

pdp7 commented Oct 17, 2017

@Rohi23 can I close this issue?

@pdp7
Copy link
Collaborator

pdp7 commented Oct 18, 2017

@Rohi23 please reopen if still an issue

@pdp7 pdp7 closed this as completed Oct 18, 2017
@ravinderreddy429
Copy link

hi,

I am working with the BBB, i would like to Enable SPI in BBB to connect SPI based timer PCF2129

I am getting the error below

debian@beaglebone:$ cat /sys/devices/platform/bone_capemgr/slots
cat: /sys/devices/platform/bone_capemgr/slots: No such file or directory
debian@beaglebone:
$ sudo /opt/scripts/tools/version.sh
[sudo] password for debian:
git:/opt/scripts/:[d36fe9a7be9ebfc872b10a470e904ab4c61c4516]
eeprom:[A335BNLT000C1633BBBG0061]
dogtag:[BeagleBoard.org Debian Image 2017-10-10]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2017.09-00002-g0f3f1c7907]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.09-00002-g0f3f1c7907]
kernel:[4.4.91-ti-r133]
nodejs:[v6.11.4]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg:[bb-cape-overlays]:[4.4.20171009.0-0rcnee1stretch+20171009]
pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee1
stretch+20170829]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee0stretch+20170830]
debian@beaglebone:
$ cat /sys/devices/platform/bone_capemgr/slots
cat: /sys/devices/platform/bone_capemgr/slots: No such file or directory
debian@beaglebone:$ uname -a
Linux beaglebone 4.4.91-ti-r133 #1 SMP Tue Oct 10 05:18:08 UTC 2017 armv7l GNU/Linux
debian@beaglebone:
$ cat /etc/dogtag
BeagleBoard.org Debian Image 2017-10-10

what can be th solution for this......

Regards,
Ravinderreddy

@RobertCNelson
Copy link
Contributor

@ravinderreddy429

add your cape overlay to /boot/uEnv.txt with:

https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Override_external_capes

regards,

@NagarjunaReddy1242
Copy link

i got one problem
cat /sys/devices/platform/bone_capemgr/slots its giving error as no such directory/file
can you please solve this error

@shantnavagarwal
Copy link

@NagarjunaReddy1242
open uEnv.txt /boot directory and comment out the line "enable_uboot_overlays=1"
It should look like this : "#enable_uboot_overlays=1"
This worked for me in Debian 9.2 IoT

@NagarjunaReddy1242
Copy link

NagarjunaReddy1242 commented Dec 20, 2017 via email

@NagarjunaReddy1242
Copy link

NagarjunaReddy1242 commented Dec 20, 2017 via email

@ghost
Copy link

ghost commented Jan 20, 2018

uncommenting enable_uboot_overlays=1
in /boot/uEnv.txt
allowed me to get SPIDEV's /dev/spidev1.0 working on a BEAGLEBONE BLACK on DEBIAN 9 - this is probably very essential if you are trying to run flashrom to install LIBREBOOT, for example

@salahgafoor
Copy link

Hi,

Please reopen this thread, if closed.

I want to configure some of my gpio pins (P8_07 to P8_10) of my beagle bone black revC board as inputs with active high state.

OS running in my board is Debian 9.3, with Kernel 4.1.

Thanks in advance!

@amirbenayed
Copy link

I dont find the file bone_capemgr in /sys/devices/platform/

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

No branches or pull requests

8 participants