[sane-devel] where to put firmware files?

Sergey Vlasov vsu@altlinux.ru
Sat, 5 Oct 2002 22:11:31 +0400


On Sat, 5 Oct 2002 17:27:30 +0100
Major A <andras@users.sourceforge.net> wrote:

> 
> > > This will avoid potential name-clashes for the firmware files (or any other
> > >  backend-specific files).  What is the chance that two different backends
> > >  will use identical firmware files?
> > 
> > If they support similar scanners, the chnce is not that low. The
> > gt68xx firmware files have names like sbfw.usb or ps1.usb that may be
> > used by other scanners, too.
> 
> Yes, but the firmware usually contains all the code that drives the
> scanner, including USB endpoint handling code. Therefore two scanners
> with the same firmware would have the same command protocol, thus they
> should be handled by the same backend anyway.

The problem is that such short name has a high probability for clash
with something unrelated.

> Maybe a naming convention would be most appropriate? Say, instead of
> subdirectories backend1 and backend2, one would create images called
> backend1-ps1.usb and backend2-sbfw.usb or so.

The previous solution allows to keep the same file name as in Windows
drivers, so just copying the file is enough. (However, this will not
solve all problems - Windows filesystems are not case-sensitive, so the
character case in file names is often messed up.)