[linux-dvb] How to compile the firmware into the driver?

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sun Dec 4 15:28:29 CET 2005


Klaus Schmidinger wrote:
> I have downloaded the latest driver snapshot from
> 
>   http://linuxtv.org/downloads/snapshots/v4l-dvb-20051202.tar.gz
> 
> and the latest firmware from
> 
>   http://linuxtv.org/downloads/firmware/dvb-ttpci-01.fw-2622
> 
> and expanded the driver source into
> 
>   /home/kls/vdr/DVB-v4l-dvb.2005-12-02
> 
> 
> What is the simplest method to build this driver and have
> it compile the firmware into it?
> 
> I tried writing
> 
> CONFIG_DVB_AV7110_FIRMWARE=y
> CONFIG_DVB_AV7110_FIRMWARE_FILE=./dvb-ttpci-01.fw
> 
> into /usr/src/linux/.config and create a symlink in
> /home/kls/vdr/DVB-v4l-dvb.2005-12-02/linux/drivers/media/dvb/ttpci
> 
> -rw-r--r--   1 kls users 239956 Dec  4 13:13 dvb-ttpci-01.fw-2622
> lrwxrwxrwx   1 kls users     20 Dec  4 13:13 dvb-ttpci-01.fw -> 
> dvb-ttpci-01.fw-2622
> 
> but apparently that doesn't impress the make process.
> 
> 
> Is there a simple trick to do this?

Ok, so I think I've managed to do this, by editing some source files.
I'm still hoping there is a clean way to do this, though.

So now I have all the *.ko files in /home/kls/vdr/DVB-v4l-dvb.2005-12-02/v4l,
but I can't seen to find out how to properly load them. There used to
be an 'insmod.sh' script before the v4l/dvb merge, but that's no
longer there.

Does anybody know how to properly load the *.ko files?
Note that I do _not_ want to do "make install", because I
want to be able to have several driver versions in their
own directories, and want to switch between these by simply
placing a symlink. Therefore I need a way to load and unload
the modules from a given driver directory, without copying anything
to /lib/modules/...

Klaus



More information about the linux-dvb mailing list