From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Hartkopp Subject: Re: Help to set up can net interface on Dell 3200 Intel Atom Date: Thu, 6 Feb 2020 14:54:20 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.20]:9877 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbgBFNyb (ORCPT ); Thu, 6 Feb 2020 08:54:31 -0500 In-Reply-To: Content-Language: en-US Sender: linux-can-owner@vger.kernel.org List-ID: To: "Lev R. Oshvang ." Cc: linux-can@vger.kernel.org, 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 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 >>