Thank for  this quick answer,

So I have remove the line cape_disable=capemgr.disable_
partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

In addition yes I have connected the PIN P9_29 (spi1_d0) and P9_30 (spi_d1)
And I'm trying to use the derek molloy program : 
https://github.com/derekmolloy/exploringBB/tree/master/chp08/spi/spidev_test

./spidev_test -D /dev/spidev2.1

and also 

./spidev_test -D /dev/spidev2.0

However I'm alway having the answer : 
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)

00 00 00 00 00 00 
00 00 00 00 00 00 
00 00 00 00 00 00 
00 00 00 00 00 00 
00 00 00 00 00 00 
00 00 00 00 00 00 
00 00 

And I'm supposed to received
bits per word: 8
max speed: 500000 Hz (500 KHz)

FF FF FF FF FF FF 
40 00 00 00 00 95 
FF FF FF FF FF FF 
FF FF FF FF FF FF 
FF FF FF FF FF FF 
DE AD BE EF BA AD 
F0 0D 
I received this when I do that with SPI0 and connected P9_18(spi0_d0) and 
P9_21(spi0_d1)

So I still don't get where did the problem come.





Le vendredi 25 mars 2016 15:09:08 UTC+1, RobertCNelson a écrit :
>
> On Fri, Mar 25, 2016 at 9:03 AM, Le Costaouec Vincent 
> <vincent.l...@gmail.com <javascript:>> wrote: 
> > Hello, 
> > 
> > I' m currently facing the same issue with the SPI1. However, even with 
> your 
> > solution, it is not working. 
> > 
> > # uname -ra 
> > Linux beagle01 4.1.18-bone20 #4 Fri Mar 18 15:16:19 CET 2016 armv7l 
> > GNU/Linux 
> > 
> > 
> > # lsb_release -da 
> > Distributor ID:    Debian 
> > Description:    Debian GNU/Linux 8.3 (jessie) 
> > Release:    8.3 
> > Codename:    jessie 
> > 
> > # cat $SLOTS 
> >  0: PF----  -1 
> >  1: PF----  -1 
> >  2: PF----  -1 
> >  3: PF----  -1 
> >  4: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-SPIDEV1 
> > 
> > # cat $PINS | grep '990\|998\|994\|99c\|97c' 
> > pin 95 (44e1097c.0) 00000033 pinctrl-single 
> > pin 100 (44e10990.0) 00000027 pinctrl-single 
> > pin 101 (44e10994.0) 00000027 pinctrl-single 
> > pin 102 (44e10998.0) 00000027 pinctrl-single 
> > pin 103 (44e1099c.0) 00000027 pinctrl-single 
>
> ignore that.. 
>
>
> > # cat /boot/uEnv.txt 
> > uname_r=4.1.18-bone20 
> > dtb=am335x-boneblack-overlay.dtb 
> > 
> cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G
>  
>
> > cape_enable=bone_capemgr.enable_partno=BB-SPIDEV1 
>
> remove 
> "cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G"
>  
>
> it's not used with "4.1.x".. 
>
> > 
> > # dmesg |grep SPI 
> > [    0.000000] Kernel command line: console=ttyO0,115200n8 
> > capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G 
> > bone_capemgr.enable_partno=BB-SPIDEV1 root=/dev/mmcblk0p1 ro 
> rootfstype=ext4 
> > rootwait 
> > [    4.618372] bone_capemgr bone_capemgr: enabled_partno PARTNO 
> 'BB-SPIDEV1' 
> > VER 'N/A' PR '0' 
> > [    4.639023] bone_capemgr bone_capemgr: slot #4: 'Override Board 
> > Name,00A0,Override Manuf,BB-SPIDEV1' 
> > [    4.655351] bone_capemgr bone_capemgr: slot #4: dtbo 
> > 'BB-SPIDEV1-00A0.dtbo' loaded; overlay id #0 
> > 
> > # ls -la /dev/spi* 
> > crw-rw---- 1 root spi 153, 0 Mar 25 14:17 /dev/spidev2.0 
> > crw-rw---- 1 root spi 153, 1 Mar 25 14:17 /dev/spidev2.1 
>
> it's loaded, have you actually wired something up to it and tested? 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
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.

Reply via email to