Re: 2.6.22.1 kernel Documentation/dvb/get_dvb_firmware perl script update

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

 



Andreas Arens wrote:
> Hi,
> 
> some firmware for DVB-T cards based on TDA10046 cannot be retrieved any longer using Andrew de Quincey's
> get_dvb_firmware script distributed within the linux kernel's Documentation/dvb directory,
> because the vendor has withdrawn the file fetched by the script and replaced by an updated version.
> 
> Here's an updated script snippet that allows to fetch the required firmware  from the updated windows driver files:
> It's actually unchanged against the previous version (hash is identical).
> 
> I hope someone finds this useful.


Please send this in a unified diff format.  The preferred method is to fetch our
development repository via mercurial:

hg clone http://linuxtv.org/hg/v4l-dvb

Then update the get_dvb_firmware script there.

Create a diff:

hg diff > andreas.patch

Send in that file, along with your description (above) and sign-off.

Thanks,

Mike


> 
> Signed-off-by: Andreas Arens <ari@xxxxxxxx>
> 
> --- snip ---
> sub tda10046 {
>     my $sourcefile = "TT_PCI_2.19h_28_11_2006.zip";
>     my $url = "http://technotrend-online.com/download/software/219/$sourcefile";;
>     my $hash = "6a7e1e2f2644b162ff0502367553c72d";
>     my $outfile = "dvb-fe-tda10046.fw";
>     my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
> 
>     checkstandard();
> 
>     wgetfile($sourcefile, $url);
>     unzip($sourcefile, $tmpdir);
>     extract("$tmpdir/TT_PCI_2.19h_28_11_2006/software/OEM/PCI/App/ttlcdacc.dll", 0x65389, 24478, "$tmpdir/fwtmp");
>     verify("$tmpdir/fwtmp", $hash);
>     copy("$tmpdir/fwtmp", $outfile);
> 
>     $outfile;
> }
> --- snip ---
> 
> Additionally, I've added an alternate (fast) source for fetching the firmware from Terratec. 
> The resulting firmware file (used on Terratec Cinergy HT PCI) is bit-identical to the tda10046lifeview firmware.
> 
> --- snip ---
> sub tda10046cinergy {
>     my $sourcefile = "Cinergy_HT_PCI_Drv_Vista_XP_1.03.03.05.exe";
>     my $url = "http://supportde.terratec.net/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=1089";;
>     my $hash = "1ea24dee4eea8fe971686981f34fd2e0";
>     my $outfile = "dvb-fe-tda10046.fw";
>     my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
> 
>     checkstandard();
> 
>     wgetfile($sourcefile, $url);
>     unzip($sourcefile, $tmpdir);
>     extract("$tmpdir/Cinergy HT PCI/BDA Driver 1.03.03.05/Windows XP (32Bit)/3xhybrid.sys", 0xF6F98, 24602, "$tmpdir/fwtmp");
>     verify("$tmpdir/fwtmp", $hash);
>     copy("$tmpdir/fwtmp", $outfile);
> 
>     $outfile;
> }
> --- snip ---
> 
> Enjoy
> 
> Andy


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

  Powered by Linux