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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oliver Endriss wrote:
> Klaus Schmidinger wrote:
> 
>>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.
> 
> 
> With current v4l/Makefile it does not work.

It would really be great if this would work again.
I always compile the firmware into the driver, so that I can be
absolutely sure that a given driver directory contains a matching
driver/firmware pair.

>>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/...
> 
> 
> The old insmod.sh script from the dvb-kernel/build-2.6 still works.
> (I just commented out all modules which are not needed.)

Yes, apparently that script sill works.

Klaus


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux