On Wed, Aug 27, 2014 at 2:18 PM, Robert Nelson <[email protected]> wrote: > On Wed, Aug 27, 2014 at 4:39 AM, Amit Sama <[email protected]> wrote: >> Hi Robert, >> >> Though I managed to enable the spi interface on my BB. I have following >> questions/information: >> >> 1) I have following urls in /etc/apt/sources.list >> >> THESE WERE EARLIER IN THE BBB >> >> #deb http://ports.ubuntu.com/ubuntu-ports/ raring main universe multiverse >> #deb-src http://ports.ubuntu.com/ubuntu-ports/ raring main universe >> multiverse >> >> #deb http://ports.ubuntu.com/ubuntu-ports/ raring-updates main universe >> multiverse >> #deb-src http://ports.ubuntu.com/ubuntu-ports/ raring-updates main universe >> multiverse >> >> >> THESE I COPIED FROM THE link IN ORDER TO SOLVE THE PROBLEM >> >> deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe >> multiverse >> deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted >> universe multiverse >> deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted >> universe multiverse >> deb http://security.ubuntu.com/ubuntu precise-security main restricted >> universe multiverse >> deb http://archive.canonical.com/ubuntu precise partner >> deb http://extras.ubuntu.com/ubuntu precise main >> >> >> THESE I COPIED FROM MY DESKTOP >> #deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe >> multiverse >> #deb http://security.ubuntu.com/ubuntu/ precise-security main restricted >> universe multiverse >> #deb http://archive.ubuntu.com/ubuntu/ precise-update main restricted >> universe multiverse >> >> NONE OF THEM WORKS, DO TELL ME WHAT ARE THE RIGHT URLS > > "Yelling" isn't going to fix this problem, either is random coping the > right URLS's. > > So to repeat: > > <quote> > So at this point, i'm just going to say... "You" totally hosed your OS > doing some random stuff, that why it doesn't work.. > > Start over with a fresh image. > </quote> > >> 2) I could see these two files in /dev/spidev1.0 and /dev/spidev1.1 . Though >> I configures for the spi0 channel I think it should be like spidev0.0 and >> spidev0.1 > > Nope it isn't.. > >> 3) In order to check if I have configured the spidev correctly, I copied a >> file from here >> >> http://osdir.com/ml/beagleboard/2013-05/msg00813.html >> >> NOW WHEN I compile it using >> >> >> gcc -c spidev_test.c
build here: debian@beaglebone:~$ gcc -c spi_test.c debian@beaglebone:~$ ls -lh total 20K -rw-r--r-- 1 debian debian 1.3K Aug 27 19:36 spi_test.c -rw-r--r-- 1 debian debian 1.8K Aug 27 19:37 spi_test.o http://paste.debian.net/117888/ Regards, -- Robert Nelson http://www.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 [email protected]. For more options, visit https://groups.google.com/d/optout.
