diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2011-11-30 15:17:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-11 06:00:48 -0500 |
commit | 7330f7c157308166c507da9b9926107d85f960d3 (patch) | |
tree | e848793a8b3ae1a69b0b00f3ced138f03cce3bbe | |
parent | 5e642c06b561fd95d77d13f41adeb6e906acc31d (diff) |
[media] dvb_get_firmware: updates for it913x
Changes to extract firmware for it913x devices
./get_dvb_firmware it9135
extracts
dvb-usb-it9135-01.fw
dvb-usb-it9135-02.fw
./get_dvb_firmware it9137
extracts
dvb-usb-it9137-01.fw
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rwxr-xr-x | Documentation/dvb/get_dvb_firmware | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Documentation/dvb/get_dvb_firmware b/Documentation/dvb/get_dvb_firmware index 0f15ab7524cd..d1d4a179a382 100755 --- a/Documentation/dvb/get_dvb_firmware +++ b/Documentation/dvb/get_dvb_firmware | |||
@@ -28,7 +28,7 @@ use IO::Handle; | |||
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 | "drxk_hauppauge_hvr930c", "tda10071", "it9135" ); | 31 | "drxk_hauppauge_hvr930c", "tda10071", "it9135", "it9137"); |
32 | 32 | ||
33 | # Check args | 33 | # Check args |
34 | syntax() if (scalar(@ARGV) != 1); | 34 | syntax() if (scalar(@ARGV) != 1); |
@@ -676,6 +676,26 @@ sub drxk_terratec_h5 { | |||
676 | } | 676 | } |
677 | 677 | ||
678 | sub it9135 { | 678 | sub it9135 { |
679 | my $sourcefile = "dvb-usb-it9135.zip"; | ||
680 | my $url = "http://www.ite.com.tw/uploads/firmware/v3.6.0.0/$sourcefile"; | ||
681 | my $hash = "1e55f6c8833f1d0ae067c2bb2953e6a9"; | ||
682 | my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 0); | ||
683 | my $outfile = "dvb-usb-it9135.fw"; | ||
684 | my $fwfile1 = "dvb-usb-it9135-01.fw"; | ||
685 | my $fwfile2 = "dvb-usb-it9135-02.fw"; | ||
686 | |||
687 | checkstandard(); | ||
688 | |||
689 | wgetfile($sourcefile, $url); | ||
690 | unzip($sourcefile, $tmpdir); | ||
691 | verify("$tmpdir/$outfile", $hash); | ||
692 | extract("$tmpdir/$outfile", 64, 8128, "$fwfile1"); | ||
693 | extract("$tmpdir/$outfile", 12866, 5817, "$fwfile2"); | ||
694 | |||
695 | "$fwfile1 $fwfile2" | ||
696 | } | ||
697 | |||
698 | sub it9137 { | ||
679 | my $url = "http://kworld.server261.com/kworld/CD/ITE_TiVme/V1.00/"; | 699 | my $url = "http://kworld.server261.com/kworld/CD/ITE_TiVme/V1.00/"; |
680 | my $zipfile = "Driver_V10.323.1.0412.100412.zip"; | 700 | my $zipfile = "Driver_V10.323.1.0412.100412.zip"; |
681 | my $hash = "79b597dc648698ed6820845c0c9d0d37"; | 701 | my $hash = "79b597dc648698ed6820845c0c9d0d37"; |