[beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2018-02-13 Thread terteilabrahim
Hello everyone
I am working on Kernel version 4.4 and I have tried all the mentioned 
solutions in this discussion but still I can't add SPI0 or SPI1, If anyone 
have used this type of kernel please help.

بتاريخ الثلاثاء، 16 يونيو، 2015 8:09:14 م UTC+5:30، كتب Brendan Merna:
>
> 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 the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/106949f8-eb7e-4e2c-acab-c64b965519be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-20 Thread Vinay Divakar
guide what SPI things to install. SP0 &
> SP1-01? or just one of them?
>
> Also should the optargs entry and the capemgr.enable_partno=BB-SP1-01
> be present in that file, or removed?
>
> Thank you Rudy for your files. I am not sure what to do with them. Given
> what I have detailed above, do I need to do anything with them?
>
> And a side-question about the slots listing at the top of this post,
> number 4.. why does it say 2Gb not 4Gb? I'm pretty sure I have the
> 4Gb. Is it that there are 2x2?
>
> With thanks to you all for invaluable help.
>
> Will
>
>
> On Mon, 18 Jul 2016, at 09:02 PM, w...@willnapier.com wrote:
>
> Hello all, I am new to BBB and using it to flash the ROM on my Lenovo
> Thinkpad T400 with Libreboot, using these
> <http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0> instructions on
> eLinux.
>
> I disabled HDMI on the Beaglebone by opening vi and removing the comment
> from the line that says it disables HDMI.
>
> I couldn't locate the uEnv.txt file at first, because there isn't a /lib/
> directory. It was found in /boot/
>
> But when I did this, ie reboot and look, it seems that the HDMI is still
> there:
>
> root@beaglebone:/var/lib/cloud9# cat /sys/devices/bone_capemgr.*/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
> root@beaglebone:/var/lib/cloud9#
> 
>
> I have now tried the advice of Vinay:
>
>
>
>
> Another solution is also simple, just include the line "CAPE=ADAFRUIT-SP0"
> in /etc/default/capemgr file. Then reboot and all should work fine.
>
> 
>
>
> This did not work. I still get the same slots listing.
>
> I then followed this advice also from vinay:
> 
>
>
> Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
> Other recipients: rudydelo...@gmail.com, jb...@eng.ucsd.edu
>
> 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
>
> ===
>
> This didn't work. there is no /sys/devices/platform/bone_capemgr.
>
>
> I would be very grateful for any help with this. With thanks, Will
>
>
>
> --
> 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
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/f55ac74f-155f-4536-8e0d-49e471e6f044%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/f55ac74f-155f-4536-8e0d-49e471e6f044%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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 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
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/1468928430.2674762.670488169.76C51D84%40webmail.messagingengine.com
> <https://groups.google.com/d/msgid/beagleboard/1468928430.2674762.670488169.76C51D84%40webmail.messagingengine.com?utm_medium=email_source=footer>
> .
>
> 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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAL4GkmPdjOTV0XGbsUzx%2B6ORUqJhu-EcPG37MUeb3Y%3DxdvGOCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-20 Thread Rudy Misek
##make sure, these tools are installed: dosfstools rsync
> #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
>
> uuid=c3048a42-5170-419f-ae71-6f96bf7f6f11
>
> cape_enable=bone_capemgr.enable_partno=BB-SPIDEV0
>
> optargs=quiet drm.debug=7
> capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
> capemgr.enable_partno=BB-SPI1-01
>
> ===
>
>
> So my current questions are:
>
> I am not clear from the guide what SPI things to install. SP0 &
> SP1-01? or just one of them?
>
> Also should the optargs entry and the capemgr.enable_partno=BB-SP1-01
> be present in that file, or removed?
>
> Thank you Rudy for your files. I am not sure what to do with them. Given
> what I have detailed above, do I need to do anything with them?
>
> And a side-question about the slots listing at the top of this post,
> number 4.. why does it say 2Gb not 4Gb? I'm pretty sure I have the
> 4Gb. Is it that there are 2x2?
>
> With thanks to you all for invaluable help.
>
> Will
>
>
> On Mon, 18 Jul 2016, at 09:02 PM, w...@willnapier.com wrote:
>
> Hello all, I am new to BBB and using it to flash the ROM on my Lenovo
> Thinkpad T400 with Libreboot, using these
> <http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0> instructions on
> eLinux.
>
> I disabled HDMI on the Beaglebone by opening vi and removing the comment
> from the line that says it disables HDMI.
>
> I couldn't locate the uEnv.txt file at first, because there isn't a /lib/
> directory. It was found in /boot/
>
> But when I did this, ie reboot and look, it seems that the HDMI is still
> there:
>
> root@beaglebone:/var/lib/cloud9# cat /sys/devices/bone_capemgr.*/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
> root@beaglebone:/var/lib/cloud9#
> 
>
> I have now tried the advice of Vinay:
>
>
>
>
> Another solution is also simple, just include the line "CAPE=ADAFRUIT-SP0"
> in /etc/default/capemgr file. Then reboot and all should work fine.
>
> 
>
>
> This did not work. I still get the same slots listing.
>
> I then followed this advice also from vinay:
> 
>
>
> Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
> Other recipients: rudydelo...@gmail.com, jb...@eng.ucsd.edu
>
> 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
>
> ===
>
> This didn't work. there is no /sys/devices/platform/bone_capemgr.
>
>
> I would be very grateful for any help with this. With thanks, Will
>
>
>
> --
> 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
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/f55ac74f-155f-4536-8e0d-49e471e6f044%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/f55ac74f-155f-4536-8e0d-49e471e6f044%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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 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
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/1468928430.2674762.670488169.76C51D84%40webmail.messagingengine.com
> <https://groups.google.com/d/msgid/beagleboard/1468928430.2674762.670488169.76C51D84%40webmail.messagingengine.com?utm_medium=email_source=footer>
> .
>
> 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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAGLDO90GHOaMAfFW9zktQTnpC%3DVvNhSnjX2dN3r3-ztR8bm2tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-19 Thread Will Napier
t@beaglebone:/var/lib/cloud9#
> 
>
> I have now tried the advice of Vinay:
>
>
>
>
> Another solution is also simple, just include the line "CAPE=ADAFRUIT-
> SP0" in /etc/default/capemgr file. Then reboot and all should
> work fine.
>
> 
>
>
> This did not work. I still get the same slots listing.
>
> I then followed this advice also from vinay:
> 
>
>
> Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
> Other recipients:   rudydelo...@gmail.com, jb...@eng.ucsd.edu
>
> 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
>
> ===
>
> This didn't work. there is no /sys/devices/platform/bone_capemgr.
>
>
> I would be very grateful for any help with this. With thanks, Will
>
>
> --
>  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
>  beagleboard+unsubscr...@googlegroups.com.
>  To view this discussion on the web visit
>  
> https://groups.google.com/d/msgid/beagleboard/f55ac74f-155f-4536-8e0d-49e471e6f044%40googlegroups.com[2].
>  For more options, visit https://groups.google.com/d/optout.
 

Links:

  1. http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0
  2. 
https://groups.google.com/d/msgid/beagleboard/f55ac74f-155f-4536-8e0d-49e471e6f044%40googlegroups.com?utm_medium=email_source=footer

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1468928430.2674762.670488169.76C51D84%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-19 Thread will
Hello all, I am new to BBB. My eventual aim is to use the BBB to flash a 
rom with libreboot on my Lenovo Thinkpad. I am using this 
<http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0> guide at eLinux. It 
says that I need to disable HDMI before I can enable SPI.
I couldn't locate the uEnv.txt file at first, because there isn't a /lib/ 
directory. It was found in /boot/

But when I do this, ie reboot and look, it seems that the HDMI is still 
there:

root@beaglebone:/var/lib/cloud9# cat /sys/devices/bone_capemgr.*/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
root@beaglebone:/var/lib/cloud9# 



I have now tried the advice of Vinay:

vinaydiv...@gmail.com 
19 Feb 
Another solution is also simple, just include the line "CAPE=ADAFRUIT-SP0" 
in /etc/default/capemgr file. Then reboot and all should work fine.


This did not work. I still get the same slots listing.

I then followed this advice also from vinay:

vinaydiv...@gmail.com 
16 May 
Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
Other recipients: rudydelo...@gmail.com, jb...@eng.ucsd.edu 
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

===

This didn't work. there is no /sys/devices/platform/bone_capemgr. 

I hope that given the limited purpose of using BBB I won't need to learn a 
whole lot about embedded systems, device tree overlays, etc, just in order 
to do flash my rom, however interesting it is!

Any help greatly appreciated. Will.


-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/580ed40f-e5e4-4ba5-94af-a45c9a50228a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-19 Thread will
Hello all, I am new to BBB and using it to flash the ROM on my Lenovo 
Thinkpad T400 with Libreboot, using these 
<http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0> instructions on 
eLinux.

I disabled HDMI on the Beaglebone by opening vi and removing the comment 
from the line that says it disables HDMI.

I couldn't locate the uEnv.txt file at first, because there isn't a /lib/ 
directory. It was found in /boot/

But when I did this, ie reboot and look, it seems that the HDMI is still 
there:

root@beaglebone:/var/lib/cloud9# cat /sys/devices/bone_capemgr.*/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
root@beaglebone:/var/lib/cloud9# 



I have now tried the advice of Vinay:


Another solution is also simple, just include the line "CAPE=ADAFRUIT-SP0" 
in /etc/default/capemgr file. Then reboot and all should work fine.




This did not work. I still get the same slots listing.

I then followed this advice also from vinay:
====

Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
Other recipients: rudydelo...@gmail.com, jb...@eng.ucsd.edu 
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

===

This didn't work. there is no /sys/devices/platform/bone_capemgr.


I would be very grateful for any help with this. With thanks, Will

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/f55ac74f-155f-4536-8e0d-49e471e6f044%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-19 Thread Rudy Misek
I've attached the SPI device tree files I used.

Hope this help ya out!!

On Tue, Jul 19, 2016 at 12:47 PM, Rudy Misek <rudydeloreant...@gmail.com>
wrote:

> Whats crack'n Vinay!! Looks to me like Wheezy.
>
> Hey Will,
> 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
> The L in P-O-L means loaded, so in the case above it's telling you that
> the HDMI hasn't been loaded. So you've successfully disabled it.
>
> When you do this
> "Another solution is also simple, just include the line
> "CAPE=ADAFRUIT-SP0" in /etc/default/capemgr file. Then reboot and all
> should work fine"
> You'll have to do both, disable the HDMI like you've done (if you want to
> use SPI1) and load the SPI dtbo like in the step above.
> You should then see it loaded when you cat the slots. Below is what mine
> looks like (I have a few different things loaded, but you can see that the
> HDMI has been disabled and both SPI's loaded)
>
> root@beaglebone:/sys/devices# cd /sys/devices/bone_capemgr.*
> 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-SPI0-01
>  8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI1-01
>  9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
> 10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
> 11: ff:P-O-L Override Board Name,00A0,Override Manuf,AEI-UART5
> 12: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P8_32_f
> 13: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
> 14: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_pwm_P9_16
> root@beaglebone:/sys/devices/bone_capemgr.9#
>
>
> check for 'spidev1.x' in /dev
> e.g
> root@beaglebone:~# cd /dev
> root@beaglebone:/dev# ls
>
> If spidev is in there, you successfully loaded the SPI
>
> This is the version of linux I'm running on my BBB
> root@beaglebone:~# uname -a
> Linux beaglebone 3.8.13-bone79 #1 SMP Tue Oct 13 20:44:55 UTC 2015 armv7l
> GNU/Linux
>
>
>
>
>
> On Tue, Jul 19, 2016 at 11:11 AM, Vinay Divakar <
> vinaydivakar1...@gmail.com> wrote:
>
>> Can you provide info about the kernel your using?
>>
>> On 18 July 2016 at 13:02, <w...@willnapier.com> wrote:
>>
>>> Hello all, I am new to BBB and using it to flash the ROM on my Lenovo
>>> Thinkpad T400 with Libreboot, using these
>>> <http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0> instructions on
>>> eLinux.
>>>
>>> I disabled HDMI on the Beaglebone by opening vi and removing the comment
>>> from the line that says it disables HDMI.
>>>
>>> I couldn't locate the uEnv.txt file at first, because there isn't a
>>> /lib/ directory. It was found in /boot/
>>>
>>> But when I did this, ie reboot and look, it seems that the HDMI is still
>>> there:
>>>
>>> root@beaglebone:/var/lib/cloud9# cat /sys/devices/bone_capemgr.*/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
>>> root@beaglebone:/var/lib/cloud9#
>>>
>>> 
>>>
>>> I have now tried the advice of Vinay:
>>>
>>>
>>> Another solution is also simple, just include the line
>>> "CAPE=ADAFRUIT-SP0" in /etc/default/capemgr file. Then reboot and all
>>> should work fine.
>>>
>>> 
>>>
>>>
>>> This did not work. I still get the same slots listing.
>>>
>>> I then followed this advice also from vinay:
>>> 
>>>
>>> Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
>>> Other recipients: rudydelo...@gmail.com, jb...@eng.ucsd.edu
>>> 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 

Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-19 Thread Rudy Misek
Whats crack'n Vinay!! Looks to me like Wheezy.

Hey Will,
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
The L in P-O-L means loaded, so in the case above it's telling you that the
HDMI hasn't been loaded. So you've successfully disabled it.

When you do this
"Another solution is also simple, just include the line "CAPE=ADAFRUIT-SP0"
in /etc/default/capemgr file. Then reboot and all should work fine"
You'll have to do both, disable the HDMI like you've done (if you want to
use SPI1) and load the SPI dtbo like in the step above.
You should then see it loaded when you cat the slots. Below is what mine
looks like (I have a few different things loaded, but you can see that the
HDMI has been disabled and both SPI's loaded)

root@beaglebone:/sys/devices# cd /sys/devices/bone_capemgr.*
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-SPI0-01
 8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI1-01
 9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
11: ff:P-O-L Override Board Name,00A0,Override Manuf,AEI-UART5
12: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P8_32_f
13: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
14: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_pwm_P9_16
root@beaglebone:/sys/devices/bone_capemgr.9#


check for 'spidev1.x' in /dev
e.g
root@beaglebone:~# cd /dev
root@beaglebone:/dev# ls

If spidev is in there, you successfully loaded the SPI

This is the version of linux I'm running on my BBB
root@beaglebone:~# uname -a
Linux beaglebone 3.8.13-bone79 #1 SMP Tue Oct 13 20:44:55 UTC 2015 armv7l
GNU/Linux





On Tue, Jul 19, 2016 at 11:11 AM, Vinay Divakar <vinaydivakar1...@gmail.com>
wrote:

> Can you provide info about the kernel your using?
>
> On 18 July 2016 at 13:02, <w...@willnapier.com> wrote:
>
>> Hello all, I am new to BBB and using it to flash the ROM on my Lenovo
>> Thinkpad T400 with Libreboot, using these
>> <http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0> instructions on
>> eLinux.
>>
>> I disabled HDMI on the Beaglebone by opening vi and removing the comment
>> from the line that says it disables HDMI.
>>
>> I couldn't locate the uEnv.txt file at first, because there isn't a /lib/
>> directory. It was found in /boot/
>>
>> But when I did this, ie reboot and look, it seems that the HDMI is still
>> there:
>>
>> root@beaglebone:/var/lib/cloud9# cat /sys/devices/bone_capemgr.*/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
>> root@beaglebone:/var/lib/cloud9#
>>
>> 
>>
>> I have now tried the advice of Vinay:
>>
>>
>> Another solution is also simple, just include the line
>> "CAPE=ADAFRUIT-SP0" in /etc/default/capemgr file. Then reboot and all
>> should work fine.
>>
>> 
>>
>>
>> This did not work. I still get the same slots listing.
>>
>> I then followed this advice also from vinay:
>> 
>>
>> Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
>> Other recipients: rudydelo...@gmail.com, jb...@eng.ucsd.edu
>> 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
>>
>> ===
>>
>> This didn't work. there is no /sys/devices/platform/bone_capemgr.
>>
>>
>> I would be very grateful for any help with this. With thanks, Will
>

Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-07-19 Thread Vinay Divakar
Can you provide info about the kernel your using?

On 18 July 2016 at 13:02, <w...@willnapier.com> wrote:

> Hello all, I am new to BBB and using it to flash the ROM on my Lenovo
> Thinkpad T400 with Libreboot, using these
> <http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0> instructions on
> eLinux.
>
> I disabled HDMI on the Beaglebone by opening vi and removing the comment
> from the line that says it disables HDMI.
>
> I couldn't locate the uEnv.txt file at first, because there isn't a /lib/
> directory. It was found in /boot/
>
> But when I did this, ie reboot and look, it seems that the HDMI is still
> there:
>
> root@beaglebone:/var/lib/cloud9# cat /sys/devices/bone_capemgr.*/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
> root@beaglebone:/var/lib/cloud9#
>
> 
>
> I have now tried the advice of Vinay:
>
>
> Another solution is also simple, just include the line "CAPE=ADAFRUIT-SP0"
> in /etc/default/capemgr file. Then reboot and all should work fine.
>
> 
>
>
> This did not work. I still get the same slots listing.
>
> I then followed this advice also from vinay:
> 
>
> Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black
> Other recipients: rudydelo...@gmail.com, jb...@eng.ucsd.edu
> 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
>
> ===
>
> This didn't work. there is no /sys/devices/platform/bone_capemgr.
>
>
> I would be very grateful for any help with this. With thanks, Will
>
>

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAL4GkmMFUH2%3DLTTbzmMexzCwkf9wdsJsjhwWf37_k5gqXxs8uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-05-16 Thread vinaydivakar1990
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, jb...@eng.ucsd.edu 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  
>> 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  
>>> 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,  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 

Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-05-15 Thread jbkoh
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  > 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 > > 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,  
>>> 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 
 beagleboard...@googlegroups.com .
 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 

Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-02-22 Thread Rudy Misek
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 
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 
> 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,  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
>>> beagleboard+unsubscr...@googlegroups.com.
>>> 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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-02-22 Thread Rudy Misek
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,  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
> beagleboard+unsubscr...@googlegroups.com.
> 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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-02-19 Thread vinaydivakar1990


   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 the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2016-02-14 Thread vinaydivakar1990
The solution provided by emile works fine, but just to bring to notice, it 
has a glitch. If we add this line "echo BB-SPI1-01 > 
/sys/devices/bone_capemgr.9/slots" to /etc/rc.local file before exit 0, and 
then reboot from terminal, the BBB does not reboot. We have to manually 
power off and on the system. I don't know why this happens, but has to do 
something with addling this line in the /etc/rc.local file. 

On Tuesday, 16 June 2015 07:39:14 UTC-7, 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 the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Issues with Enabling SPIDev on Beaglebone Black

2015-12-02 Thread rudydeloreantide
Had a similar problem following the same tutorial, used Emile's answer, the 
DT overlay loads every time.
To check:
cat /sys/devices/bone_capemgr.*/slots

root@beaglebone:~# cat /sys/devices/bone_capemgr.*/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-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI0-01



On Wednesday, June 17, 2015 at 12:39:14 AM UTC+10, 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 the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.