kernel menuconfig on TI SDK

Hello,

Below are the specifications of my system.

Ubuntu version is: 14.04 LTS

SDK version is: ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03.

I have below questions

1. I wanted to check if CAN driver module is enabled in my kernel, but in the Software Developer guide no command is mentioned with respect to menuconfig. Kindly request you to let me know the command for executing menuconfig and compiling kernel.

2. Do we have the support of LIN (Local Interconnect Network) driver in the above SDK.

Request you help me answering the questions

  • Hi Prasad,

    Prasad_Pallapu said:
    1. I wanted to check if CAN driver module is enabled in my kernel, but in the Software Developer guide no command is mentioned with respect to menuconfig. Kindly request you to let me know the command for executing menuconfig and compiling kernel.

    Yes we do. If you are referring to DCAN.

    Configs below:

    CONFIG_CAN=m
    CONFIG_CAN_C_CAN=m
    CONFIG_CAN_C_CAN_PLATFORM=m

    dcan1: can@4ae3c000 {
    compatible = "ti,dra7-d_can";
    ti,hwmods = "dcan1";
    reg = <0x4ae3c000 0x2000>;
    syscon-raminit = <&scm_conf 0x558 0>;
    interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&wkupaon_clkctrl DRA7_DCAN1_CLKCTRL 24>;
    status = "disabled";
    };

    dcan2: can@48480000 {
    compatible = "ti,dra7-d_can";
    ti,hwmods = "dcan2";
    reg = <0x48480000 0x2000>;
    syscon-raminit = <&scm_conf 0x558 1>;
    interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&sys_clkin1>;
    status = "disabled";
    };

    In the above device tree nodes please change status from "disabled" to "okay" to enable them from Device tree.

    Prasad_Pallapu said:
    2. Do we have the support of LIN (Local Interconnect Network) driver in the above SDK.

    No support for LIN.

    Best Regards,
    Keerthy

  • Hello Keerthy,

    Thanks for the reply.

    Yes i was referring to dcan.

    I have below questions

    1. Can you pls confirm if i need to use the ti_hecc.c file for any modifications in the CAN driver from the path kernel_source/drivers/net/can/ ?, if not can you pls point out which CAN driver file we need to use?

    2. Can we use "make menuconfig" for pop-up menuconfiguration?

    3. What is the command to compile kernel? Is it "make install_module" and "make" and "make install"? or for this Arago distribution do we use any other commands? (Ex: incase of Poky we use "bittbake -c menuconfig virtual/kernel" and "bitbake -c compile virtual/kernel")

    4. In which recipe i can find the dcan related driver file?

    5. In case if i modify any of the existing driver file, what is the command to compile that file incrementally?

    SDK user guide provides info about how to execute on recipe level but not on file level, so request you answer the above questions.

    Thanks for the info on LIN

  • Hi Prasad,


    Can we use "make menuconfig" for pop-up menuconfiguration?

    It is best to do the way we discussed in the other thread by writing to .cfg files. make menuconfig changes will be over-written when you
    do make linux.


    What is the command to compile kernel? Is it "make install_module" and "make" and "make install"?

    make linux

    - Keerthy

  • Hi Prasad,

    1. Can you pls confirm if i need to use the ti_hecc.c file for any modifications in the CAN driver from the path kernel_source/drivers/net/can/ ?, if not can you pls point out which CAN driver file we need to use?

    The DCAN related functions are in kernel_source/drivers/net/can/c_can/ you can confirm this by searching for the compatible string for the driver - "ti,dra7-d_can"

    Regards,

    Karan

  • 3. What is the command to compile kernel? Is it "make install_module" and "make" and "make install"? or for this Arago distribution do we use any other commands? (Ex: incase of Poky we use "bittbake -c menuconfig virtual/kernel" and "bitbake -c compile virtual/kernel")

    This command should work on Yocto also, or alternately you can use "bitbake linux-ti-staging" to recompile the kernel, dtbs and modules.

    Regards

    Karthik