Commit 7330f7c157308166c507da9b9926107d85f960d3
Committed by
Mauro Carvalho Chehab
1 parent
5e642c06b5
Exists in
master
and in
6 other branches
[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>
Showing 1 changed file with 21 additions and 1 deletions Side-by-side Diff
Documentation/dvb/get_dvb_firmware
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | "opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718", |
29 | 29 | "af9015", "ngene", "az6027", "lme2510_lg", "lme2510c_s7395", |
30 | 30 | "lme2510c_s7395_old", "drxk", "drxk_terratec_h5", |
31 | - "drxk_hauppauge_hvr930c", "tda10071", "it9135" ); | |
31 | + "drxk_hauppauge_hvr930c", "tda10071", "it9135", "it9137"); | |
32 | 32 | |
33 | 33 | # Check args |
34 | 34 | syntax() if (scalar(@ARGV) != 1); |
... | ... | @@ -676,6 +676,26 @@ |
676 | 676 | } |
677 | 677 | |
678 | 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 | 699 | my $url = "http://kworld.server261.com/kworld/CD/ITE_TiVme/V1.00/"; |
680 | 700 | my $zipfile = "Driver_V10.323.1.0412.100412.zip"; |
681 | 701 | my $hash = "79b597dc648698ed6820845c0c9d0d37"; |