DENX . DULG . UsingAndConfiguringTheSocketCANDriver

14.3.32. Using and Configuring the SocketCAN Driver

When trying to start the SocketCAN interfaces I get error messages like "bit-timing not yet defined", but when trying to configure the bit timing the directory "/sys/class/net/can0/can_bittiming" does not exist.
The SysFS CAN interface has not been accepted for inclusion into the mainline Linux kernel tree. We had to switch to a Netlink based interface as described in "Documentation/networking/can.txt"

You need a recent version of the IPROUTE2 utility suite. You can get and build it as follows:
$ git clone \
$ cd iproute2
$ make CC=${CROSS_COMPILE}gcc

----- Revision r1.1 - 28 Dec 2009 - 19:13 - WolfgangDenk
Copyright © 2002-2021 by DENX Software Engineering