All of lore.kernel.org
 help / color / mirror / Atom feed
* Help to set up can net interface on Dell 3200 Intel Atom
@ 2020-02-04 13:07 Lev R. Oshvang .
  2020-02-04 16:08 ` Oliver Hartkopp
  0 siblings, 1 reply; 4+ messages in thread
From: Lev R. Oshvang . @ 2020-02-04 13:07 UTC (permalink / raw)
  To: linux-can

Hi All,

I have with DELL 3002 Edge server
It has can and can_raw drivers loaded at boot time
It does not have /boot/config.txt file

Unfortunately, I do not have kernel sources and kernel config file is
not present in /proc, so I do not know which exactly chip is on b
oard and board specs says only:

(CAN2.0 A/B/FD) 1Mbps (CAN2.0), 5Mbps (CAN-FD).


I tried to set it up but get the following error


root@5HCF902:~# ip link add dev can0 type can
RTNETLINK answers: Operation not supported


Thanks in advance.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help to set up can net interface on Dell 3200 Intel Atom
  2020-02-04 13:07 Help to set up can net interface on Dell 3200 Intel Atom Lev R. Oshvang .
@ 2020-02-04 16:08 ` Oliver Hartkopp
  2020-02-05 12:00   ` Lev R. Oshvang .
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Hartkopp @ 2020-02-04 16:08 UTC (permalink / raw)
  To: Lev R. Oshvang .; +Cc: linux-can

On 04/02/2020 14.07, Lev R. Oshvang . wrote:

> I have with DELL 3002 Edge server
> It has can and can_raw drivers loaded at boot time
> It does not have /boot/config.txt file
> 
> Unfortunately, I do not have kernel sources and kernel config file is
> not present in /proc, so I do not know which exactly chip is on b
> oard and board specs says only:
> 
> (CAN2.0 A/B/FD) 1Mbps (CAN2.0), 5Mbps (CAN-FD).

https://topics-cdn.dell.com/pdf/dell-edge-gateway-3000-series_Specifications2_de-de.pdf
says that there is a 
https://www.microchip.com/wwwproducts/en/ATSAME70N19 Cortex-M7 which 
handles the CAN FD controller.

The ATSAME70N19 is connected somehow to the Intel Atom-Prozessor E3805.

So I won't assume, that you can access the CAN controller from the Intel 
CPU.

> I tried to set it up but get the following error
> 
> 
> root@5HCF902:~# ip link add dev can0 type can
> RTNETLINK answers: Operation not supported

You can not "add" a real CAN interface with "ip link add ..." - this 
works only for virtual CANs.

Try

ip -det link show

where some CAN interface (e.g. can0) should be visible, if you have one.

Regards,
Oliver

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help to set up can net interface on Dell 3200 Intel Atom
  2020-02-04 16:08 ` Oliver Hartkopp
@ 2020-02-05 12:00   ` Lev R. Oshvang .
  2020-02-06 13:54     ` Oliver Hartkopp
  0 siblings, 1 reply; 4+ messages in thread
From: Lev R. Oshvang . @ 2020-02-05 12:00 UTC (permalink / raw)
  To: Oliver Hartkopp; +Cc: linux-can

Hi Oliver,

I tried command which is proposed in Dell manual
https://www.dell.com/support/manuals/il/en/ilbsdt1/dell-edge-gateway-3000-series/dell-edge_gateway-3002-install_manual/can-module?guid=guid-b6b7f697-0a5c-4b9c-acfe-9b436ca90bdc&lang=en-us

or i in /dev/ttyACM*; do udevadm info $i | grep -q
03eb_2404_USB_CAN_FD && echo "path:
                                    /dev/$(basename $i)"; done

It prints the device  /dev/ttyACM0 is present.

Can I use it as serial CAN  device?
I am novice to CAN devices. Now I understand that can and can_raw are
only generic drivers and I need real driver.
I wrote to Microchip support, perhaps they have driver for this box.

But still I do not understand why can driver is loaded at boot time I
used to think that only real hardware cause the driver to appear.

   16.727375] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have
ASPM control
[   16.742055] r8169 0000:04:00.0: can't disable ASPM; OS doesn't have
ASPM control
[   16.824470] peak_usb 1-2:1.0 can0: attached to PCAN-USB channel 0
(device 255)
[   30.661705] can: controller area network core (rev 20120528 abi 9)
[   30.678155] can: raw protocol (rev 20120528)

I saw these lines in dmesg and now I thing they apperead because CAN
support was not a module but built-in in kernel configuration.
Regards,
Lev

