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.

[DM814x] About Linux 2.6.37 USB Webcam Gadget driver issues...

Dear All, 

I have try to enable "USB Webcam Gadget" driver in linux kernel. 

But it is failed, when I make uImage. 

 

This is Linux Kernel package lost or something setting I miss? 

The blow is my SDK/Linux version, Steps and error message, please help me if you can. Thanks a lot. 

 

EZSDK 05.03.00.09 (linux kernel 2.6.37). 

Steps:

$> make distclean

$> export ARCH=arm

$> export CROSS_COMPILE=arm-none-linux-gnueabi

$> make ti8148_evm_defconfig

$> make menuconfig

  Device Drivers -->

    USB support -->

      <*> USB Gadget Support -->

          <*> USB Gadget Drivers -->

             (M) USB Webcam Gadget

$> make uImage

 

Error Messgae: 

  LD      init/built-in.o

  LD      .tmp_vmlinux1

drivers/built-in.o: In function `finish_in_dma':

notify_shm_drv.c:(.text+0xbccf0): undefined reference to `omap_get_dma_src_pos'

drivers/built-in.o: In function `dma_channel_claim':

notify_shm_drv.c:(.text+0xbd290): undefined reference to `omap_set_dma_src_data_pack'

notify_shm_drv.c:(.text+0xbd310): undefined reference to `omap_set_dma_dest_data_pack'

notify_shm_drv.c:(.text+0xbd328): undefined reference to `omap_disable_dma_irq'

drivers/built-in.o: In function `next_in_dma':

notify_shm_drv.c:(.text+0xbde94): undefined reference to `omap_get_dma_src_pos'

drivers/built-in.o: In function `usb_composite_unregister':

notify_shm_drv.c:(.text+0xc14c4): undefined reference to `put_gadget_drv_id'

notify_shm_drv.c:(.text+0xc14d8): undefined reference to `get_gadget_max_drv_id'

drivers/built-in.o: In function `usb_composite_probe':

notify_shm_drv.c:(.text+0xc21a8): undefined reference to `get_gadget_drv_id'

notify_shm_drv.c:(.text+0xc2228): undefined reference to `put_gadget_drv_id'

make: *** [.tmp_vmlinux1] Error 1

 

B&R,

Jeff

 

  • Jeff

    I think you have selected the OMAP device as peripheral controller. Please chose the Inventra HDRC as peripheral controller.

    see below.

    [ ]   Debugging messages (DEVELOPMENT)                                                
                  [ ]   Debugging information files (DEVELOPMENT)                         
                   [ ]   Debugging information files in debugfs (DEVELOPMENT)      
                     (2)   Maximum VBUS Power usage (2-500 mA)                         
                           USB Peripheral Controller (Inventra HDRC USB Peripheral (TI, ADI, ...))  --->    select this Inventra controller.
                     <M>   USB Gadget Drivers                                                               
                     < >     HID Gadget                                                                     
                     < >     EHCI Debug Device Gadget                                                       
                     <M>     USB Webcam Gadget        

    refers to user's guide for more information http://processors.wiki.ti.com/index.php/Usbgeneralpage#Configuration_for_USB_controller_and_CDC.2FRNDIS_Gadget.

    Regards

    Ravi B

     

  • Thanks a lot, Ravi. 

    It is working now. :-)

     

    Thanks & Regards,

    Jeff