You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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).
Step to reproduce (the kernel supplied with mainline gs_usb.ko):
after that a run
tail -f /var/log/messages
and connect dongle:it's all. Nothing else. In output
ip a
I'm also cannot find canXFor reference it's output of
tail -f /var/log/messages
for mainline gs_usb.ko: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):
It looks like issue with "linking" between
gs_usb
andcan_dev
in case of using custom gs_usb ?The text was updated successfully, but these errors were encountered: