Errors while building USB DWC OTG driver

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 25 05:28:30 UTC 2016


Hello Deval,

where is this DWC OTG driver code? The driver must have the right 
DRIVER_MODULE() and MODULE_DEPEND() definitions.

On 24/05/16 20:04, Deval Shah wrote:
> Hello,
>
> Currently, I am working on porting USB DWC OTG driver on Raspberry Pi. 
> Last year Yurii Shevtsov worked on the same. So, I forked the latest 
> rtems-libbsdand cherry-picked Yurii's commits. While building 
> libbsdusing waf, I got the following error.
>
> ---------------------------------------------------------------------------------------------------------------------------
> testsuite/arphole/test_main.c.17.o:(.rtemsroset.bsd.nexus.content+0x10): 
> undefined reference to `_bsd_bcm283x_dwcotg_nexusmodule_sys_init'
> collect2: error: ld returned 1 exit status
> ...
> ---------------------------------------------------------------------------------------------------------------------------
>
> This error is observed in all the testsuits which are related to 
> networing. Then according to this wiki 
> https://devel.rtems.org/wiki/GSoC/2015/RaspberryPiUSBSupport, I added 
>  following lines to those testsuits.
>
> -- #include <bsp/nexus-devices.h>
> -- SYSINIT_NEED_USB_CORE;
> -- SYSINIT_DRIVER_REFERENCE(bcm283x_dwcotg, nexus);
>
> I get the following redefiation error this time.
> --------------------------------------------------------------------------------------------------------------------------
> In file included from 
> /home/gadgetman/development/rtems/rtems-libbsd/testsuite/include/rtems/bsd/test/default-network-init.h:295:0,
>                  from ../../testsuite/arphole/test_main.c:118:
> /home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/bsp/nexus-devices.h:154:40: 
> error: redefinition of 'bcm283x_dwcotg_res'
>  static const rtems_bsd_device_resource bcm283x_dwcotg_res[] = {
>       ^~~~~~~~~~~~~~~~~~
> In file included from ../../testsuite/arphole/test_main.c:57:0:
> /home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/bsp/nexus-devices.h:154:40: 
> note: previous definition of 'bcm283x_dwcotg_res' was here
>  static const rtems_bsd_device_resource bcm283x_dwcotg_res[] = {
>       ^~~~~~~~~~~~~~~~~~
> ...
> --------------------------------------------------------------------------------------------------------------------------
>
> Also, looks like the error is only in the testsuits. USB drivers are 
> compiled properly. What is another way to test the port ? Is there any 
> other testsuit available ? Are there any other standard methods to 
> evaluate this ?
>
> Thanks in advance,
> Deval Shah
>
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list