<div dir="ltr">That is here in this commit <a href="https://github.com/gtament/rtems-libbsd/commit/173af003ef084acd2391269e3dcabb0954053289">https://github.com/gtament/rtems-libbsd/commit/173af003ef084acd2391269e3dcabb0954053289</a>. </div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 10:58 AM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Deval,<br>
<br>
where is this DWC OTG driver code? The driver must have the right DRIVER_MODULE() and MODULE_DEPEND() definitions.<span class=""><br>
<br>
On 24/05/16 20:04, Deval Shah wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
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.<div><div class="h5"><br>
<br>
---------------------------------------------------------------------------------------------------------------------------<br>
testsuite/arphole/test_main.c.17.o:(.rtemsroset.bsd.nexus.content+0x10): undefined reference to `_bsd_bcm283x_dwcotg_nexusmodule_sys_init'<br>
collect2: error: ld returned 1 exit status<br>
...<br>
---------------------------------------------------------------------------------------------------------------------------<br>
<br>
This error is observed in all the testsuits which are related to networing. Then according to this wiki <a href="https://devel.rtems.org/wiki/GSoC/2015/RaspberryPiUSBSupport" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/GSoC/2015/RaspberryPiUSBSupport</a>, I added  following lines to those testsuits.<br>
<br>
-- #include <bsp/nexus-devices.h><br>
-- SYSINIT_NEED_USB_CORE;<br>
-- SYSINIT_DRIVER_REFERENCE(bcm283x_dwcotg, nexus);<br>
<br>
I get the following redefiation error this time.<br>
--------------------------------------------------------------------------------------------------------------------------<br>
In file included from /home/gadgetman/development/rtems/rtems-libbsd/testsuite/include/rtems/bsd/test/default-network-init.h:295:0,<br>
                 from ../../testsuite/arphole/test_main.c:118:<br>
/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/bsp/nexus-devices.h:154:40: error: redefinition of 'bcm283x_dwcotg_res'<br>
 static const rtems_bsd_device_resource bcm283x_dwcotg_res[] = {<br>
      ^~~~~~~~~~~~~~~~~~<br>
In file included from ../../testsuite/arphole/test_main.c:57:0:<br>
/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/bsp/nexus-devices.h:154:40: note: previous definition of 'bcm283x_dwcotg_res' was here<br>
 static const rtems_bsd_device_resource bcm283x_dwcotg_res[] = {<br>
      ^~~~~~~~~~~~~~~~~~<br>
...<br>
--------------------------------------------------------------------------------------------------------------------------<br>
<br>
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 ?<br>
<br>
Thanks in advance,<br>
Deval Shah<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</font></span></blockquote></div><br></div>