Forums › Devices › OSD335x-SM › Buildroot and CAN (can0/dcan0)
Tagged: CAN DCAN buildroot
Hi,
Has anyone been able to get the can0 interface to work with buildroot? I seem to be almost there and I may be missing something.
Boot log:
1 2 3 4 5 | [ 1.396962] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=34) [ 1.670150] can: controller area network core (rev 20170425 abi 9) [ 1.681566] can: raw protocol (rev 20170425) [ 1.686172] can: broadcast manager protocol (rev 20170425 t) [ 1.692206] can: netlink gateway (rev 20170425) max_hops=1 |
<p style=”padding-left: 30px;”>
Here is a synopsis of the system:
Linux 4.14.18
linux.config:
1 2 3 4 5 6 7 | CONFIG_CAN_DEV=y CONFIG_CAN_CALC_BITTIMING=y CONFIG_CAN=y CONFIG_CAN_RAW=y CONFIG_CAN_BCM=y CONFIG_CAN_GW=y CONFIG_CAN_DEBUG_DEVICES=y |
Device Tree for dcan0:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | dcan0_pins_default: dcan0_pins_default { pinctrl-single,pins = < AM33XX_IOPAD(0x920, PIN_INPUT | MUX_MODE1 ) /* (K15) gmii1_txd2.dcan0_rx */ AM33XX_IOPAD(0x91c, PIN_OUTPUT | MUX_MODE1 ) /* (J18) gmii1_txd3.dcan0_tx */ >; }; &dcan0 { pinctrl-names = "default"; pinctrl-0 = <&dcan0_pins_default>; status = "okay"; #address-cells = <1>; #size-cells = <0>; }; |
Solved.
Needed to add iproute2. Â BR2_PACKAGE_IPROUTE
Glad you are able to resolve the issue. Thanks for letting us know. We plan to create more collateral around CAN bus and Buildroot in the future.
Neeraj
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields