This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

linux 3.17内核,如何配置CAN?



在网上找的资料都是先修改mach_omap2目录中的mux33xx.c和board-am335xevm.c,然后配置内核,启动系统后ifconfig -a就可以看到can设备了,但linux 3.17里的mach_omap2目录中没有mux33xx.c和board-am335xevm.c,我想应该是配置dts文件,于是仿照ti-sdk-am335x-evm-08.00.00.00中的dts修改了linux 3.17中的dts,
在&am33xx_pinmux中添加:
    //can0 pin
    dcan0_pins_default: dcan0_pins_default {
        pinctrl-single,pins = <
            0x178 (PIN_OUTPUT | MUX_MODE2) /* uart1_ctsn.d_can0_tx */
            0x17c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* uart1_rtsn.d_can0_rx */
        >;
    };
再在文件最后添加:
&dcan0 {
    status = "disabled";    /* Enable only if Profile 1 is selected */
    pinctrl-names = "default";
    pinctrl-0 = <&dcan0_pins_default>;
};

再按《AM335X DCAN Driver Guide》中的方法配置内核,但启动系统ifconfig -a后看不到设备,请问我的配置那里有问题,3.17的内核应该如何配置?