diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2011-07-27 07:43:38 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-08-27 09:37:56 -0400 |
commit | 3188d5485e8a0650fd877a54ada70581c29cd505 (patch) | |
tree | 155979f359127dd057865cd43d837244d8b5a86c /Documentation/dvb | |
parent | f6d8735493eb02248bc7d7b05d5967f9a68b5c44 (diff) |
[media] get_dvb_firmware: Firmware extraction for IT9135 based devices
Signed-off-by: Benjamin Larsson <benjamin@southpole.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/dvb')
-rwxr-xr-x | Documentation/dvb/get_dvb_firmware | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Documentation/dvb/get_dvb_firmware b/Documentation/dvb/get_dvb_firmware index c466f5831f15..65ebe20b4b86 100755 --- a/Documentation/dvb/get_dvb_firmware +++ b/Documentation/dvb/get_dvb_firmware | |||
@@ -27,7 +27,8 @@ use IO::Handle; | |||
27 | "or51211", "or51132_qam", "or51132_vsb", "bluebird", | 27 | "or51211", "or51132_qam", "or51132_vsb", "bluebird", |
28 | "opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718", | 28 | "opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718", |
29 | "af9015", "ngene", "az6027", "lme2510_lg", "lme2510c_s7395", | 29 | "af9015", "ngene", "az6027", "lme2510_lg", "lme2510c_s7395", |
30 | "lme2510c_s7395_old", "drxk", "drxk_terratec_h5"); | 30 | "lme2510c_s7395_old", "drxk", "drxk_terratec_h5", |
31 | "it9135" ); | ||
31 | 32 | ||
32 | # Check args | 33 | # Check args |
33 | syntax() if (scalar(@ARGV) != 1); | 34 | syntax() if (scalar(@ARGV) != 1); |
@@ -665,6 +666,26 @@ sub drxk_terratec_h5 { | |||
665 | "$fwfile" | 666 | "$fwfile" |
666 | } | 667 | } |
667 | 668 | ||
669 | sub it9135 { | ||
670 | my $url = "http://kworld.server261.com/kworld/CD/ITE_TiVme/V1.00/"; | ||
671 | my $zipfile = "Driver_V10.323.1.0412.100412.zip"; | ||
672 | my $hash = "79b597dc648698ed6820845c0c9d0d37"; | ||
673 | my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 0); | ||
674 | my $drvfile = "Driver_V10.323.1.0412.100412/Data/x86/IT9135BDA.sys"; | ||
675 | my $fwfile = "dvb-usb-it9137-01.fw"; | ||
676 | |||
677 | checkstandard(); | ||
678 | |||
679 | wgetfile($zipfile, $url . $zipfile); | ||
680 | verify($zipfile, $hash); | ||
681 | unzip($zipfile, $tmpdir); | ||
682 | extract("$tmpdir/$drvfile", 69632, 5731, "$fwfile"); | ||
683 | |||
684 | "$fwfile" | ||
685 | } | ||
686 | |||
687 | |||
688 | |||
668 | # --------------------------------------------------------------- | 689 | # --------------------------------------------------------------- |
669 | # Utilities | 690 | # Utilities |
670 | 691 | ||