From patchwork Wed Jul 27 12:21:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Larsson X-Patchwork-Id: 1011752 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6RCgsCU014872 for ; Wed, 27 Jul 2011 12:42:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752628Ab1G0Mmx (ORCPT ); Wed, 27 Jul 2011 08:42:53 -0400 Received: from mail.southpole.se ([193.12.106.18]:44567 "EHLO mail.southpole.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752099Ab1G0Mmw (ORCPT ); Wed, 27 Jul 2011 08:42:52 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 27 Jul 2011 12:42:55 +0000 (UTC) X-Greylist: delayed 1295 seconds by postgrey-1.27 at vger.kernel.org; Wed, 27 Jul 2011 08:42:52 EDT Received: from [192.168.16.134] (assp.southpole.se [193.12.106.25]) by mail.southpole.se (Postfix) with ESMTPA id C5780880002 for ; Wed, 27 Jul 2011 14:21:15 +0200 (CEST) Received: from [192.168.16.134] ([192.168.16.134] helo=[192.168.16.134]) by assp.southpole.se with ESMTPS (2.0.2); 27 Jul 2011 14:21:15 +0200 Message-ID: <4E3002DF.7060209@ludd.ltu.se> Date: Wed, 27 Jul 2011 14:21:51 +0200 From: Benjamin Larsson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: linux-media@vger.kernel.org Subject: [PATCH] Firmware extraction for IT9135 based devices X-Assp-Client-SSL: yes Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org MvH Benjamin Larsson Tested-by: Malcolm Priestley From b3cbee633f5a6403c2460892e64adcb88f6ae4a6 Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Wed, 27 Jul 2011 13:43:38 +0200 Subject: [PATCH 1/1] Firmware extraction for IT9135 based devices Signed-off-by: Benjamin Larsson --- 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