Hello,

Were you successfully able to run the spidev test?
What is your kernel version on BBAI?

Thanks
Anand

On Thu, Mar 18, 2021 at 3:27 AM set_ <fun...@gmail.com> wrote:

> Anand!
>
> They did it again! The image has all the older items I was used to using!
> Anyway, it works. I had a very old image on my AI which was obsolete...
>
>
>    - git clone https://github.com/beagleboard/BeagleBoard-DeviceTrees
>    - cd BeagleBoard-DeviceTrees && make
>    - git clone https://github.com/derekmolloy/exploringBB
>    - cd exploringBB/chp08/spi/spidev_test/ && nano (or your favorite
>    editor) spidev_test.c
>    - On line 32, change '/dev/spidev0.1' to '/dev/spidev1.1'
>    - Then...
>       - On your overlay that was made w/ make, C & P it in /boot/uEnv.txt
>       - The file is in BeagleBoard-DeviceTrees/src/arm/overlays/
>       - It is called BBAI-SPI0_1.dtbo
>    - That should do it but first, reboot the board w/ sudo shutdown -r
>    now!
>
> That is what I was attempting in my gibberish earlier in my 2000 posts I
> made but all along, I have this outdated image and was thinking I could do
> it w/ the current config.
>
> Seth
> On Tuesday, March 16, 2021 at 3:08:44 AM UTC-5 anandp...@gmail.com wrote:
>
>> I already tried with both spidev0 and spidev1. No luck.
>>
>> On Tue, 16 Mar 2021, 04:39 set_, <fun...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Use SPIDEV0 and not SPIDEV1. I think this may get you closer to running
>>> the test.
>>>
>>> Seth
>>> On Thursday, March 11, 2021 at 11:45:50 AM UTC-6 anandp...@gmail.com
>>> wrote:
>>>
>>>> An additional information:
>>>> I can see the spi interfaces in the /dev/ folder.
>>>>
>>>> On Thursday, March 11, 2021 at 6:44:38 PM UTC+1 anandp...@gmail.com
>>>> wrote:
>>>>
>>>>> Hi Everyone,
>>>>>
>>>>> I am trying to enable the spi interface on beaglebone AI.
>>>>> I used the roboticscape device tree structure from the link below:
>>>>>
>>>>> https://github.com/beagleboard/BeagleBoard-DeviceTrees
>>>>>  The show-pins command shows that spi interface is up. However, when I
>>>>> run the spidev_test, I receive a stream of 0's instead of actual data.
>>>>>
>>>>> I bridged the pins p9.29 and P9.30 before running the test.
>>>>> Can anyone provide some solution to fix this issue?
>>>>>
>>>>> Thanks
>>>>> Anand
>>>>>
>>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/beagleboard/e071b9f6-be3a-44c7-9fed-b0d82d8a76f4n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/beagleboard/e071b9f6-be3a-44c7-9fed-b0d82d8a76f4n%40googlegroups.com?utm_medium=email&utm_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/90ae5fcb-3c62-41ab-a3fd-b8c9ba22564dn%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/90ae5fcb-3c62-41ab-a3fd-b8c9ba22564dn%40googlegroups.com?utm_medium=email&utm_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/CAOw%2Bujw39epDE24hBaqy3YhXTbjS5sAEbLcQtRKGhuLzAtFr7g%40mail.gmail.com.

Reply via email to