This port is an emulation layer to port linux device drivers to FreeBSD,
mostly oriented to USB device drivers where FreeBSD support is weaker.
It contains:
- a set of headers with declarations for entities used in the Linux kernel;
- a compatibility library (in source form) mapping [part of] the linux kernel
APIs to equivalent FreeBSD APIs;
- a template for character device drivers.
Ideally, the porting of a linux driver should be as simple as downloading
the linux driver sources, writing a simple Makefile.kmod, and running
"make -f Makefile.kld" to produce your driver.ko.
WWW: http://info.iet.unipi.it/~luigi/FreeBSD/linux_bsd_kld.html
Make this port build under FreeBSD 7, enabling dependent
drivers (e.g. linux-gspca-compat and others) to build too.
The fixes in the code are really minor (basically workaround a
change in the definition of msleep).
Upgrade to version 20070326, which implements device control variables
(available under /proc on Linux) as a sysctl tree debug.{drivername}
With this feature you can, as an example, set
sysctl debug.gspca.compress=1 and sysctl debug.gspca.autoexpo=0
to speed up capture on some cameras.
This version also includes some pwcview changes to display up
to 4 copies of the grabbed image, with various mirroring options.
Update to the 20070208 release of the code.
Apart from internal cleanup, a visible change is that
mmap-related ioctl in video drivers are trapped and made
to return EINVAL.
This prevents clients (e.g. ekiga) that do not check for mmap() errors
from crashing.
I suggest to rebuild linux-gspca-kmod and linux-ov511-kmod.
update to version 20070203, which enables build of children
ports (linux-gspca-kmod, linux-ov511-kmod) on 64 bit archs.
Thanks to Jung-uk Kim for the 64-bit patches.
- Add automatic pkg-plist generation
- Remove NO_PACKAGE (for the above reason)
- Add NO_BUILD
- Various fixes (also for portlint)
This commit doesn't change which files are installed and where
(the port is still not PREFIX clean).
Add new port for linux-kmod-compat - emulation layer to build
linux device drivers as FreeBSD kld modules. Details at
http://info.iet.unipi.it/~luigi/FreeBSD/linux_bsd_kld.html
Two ports for webcam drivers that use this package are coming in
a matter of minutes.
NOTES:
+ This is only for 6.x and 7.x, no support planned for earlier versions.
+ At the moment only i386 but have patches for 64-bit architectures
that should be committed soon.
+ This port installs a file in /usr/share/mk . After some discussion
on the ports list this seems, to be the most reasonable thing to do.
portlint complains about it.
(Only the first 15 lines of the commit message are shown above )