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

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

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

It gives error like

/usr/include/libio.h:334:3: error: unknown type name ‘size_t’
/usr/include/libio.h:338:67: error: ‘size_t’ undeclared here (not in a
function)
/usr/include/libio.h:366:62: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/libio.h:375:6: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/libio.h:497:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_IO_sgetn’
In file included from spidev_test.c:9:0:
/usr/include/stdio.h:320:35: error: expected declaration specifiers or
‘...’ before ‘size_t’
/usr/include/stdio.h:326:47: error: expected declaration specifiers or
‘...’ before ‘size_t’


Am I am compiling using wrong options ? Do tell me the correct one.

*Best Regards,*
*Amit Sama*
*Pursuing** M.Sc. Informatics*
*Technical University Munich*
*Contact : +49-15214455380*



On 20 August 2014 14:43, Robert Nelson <[email protected]> wrote:

> On Tue, Aug 19, 2014 at 4:03 PM, Amit Sama <[email protected]> wrote:
> > Hi Robert,
> >
> > I changed the /etc/apt/sources.list to the following:
> >
> > deb http://ports.ubuntu.com/ubuntu-ports/ raring main universe
> multiverse
> > deb-src http://ports.ubuntu.com/ubuntu-ports/ raring main universe
> > multiverse
>
> Laughs! Doing random things is not going to fix this..
>
> Let's look at your previous email:
>
> "Err http://security.ubuntu.com precise-security/universe Translation-en"
>
> okay, so it looked like you were on "precise" and i told you to drop
> "security.ubuntu.com" which you did.. But now it's also "raring"
>
> umm: "precise" =/= "raring" also "raring" is eol..
>
> 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.
>
> 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 a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/zQ039ckqp3E/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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to