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.

DM385 with WIFI driver on USB is Not working

Other Parts Discussed in Thread: DM385, DA8XX

HI TI ,

I want to WIFI commnucation on DM385 board(Car Blackbox solution B'd :basically based on IPNC 3.5 version).
I have added USB host configuration(not gadget) to 'dm385_ipnc_ubifs_defconfig'.
I tried to attach rtl8192cu(USB type wifi dongle) to my DM385 board.
rtl8192cu is realtek USB type wifi dongle.
(rtl8192cu is inserted to USB0 port of DM385)
But It is not working.

I guess USB host mode is Not work.


I have tried many times but I don't know how and why it is not work.
Please let me know solution.


these are the info :

root@dm814x-evm:/opt/ipnc#
root@dm814x-evm:/opt/ipnc# dmesg | grep usb

PM: Adding info for platform:ti81xx-usbss
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PM: Adding info for platform:musb-hdrc.0
PM: Adding info for platform:musb-hdrc.1
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
PM: Adding info for platform:nop_usb_xceiv.0
usb2phy: computed values rxcalib(15)DACs(24 12 14)
usb2phy: override computed values rxcalib(15)DACs(24 12 14)
usb2phy_config: musb(0) rxcalib done, rxcalib read value 6f6c5976
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: default language 0x0409
usb usb1: udev 1, busnum 1, minor = 0
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.37_DM385_CBB_0.80.00 musb-hcd
usb usb1: SerialNumber: musb-hdrc.0
PM: Adding info for usb:usb1
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
PM: Adding info for usb:1-0:1.0
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
PM: Adding info for No Bus:usbdev1.1
drivers/usb/core/inode.c: creating file '001'
musb-hdrc musb-hdrc.0: USB Host mode controller at c581e000 using DMA, IRQ 18
Registered /proc/driver/musb_hdrc.0
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
PM: Adding info for platform:nop_usb_xceiv.1
usb2phy: computed values rxcalib(15)DACs(30 12 14)
usb2phy: override computed values rxcalib(15)DACs(30 12 14)
usb2phy_config: musb(1) rxcalib done, rxcalib read value 6f6f5976
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
drivers/usb/core/inode.c: creating file '002'
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
usb usb2: default language 0x0409
usb usb2: udev 1, busnum 2, minor = 128
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.37_DM385_CBB_0.80.00 musb-hcd
usb usb2: SerialNumber: musb-hdrc.1
PM: Adding info for usb:usb2
usb usb2: usb_probe_device
usb usb2: configuration #1 chosen from 1 choice
usb usb2: adding 2-0:1.0 (config #1, interface 0)
PM: Adding info for usb:2-0:1.0
hub 2-0:1.0: usb_probe_interface
hub 2-0:1.0: usb_probe_interface - got id
PM: Adding info for No Bus:usbdev2.1
drivers/usb/core/inode.c: creating file '001'
musb-hdrc musb-hdrc.1: USB Host mode controller at c5828800 using DMA, IRQ 19
Registered /proc/driver/musb_hdrc.1
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver rtl819xU
PM: Adding info for No Bus:usbmon0
PM: Adding info for No Bus:usbmon2
PM: Adding info for No Bus:usbmon1
usbcore: registered new interface driver cdc_acm
usbcore: registered new interface driver rtl8192cu
root@dm814x-evm:/opt/ipnc#

  • Hi,

    Have you enabled the "RTL8192C" support in linux through menuconfig option.

    If not, Please enable it and try.

    make menuconfig ARCH=arm

     -> Device Drivers                                                                                                       
         -> Network device support (NETDEVICES [=y])                                                                           
            -> Wireless LAN (WLAN [=y])    
                                                                                           
    Selects: FW_LOADER [=n] && RTLWIFI [=n] && RTL8192C_COMMON [=n]       

  • Hi,

    My working space is DM385 --IPNC(GA_Release_3.5.0).- exactly, Car BlackBox Solution from N-Sketch.
    In the menuconfig, there is NOT RTL8192C_COMMON,FW_LOADER,and RTLWIFI configuration.


    but I got the rtl8192u from kernel/dirvers/staging and enable "CONFIG_RTL8192C". and then test it.(but Not working)
    also, I got the rtl9192cu driver from realtek web site and test it by module.
    here is log message:

    root@dm814x-evm:/opt/ipnc# insmod wlan.ko
    rtl8192cu driver version=v4.0.2_9000.20130911
    build time: May 19 2014 13:56:17
    usbcore: registered new interface driver rtl8192cu

    root@dm814x-evm:~# ifconfig wlan0 up
    ifconfig: SIOCGIFFLAGS: No such device   (--> Not Recognized)

    so, I suspect that usb host mode is NOT working.
    how can I do next ?
    My menuconfig option(USB) is as follows:

    CONFIG_DUMMY_CONSOLE=y
    # CONFIG_FRAMEBUFFER_CONSOLE is not set
    # CONFIG_LOGO is not set
    # CONFIG_SOUND is not set
    # CONFIG_HID_SUPPORT is not set
    CONFIG_USB_SUPPORT=y
    CONFIG_USB_ARCH_HAS_HCD=y
    CONFIG_USB_ARCH_HAS_OHCI=y
    CONFIG_USB_ARCH_HAS_EHCI=y
    CONFIG_USB=y
    CONFIG_USB_DEBUG=y
    CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

    #
    # Miscellaneous USB options
    #
    CONFIG_USB_DEVICEFS=y
    CONFIG_USB_DEVICE_CLASS=y
    # CONFIG_USB_DYNAMIC_MINORS is not set
    # CONFIG_USB_SUSPEND is not set
    CONFIG_USB_MON=y
    CONFIG_USB_WUSB=y
    # CONFIG_USB_WUSB_CBAF is not set

    #
    # USB Host Controller Drivers
    #
    # CONFIG_USB_C67X00_HCD is not set
    # CONFIG_USB_XHCI_HCD is not set
    CONFIG_USB_EHCI_HCD=y
    # CONFIG_USB_EHCI_ROOT_HUB_TT is not set
    # CONFIG_USB_EHCI_TT_NEWSCHED is not set
    # CONFIG_USB_OXU210HP_HCD is not set
    # CONFIG_USB_ISP116X_HCD is not set
    # CONFIG_USB_ISP1760_HCD is not set
    # CONFIG_USB_ISP1362_HCD is not set
    # CONFIG_USB_OHCI_HCD is not set
    # CONFIG_USB_UHCI_HCD is not set
    # CONFIG_USB_SL811_HCD is not set
    # CONFIG_USB_R8A66597_HCD is not set
    CONFIG_USB_WHCI_HCD=y
    # CONFIG_USB_HWA_HCD is not set
    CONFIG_USB_MUSB_HDRC=y

    #
    # Platform Glue Layer
    #
    # CONFIG_USB_MUSB_TUSB6010_GLUE is not set
    # CONFIG_USB_MUSB_OMAP2PLUS_GLUE is not set
    # CONFIG_USB_MUSB_AM35X_GLUE is not set
    CONFIG_USB_MUSB_TI81XX_GLUE=y
    # CONFIG_USB_MUSB_DAVINCI is not set
    # CONFIG_USB_MUSB_DA8XX is not set
    # CONFIG_USB_MUSB_TUSB6010 is not set
    # CONFIG_USB_MUSB_OMAP2PLUS is not set
    # CONFIG_USB_MUSB_AM35X is not set
    CONFIG_USB_MUSB_TI81XX=y
    # CONFIG_USB_MUSB_BLACKFIN is not set
    # CONFIG_USB_MUSB_UX500 is not set
    # CONFIG_USB_TI81XX_USBID_CTRL_SW is not set
    CONFIG_USB_TI81XX_USBID_CTRL_HW=y
    CONFIG_USB_MUSB_HOST=y
    CONFIG_USB_MUSB_HDRC_HCD=y
    # CONFIG_MUSB_PIO_ONLY is not set
    # CONFIG_USB_INVENTRA_DMA_HW is not set
    # CONFIG_USB_TI_CPPI_DMA_HW is not set
    CONFIG_USB_TI_CPPI41_DMA_HW=y
    # CONFIG_USB_INVENTRA_DMA is not set
    # CONFIG_USB_TI_CPPI_DMA is not set
    CONFIG_USB_TI_CPPI41_DMA=y
    # CONFIG_USB_TUSB_OMAP_DMA is not set
    CONFIG_USB_MUSB_DEBUG=y

    #
    # USB Device Class drivers
    #
    CONFIG_USB_ACM=y
    # CONFIG_USB_PRINTER is not set
    # CONFIG_USB_WDM is not set
    # CONFIG_USB_TMC is not set

    #
    # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
    #

    #
    # also be needed; see USB_STORAGE Help for more info
    #
    # CONFIG_USB_STORAGE is not set
    # CONFIG_USB_UAS is not set
    # CONFIG_USB_LIBUSUAL is not set

    #
    # USB Imaging devices
    #
    # CONFIG_USB_MDC800 is not set
    # CONFIG_USB_MICROTEK is not set

    #
    # USB port drivers
    #
    # CONFIG_USB_SERIAL is not set

    #
    # USB Miscellaneous drivers
    #
    # CONFIG_USB_EMI62 is not set
    # CONFIG_USB_EMI26 is not set
    # CONFIG_USB_ADUTUX is not set
    # CONFIG_USB_SEVSEG is not set
    # CONFIG_USB_RIO500 is not set
    # CONFIG_USB_LEGOTOWER is not set
    # CONFIG_USB_LCD is not set
    # CONFIG_USB_LED is not set
    # CONFIG_USB_CYPRESS_CY7C63 is not set
    # CONFIG_USB_CYTHERM is not set
    # CONFIG_USB_IDMOUSE is not set
    # CONFIG_USB_FTDI_ELAN is not set
    # CONFIG_USB_APPLEDISPLAY is not set
    # CONFIG_USB_SISUSBVGA is not set
    # CONFIG_USB_LD is not set
    # CONFIG_USB_TRANCEVIBRATOR is not set
    # CONFIG_USB_IOWARRIOR is not set
    # CONFIG_USB_TEST is not set
    # CONFIG_USB_ISIGHTFW is not set
    # CONFIG_USB_YUREX is not set
    # CONFIG_USB_GADGET is not set

    #
    # OTG and related infrastructure
    #
    CONFIG_USB_OTG_UTILS=y
    # CONFIG_USB_GPIO_VBUS is not set
    # CONFIG_USB_ULPI is not set
    CONFIG_NOP_USB_XCEIV=y
    CONFIG_UWB=y
    # CONFIG_UWB_HWA is not set
    CONFIG_UWB_WHCI=y
    CONFIG_MMC=y
    # CONFIG_MMC_DEBUG is not set
    # CONFIG_MMC_UNSAFE_RESUME is not set

     

    Please advice me.


     

  • Hi,

    but I got the rtl8192u from kernel/dirvers/staging and enable "CONFIG_RTL8192C". and then test it.(but Not working)
    also, I got the rtl9192cu driver from realtek web site and test it by module.
    here is log message:

    root@dm814x-evm:/opt/ipnc# insmod wlan.ko
    rtl8192cu driver version=v4.0.2_9000.20130911
    build time: May 19 2014 13:56:17
    usbcore: registered new interface driver rtl8192cu

    1) Are you getting any issues if you tried to build the RTL driver in built ie comprise with uImage (kernel)?

    2) If you built RTL driver as module then what kind messages are you receiving when you connect the USB RTL device into board.

  • Hi

    1) Are you getting any issues if you tried to build the RTL driver in built ie comprise with uImage (kernel)?
    --> I have no error messages in building process.

    2) If you built RTL driver as module then what kind messages are you receiving when you connect the USB RTL device into board.
    --> I can't found any message. so, I suspect that USB Host is not working.

    I attach my defconfig, and check it for me, please.

    by the way, for USB Host mode, do I need to set "CONFIG_TI81XX_PCIE_BOOTDRV" (for PCI express)?

     

  • Hi

    Attached file is missing.

    I attach config file(dm385_cbb_ubifs_defconfig_0522Host.zip).8510.dm385_cbb_ubifs_defconfig_0522Host.zip

  • Hi,

    1) Are you getting any issues if you tried to build the RTL driver in built ie comprise with uImage (kernel)?
    --> I have no error messages in building process.

    Okay, then How about booting? Any problem,

    If not so, then why are you trying to build as separate RTL driver as module?

    Are you getting any boot issues when you built kernel with RTL driver as an inbuilt?

    What are all the messaged printed out whle you connect USB RTL hw to the board?

    Atleast any USB connect events?

  • Hi,
    I attach log message in booting process.

    I tested inbuilt RTL driver and RTL driver as module.
    but I can't find why it is NOT working.
    Also I can't find USB connect events message.
    pls, let me get your advice.

    0027.dm385log.zip

  • Hi,

    Are you able to connect any pendrive to your USB host port of your device?

    If not, Check your VBUS signal on hw board?

    Have you enabled the USB support in menuconfig option of linux kernel ?