From: Oliver Hartkopp <socketcan@hartkopp.net>
To: "Spies, Raphael | BFFT GmbH" <raphael.spies@bfft.de>
Cc: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: CAN Interface on Toradex Board
Date: Wed, 23 Oct 2013 19:22:49 +0200 [thread overview]
Message-ID: <526805E9.1060702@hartkopp.net> (raw)
In-Reply-To: <F1A135976112904197F6276B89309FEF2603BC@sgexc1.bfft.de>
On 23.10.2013 18:49, Spies, Raphael | BFFT GmbH wrote:
> Hi everyone,
>
Hi Raphael,
>
> at the moment i try to get a can interface to work on a toradex
> tegra2 evaluation board. in the manual there are some instructions:
>
>
> http://developer.toradex.com/software-resources/arm-family/linux/linux-%28colibri-t20%29-know-how#CAN
>
> I downloaded the packages from:
>
> http://developer.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/Extra/can-packages.tar.bz2
>
> and installed them on my device. When I try to set my bitrate as explained
>
> "ip link set can0 type can bitrate 125000"
>
> it quits with
>
> "RTNETLINK answers: Invalid argument".
Can you see the can0 interface itself?
E.g. with
ip link show
ip -det link show
or
cat /proc/net/dev
??
Can you see this message from the documentation
[ 4.904898] CAN device driver interface
[ 4.932793] Colibri EvalBoard V3.1a/MECS Tellurium xPOD CAN Initialisation
[ 4.979119] mcp251x spi3.0: probed
when invoking 'dmesg' ?
>
>
> A strace command yields a line with
>
>
> "open("usr/lib/ip/link_can.so", ...) = -1 ENOENT (No such file or directory)".
>
This looks like the installed iproute2 package is broken.
My 'ip' does not try to access "usr/lib/ip/link_can.so"
at least the leading slash "/" is missing.
Is it possible that you have a built-in "ip" in your busybox which is invoked
here?
Say
ls -l `which ip`
to check if 'ip' is linked to the busybox binary.
Regards,
Oliver
>
> Does anyone have any idea how can I fix that problem? or in what direction I have to search for solutions?
>
>
> Thanks a lot,
> Raphael Spies
>
>
>
> Kernel version 3.1.10-gd831d2d, build as explained on toradex homepage
next prev parent reply other threads:[~2013-10-23 17:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 16:49 CAN Interface on Toradex Board Spies, Raphael | BFFT GmbH
2013-10-23 17:22 ` Oliver Hartkopp [this message]
2013-10-24 6:44 ` AW: " Spies, Raphael | BFFT GmbH
2013-10-24 7:28 ` Wolfgang Grandegger
2013-10-24 7:39 ` AW: " Spies, Raphael | BFFT GmbH
2013-10-24 22:50 ` Mirza Krak
2013-10-25 18:24 ` 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=526805E9.1060702@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=linux-can@vger.kernel.org \
--cc=raphael.spies@bfft.de \
/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.