{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/94","repository_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python","labels_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/94/comments","events_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/94/events","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/94","id":151508625,"number":94,"title":"SPI not opening on BBB w/ Debian 4.1 and BB SPI cape","user":{"login":"chorca","id":1699703,"avatar_url":"https://avatars.githubusercontent.com/u/1699703?v=3","gravatar_id":"","url":"https://api.github.com/users/chorca","html_url":"https://github.com/chorca","followers_url":"https://api.github.com/users/chorca/followers","following_url":"https://api.github.com/users/chorca/following{/other_user}","gists_url":"https://api.github.com/users/chorca/gists{/gist_id}","starred_url":"https://api.github.com/users/chorca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chorca/subscriptions","organizations_url":"https://api.github.com/users/chorca/orgs","repos_url":"https://api.github.com/users/chorca/repos","events_url":"https://api.github.com/users/chorca/events{/privacy}","received_events_url":"https://api.github.com/users/chorca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-27T22:41:35Z","updated_at":"2016-05-05T04:39:15Z","closed_at":null,"body":"Installed the library, and am currently loading BB-SPIDEV0 'cape' to enable HW SPI.\r\n\r\nWhen trying to create the spi object, python appears to not be able to find the device?\r\n\r\n```\r\ndebian@beaglebone:~$ ls -l /dev/spi*\r\ncrw-rw---- 1 root spi 153, 1 Apr 22 01:16 /dev/spidev1.0\r\ncrw-rw---- 1 root spi 153, 0 Apr 22 01:16 /dev/spidev1.1\r\ndebian@beaglebone:~$ sudo python\r\nPython 2.7.9 (default, Mar  1 2015, 13:48:22) \r\n[GCC 4.9.2] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from Adafruit_BBIO.SPI import SPI\r\n>>> spi = SPI(0,0)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nIOError: [Errno 2] No such file or directory\r\n>>> \r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/comments/217075486","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/94#issuecomment-217075486","issue_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/94","id":217075486,"user":{"login":"SimplicityGuy","id":449189,"avatar_url":"https://avatars.githubusercontent.com/u/449189?v=3","gravatar_id":"","url":"https://api.github.com/users/SimplicityGuy","html_url":"https://github.com/SimplicityGuy","followers_url":"https://api.github.com/users/SimplicityGuy/followers","following_url":"https://api.github.com/users/SimplicityGuy/following{/other_user}","gists_url":"https://api.github.com/users/SimplicityGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/SimplicityGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimplicityGuy/subscriptions","organizations_url":"https://api.github.com/users/SimplicityGuy/orgs","repos_url":"https://api.github.com/users/SimplicityGuy/repos","events_url":"https://api.github.com/users/SimplicityGuy/events{/privacy}","received_events_url":"https://api.github.com/users/SimplicityGuy/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T04:39:15Z","updated_at":"2016-05-05T04:39:15Z","body":"I'm hitting the same exact thing.\r\n\r\nGenerally speaking, the instructions for enabling SPI on Debian Jessie with the 4.1 kernel are not very clear. Here's what I managed to cobble together:\r\n```\r\n1. clone this repo: https://github.com/beagleboard/bb.org-overlays\r\n2. follow steps in that README\r\n3. reboot\r\n4. sudo sh -c \"echo 'BB-SPIDEV1' > /sys/devices/platform/bone_capemgr/slots\"\r\n5. sudo sh -c \"echo 'BB-SPIDEV0' > /sys/devices/platform/bone_capemgr/slots\"\r\n6. cat /sys/devices/platform/bone_capemgr/slots (see both SPI0 and SPI1 enabled and loaded)\r\n7. Update uEnv.txt appropriately (adding BB-SPIDEV0, BB-SPIDEV1 to the enabled list, disabling HDMI)\r\n```\r\n\r\n```\r\n~$ ls -al /dev/spi*\r\ncrw-rw---- 1 root spi 153, 0 May  4 21:38 /dev/spidev1.0\r\ncrw-rw---- 1 root spi 153, 1 May  4 21:38 /dev/spidev1.1\r\ncrw-rw---- 1 root spi 153, 2 May  4 21:38 /dev/spidev2.0\r\ncrw-rw---- 1 root spi 153, 3 May  4 21:38 /dev/spidev2.1\r\n```\r\n\r\n@chorca is this what you did too?"}}