"Nemosoft Unv." wrote:

> No problem... But Iīm still deciding whatīs the best strategy. Iīve tried two
> approaches:
>
> * distribute a .o file with the code which requires a small patch to the
>   Makefile, so that it gets linked in (the current method)

The advantage to that approach is that users can build a totally monolithic
kernel. I suppose there are some people who still do that.

> * build a separate module that acts as a īpluginī to the pwc driver.

This is what I did with ov511. You can see the code at
http://alpha.dyndns.org/ov511/download.html . The only thing left to do is make
the decompressor autoload when it is needed.

> Both methods have their pros and cons, and one common problem: users donīt
> read documentation :-(

This is why I opted against the first strategy...I expected users would be
turning on the "OV518 Decompression" option in their kernel config, and then be
complaining when their compiler couldn't find ov518_decomp.o (because they didn't
RTFM and download it separately). It's too bad diff can't handle binary files.

> The second suffers from 2 problems: kernel module versioning, and the kernel
> version. The first I solved by exporting symbols from my code with
> EXPORT_SYMBOL_NOVERSION

Thanks...I didn't know about that. That solves half of my troubles (now I will
only be pulling half of my hair out :) ).

> and using wrapper functions for kmalloc() etc.

I'm not sure what you mean by this. Am I missing something important here?

> The second is a lot more irritating: unless users use exactly the same kernel
> version, modprobe complains about kernel versions long and hard.

I couldn't find a solution to this either. If you come up with something, please
let me know.

By the way, the reason I am doing all of this is to support the PCVC720K. It uses
the OV518 chip, which only supports a "proprietary" form of compression that I do
not have the source to. If it is anything like the OV511 compression, it is
nothing more than a slightly modified JPEG algorithm :)

--
Mark McClelland
[EMAIL PROTECTED]



_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to