<div dir="ltr">Hello, <div><br></div><div><font face="arial, helvetica, sans-serif">Currently, I am working on porting <span style="color:rgb(0,0,0);font-size:13px">USB DWC OTG driver on Raspberry Pi. </span><span style="font-size:13px;color:rgb(0,0,0)">Last year Yurii Shevtsov worked on the same. So, </span><span style="color:rgb(0,0,0);font-size:13px">I forked the latest </span>rtems<span style="color:rgb(0,0,0);font-size:13px">-</span>libbsd<span style="color:rgb(0,0,0);font-size:13px"> and cherry-picked </span>Yurii's<span style="color:rgb(0,0,0);font-size:13px"> commits. </span></font><span style="font-family:arial,helvetica,sans-serif">While building </span>libbsd<span style="font-family:arial,helvetica,sans-serif"> using waf, I got the following error. </span></div><div><br></div><div><font face="arial, helvetica, sans-serif"><div><font color="#000000">---------------------------------------------------------------------------------------------------------------------------</font></div><div><font color="#000000">testsuite/arphole/test_main.c.17.o:(.rtemsroset.bsd.nexus.content+0x10): undefined reference to `_bsd_bcm283x_dwcotg_nexusmodule_sys_init'</font></div><div><font color="#000000">collect2: error: ld returned 1 exit status</font></div><div><font color="#000000">...</font></div><div><font color="#000000">---------------------------------------------------------------------------------------------------------------------------</font></div><div><font color="#000000"><br></font></div><div><div>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">https://devel.rtems.org/wiki/GSoC/2015/RaspberryPiUSBSupport</a>, I added  following lines to those testsuits. <span style="color:rgb(0,0,0);font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><div><br></div><div>-- #include <bsp/nexus-devices.h></div><div>-- SYSINIT_NEED_USB_CORE;</div><div>-- SYSINIT_DRIVER_REFERENCE(bcm283x_dwcotg, nexus);</div></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">I get the following redefiation error this time.  </span></div></div><div><font color="#000000">--------------------------------------------------------------------------------------------------------------------------</font></div><div><font color="#000000">In file included from /home/gadgetman/development/rtems/rtems-libbsd/testsuite/include/rtems/bsd/test/default-network-init.h:295:0,</font></div><div><font color="#000000">                 from ../../testsuite/arphole/test_main.c:118:</font></div><div><font color="#000000">/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/bsp/nexus-devices.h:154:40: error: redefinition of 'bcm283x_dwcotg_res'</font></div><div><font color="#000000"> static const rtems_bsd_device_resource bcm283x_dwcotg_res[] = {</font></div><div><font color="#000000">                                        ^~~~~~~~~~~~~~~~~~</font></div><div><font color="#000000">In file included from ../../testsuite/arphole/test_main.c:57:0:</font></div><div><font color="#000000">/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/bsp/nexus-devices.h:154:40: note: previous definition of 'bcm283x_dwcotg_res' was here</font></div><div><font color="#000000"> static const rtems_bsd_device_resource bcm283x_dwcotg_res[] = {</font></div><div><font color="#000000">                                        ^~~~~~~~~~~~~~~~~~</font></div><div><font color="#000000">...</font></div><div><font color="#000000">--------------------------------------------------------------------------------------------------------------------------</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">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 ? </font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thanks in advance, </font></div><div><font color="#000000">Deval Shah</font></div><div><font color="#000000"><br></font></div></font></div></div>