From patchwork Wed Oct 29 10:41:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 39749 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EA43524029 for ; Wed, 29 Oct 2014 10:42:51 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf1511901lam.8 for ; Wed, 29 Oct 2014 03:42:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=VbAphwsGWEJICYmtEqWnN03btCGOKepYNZHRK4rRgE0=; b=cR8Ih2qlnQXf2G7fWimDzobxSyFRxbmjW0WG6T9tXcs6mtm99zFmrSKc1AJot42CVn /bzWg2VLw9jMzgZaCe+jdO0fBPzN5WrPxSWIamafJA9bm9ezIv8EBhKNa8c8cDk/q0Vl IBvl6kLKMvheptCrzmihowOji19sjr4pePLy8Msk0huM5xWwSI4cbqbqA0lFJv+49cyx /4IKfOILe3VYQ4KaClVNaTgJ4NuXNfcBaVamHAyhhhIEWpkyj/pR83vd9ZfEHRjfGO/z yBUZFEHO7dYfihljeqe/5blZVK5yKz2IeybWM2jHs3HfnsJPbe1MLMKGbkqjShKjcrrX 9nrg== X-Gm-Message-State: ALoCoQnZjscPL2OOYJQ/bVFiEfULX4z6WC+klwkKqVA3hOUmETrXRBv1HcBfRbyngNbFJY9LWTm/ X-Received: by 10.152.27.38 with SMTP id q6mr1547127lag.5.1414579370752; Wed, 29 Oct 2014 03:42:50 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.5 with SMTP id w5ls184346law.71.gmail; Wed, 29 Oct 2014 03:42:50 -0700 (PDT) X-Received: by 10.112.52.33 with SMTP id q1mr10746822lbo.42.1414579370212; Wed, 29 Oct 2014 03:42:50 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id wt3si6635738lbb.44.2014.10.29.03.42.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 03:42:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id n15so2230088lbi.17 for ; Wed, 29 Oct 2014 03:42:50 -0700 (PDT) X-Received: by 10.112.14.69 with SMTP id n5mr10429753lbc.34.1414579370125; Wed, 29 Oct 2014 03:42:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp633467lbz; Wed, 29 Oct 2014 03:42:49 -0700 (PDT) X-Received: by 10.52.242.73 with SMTP id wo9mr4609249vdc.43.1414579367884; Wed, 29 Oct 2014 03:42:47 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ws5si2276685vcb.27.2014.10.29.03.42.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 29 Oct 2014 03:42:47 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XjQhX-0002YJ-Lo; Wed, 29 Oct 2014 10:42:03 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XjQhV-0002Sm-2g for xen-devel@lists.xen.org; Wed, 29 Oct 2014 10:42:01 +0000 Received: from [85.158.143.35] by server-3.bemta-4.messagelabs.com id F8/EA-02699-874C0545; Wed, 29 Oct 2014 10:42:00 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1414579313!13416260!4 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.12.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 29274 invoked from network); 29 Oct 2014 10:41:59 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 29 Oct 2014 10:41:59 -0000 X-IronPort-AV: E=Sophos;i="5.04,809,1406592000"; d="scan'208";a="187318385" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Wed, 29 Oct 2014 06:41:59 -0400 Received: from kazak.uk.xensource.com ([10.80.2.80] helo=zakaz.uk.xensource.com) by ukmail1.uk.xensource.com with smtp (Exim 4.69) (envelope-from ) id 1XjQhR-00014w-Nm; Wed, 29 Oct 2014 10:41:58 +0000 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Wed, 29 Oct 2014 10:41:57 +0000 From: Ian Campbell To: Date: Wed, 29 Oct 2014 10:41:37 +0000 Message-ID: <1414579302-6692-15-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1414579268.29975.13.camel@citrix.com> References: <1414579268.29975.13.camel@citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST v2 15/20] Osstest/Debian: Add support for "ExtraInitramfsModules" host property X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: The arndale platform needs a bunch of clk, phy and regulator stuff in order to access its root filesystem. However mkinitramfs is not (currently?) able to figure this out and therefore doesn't include them in the initrd. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762042 Add a new host prop which can list these required additional module and arranges for a suitable /etc/initramfs-tools/modules to be created on install. Using the new HostGroupProp syntax the required modules are: HostGroupProp_arndale_ExtraInitramfsModules clk-s2mps11 s5m8767 i2c-s3c2410 phy-exynos5250-sata Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v2: References to bugs. --- Osstest/Debian.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index e390ec9..5435bdf 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -722,6 +722,23 @@ in-target mkimage -A arm -T script -d /boot/boot /boot/boot.scr END } + my $modules = get_host_property($ho, "ExtraInitramfsModules", "NONE"); + if ( $modules ne "NONE" ) + { + # This is currently the best available way to add modules to + # the installed initramfs. See + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764805 + preseed_hook_command($ho, 'late_command', $sfx, <> /target/etc/initramfs-tools/modules +done +in-target update-initramfs -u -k all +END + } + my @extra_packages = (); push(@extra_packages, "u-boot-tools") if $ho->{Flags}{'need-uboot-bootscr'};