Errors due to USB_HAVE_UGEN option
Joel Sherrill
joel at rtems.org
Mon Jul 25 16:20:49 UTC 2016
My suggestion is to get the complete original FreeBSD source with svn and
use something
like cscope to find the body. This appears to be a common helper and I am
surprised the
need for it hasn't turned up yet. But who knows.
Find the source in FreeBSD and make sure it is in the rtems-libbsd tree.
On Mon, Jul 25, 2016 at 4:06 AM, Deval Shah <deval.maker at gmail.com> wrote:
> Hello everyone,
>
> 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.
>
> Error log:
>
> ----------------------------------------------------------------------------------------------------------------------------
> ./libbsd.a(ums.c.16.o): In function `ums_detach':
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_stop_read':
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_start_read':
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_ioctl':
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_reset_buf':
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_close':
> /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'
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_open':
> /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'
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_attach':
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_put_queue':
> /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'
> ./libbsd.a(ums.c.16.o): In function `ums_intr_callback':
> /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'
> collect2: error: ld returned 1 exit status
>
> ----------------------------------------------------------------------------------------------------------------------------
>
> So, what would be the way out here ? Is there any particular reason why
> “UGEN” option is not used in our system ?
>
> Thank you in advance.
>
> Deval Shah
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160725/5bac0a38/attachment-0002.html>
More information about the devel
mailing list