On 06/27/2011 09:10 AM, Wolfgang Grandegger wrote:
> Hallo,
> 
> On 06/27/2011 06:34 AM, Jesse Lackey wrote:
>> Hello SocketCANers,
>>
>> I bought 3 ESD CAN-USB/2 units for a project, and I'm unfortunately
>> having problems getting them to work with linux.  I'm using the latest
>> ubuntu, 11.04 I believe on x86 laptop.
>>
>> Here are the details to get the conversation going.  I have the
>> CAN-USB/2 plugged into the laptop, but no CAN network attached to it.
>>
>> I'm using the latest ubuntu, linux kernel 2.6.38
>> the 'dmesg' log shows the CAN-USB/2 is seen:
>> "esd_usb2 2-1:1.0: device can0 registered"
>> now I do the following:
>> "modprobe can"
>> "modprobe can_raw"
>> "modprobe can_bcm"
>> and in the dmesg log all this appears to work fine.
>> then finally:
>> "ip link set can0 up type can bitrate 250000"
>> but this fails, I get back: "RTNETLINK answers: Invalid argument"
>> and in the dmesg log, I get this entry:
>> "esd_usb2 2-1:1.0: bit-timing calculation not available"
>>
>> Can anyone help?
>> According to the man page for "ip", the "bitrate" parameter is invalid
>> (does not exist).
>> What am I missing?
> 
> I'm using Ubuntu 11.04 as well. Unfortunately, CONFIG_CAN_CALC_BITTIMING
> is *not* set causing the problem:
> 
>   ~$ grep CAN_ /boot/config-2.6.38-8-generic
>   ...
>   # CONFIG_CAN_CALC_BITTIMING is not set
> 
> You need to rebuild can-dev.ko with "CONFIG_CAN_CALC_BITTIMING=y" or use
> generic bittiming parameters for bitrate 250000.

What about making CAN_CALC_BITTIMING in Kconfig default?

cheers, Marc

P.S.: Patch follows....

-- 
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   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to