On 14.08.2011 14:31, Wolfgang Zarre wrote: Hello Wolfgang,
> We are using a B&R automation PC with a cc770 ISA card (sometimes with a > i82527 > mounted). > In the past we used a self modified lincan driver but now we would like to > change to socketCAN. > > Therefore I checked the svn source out and had the same issues as mentioned in > the > threads before. > But then I just compiled the cc770 tree and I'm using the driver without any > problem by loading with following parameter: > > modprobe cc770_isa irq=0xa port=0x384 indirect=1 Fine! > The statement of Oliver that SocketCAN SVN is currently only used for the > can-utils and some development for new PF_CAN based networking protocols > is confusing me a bit now due the fact that I couldn't figure out which > module to use from the native kernel (2.6.39-4). AFAIK the cc770 driver reworked by Wolfgang Grandegger is currently not part of the Mainline Kernel, so using the SocketCAN SVN is the right way by now. @WG: Any plans to get the cc770 driver upstream too? > Maybe someone can tell me if cc770 is already native part in kernel > 2.6.39 > and if so the module name and maybe how to configure. If you only want to compile the cc770 driver from the SocketCAN SVN and still try the 'make && make modules_install' calls, you need to disable the stuff, that could interfere with your mainline Kernel. E.g. you don't need to compile the network-layer stuff from linux/net/can ... When you are in ~/socketcan/trunk/kernel/2.6 you may enter make CONFIG_CAN_MCP251X=n CONFIG_CAN_EMS_USB=n CONFIG_CAN_ESD_USB2=n \ CONFIG_CAN=n CONFIG_CAN_RAW=n CONFIG_CAN_BCM=n to build your needed driver modules. Then you may move away the stuff in /lib/modules/2.6.39-4/kernel/drivers/net/can - e.g. put it to a safe place: mv /lib/modules/2.6.39-4/kernel/drivers/net/can /root/saved-2.6.39-4_drivers_net_can And then invoke the same make with 'modules_install': make CONFIG_CAN_MCP251X=n CONFIG_CAN_EMS_USB=n CONFIG_CAN_ESD_USB2=n \ CONFIG_CAN=n CONFIG_CAN_RAW=n CONFIG_CAN_BCM=n modules_install The 'depmod -a' should already been done then, but invoking it is always safe. Indeed having the cc770 driver in the mainline kernel is more comfortable ;-) Regards, Oliver _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
