Step 1 : Go to root@beaglebone: /boot#
Step 2 : Open uEnv.txt file
Step 3 : Inside the file

You will find these lines, so do the following: In case If you dont find 
these lines for your kernel, then just append the line 
"cape_enable=bone_capemgr.enable_partno=BB-SPIDEV0" to the end of the file.

##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
cape_enable=bone_capemgr.enable_partno=BB-SPIDEV0

Step 4 : Reboot your BBB
Step 5 : Go to /sys/devices/platform/bone_capemgr# cat slots or dmesg to 
check.

Then check if your SPI device has been loaded.

This works with Linux beaglebone kernel 4.1.18-ti-r53


On Monday, 16 May 2016 03:57:34 UTC+5:30, [email protected] wrote:
>
> Hi Rudy,
>
> I am trying to enable SPI0 in BBB. I cannot access the link you gave. I 
> would appreciate if you could update the link or post the file in another 
> way.
>
> p.s. - I am using the kernel 4.4.8 and cannot find capemgr things... 
>
> On Monday, February 22, 2016 at 5:09:36 PM UTC-8, Rudy Misek wrote:
>>
>> Ok, compiled my own device tree overlays for SPI0, SPI1 and added 
>> CAPE=BB-UART1,BB-UART4,BB-UART5,BB-SPI0-01,BB-SPI1-01 to the 
>> /etc/default/capemgr file and it works.
>> Thanks for posting that Vinay!
>>
>> Just a note to my previous post UART2 and SPI0 share the same pins.
>>
>> Here is the link for SPI the device tree overlays I compiled, hopefully 
>> it will help someone out that is getting started with both the SPI's on the 
>> BBB: 
>> https://drive.google.com/drive/folders/0B_aq4xH2lZ0WVElpWWRLNW1uSGM
>>
>> After downloading: (these steps will enable SPI0 and SPI1)
>>  1. Disable HDMI, pins are used by SPI1: root@beaglebone:~# vim 
>> /boot/uEnv.txt
>>  2. Remove # from line: 
>> cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
>>  3. Put the .dtbo files you downloaded from the link above in 
>> /lib/firmware on your BBB
>>  4. Add CAPE=BB-SPI0-01,BB-SPI1-01 to /etc/default/capemgr file: 
>> root@beaglebone:~# vim /etc/default/capemgr
>>  5. Reboot the BBB
>>  6. root@beaglebone:/sys/devices/bone_capemgr.*
>>  7. root@beaglebone:/sys/devices/bone_capemgr.9# cat slots
>>      You should see:
>>      ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI0-01
>>      ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI1-01
>> Now you're good to go with both SPI's :D
>>
>>
>>
>>
>> On Tue, Feb 23, 2016 at 9:27 AM, Rudy Misek <[email protected]> 
>> wrote:
>>
>>> root@beaglebone:/sys/devices/bone_capemgr.9# cat slots
>>>  0: 54:PF---
>>>  1: 55:PF---
>>>  2: 56:PF---
>>>  3: 57:PF---
>>>  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
>>>  5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
>>>  6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
>>>  7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
>>>  8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2
>>>  9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
>>> 10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5
>>> 11: ff:P-O-L Override Board Name,00A0,Override Manuf,ADAFRUIT-SPI0
>>> root@beaglebone:/sys/devices/bone_capemgr.9#
>>>
>>>
>>> On Tue, Feb 23, 2016 at 9:21 AM, Rudy Misek <[email protected]> 
>>> wrote:
>>>
>>>> Vinay is right, tried it out on a new BBB I just got, enabled UART1,2,4 
>>>> and 5 plus ADAFRUIT-SPI0 by 
>>>> adding CAPE=BB-UART1,BB-UART2,BB-UART4,BB-UART5,ADAFRUIT-SPI0
>>>> to /ect/default/capemgr and rebooted.
>>>>
>>>> I can't load ADAFRUIT-SPI1 using the same method even though I have 
>>>> disabled HDMI and HDMIN
>>>>
>>>> Vinay, have you been able to enable SPI1? 
>>>>
>>>> On Fri, Feb 19, 2016 at 7:59 PM, <[email protected]> wrote:
>>>>
>>>>>
>>>>>
>>>>>    1. Another solution is also simple, just include the line 
>>>>>    "CAPE=ADAFRUIT-SP0" in /etc/default/capemgr file. Then reboot and all 
>>>>>    should work fine.
>>>>>
>>>>> On Tuesday, 16 June 2015 20:09:14 UTC+5:30, Brendan Merna wrote:
>>>>>>
>>>>>> I'm trying to  enable SPI on boot up on my Beaglebone Black. I 
>>>>>> followed the wiki link below under the title 
>>>>>> SPI1 D1 Output and D0 Input
>>>>>>
>>>>>> I created the .dts file and compiled it. I then moved it to 
>>>>>> /lib/firmware/ and then enabled the device overlay tree. Finally, I 
>>>>>> changed 
>>>>>> the uenv.txt file by adding the text shown and I removed a pound sign at 
>>>>>> the end of the document. I did this because the boot command to enable 
>>>>>> the 
>>>>>> SPI wasn't working and I thought it wasn't reading the last command 
>>>>>> because 
>>>>>> of the pound sign. Unfortunately, now that I removed it, I reset my 
>>>>>> Beaglebone Black and it gets stuck in a state with the Power LED and 
>>>>>> USR0,USR1, USR2, and USR3 all stuck on. No blinking and my computer 
>>>>>> doesn't 
>>>>>> recognize its there. I'm powering through the USB port and have tried 
>>>>>> resetting and powering down numerous times. This same state keeps coming 
>>>>>> up. Can anyone help?
>>>>>>
>>>>>> Tutorial Link:
>>>>>> http://elinux.org/BeagleBone_Black_Enable_SPIDEV
>>>>>>
>>>>> -- 
>>>>> For more options, visit http://beagleboard.org/discuss
>>>>> --- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "BeagleBoard" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/beagleboard/2O0-NwbKc2M/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>> [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/3acdbb4d-d8a7-4977-8ed5-8bf556df3e9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to