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.

AM5728: CONFIG_USB_SERIAL_Option enable

Part Number: AM5728

I have a AM5728 custom board.

I use ti-processor-sdk-linux-am57xx-evm-06.03.00.106-Linux-x86-Install.bin

The CONFIG_USB_SERIAL_Option is m by default  . I want to change it to y(CONFIG_USB_SERIAL_Option=y). what should I do?

This is my tisdk_am57xx-evm_defconfig file

2867.tisdk_am57xx-evm_defconfig.txt

  • Hi,

    We assume you have installed the ti-processor-sdk-linux-am57xx-evm-06.03.00.106-Linux-x86-Install.bin.

    Once you have installed, you can look at the Rules.make and the Makefile at the root of the SDK installed location to inspect the rules to build the kernel. For the first time, we suggest you build the kernel once, by calling "make linux".Once this is done, to modify the kernel configs, you can run the "make menuconfig" in the kernel directory to modify the config options. Read about menuconfig here: https://en.wikipedia.org/wiki/Menuconfig

    We can search for the required config to be modified by using the search option, which will provide the location & dependencies of this config as below:

        Symbol: USB_SERIAL_OPTION [=m]                                                                                            │  
      │ Type  : tristate                                                                                                          │  
      │ Prompt: USB driver for GSM and CDMA modems                                                                                │  
      │   Location:                                                                                                               │  
      │     -> Device Drivers                                                                                                     │  
      │       -> USB support (USB_SUPPORT [=y])                                                                                   │  
      │ (2)     -> USB Serial Converter support (USB_SERIAL [=m])                                                                 │  
      │   Defined at drivers/usb/serial/Kconfig:558                                                                               │  
      │   Depends on: USB_SUPPORT [=y] && USB [=m] && USB_SERIAL [=m]                                                             │  
      │   Selects: USB_SERIAL_WWAN [=m]  
    

    Based on Location and the dependent configs, you make it as "y". Once the changes are done, you can save and exit. A new ".config" file will be generated with the required update.

    Please note: Make sure you understand the config change you are doing.

    Thanks.

  • Hi,  praveen 

    I  run the "make menuconfig" in the kernel directory to modify the config options

    I found that ."config"  has been updated,

    │ Symbol: USB_SERIAL_OPTION [=y]                                          │  
      │ Type  : tristate                                                        │  
      │ Prompt: USB driver for GSM and CDMA modems                              │  
      │   Location:                                                             │  
      │     -> Device Drivers                                                   │  
      │       -> USB support (USB_SUPPORT [=y])                                 │  
      │ (1)     -> USB Serial Converter support (USB_SERIAL [=y])               │  
      │   Defined at drivers/usb/serial/Kconfig:557                             │  
      │   Depends on: USB_SUPPORT [=y] && USB [=y] && USB_SERIAL [=y]           │  
      │   Selects: USB_SERIAL_WWAN [=y]  

    but when I run  "make linux"   build the kernel , the config will follow the "tisdk_am57xx-evm_defconfig" update.

      │ Symbol: USB_SERIAL_OPTION [=m]                                          │  
      │ Type  : tristate                                                        │  
      │ Prompt: USB driver for GSM and CDMA modems                              │  
      │   Location:                                                             │  
      │     -> Device Drivers                                                   │  
      │       -> USB support (USB_SUPPORT [=y])                                 │  
      │ (1)     -> USB Serial Converter support (USB_SERIAL [=m])               │  
      │   Defined at drivers/usb/serial/Kconfig:557                             │  
      │   Depends on: USB_SUPPORT [=y] && USB [=m] && USB_SERIAL [=m]           │  
      │   Selects: USB_SERIAL_WWAN [=m]                                         │  
      │                                                                         │  
      │                       

    How should I compile, use new ".config" instead of "tisdk_am57xx-evm_defconfig"

  • Hi,

    Once you have modified the ".config", you must not run the "make  tisdk_am57xx-evm_defconfig" again.

    Instead, directly run "make image" and "make modules".

    This is a basic understanding of building a Linux kernel. I suggest going over the Linux kernel documentation on how to build kernel after making a config update. 

    Thanks.

  • Can you share with me about am5728 Linux kernel documentation?

  • Hi

    The Linux kernel documentation is under the "Documentation" folder of the kernel.

    Thanks.

  • Hi,


    This problem has been solved, please help to see the next problem

    https://e2e.ti.com/support/processors/f/791/t/948532