Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can interface doesn't create in my system #1

Open
iDoka opened this issue Jul 12, 2021 · 0 comments
Open

can interface doesn't create in my system #1

iDoka opened this issue Jul 12, 2021 · 0 comments

Comments

@iDoka
Copy link

iDoka commented Jul 12, 2021

$ cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

$ uname -a
Linux 4.15.7-1.el7.elrepo.x86_64 #1 SMP Wed Feb 28 14:38:13 EST 2018 x86_64 x86_64 x86_64 GNU/Linux

Step to reproduce (the kernel supplied with mainline gs_usb.ko):

git clone https://github.com/HubertD/socketcan_gs_usb
cd socketcan_gs_usb
make 
sudo rmmod gs_usb
sudo modprobe can_dev 
sudo modprobe can
sudo insmod ./gs_usb.ko
lsmod | grep gs_usb
  gs_usb                 16384  0
lsmod | grep can
  can_dev                28672  0 
  slcan                  16384  0 
  can_raw                20480  0 
  can                    24576  1 can_raw

after that a run tail -f /var/log/messages and connect dongle:

Jul 11 23:52:23 doka kernel: usb 1-5.4.1: new full-speed USB device number 60 using xhci_hcd
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: device descriptor read/64, error -32
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: device descriptor read/64, error -32
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: new full-speed USB device number 61 using xhci_hcd
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: New USB device found, idVendor=1d50, idProduct=606f
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: Product: cantact gs_usb
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: Manufacturer: cantact.io
Jul 11 23:52:23 doka kernel: usb 1-5.4.1: SerialNumber: 000500125746430120333932

it's all. Nothing else. In output ip a I'm also cannot find canX


For reference it's output of tail -f /var/log/messages for mainline gs_usb.ko:

Jul 12 18:13:13 doka kernel: usb 1-5.4.1: new full-speed USB device number 71 using xhci_hcd
Jul 12 18:13:13 doka kernel: usb 1-5.4.1: New USB device found, idVendor=1d50, idProduct=606f
Jul 12 18:13:13 doka kernel: usb 1-5.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 12 18:13:13 doka kernel: usb 1-5.4.1: Product: cantact gs_usb
Jul 12 18:13:13 doka kernel: usb 1-5.4.1: Manufacturer: cantact.io
Jul 12 18:13:13 doka kernel: usb 1-5.4.1: SerialNumber: 000500125746430120333932
Jul 12 18:13:13 doka kernel: gs_usb 1-5.4.1:1.0: Configuring for 1 interfaces
Jul 12 18:13:13 doka NetworkManager[1390]: <info>  [1626102793.3588] manager: (can0): new Generic device (/org/freedesktop/NetworkManager/Devices/18)

After run ip a I can see can0 interface (for mainline /usr/lib/modules/4.15.7-1.el7.elrepo.x86_64/kernel/drivers/net/can/usb/gs_usb.ko).

For reference (mainline gs_usb.ko):

lsmod | grep gs_usb
  gs_usb                 20480  0 
  can_dev                28672  1 gs_usb

It looks like issue with "linking" between gs_usb and can_dev in case of using custom gs_usb ?

@iDoka iDoka changed the title can interface doesnt create in my system label:bug can interface doesn't create in my system Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant