From: ajneu <ajneu1@gmail.com>
To: linux-can@vger.kernel.org
Subject: Re: Kernel Oops with: ip link set can0 type can
Date: Tue, 21 Jun 2016 08:55:34 +0000 (UTC) [thread overview]
Message-ID: <loom.20160621T105023-651@post.gmane.org> (raw)
In-Reply-To: loom.20160621T095606-63@post.gmane.org
ajneu <ajneu1 <at> gmail.com> writes:
>
> Hi,
>
> issuing the command
> sudo ip link set can0 type can
> I get Kernel Oops (NULL pointer dereference)
> Command line prints: "Killed".
>
> [...]
>
> dmesg shows
> [...]
Question:
How should one add and set a can device???
If I reboot, then
udev detects my Peak USB Adapter.
Command:
ip link show can0
=>
4: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group
default qlen 10
link/can
This device was (somehow?) loaded via udev.
Command:
udevadm info -p /sys/class/net/can0
udevadm info -p /sys/class/net/can0 --attribute-walk
Now let's delete can0:
sudo ip link delete can0
ip link show can0
=>
Device "can0" does not exist.
Now let's add can0 as type can:
sudo ip link add can0 type can
=>
Killed
Damn!!!! Kernel Oops!!!!!!
(dmesg shows a similar output as before.)
So repeating question:
How should one add and set a can device???
How does udev do it? (How can one figure out how udev does it?)
Thanks.
next prev parent reply other threads:[~2016-06-21 8:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-21 7:57 Kernel Oops with: ip link set can0 type can ajneu
2016-06-21 8:55 ` ajneu [this message]
2016-06-21 9:17 ` Oliver Hartkopp
2016-06-21 10:19 ` Oliver Hartkopp
2016-06-21 12:25 ` ajneu
2016-06-21 12:31 ` ajneu
2016-06-21 13:28 ` Oliver Hartkopp
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=loom.20160621T105023-651@post.gmane.org \
--to=ajneu1@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox