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/TMS320DM8148: Add support of g_serial (USB_G_SERIAL) in Kernel 2.6.37

Part Number: TMS320DM8148

Tool/software: Linux

I want to add support of g_serial in kernel 2.6.37. Because I need to use serial console using USB.

I have tried using make menuconfig with below changes but failed to compile.

 -> Device Drivers 
  │       -> USB support (USB_SUPPORT [=y])
  │         -> USB Gadget Support (USB_GADGET [=y])
  │           -> USB Gadget Drivers (<choice> [=m])

I have also tried directly add in Defconfig file with below symbols.

CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y

CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DEBUG=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_SELECTED=y
CONFIG_USB_GADGET_NET2280=y
CONFIG_USB_NET2280=y
CONFIG_USB_GADGET_DUALSPEED=y
CONFIG_USB_G_SERIAL=m

Please help me to solve this problem.

  • Hi Neel,

    Check the below wiki pages regarding USB config:

    processors.wiki.ti.com/index.php/TI81XX_PSP_USB_Driver_User_Guide
    processors.wiki.ti.com/index.php/Usbgeneralpage

    You can also check how USB_G_SERIAL is enabled in AM335x 4.x kernel and back port this for DM814x 2.6.37 kernel.

    linux-4.9.69/arch/arm/configs/tisdk_am335x-evm_defconfig

    CONFIG_USB_G_SERIAL=m


    Regards,
    Pavel