linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Mohamed HAMZAOUI <requinham@gmail.com>
Cc: linux-can Mailing List <linux-can@vger.kernel.org>
Subject: Re: problem to using CAN on beaglebone black A5A
Date: Tue, 28 May 2013 19:02:06 +0200	[thread overview]
Message-ID: <51A4E30E.1080504@hartkopp.net> (raw)
In-Reply-To: <CABMxt4jMmBeMqFeyRMQ=5PtQtt6SHDGNGXUGm-WzPsW6Er9+SQ@mail.gmail.com>

On 28.05.2013 01:04, Mohamed HAMZAOUI wrote:
> I created a simple card with two CAN transeiver and connected to bbb card
> in accordance with bbb datasheet.
> 

I'm not really familiar with the BBB, but i heard something about an EEPROM
which is part of the "Standard BBB capes", which contains the hardware
description and pin assignment of the capes, see:

http://circuitco.com/support/index.php?title=BeagleBone_Capes

e.g. http://circuitco.com/support/index.php?title=TT3201_CAN_Cape

http://circuitco.com/support/index.php?title=TT3201_CAN_Cape#EEPROM

AFAIK the EEPROM is read by the kernel and the devices and the pin assignments
are configured according to the EEPROM data ...

But i'm not really sure about all this.

A Problem of this board

http://circuitco.com/support/index.php?title=TT3201_CAN_Cape#EEPROM

is, that the pins for the second D_CAN are assigned to the I2C to read the
EEPROM. I have no idea how to solve this right now.

Regards,
Oliver



> Regards,
> Mohamed
> 
> Le 26 mai 2013 12:35, "Oliver Hartkopp" <socketcan@hartkopp.net
> <mailto:socketcan@hartkopp.net>> a écrit :
>>
>> Hi Mohamed,
>>
>> obviously your kernel does not detect the hardware.
>>
>> AFAIK the beaglebone black has two D_CAN controllers onboard.
>>
>> So the c_can driver (which supports the d_can hardware too) should work.
>> But i don't know how the platform data has to be configured to make your
>> kernel detect the CAN controllers and attach them to the correct pins.
>>
>> What kind of CAN hardware (add-on board) do you use with your beaglebone black?
>>
>> Regards,
>> Oliver
>>
>> On 25.05.2013 13:55, Mohamed HAMZAOUI wrote:
>> > I run this command because i can't found any can device :
>> > root@beaglebone:~# cat /proc/net/dev
>> > Inter-|   Receive                                                |  Transmit
>> >  face |bytes    packets errs drop fifo frame compressed
>> > multicast|bytes    packets errs drop fifo colls carrier compressed
>> >     lo:     280       4    0    0    0     0          0         0
>> > 280       4    0    0    0     0       0          0
>> >   eth0:       0       0    0    0    0     0          0         0
>> >   0       0    0    0    0     0       0          0
>> >   usb0:   11042      79    0    0    0     0          0         0
>> > 13479      59    0    0    0     0       0          0
>> >
>> > Any Idea ?
>> >
>> > Regards,
>> > Mohamed
>> >
>> > On Sat, May 25, 2013 at 1:37 PM, Oliver Hartkopp <socketcan@hartkopp.net
> <mailto:socketcan@hartkopp.net>> wrote:
>> >> On 25.05.2013 00:56, Mohamed HAMZAOUI wrote:
>> >>
>> >>> I started with beaglebone black A5A, i installed on it the latest
>> >>> Angstrom image with : Linux beaglebone 3.8.13 #1 SMP Mon May 20
>> >>> 17:07:58 CEST 2013 armv7l GNU/Linux
>> >>>
>> >>> I have a problem when I try to add a can device, i load with modprobe
>> >>> all necessary kernel module (can, ti_hecc, c_can, c_can_platform,
>> >>> can-raw, can-bcm) but when i execute
>> >>>> ip link add can0 type can
>> >>> I have : RTNETLINK answers: Operation not supported
>> >>> I used a recent version of iproute2.
>> >>
>> >> You can NOT add real hardware devices with "ip link add ...".
>> >> This only works to create virtual CAN devices (vcan).
>> >>
>> >> If you have a working CAN hardware in your system a 'can0' should already be
>> >> created by the CAN driver.
>> >>
>> >> Please send the output of
>> >>
>> >> cat /proc/net/dev
>> >>
>> >> to see if there's a CAN device.
>> >>
>> >> Or you might check the content of 'dmesg' output for CAN devices.
>> >>
>> >> Regards,
>> >> Oliver
>> >>
>>
> 


  parent reply	other threads:[~2013-05-28 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 22:56 problem to using CAN on beaglebone black A5A Mohamed HAMZAOUI
2013-05-25 11:37 ` Oliver Hartkopp
2013-05-25 11:55   ` Mohamed HAMZAOUI
2013-05-26 10:35     ` Oliver Hartkopp
     [not found]       ` <CABMxt4h-0zYYBvjUqBdf=eChKXxJv77OPhQmh_y7rkwj18mdcQ@mail.gmail.com>
     [not found]         ` <CABMxt4jMmBeMqFeyRMQ=5PtQtt6SHDGNGXUGm-WzPsW6Er9+SQ@mail.gmail.com>
2013-05-28 17:02           ` Oliver Hartkopp [this message]
2013-05-28 18:00             ` Wolfgang Grandegger
     [not found]               ` <CABMxt4gO+mQR3JshUDUztKC7oPt3zXcyZ-1Hp4dn7Wy7=CEhAQ@mail.gmail.com>
     [not found]                 ` <CABMxt4gBjFZnWCx-dY=PpnbQ7P96ZhXAeJQ71c34J3jtTKV_1A@mail.gmail.com>
2013-06-03 11:21                   ` Fwd: " Wolfgang Grandegger
2013-06-03 18:03                     ` Mohamed HAMZAOUI
2013-06-03 18:41                       ` Wolfgang Grandegger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51A4E30E.1080504@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --cc=linux-can@vger.kernel.org \
    --cc=requinham@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).