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.