On Tue, Feb 4, 2020 at 6:08 PM Oliver Hartkopp <socketcan@hartkopp.net> wrote:
>
> On 04/02/2020 14.07, Lev R. Oshvang . wrote:
>
> > I have with DELL 3002 Edge server
> > It has can and can_raw drivers loaded at boot time
> > It does not have /boot/config.txt file
> >
> > Unfortunately, I do not have kernel sources and kernel config file is
> > not present in /proc, so I do not know which exactly chip is on b
> > oard and board specs says only:
> >
> > (CAN2.0 A/B/FD) 1Mbps (CAN2.0), 5Mbps (CAN-FD).
>
> https://topics-cdn.dell.com/pdf/dell-edge-gateway-3000-series_Specifications2_de-de.pdf
> says that there is a
> https://www.microchip.com/wwwproducts/en/ATSAME70N19 Cortex-M7 which
> handles the CAN FD controller.
>
> The ATSAME70N19 is connected somehow to the Intel Atom-Prozessor E3805.
>
> So I won't assume, that you can access the CAN controller from the Intel
> CPU.
>
> > I tried to set it up but get the following error
> >
> >
> > root@5HCF902:~# ip link add dev can0 type can
> > RTNETLINK answers: Operation not supported
>
> You can not "add" a real CAN interface with "ip link add ..." - this
> works only for virtual CANs.
>
> Try
>
> ip -det link show
>
> where some CAN interface (e.g. can0) should be visible, if you have one.
>
> Regards,
> Oliver
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help to set up can net interface on Dell 3200 Intel Atom
  2020-02-05 12:00   ` Lev R. Oshvang .
@ 2020-02-06 13:54     ` Oliver Hartkopp
  0 siblings, 0 replies; 4+ messages in thread
From: Oliver Hartkopp @ 2020-02-06 13:54 UTC (permalink / raw)
  To: Lev R. Oshvang .; +Cc: linux-can, Yegor Yefremov

Hi Lev,

On 05/02/2020 13.00, Lev R. Oshvang . wrote:

> I tried command which is proposed in Dell manual
> https://www.dell.com/support/manuals/il/en/ilbsdt1/dell-edge-gateway-3000-series/dell-edge_gateway-3002-install_manual/can-module?guid=guid-b6b7f697-0a5c-4b9c-acfe-9b436ca90bdc&lang=en-us
> 
> or i in /dev/ttyACM*; do udevadm info $i | grep -q
> 03eb_2404_USB_CAN_FD && echo "path:
>                                      /dev/$(basename $i)"; done
> 
> It prints the device  /dev/ttyACM0 is present.
> 
> Can I use it as serial CAN  device?

Looks weird.

As already answered by Yegor you might have a SLCAN device here.

> I am novice to CAN devices. Now I understand that can and can_raw are
> only generic drivers and I need real driver.
> I wrote to Microchip support, perhaps they have driver for this box.
> 
> But still I do not understand why can driver is loaded at boot time I
> used to think that only real hardware cause the driver to appear.
> 
>     16.727375] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have
> ASPM control
> [   16.742055] r8169 0000:04:00.0: can't disable ASPM; OS doesn't have
> ASPM control
> [   16.824470] peak_usb 1-2:1.0 can0: attached to PCAN-USB channel 0
> (device 255)

But this looks like a 'real' PCAN USB adapter
https://www.peak-system.com/PCAN-USB.199.0.html

which you should be able to configure by setting a bitrate and start to 
work.

Can you post the output of

ip -det link show can0

and

lsmod | grep can

and

lsmod | grep peak

?

Regards,
Oliver


> [   30.661705] can: controller area network core (rev 20120528 abi 9)
> [   30.678155] can: raw protocol (rev 20120528)
> 
> I saw these lines in dmesg and now I thing they apperead because CAN
> support was not a module but built-in in kernel configuration.
> Regards,
> Lev
> 
> On Tue, Feb 4, 2020 at 6:08 PM Oliver Hartkopp <socketcan@hartkopp.net> wrote:
>>
>> On 04/02/2020 14.07, Lev R. Oshvang . wrote:
>>
>>> I have with DELL 3002 Edge server
>>> It has can and can_raw drivers loaded at boot time
>>> It does not have /boot/config.txt file
>>>
>>> Unfortunately, I do not have kernel sources and kernel config file is
>>> not present in /proc, so I do not know which exactly chip is on b
>>> oard and board specs says only:
>>>
>>> (CAN2.0 A/B/FD) 1Mbps (CAN2.0), 5Mbps (CAN-FD).
>>
>> https://topics-cdn.dell.com/pdf/dell-edge-gateway-3000-series_Specifications2_de-de.pdf
>> says that there is a
>> https://www.microchip.com/wwwproducts/en/ATSAME70N19 Cortex-M7 which
>> handles the CAN FD controller.
>>
>> The ATSAME70N19 is connected somehow to the Intel Atom-Prozessor E3805.
>>
>> So I won't assume, that you can access the CAN controller from the Intel
>> CPU.
>>
>>> I tried to set it up but get the following error
>>>
>>>
>>> root@5HCF902:~# ip link add dev can0 type can
>>> RTNETLINK answers: Operation not supported
>>
>> You can not "add" a real CAN interface with "ip link add ..." - this
>> works only for virtual CANs.
>>
>> Try
>>
>> ip -det link show
>>
>> where some CAN interface (e.g. can0) should be visible, if you have one.
>>
>> Regards,
>> Oliver
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-06 13:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 13:07 Help to set up can net interface on Dell 3200 Intel Atom Lev R. Oshvang .
2020-02-04 16:08 ` Oliver Hartkopp
2020-02-05 12:00   ` Lev R. Oshvang .
2020-02-06 13:54     ` Oliver Hartkopp

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.