|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
link_elf error while loading gspca.ko
I wanted to see if a usb-cam could work in my freebsd 7, so I tried some listed modules. pwc.ko loaded but the cam did not work. So I tried gspca.ko from http://info.iet.unipi.it/~luigi/Free...x_bsd_kld.html but I the module did not load because of the error
Code:
link_elf: symbol msleep undefined Any suggestions about what to do? |
|
||||
msleep on Linux vs. FreeBSD
I've often wondered about the differences between the Linux msleep and FreeBSD msleep -- I've actually lost some sleep thinking about it. They appear to be the same in name only. Am I confused here? If so, jump in and correct me.
The Linux msleep simply goes into a while spin-loop counting down a timeout on schedule_timeout_uninterruptible( ). It seems to be a closer match to the Standard C library call: usleep. The FreeBSD msleep seems to be a different beast entirely. A better name would be 'mutex_sleep' since that is what it does. In fact, we shouldn't use FreeBSD msleep since it has been depreciated, use mtx_sleep instead. For linux_kmod_compat would a better match to the Linux msleep be the FreeBSD kernel function pause?: void pause(const char *wmesg, int timo);or is there something better for use in the kernel, drivers, and KLDs?
__________________
- Fritz Katz |
|
|||
It's a problem with the Makefile/sources...
It never reads you are in FreeBSD 7.0... Now I am at a WinXP station with no access to the code, but I'll send you an update once I get home. If you can't wait, go over the source files and comment out any IF $OSVERSION referring to FreeBSD 7 or greater and the corresponding END, especially the one referring to msleep. You can also delete the IF loops for FreeBSD6.x Hope this helps. I have been able to make my Logitech Webcam work with this hack... However, kopete will not recognize it, but you can play around streaming with VLC |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem loading (the correct) libX11.so.6 | phreud | FreeBSD General | 3 | 10th November 2008 11:13 AM |
Tightvnc startup script not loading fonts - permission denied | master-richie | FreeBSD Ports and Packages | 2 | 3rd August 2008 09:29 PM |