From: "Ahmed S. Darwish" <darwish.07@gmail.com>
To: Ralph Potztal <ralph.potztal@espros.com>
Cc: linux-can@vger.kernel.org
Subject: Re: Kvaser leaf light
Date: Fri, 20 Mar 2015 09:52:38 +0200 [thread overview]
Message-ID: <20150320075238.GA2387@Darwish.PC> (raw)
In-Reply-To: <5474697.32.1426825696753.JavaMail.RPO@dhcp32-209.ch.epc>
Hi Ralph,
[ Please do not top-post; it heavily breaks our ability to follow
the logical sequence of a discussion thread. More details here:
http://catb.org/jargon/html/T/top-post.html
https://lkml.org/lkml/2005/1/11/111 ]
On Fri, Mar 20, 2015 at 05:28:21AM +0100, Ralph Potztal wrote:
>
> Hi Ahmed,
>
> thanks for this. I think that could be the problem, because:
>
> # uname -a
> Linux cli-48 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>
Great we've found the culprit. Now you have multiple possible
solutions:
1) Latest Ubuntu 14.04 LTS seems to offer a 3.16 kernel in a nicely
packaged "sudo apt-get install" format:
http://askubuntu.com/questions/506956/how-can-i-install-3-16-kernel-on-ubuntu-14-04
2) Manually install the latest 3.19.2 stable kernel, which includes
support for your Kvaser model.
Keep in mind though that the kvaser_usb module has recently received
a large amount of fixes that's not yet included in the latest stable
kernels. So if you will use the device for continuous hours or plan
to have a heavy tx/rx traffic, you will definitely have to do one of
the following instead:
1) Temporarily use the 3.19.2 kernel, and quickly switch to v4.0
once it is released. Better yet, directly use kernel v4.0-rc4
where most of the necessary fixes are included:
https://lkml.org/lkml/2015/3/15/180
2) I have a version of the driver at work, __with all the fixes__,
ported for old Ubuntu and CentOS kernels.
I can upload this version on a public website and send you the
link on Sunday. But kindly note that this will be providied "AS IS",
without any kind of support (you can *not* bother this mailing list
about it), or any warranty of merchantability, implied or express.
3) At least port this single patche to your 3.19.2 kernel:
[a] can: kvaser_usb: Read all messages in a bulk-in URB buffer
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2fec5104f9c
Regards,
Darwish
>
> ----- Ursprüngliche Mail -----
> Von: "Ahmed S. Darwish" <darwish.07@gmail.com>
> An: "Ralph Potztal" <ralph.potztal@espros.com>
>
> Hi Ralph,
>
> On Thu, Mar 19, 2015 at 03:32:48PM +0100, Ralph Potztal wrote:
> >
> > Hi there,
> >
> > I'm trying hard to setup the Kvaser Leaf Light HS v2 with SocketCan on a Ubuntu 14.04.2 workstation. Unfortunately I failed so far and therefor wanted to ask you, if you can give me some help.
> >
> > My goal is to use the leaf together with wireshark to spy a can bus in one of our automated test systems.
> >
> > How I'm trying to set it up:
> > - loading kernel modules:
> > # modprobe can
> > # modprobe can_raw
> > # modprobe can_bcm
> > # modprobe kvaser_usb
> > # modprobe vcan
> >
> > - plug the leaf
> >
> > - check if the leaf is there:
> > # lsusb
> > Bus 001 Device 002: ID 0bfd:0120 Kvaser AB
> >
>
> Great, this USB device ID (288/0x120) is indeed supported by the
> kvaser_usb module. It was added only in linux-3.16 though:
>
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b4f20130a
>
> So, what is version of your kernel? A `uname -a' would be
> quite helpful.
>
> Thanks,
> Darwish
>
next prev parent reply other threads:[~2015-03-20 7:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <22529898.19.1426775220044.JavaMail.RPO@mac-rpo.local>
2015-03-19 14:32 ` Kvaser leaf light Ralph Potztal
2015-03-19 15:31 ` Ahmed S. Darwish
2015-03-20 4:28 ` Ralph Potztal
2015-03-20 7:52 ` Ahmed S. Darwish [this message]
[not found] ` <29966613.106.1426846736128.JavaMail.RPO@mac-rpo.local>
[not found] ` <CAJsV4AxMVP=51OYEQDADsF_iQO7aCRA_T-kXaC0LJp1nyxtM9g@mail.gmail.com>
2015-03-21 19:32 ` Ahmed S. Darwish
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=20150320075238.GA2387@Darwish.PC \
--to=darwish.07@gmail.com \
--cc=linux-can@vger.kernel.org \
--cc=ralph.potztal@espros.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.