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 12:31:28 +0000 (UTC) [thread overview]
Message-ID: <loom.20160621T142652-138@post.gmane.org> (raw)
In-Reply-To: 53a1d68d-6267-e3fc-af7d-ba4d49f8124a@hartkopp.net
Oliver Hartkopp <socketcan <at> hartkopp.net> writes:
>
>
> On 06/21/2016 10:55 AM, ajneu wrote:
> > 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???
>
> You do can not add a CAN device.
>
> A 'real' CAN netdevice is detected and initialized automatically.
Well ok, I hear you.
But how is the netdevice detected and initialized automatically?
Is this from udev somewhere? Where? Can you point me to where that is?
What if I want to issue commands myself -- that possible?
Note also:
I can still do this:
sudo ip link delete can0 ## also removes /sys/class/net/can0
Is this "legal"??
As mentioned in another post -- If I still have the can0 interface
connected, and remove it from the PC AFTER that 'ip link delete' command,
then the whole system hangs.
Thanks.
ajneu
> You only can add 'virtual' CAN devices:
>
> ip link add dev vcan0 type vcan
>
> But the OOPS should no occur due to your ip usage anyway
> This has to be fixed ...
>
> Regards,
> Oliver
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo <at> vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2016-06-21 12:31 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
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 [this message]
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.20160621T142652-138@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