From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: [Socketcan-users] Where to permanent set the bitrate
Date: Wed, 18 Apr 2012 19:22:13 +0200 [thread overview]
Message-ID: <4F8EF845.5070600@hartkopp.net> (raw)
In-Reply-To: <20366.62479.788236.563357@elektron.ikp.physik.tu-darmstadt.de>
On 18.04.2012 19:04, Uwe Bonnes wrote:
> Hello,
>
> running a recent 3.4.0-rc2 Kernel, I needed to access my PEAK USB
> Adapters. As there is now an In-Kernel peak_usb.ko Module versus the
> out-of-kernel pcan.ko module, i needed to set the bitrate. After long
> searching, I found that
>> ip link set canX up type can bitrate 1000000
> did the trick for me.
>
> 1. The kernel documentation does not tell about these support commands. It
> would be helpfull if it would.
http://lxr.linux.no/#linux+v3.3.2/Documentation/networking/can.txt#L646
> 2. Where ist the place to put those commands in the /etc tree?
You may use this can_if script copied to /etc/init.d and add the appropriate
links e.g. in /etc/rc2.d ..
See: http://svn.berlios.de/wsvn/socketcan/trunk/etc/can_if
>
> Otherwise Thanks for the work to get peak_usb in the kernel!
Yes - Stephane did a good job!
Regards,
Oliver
parent reply other threads:[~2012-04-18 17:22 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20366.62479.788236.563357@elektron.ikp.physik.tu-darmstadt.de>]
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=4F8EF845.5070600@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=bon@elektron.ikp.physik.tu-darmstadt.de \
--cc=linux-can@vger.kernel.org \
/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.