On Wed, Nov 08, 2006 at 10:50:11PM -0500, Robert Hardy wrote:

> It would be great if the driver could validate the firmware files
> before loading them. It would be easy enough to check between those
> three specific firmware files just from the first few bytes but not so
> simple to do it in a generic manner (where you can change the firmware
> files.) The three firmware files here start with: a7 03, a7 0d and ba
> 01 respectively.
> 
> Can you think of a generic way of doing this?

Look at ivtv_firmware_versions().

The third file is an mpeg, not firmware.  Validation is probably not
important in that case.

> I suppose we could CRC/md5 the firmware files and check them against
> the table posted in the wiki of known firmware files...

http://lkml.org/lkml/2006/7/8/79

Easy to plug something like this in- but it seems like overkill.  At
least, in a non-debug context it does.
-- 
Tyler Trafford

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to