From patchwork Mon Jan 30 17:57:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 6444 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C20B323EAE for ; Mon, 30 Jan 2012 17:57:14 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id A27A7A18161 for ; Mon, 30 Jan 2012 17:57:14 +0000 (UTC) Received: by bkar19 with SMTP id r19so4568550bka.11 for ; Mon, 30 Jan 2012 09:57:14 -0800 (PST) Received: by 10.205.139.12 with SMTP id iu12mr8907316bkc.2.1327946234188; Mon, 30 Jan 2012 09:57:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.204.130.220 with SMTP id u28cs159764bks; Mon, 30 Jan 2012 09:57:14 -0800 (PST) Received: by 10.216.145.207 with SMTP id p57mr7382420wej.29.1327946233841; Mon, 30 Jan 2012 09:57:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id n60si806174weq.30.2012.01.30.09.57.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jan 2012 09:57:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RrvTd-0004FB-J2 for ; Mon, 30 Jan 2012 17:57:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 83519E0837 for ; Mon, 30 Jan 2012 17:57:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 209 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 209: add support for installing android binary drivers Message-Id: <20120130175713.11573.64266.launchpad@ackee.canonical.com> Date: Mon, 30 Jan 2012 17:57:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14727"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 2b590fc3f211390513417e6f6a488411d3e516f7 Merge authors: Paul Larson Related merge proposals: https://code.launchpad.net/~pwlars/lava-dispatcher/android-install-binaries/+merge/90366 proposed by: Paul Larson (pwlars) review: Approve - Yongqin Liu (liuyq0307) ------------------------------------------------------------ revno: 209 [merge] committer: Paul Larson branch nick: lava-dispatcher timestamp: Mon 2012-01-30 11:47:06 -0600 message: add support for installing android binary drivers added: lava_dispatcher/actions/android_install_binaries.py modified: lava_dispatcher/default-config/lava-dispatcher/device-types/panda.conf --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === added file 'lava_dispatcher/actions/android_install_binaries.py' --- lava_dispatcher/actions/android_install_binaries.py 1970-01-01 00:00:00 +0000 +++ lava_dispatcher/actions/android_install_binaries.py 2012-01-27 03:10:08 +0000 @@ -0,0 +1,40 @@ +# Copyright (C) 2012 Linaro Limited +# +# Author: Paul Larson +# +# This file is part of LAVA Dispatcher. +# +# LAVA Dispatcher is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# LAVA Dispatcher is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +import ConfigParser +import logging +from lava_dispatcher.actions import BaseAction +from lava_dispatcher.client.master import _deploy_tarball_to_board + + +class cmd_android_install_binaries(BaseAction): + def run(self): + try: + driver_tarball = self.client.device_option( + "android_binary_drivers") + except ConfigParser.NoOptionError: + logging.error("android_binary_drivers not defined in any config") + return + + with self.client._master_session() as session: + session.run( + 'mount /dev/disk/by-label/testrootfs /mnt/lava/system') + _deploy_tarball_to_board( + session, driver_tarball, '/mnt/lava/system', timeout=600) + session.run('umount /mnt/lava/system') === modified file 'lava_dispatcher/default-config/lava-dispatcher/device-types/panda.conf' --- lava_dispatcher/default-config/lava-dispatcher/device-types/panda.conf 2012-01-18 17:12:47 +0000 +++ lava_dispatcher/default-config/lava-dispatcher/device-types/panda.conf 2012-01-27 03:10:08 +0000 @@ -16,3 +16,5 @@ omapfb.vram=0:24M,1:24M mem=456M@0x80000000 mem=512M@0xA0000000 init=/init androidboot.console=ttyO2'", boot + +android_binary_drivers = http://192.168.1.21/LAVA_HTTP/android-binaries/panda-drivers.tgz