All of lore.kernel.org
 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: Sun, 26 May 2013 12:35:23 +0200	[thread overview]
Message-ID: <51A1E56B.4010604@hartkopp.net> (raw)
In-Reply-To: <CABMxt4hj-tqRD_aDk6QNMNyNiAjt9vNzb=4ziTpB28ZYAgH08A@mail.gmail.com>

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


  reply	other threads:[~2013-05-26 10:35 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 [this message]
     [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
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=51A1E56B.4010604@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.