NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

UsbConfigHostCDC

From Texas Instruments Wiki
Jump to: navigation, search
TIBanner.png
Host CDC Kernel Config
Linux PSP



About this page[edit]

This page describes the Linux kernel config options for usb host CDC on different kernel versions. Please refer the config option which matches with kernel version of release you are using.

Configuration[edit]

Linux v3.2[edit]

Start the Linux Kernel Configuration tool:

$ make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm menuconfig

Select Device Drivers from the main menu.

    ...
    ...
    Power management options --->
    [ ] Networking support --->
    Device Drivers --->
    File systems --->
    Kernel hacking --->
    ...
    ...

Select USB support as shown here

    ...
    ...
    <*> Sound card support  --->
    [*] HID Devices  --->
    [*] USB support  --->
    <*> MMC/SD/SDIO card support  --->
    ... 
    ...

Select Support for Host-side USB as shown here

    ...
    <*>   Support for Host-side USB
    [ ]     USB verbose debug messages
    ...
    ...

Select USB Modem (CDC ACM) support as shown here

    ...
    ...
          *** USB Device Class drivers ***
    <*>   USB Modem (CDC ACM) support
    < >   USB Printer support
    ...
    ...

Now exit from here and select "Network device support" as shown here

    ...
    ...
    < > Generic Target Core Mod (TCM) and ConfigFS Infrastructure  --->
    [*] Network device support  --->
    ...
    ...

Go to USB Network Adapters as shown here

    ...
    ...
    < >   PPP (point-to-point protocol) support
    USB Network Adapters  --->
    [ ]   Wireless LAN  --->
    ...
    ...

Select Multi-purpose USB Networking Framework and CDC Ethernet support as shown here

    ...
    ...
    < > USB RTL8150 based ethernet device support (EXPERIMENTAL)
    <*> Multi-purpose USB Networking Framework
    < >   ASIX AX88xxx Based USB 2.0 Ethernet Adapters
    <*>   CDC Ethernet support (smart devices such as cable modems)
    ...
    ...


This is all required for adding USB host CDC support in kernel.

Testing[edit]

The test setup includes connecting two EVMs, EVM-1 is configured in host mode (enabling CDC-host configuration as explained above) and EVM-2 is configured in CDC-device mode configuration. Connect EVM-2 (CDC-device act as CDC-modem) to EVM-1 (CDC-Host), the EVM-1 CDC-Host will recognize the EVM-2 as usb-modem and creates the new usbx network interface.

on EVM-2 (CDC-Device)

 #ifconfig usb0 192.168.0.3 up

on EVM-1 (CDC-Host): A new interface say usb0 or usb1 will be created.

 #ifconfig usbx 192.168.0.5 up

perform the ping from EVM-1 to EVM-2 (vice-versa).

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article UsbConfigHostCDC here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article UsbConfigHostCDC here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article UsbConfigHostCDC here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article UsbConfigHostCDC here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article UsbConfigHostCDC here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article UsbConfigHostCDC here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article UsbConfigHostCDC here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article UsbConfigHostCDC here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article UsbConfigHostCDC here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity