All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Larsson <banan@ludd.ltu.se>
To: linux-media@vger.kernel.org
Subject: [PATCH] Firmware extraction for IT9135 based devices
Date: Wed, 27 Jul 2011 14:21:51 +0200	[thread overview]
Message-ID: <4E3002DF.7060209@ludd.ltu.se> (raw)

[-- Attachment #1: Type: text/plain, Size: 21 bytes --]

MvH
Benjamin Larsson

[-- Attachment #2: 0001-Firmware-extraction-for-IT9135-based-devices.patch --]
[-- Type: text/x-patch, Size: 1742 bytes --]

>From b3cbee633f5a6403c2460892e64adcb88f6ae4a6 Mon Sep 17 00:00:00 2001
From: Benjamin Larsson <benjamin@southpole.se>
Date: Wed, 27 Jul 2011 13:43:38 +0200
Subject: [PATCH 1/1] Firmware extraction for IT9135 based devices


Signed-off-by: Benjamin Larsson <benjamin@southpole.se>
---
 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 c466f58..65ebe20 100755
--- a/Documentation/dvb/get_dvb_firmware
+++ b/Documentation/dvb/get_dvb_firmware
@@ -27,7 +27,8 @@ use IO::Handle;
 		"or51211", "or51132_qam", "or51132_vsb", "bluebird",
 		"opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718",
 		"af9015", "ngene", "az6027", "lme2510_lg", "lme2510c_s7395",
-		"lme2510c_s7395_old", "drxk", "drxk_terratec_h5");
+		"lme2510c_s7395_old", "drxk", "drxk_terratec_h5",
+                "it9135" );
 
 # Check args
 syntax() if (scalar(@ARGV) != 1);
@@ -665,6 +666,26 @@ sub drxk_terratec_h5 {
     "$fwfile"
 }
 
+sub it9135 {
+    my $url = "http://kworld.server261.com/kworld/CD/ITE_TiVme/V1.00/";
+    my $zipfile = "Driver_V10.323.1.0412.100412.zip";
+    my $hash = "79b597dc648698ed6820845c0c9d0d37";
+    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 0);
+    my $drvfile = "Driver_V10.323.1.0412.100412/Data/x86/IT9135BDA.sys";
+    my $fwfile = "dvb-usb-it9137-01.fw";
+
+    checkstandard();
+
+    wgetfile($zipfile, $url . $zipfile);
+    verify($zipfile, $hash);
+    unzip($zipfile, $tmpdir);
+    extract("$tmpdir/$drvfile", 69632, 5731, "$fwfile");
+
+    "$fwfile"
+}
+
+
+
 # ---------------------------------------------------------------
 # Utilities
 
-- 
1.7.1


             reply	other threads:[~2011-07-27 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-27 12:21 Benjamin Larsson [this message]
2011-07-27 20:45 ` [PATCH] Firmware extraction for IT9135 based devices Malcolm Priestley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E3002DF.7060209@ludd.ltu.se \
    --to=banan@ludd.ltu.se \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.