USB CDC-ACM device under FreeBSD and HPS stack

Hans Petter Selasky hselasky at c2i.net
Mon Apr 28 08:51:17 UTC 2008


On Saturday 26 April 2008, John E Hein wrote:
> Xiaofan Chen wrote at 16:16 +0800 on Apr 26, 2008:
>  > On Sat, Apr 26, 2008 at 3:51 PM, Xiaofan Chen <xiaofanc at gmail.com> wrote:
>  > >  [mcuee at freebsd7 ~]$ sudo kldload ucycom
>  > >  kldload: can't load ucycom: No such file or directory
>
> Sometimes you'll get that message not becuase /boot/kernel/ucycom.ko
> doesn't exist but because it's trying to reference external symbols defined
> in other modules or the kernel that aren't there for whatever reason, or
> that a module dependency can't be loaded.
>
> Look in /var/log/messages or dmesg.
> _______________________________________________
> freebsd-usb at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe at freebsd.org"


I found it:

Edit /sys/dev/usb/ucycom.c and change:

--- src/sys/dev/usb/ucycom.c    (revision 711)
+++ src/sys/dev/usb/ucycom.c    (working copy)
@@ -167,8 +167,8 @@
 };
 
 DRIVER_MODULE(ucycom, uhub, ucycom_driver, ucycom_devclass, usbd_driver_load, 
0);
-MODULE_VERSION(ucycom, 1);
 MODULE_DEPEND(ucycom, usb, 1, 1, 1);
+MODULE_DEPEND(ucycom, ucom, UCOM_MINVER, UCOM_PREFVER, UCOM_MAXVER);


Then recompile the ucycom module.

--HPS



More information about the freebsd-usb mailing list