<div dir="ltr">My suggestion is to get the complete original FreeBSD source with svn and use something<div>like cscope to find the body. This appears to be a common helper and I am surprised the</div><div>need for it hasn't turned up yet. But who knows.</div><div><br></div><div>Find the source in FreeBSD and make sure it is in the rtems-libbsd tree.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 4:06 AM, Deval Shah <span dir="ltr"><<a href="mailto:deval.maker@gmail.com" target="_blank">deval.maker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>



  
    
    
    
    
    
    
    
    

    

  

  <div style="word-wrap:normal;word-break:break-word">

    

    
    
    

    <table lang="container" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:100%;margin-top:6px">
      <tbody><tr>
        <td valign="top" style="line-height:1.31;color:#222;font-family:arial,sans-serif">

          
            <div>Hello everyone, </div><div><br></div><div>I am trying to add USB mouse to Raspberry Pi, therefore adding related files. There are some functions which are used by “/dev/usb/input/ums.c” but are not being compiled due to the switch/macro USB_HAVE_UGEN in the file rtems-libbsd/rtemsbsd/include/rtems/bsd/local/opt_usb.h. </div><div><br></div><div>Error log:</div><div>----------------------------------------------------------------------------------------------------------------------------<br></div><div>./libbsd.a(ums.c.16.o): In function `ums_detach':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:683: undefined reference to `usb_fifo_detach'</div><div>./libbsd.a(ums.c.16.o): In function `ums_stop_read':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:722: undefined reference to `usb_fifo_softc'</div><div>./libbsd.a(ums.c.16.o): In function `ums_start_read':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:697: undefined reference to `usb_fifo_softc'</div><div>./libbsd.a(ums.c.16.o): In function `ums_ioctl':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:860: undefined reference to `usb_fifo_softc'</div><div>./libbsd.a(ums.c.16.o): In function `ums_reset_buf':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:783: undefined reference to `usb_fifo_reset'</div><div>./libbsd.a(ums.c.16.o): In function `ums_close':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:847: undefined reference to `usb_fifo_softc'</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:852: undefined reference to `usb_fifo_free_buffer'</div><div>./libbsd.a(ums.c.16.o): In function `ums_open':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:789: undefined reference to `usb_fifo_softc'</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:834: undefined reference to `usb_fifo_alloc_buffer'</div><div>./libbsd.a(ums.c.16.o): In function `ums_attach':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:653: undefined reference to `usb_fifo_attach'</div><div>./libbsd.a(ums.c.16.o): In function `ums_put_queue':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:771: undefined reference to `usb_fifo_put_data_linear'</div><div>./libbsd.a(ums.c.16.o): In function `ums_intr_callback':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/build/arm-rtems4.12-raspberrypi/../../freebsd/sys/dev/usb/input/ums.c:332: undefined reference to `usb_fifo_put_bytes_max'</div><div>collect2: error: ld returned 1 exit status</div><div>----------------------------------------------------------------------------------------------------------------------------</div><div> </div><div>So, what would be the way out here ? Is there any particular reason why “UGEN” option is not used in our system ?  </div><div><br></div><div>Thank you in advance. </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Deval Shah</div><div><div data-smartmail="gmail_signature"></div></div><img align="left" width="0" height="0" style="border:0;width:0px;min-height:0px" src="https://app.mixmax.com/api/track/v2/1wXsQywwXiRu4hIwq/ISbvNmLslWYtdGQyV2ah1mLsFmdlRmI/IyZy9mLz1WZ0JHQsVmdlRmI/?sc=false" alt="">
          
        </font></span></td>
      </tr>
    </tbody></table>

  </div>

<br>_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">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><br></blockquote></div><br></div>