Can't start ESD CAN-USB/2
Hi guys!
I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the esd_can2 module and modprobed it correctly. When i plug in my CAN-USB/2 device i get the following from dmesg:
[186823.262021] usb 1-10: new high-speed USB device number 22 using ehci_hcd [186823.826031] usb 1-10: device not accepting address 22, error -71 [186823.877025] hub 1-0:1.0: unable to enumerate USB device on port 10 [186827.879018] usb 1-10: new high-speed USB device number 24 using ehci_hcd [186827.995429] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010 [186827.995432] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [186827.995435] usb 1-10: Product: USB2292 [186827.995438] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com) [186827.995440] usb 1-10: SerialNumber: GM001950 [186827.997824] esd_usb2 1-10:1.0: can0: device can0 registered
The device appears to be correctly recognised and the can0 interface is ready to be used. I then set the bitrate and several other paramters with:
# canconfig can0 bittiming prop-seg 2 phase-seg1 12 phase-seg2 5 sjw 1 brp 3 tq 50
can0 bittiming:
tq: 50, prop-seq: 2 phase-seq1: 12 phase-seq2: 5 sjw: 1, brp: 3
can0 bitrate: 1000000, sample-point: 0.750
However when i try to start the interface with # ifconfig can0 up, I get the following error:
SIOCSIFFLAGS: Invalid argument
If I look at the details for the can0 interface it seems that all the configuration parameters I sent earlier are not taken into account:
# ip -d link show can0
16: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT qlen 10
link/can
can state STOPPED (berr-counter tx 0 rx 0) restart-ms 0
bitrate 0 sample-point 0.000
tq 0 prop-seg 0 phase-seg1 0 phase-seg2 0 sjw 0
esd_usb2: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
clock 60000000Also, for reference sake, my kernel is compiled with CONFIG_CAN_CALC_BITTIMING=y. I am of course running all of these commands as root.
I must say this is a very weird behaviour. I have been struggling without being able to see the light and I really hope one of you guys might have a clue about what is going on.
Thanks a lot!
Francesco
Signature · 7 lines
*Francesco Giovannini* Research Fellow iCub Facility *Istituto Italiano di Tecnologia* Via Morego, 30 16163 Genova /email:/ [email protected] <mailto://[email protected]> www.iit.it <http://www.iit.it>
Marc Kleine-Budde
maintainerQuoted 26 lines · Francesco Giovannini
Hi guys!
I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the
esd_can2module and modprobed it correctly. When i plug in my CAN-USB/2 device i get the following from dmesg:[186823.262021] usb 1-10: new high-speed USB device number 22 using ehci_hcd [186823.826031] usb 1-10: device not accepting address 22, error -71 [186823.877025] hub 1-0:1.0: unable to enumerate USB device on port 10 [186827.879018] usb 1-10: new high-speed USB device number 24 using ehci_hcd [186827.995429] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010 [186827.995432] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [186827.995435] usb 1-10: Product: USB2292 [186827.995438] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com) [186827.995440] usb 1-10: SerialNumber: GM001950 [186827.997824] esd_usb2 1-10:1.0: can0: device can0 registeredThe device appears to be correctly recognised and the can0 interface is ready to be used. I then set the bitrate and several other paramters with:
Quoted 6 lines
# canconfig can0 bittiming prop-seg 2 phase-seg1 12 phase-seg2 5 sjw 1 brp 3 tq 50can0 bittiming: tq: 50, prop-seq: 2 phase-seq1: 12 phase-seq2: 5 sjw: 1, brp: 3 can0 bitrate: 1000000, sample-point: 0.750
Try to set the bittiming with this command:
canconfig can0 bitrate 1000000
Does this work?
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Hi Mark,
I tried #canconfig can0 bitrate 1000000
can0 bitrate: 1000000, sample-point: 0.750
I am however still unable to successfully start the can0 interface with # ifconfig can0 up. Same error shows up.
Francesco
Quoted 41 lines · Marc Kleine-Budde
Quoted 26 lines · Francesco Giovannini
Hi guys!
I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the
esd_can2module and modprobed it correctly. When i plug in my CAN-USB/2 device i get the following from dmesg:[186823.262021] usb 1-10: new high-speed USB device number 22 using ehci_hcd [186823.826031] usb 1-10: device not accepting address 22, error -71 [186823.877025] hub 1-0:1.0: unable to enumerate USB device on port 10 [186827.879018] usb 1-10: new high-speed USB device number 24 using ehci_hcd [186827.995429] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010 [186827.995432] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [186827.995435] usb 1-10: Product: USB2292 [186827.995438] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com) [186827.995440] usb 1-10: SerialNumber: GM001950 [186827.997824] esd_usb2 1-10:1.0: can0: device can0 registeredThe device appears to be correctly recognised and the can0 interface is ready to be used. I then set the bitrate and several other paramters with:
Quoted 6 lines
# canconfig can0 bittiming prop-seg 2 phase-seg1 12 phase-seg2 5 sjw 1 brp 3 tq 50can0 bittiming: tq: 50, prop-seq: 2 phase-seq1: 12 phase-seq2: 5 sjw: 1, brp: 3 can0 bitrate: 1000000, sample-point: 0.750Try to set the bittiming with this command:
canconfig can0 bitrate 1000000Does this work?
Marc
Signature · 9 lines
*Francesco Giovannini* Research Fellow iCub Facility *Istituto Italiano di Tecnologia* Via Morego, 30 16163 Genova /email:/ [email protected] <mailto://[email protected]> www.iit.it <http://www.iit.it> iit-logo-icub
Marc Kleine-Budde
maintainerQuoted 6 lines · Francesco Giovannini
I tried #canconfig can0 bitrate 1000000
can0 bitrate: 1000000, sample-point: 0.750I am however still unable to successfully start the can0 interface with
# ifconfig can0 up. Same error shows up.
What's the outout of "canconfig can0" after "canconfig can0 bitrate 1000000"
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Marc Kleine-Budde
maintainerQuoted 9 lines · Marc Kleine-Budde
Quoted 6 lines · Francesco Giovannini
I tried #canconfig can0 bitrate 1000000
can0 bitrate: 1000000, sample-point: 0.750I am however still unable to successfully start the can0 interface with
# ifconfig can0 up. Same error shows up.What's the outout of "canconfig can0" after "canconfig can0 bitrate 1000000"
Please try as root and send me the output:
dmesg -c > /dev/null
canconfig can0 bitrate 1000000
canconfig can0
dmesg
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Here is the output:
oSuseBox-IIT:/home/fgiovannini # dmesg -c > /dev/null
oSuseBox-IIT:/home/fgiovannini # canconfig can0 bitrate 1000000 can0 bitrate: 1000000, sample-point: 0.750
oSuseBox-IIT:/home/fgiovannini # canconfig can0
can0 bitrate: 0, sample-point: 0.000
can0 bittiming:
tq: 0, prop-seq: 0 phase-seq1: 0 phase-seq2: 0 sjw: 0, brp: 0
can0 state: STOPPED
can0 restart-ms: 0
can0 ctrlmode: loopback[OFF], listen-only[OFF], tripple-sampling[OFF],one-shot[OFF], berr-reporting[OFF] can0 clock freq: 60000000
can0 bittiming-constants: name esd_usb2,
tseg1-min: 1, tseg1-max: 16, tseg2-min: 1, tseg2-max: 8, sjw-max 4, brp-min: 1, brp-max: 1024, brp-inc: 1,
oSuseBox-IIT:/home/fgiovannini # dmesg
[ 1189.194292] esd_usb2 1-10:1.0: can0: setting BTR=0x804d0002 [ 1189.195338] usb 1-10: USB disconnect, device number 7 [ 1189.432021] usb 1-10: new high-speed USB device number 8 using ehci_hcd [ 1189.547438] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010 [ 1189.547442] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1189.547445] usb 1-10: Product: USB2292 [ 1189.547447] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com) [ 1189.547450] usb 1-10: SerialNumber: GM001950 [ 1189.549832] esd_usb2 1-10:1.0: can0: device can0 registered
Weird. Looks like canconfig bitrate acts like it is unplugging and plugging the device. Is this normal?
--
Francesco Giovannini
Research Fellow
iCub Facility
Istituto Italiano di Tecnologia
Via Morego, 30 16163 Genova
email: [email protected]
________________________________________
From: Marc Kleine-Budde [[email protected]]
Sent: Friday, January 31, 2014 6:27 PM
To: Francesco Giovannini
Cc: [email protected]
Subject: Re: Can't start ESD CAN-USB/2
Quoted 9 lines · Marc Kleine-Budde
Quoted 6 lines · Francesco Giovannini
I tried #canconfig can0 bitrate 1000000
can0 bitrate: 1000000, sample-point: 0.750I am however still unable to successfully start the can0 interface with
# ifconfig can0 up. Same error shows up.What's the outout of "canconfig can0" after "canconfig can0 bitrate 1000000"
Please try as root and send me the output:
dmesg -c > /dev/null
canconfig can0 bitrate 1000000
canconfig can0
dmesg
Marc
--
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Marc Kleine-Budde
maintainerQuoted 31 lines · Francesco Giovannini
Here is the output:
oSuseBox-IIT:/home/fgiovannini # dmesg -c >
/dev/nulloSuseBox-IIT:/home/fgiovannini # canconfig can0 bitrate 1000000 can0 bitrate: 1000000, sample-point: 0.750
oSuseBox-IIT:/home/fgiovannini # canconfig can0
can0 bitrate: 0, sample-point: 0.000
can0 bittiming:tq: 0, prop-seq: 0 phase-seq1: 0 phase-seq2: 0 sjw: 0, brp: 0can0 state: STOPPED
can0 restart-ms: 0
can0 ctrlmode: loopback[OFF], listen-only[OFF], tripple-sampling[OFF],one-shot[OFF], berr-reporting[OFF] can0 clock freq: 60000000
can0 bittiming-constants: nameesd_usb2,tseg1-min: 1, tseg1-max: 16, tseg2-min: 1, tseg2-max: 8, sjw-max 4, brp-min: 1, brp-max: 1024, brp-inc: 1,oSuseBox-IIT:/home/fgiovannini # dmesg
[ 1189.194292] esd_usb2 1-10:1.0: can0: setting BTR=0x804d0002 [ 1189.195338] usb 1-10: USB disconnect, device number 7 [ 1189.432021] usb 1-10: new high-speed USB device number 8 using ehci_hcd [ 1189.547438] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010 [ 1189.547442] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1189.547445] usb 1-10: Product: USB2292 [ 1189.547447] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com) [ 1189.547450] usb 1-10: SerialNumber: GM001950 [ 1189.549832] esd_usb2 1-10:1.0: can0: device can0 registered
Quoted 1 line
Weird. Looks like canconfig bitrate acts like it is unplugging and plugging the device. Is this normal?
Correct analysis. This is not normal....From you original mail:
Quoted 4 lines
I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the
esd_can2module and modprobed it correctly. When i plug in my CAN-USB/2 device i get the following from dmesg:
Why do you have compiled the esc_can2 by yourself? It is part of the kernel. Is it not activated on suse?
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Marc Kleine-Budde
maintainerQuoted 3 lines · Francesco Giovannini
Yes I had to compile it myself because OpenSuse does not include it. I first added it to the kernel config as a module and then ran make M=./drivers/net/can/usb in the kernel source tree.
Please don't top post.
Have you used the kernel sources provided by suse? If not, try these. Try a different USB port on the machine, if the CAN adapter has a USB cable that is removable, swap it too. If it's still failing try a different machine.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Marc Kleine-Budde
maintainerQuoted 1 line · Francesco Giovannini
Sorry my email client does that automatically.
It's all a matter where you position your cursor before starting to type :P
Quoted 6 lines
I just re-build the kernel module without luck. I am getting the same weird behaviour. I also tried changing CAN-USB/2 device, cable and port. This too did not solve the problem.
Unfortunately I cannot try a different machine. I am bound to this OpenSuse machine because of hardware requirements.
If you have a different linux machine I suggest to test, just to make sure the USB adapter works under linux. Although the kernel is quite new can you try a newer one?
Quoted 1 line
Any chance you might have a last minute inspiration? ;)
Can you make a firmware update of the USB adapter? Does the adapter work under windows?
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Marc Kleine-Budde
maintainerQuoted 8 lines
Quoted 3 lines
Quoted 1 line
Any chance you might have a last minute inspiration? ;)
Can you make a firmware update of the USB adapter? Does the adapter work under windows?
So yesterday I tried the same esd device on my Debian machine running Wheezy and kernel 3.2.0 (so an older kernel than the OpenSuse one) and everything worked fine. I was able to set the bitrate and dump data from the device. And yes the device works flawlessly under windows.
Okay, the device is working. Even under Linux :)
Quoted 1 line
With Suse I also tried switching esd devices and cables without any luck.
But the Suse is a different machine, so different USB controller/hardware and different USB driver.
Quoted 3 lines
Do you think this behaviour might be due caused by problems on the driver side or on the canutils side? As in: should I raise this issue with the ESD driver developers?
It's not the canutils, they just send the parameters into the kernel. The kernel driver hasn't changed much. Feel free to contact the driver developer Matthias Fuchs <[email protected]>, keep the mailinglist on Cc, if possible.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Quoted 8 lines · Matthias Fuchs
Hi Francesco,
I just saw your posting to the linux-can list about our CAN-USB/2.
Did you solve your problems?
Matthias
Quoted 16 lines · Marc Kleine-Budde
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Any chance you might have a last minute inspiration? ;)
Can you make a firmware update of the USB adapter? Does the adapter work under windows?
So yesterday I tried the same esd device on my Debian machine running Wheezy and kernel 3.2.0 (so an older kernel than the OpenSuse one) and everything worked fine. I was able to set the bitrate and dump data from the device. And yes the device works flawlessly under windows.
Okay, the device is working. Even under Linux :)
Quoted 1 line
With Suse I also tried switching esd devices and cables without any luck.
But the Suse is a different machine, so different USB controller/hardware and different USB driver.
Quoted 3 lines
Do you think this behaviour might be due caused by problems on the driver side or on the canutils side? As in: should I raise this issue with the ESD driver developers?
Quoted 8 lines
It's not the canutils, they just send the parameters into the kernel. The kernel driver hasn't changed much. Feel free to contact the driver developer Matthias Fuchs<[email protected]>, keep the mailinglist on Cc, if possible.
regards,
Marc
Hi Matthias,
I was told to keep the linux-can mailing list in the loop.
I did not solve the problem. I believe it might be due to a USB controller problem as Marc suggested. For information sake here are the output of dmesg, lsusb and lspci as I plug in the device:
oSuseBox-IIT:/home/fgiovannini # dmesg | tail
[ 1126.850018] usb 1-10: new high-speed USB device number 8 using ehci_hcd [ 1126.965630] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010 [ 1126.965634] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1126.965637] usb 1-10: Product: USB2292 [ 1126.965640] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com) [ 1126.965642] usb 1-10: SerialNumber: GM001950 [ 1126.968027] esd_usb2 1-10:1.0: can0: device can0 registered
oSuseBox-IIT:/home/fgiovannini # lsusb
Bus 002 Device 002: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse
Bus 001 Device 008: ID 0ab4:0010
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
oSuseBox-IIT:/home/fgiovannini # lspci
00:00.0 Host bridge: NVIDIA Corporation MCP73 Host Bridge (rev a2) 00:00.1 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a2)
00:01.0 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.1 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.2 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.3 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.4 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.5 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.6 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:02.0 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:03.0 ISA bridge: NVIDIA Corporation MCP73 LPC Bridge (rev a2) 00:03.1 SMBus: NVIDIA Corporation MCP73 SMBus (rev a1) 00:03.2 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1) 00:03.3 Co-processor: NVIDIA Corporation MCP73 Co-processor (rev a2) 00:03.4 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1) 00:04.0 USB controller: NVIDIA Corporation GeForce 7100/nForce 630i USB (rev a1)
00:04.1 USB controller: NVIDIA Corporation MCP73 [nForce 630i] USB 2.0 Controller (EHCI) (rev a1)
00:08.0 IDE interface: NVIDIA Corporation MCP73 IDE (rev a1) 00:09.0 Audio device: NVIDIA Corporation MCP73 High Definition Audio (rev a1)
00:0a.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0b.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0c.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0d.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0e.0 SATA controller: NVIDIA Corporation GeForce 7100/nForce 630i SATA (rev a2)
00:0f.0 Ethernet controller: NVIDIA Corporation MCP73 Ethernet (rev a2) 02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV710 [Radeon HD 4350]
02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV710/730 HDMI Audio [Radeon HD 4000 series]
Francesco
Signature · 9 lines
*Francesco Giovannini* Research Fellow iCub Facility *Istituto Italiano di Tecnologia* Via Morego, 30 16163 Genova /email:/ [email protected] <mailto://[email protected]> /web:/ www.iit.it <http://www.iit.it> iit-logo-icub
Hi Francesco,
Quoted 11 lines · Marc Kleine-Budde
Quoted 3 lines · Francesco Giovannini
Yes I had to compile it myself because OpenSuse does not include it. I first added it to the kernel config as a module and then ran make M=./drivers/net/can/usb in the kernel source tree.
Please don't top post.
Have you used the kernel sources provided by suse? If not, try these. Try a different USB port on the machine, if the CAN adapter has a USB cable that is removable, swap it too. If it's still failing try a different machine.
Can you answer this question by Marc, please. Are you using a SuSE provided kernel module or did you built it yourself? If so, how?
Are you using a 32 or 64 bit SuSE maschine?
Matthias
Hi Francesco,
I forwarded this issue to our support. We will try to reproduce the issue here with your setup (Suse 12.2) and will come back to you later.
We will keep the list on cc as far this has to do with linux-can.
Matthias
Quoted 114 lines · Francesco Giovannini
Quoted 8 lines · Matthias Fuchs
Hi Francesco,
I just saw your posting to the linux-can list about our CAN-USB/2.
Did you solve your problems?
Matthias
Quoted 16 lines · Marc Kleine-Budde
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Any chance you might have a last minute inspiration? ;)
Can you make a firmware update of the USB adapter? Does the adapter work under windows?
So yesterday I tried the same esd device on my Debian machine running Wheezy and kernel 3.2.0 (so an older kernel than the OpenSuse one) and everything worked fine. I was able to set the bitrate and dump data from the device. And yes the device works flawlessly under windows.
Okay, the device is working. Even under Linux :)
Quoted 1 line
With Suse I also tried switching esd devices and cables without any luck.
But the Suse is a different machine, so different USB controller/hardware and different USB driver.
Quoted 3 lines
Do you think this behaviour might be due caused by problems on the driver side or on the canutils side? As in: should I raise this issue with the ESD driver developers?
Quoted 8 lines
It's not the canutils, they just send the parameters into the kernel. The kernel driver hasn't changed much. Feel free to contact the driver developer Matthias Fuchs<[email protected]>, keep the mailinglist on Cc, if possible.
regards,
MarcHi Matthias,
I was told to keep the linux-can mailing list in the loop.
I did not solve the problem. I believe it might be due to a USB controller problem as Marc suggested. For information sake here are the output of dmesg, lsusb and lspci as I plug in the device:
oSuseBox-IIT:/home/fgiovannini # dmesg | tail
[ 1126.850018] usb 1-10: new high-speed USB device number 8 usingehci_hcd
[ 1126.965630] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010
[ 1126.965634] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1126.965637] usb 1-10: Product: USB2292
[ 1126.965640] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com)
[ 1126.965642] usb 1-10: SerialNumber: GM001950
[ 1126.968027]esd_usb21-10:1.0: can0: device can0 registeredoSuseBox-IIT:/home/fgiovannini # lsusb
Bus 002 Device 002: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse
Bus 001 Device 008: ID 0ab4:0010
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root huboSuseBox-IIT:/home/fgiovannini # lspci
00:00.0 Host bridge: NVIDIA Corporation MCP73 Host Bridge (rev a2) 00:00.1 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a2)
00:01.0 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.1 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.2 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.3 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.4 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.5 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.6 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:02.0 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:03.0 ISA bridge: NVIDIA Corporation MCP73 LPC Bridge (rev a2) 00:03.1 SMBus: NVIDIA Corporation MCP73 SMBus (rev a1) 00:03.2 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1) 00:03.3 Co-processor: NVIDIA Corporation MCP73 Co-processor (rev a2) 00:03.4 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1) 00:04.0 USB controller: NVIDIA Corporation GeForce 7100/nForce 630i USB (rev a1)
00:04.1 USB controller: NVIDIA Corporation MCP73 [nForce 630i] USB 2.0 Controller (EHCI) (rev a1)
00:08.0 IDE interface: NVIDIA Corporation MCP73 IDE (rev a1) 00:09.0 Audio device: NVIDIA Corporation MCP73 High Definition Audio (rev a1)
00:0a.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0b.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0c.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0d.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1) 00:0e.0 SATA controller: NVIDIA Corporation GeForce 7100/nForce 630i SATA (rev a2)
00:0f.0 Ethernet controller: NVIDIA Corporation MCP73 Ethernet (rev a2) 02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV710 [Radeon HD 4350]
02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV710/730 HDMI Audio [Radeon HD 4000 series]Francesco
Signature · 13 lines
------------------------------------------------------------------------ Dipl.-Ing. Matthias Fuchs Head of System Design esd electronic system design gmbh Vahrenwalder Str. 207 - 30165 Hannover - GERMANY Phone: +49-511-37298-0 - Fax: +49-511-37298-68 Please visit our homepage http://www.esd.eu Quality Products - Made in Germany ------------------------------------------------------------------------- Geschäftsführer: Klaus Detering Amtsgericht Hannover HRB 51373 - VAT-ID DE 115672832 -------------------------------------------------------------------------
Hi Francesco,
Quoted 5 lines · Marc Kleine-Budde
Quoted 3 lines · Francesco Giovannini
Yes I had to compile it myself because OpenSuse does not include it. I first added it to the kernel config as a module and then ran make M=./drivers/net/can/usb in the kernel source tree.
Quoted 9 lines
Please don't top post.
Have you used the kernel sources provided by suse? If not, try these. Try a different USB port on the machine, if the CAN adapter has a USB cable that is removable, swap it too. If it's still failing try a different machine.
Marc
Can you answer Marc's question about the origin of the kernel module? Did you built it yourself or are you using SuSE provided modules? How did you built the module and from what sources?
Are you running on a 32 or 64 bit system?
Matthias
Hi Matthias,
I am running a 64bit system, using the "desktop" kernel package from OpenSuSe.
I used the linux-source package provided in OpenSuSe 12.2, copied the .config, added the module via menuconfig and then ran
make M=./drivers/net/can/usb in the kernel source tree
to build the module.
Used packages:
kernel-desktop
kernel-desktop-devel
kernel-default-devel
kernel-devel
kernel-source
kernel-syms
Below are the output of uname and lsb_release:
fgiovannini@oSuseBox-IIT:~> uname -a
Linux oSuseBox-IIT 3.4.63-2.44-desktop #1 SMP PREEMPT Wed Oct 2
11:18:32 UTC 2013 (d91a619) i686 i686 i386 GNU/Linux
fgiovannini@oSuseBox-IIT:~> lsb_release
LSB Version: n/a
fgiovannini@oSuseBox-IIT:~> lsb_release -a
LSB Version: n/a
Distributor ID: SUSE LINUX
Description: openSUSE 12.2 (i586)
Release: 12.2
Codename: Mantis
Francesco
--
Francesco Giovannini
Research Fellow
iCub Facility
Istituto Italiano di Tecnologia
Via Morego, 30 16163 Genova
email: [email protected]
web: www.iit.it
________________________________________
From: Matthias Fuchs [[email protected]]
Sent: Monday, February 17, 2014 2:37 PM
To: Marc Kleine-Budde; Francesco Giovannini
Cc: [email protected]
Subject: Re: Can't start ESD CAN-USB/2
Hi Francesco,
Quoted 5 lines · Marc Kleine-Budde
Quoted 3 lines · Francesco Giovannini
Yes I had to compile it myself because OpenSuse does not include it. I first added it to the kernel config as a module and then ran make M=./drivers/net/can/usb in the kernel source tree.
Quoted 9 lines
Please don't top post.
Have you used the kernel sources provided by suse? If not, try these. Try a different USB port on the machine, if the CAN adapter has a USB cable that is removable, swap it too. If it's still failing try a different machine.
Marc
Can you answer Marc's question about the origin of the kernel module? Did you built it yourself or are you using SuSE provided modules? How did you built the module and from what sources?
Are you running on a 32 or 64 bit system?
Matthias