From patchwork Mon Jun 28 12:15:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: renzo dani X-Patchwork-Id: 108366 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5SCFdX5013425 for ; Mon, 28 Jun 2010 12:15:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753341Ab0F1MPf (ORCPT ); Mon, 28 Jun 2010 08:15:35 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:42540 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753208Ab0F1MPd (ORCPT ); Mon, 28 Jun 2010 08:15:33 -0400 Received: by bwz1 with SMTP id 1so166556bwz.19 for ; Mon, 28 Jun 2010 05:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=saELZq4mObvg+vXf0TQec1uJKctP5Eu6scRnfo2sO+8=; b=H5LrlmaB6kHGUHcCCdiuHznk/++rQuPNYb5g6Sdxx9LD4vsEwmCCpMHVdc4ZxCJrTW Hkb2NLRypvqv07zdq6zKLy66MD71VN92x//2RneaHSO+wq6Ugih6/BZbKOdp09FKUyOT MF8u//dNX68Oo1nsuA6We+cF66BSV93ZNA+pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=XFc+Ddh2M1reMnW2up/ThKfBXpdI3wkZpNhd/quwy9xVAXQE1jWqOx55NW29qA/e1C OVpdPpt1DD1aJhsXvVQiVfIfFsYX8qtIOT78yRO4N7eo4InoQkvLO45mlu/1dtlVZczm lh5wEt45avc99cDkzkxgr5qVYVtB51Qdh7AfY= Received: by 10.204.146.153 with SMTP id h25mr1641585bkv.86.1277727331727; Mon, 28 Jun 2010 05:15:31 -0700 (PDT) Received: from aronsmini (188-92.60-188.cust.bluewin.ch [188.60.92.188]) by mx.google.com with ESMTPS id v30sm16348898bkk.14.2010.06.28.05.15.30 (version=SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 05:15:31 -0700 (PDT) From: Renzo Dani To: adams.xu@azwave.com.cn Cc: arons7@gmail.com, mchehab@infradead.org, rdunlap@xenotime.net, o.endriss@gmx.de, awalls@radix.net, crope@iki.fi, manu@linuxtv.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 1/1] Retrieve firmware for az6027 Date: Mon, 28 Jun 2010 14:15:19 +0200 Message-Id: <1277727319-9498-1-git-send-email-arons7@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 28 Jun 2010 12:15:39 +0000 (UTC) diff --git a/Documentation/dvb/get_dvb_firmware b/Documentation/dvb/get_dvb_firmware index 239cbdb..507868b 100644 --- a/Documentation/dvb/get_dvb_firmware +++ b/Documentation/dvb/get_dvb_firmware @@ -26,7 +26,7 @@ use IO::Handle; "dec3000s", "vp7041", "dibusb", "nxt2002", "nxt2004", "or51211", "or51132_qam", "or51132_vsb", "bluebird", "opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718", - "af9015", "ngene"); + "af9015", "ngene", "az6027"); # Check args syntax() if (scalar(@ARGV) != 1); @@ -567,6 +567,23 @@ sub ngene { "$file1, $file2"; } +sub az6027{ + my $file = "AZ6027_Linux_Driver.tar.gz"; + my $url = "http://linux.terratec.de/files/$file"; + my $firmware = "dvb-usb-az6027-03.fw"; + + wgetfile($file, $url); + + #untar + if( system("tar xzvf $file")){ + die "failed to untar firmware"; + } + if( system("rm -rf AZ6027_Linux_Driver; rm $file")){ + die ("unable to remove unnecessary files"); + } + + $firmware; +} # --------------------------------------------------------------- # Utilities