Skip to contentSkip to conversation

Rebuild Drivers for Ubuntu

DISCUSSION Jeff Holtz 2 participants 3 messages May 12, 2014 CAN network drivers

lore
Share & tools
lore

Jeff Holtz

author
#0 lore raw

I'm developing some ISOTP programs and would like to rebuild the drivers to include the CAN-ISOTP.ko file for UBUNTU (currently using 14.04 LTS) I can get the code for the build for 14.04 which includes all the can, can-bcm, can-raw ko's but nt the isotp. I've git the can-modules but having difficulties merging the latest code and where to place it to build. Any help/instructions would be appreciated.

for example:
cp ~/can-modules /usr/src/linux-3-13.0/.
make SUBDIR=drivers/net/can

#1 lore raw

Hello Jeff,

I would suggest the following:

Download the can-modules git from gitorious:

git clone git://gitorious.org/linux-can/can-modules.git

cd can-modules/net/can/

make CONFIG_CAN=n CONFIG_CAN_RAW=n CONFIG_CAN_BCM=n CONFIG_CAN_GW=n

This should have created a can-isotp.ko which you can load with

sudo insmod ./can-isotp.ko

# dmesg | tail -1
[  452.044371] can: isotp protocol (rev 20130731 alpha)

There's no need to compile the CAN mainline modules again.
You just need the linux-headers-<your-kernel-version> and the standard gcc build environment (which was needed to compile can-utils anyway).

Please give me some feedback if it doesn't work as expected on your machine.

Regards,
Oliver

Quoted 16 lines · Jeff Holtz

I'm developing some ISOTP programs and would like to rebuild the drivers to include the CAN-ISOTP.ko file for UBUNTU (currently using 14.04 LTS) I can get the code for the build for 14.04 which includes all the can, can-bcm, can-raw ko's but nt the isotp. I've git the can-modules but having difficulties merging the latest code and where to place it to build. Any help/instructions would be appreciated.

for example:

   cp ~/can-modules /usr/src/linux-3-13.0/.
   make SUBDIR=drivers/net/can

--
To unsubscribe from this list: send the line "unsubscribe linux-can" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw

BRILLIANT!!

Thanks. This worked. I had tried to simply do a make and it wasn't

working. Found the error since I am on Trusty 3.13 and PDE is no longer

valid (need to use PDE_DATA)

I'd love to figure out how to simply place can-modules into source and

rebuild everything but seeing as I have what I'm looking for now I'm good to

do. THANKS AGAIN!!!