From patchwork Fri Nov 21 13:16:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 41305 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3B9A22452C for ; Fri, 21 Nov 2014 13:18:46 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf3289763wiv.1 for ; Fri, 21 Nov 2014 05:18:40 -0800 (PST) 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:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=z3j2AOZdN8j1VEDDtoepX9YoOLdaC+rkPiGIunWe/MU=; b=CX4YQGKjND57RuwEn0fFnStCc8Li5fZwV2NQPXb4iL90nz4EQ60+fafbMx9PNKFHXA 7J/9p9VWKxNA9FT+cdK7uaiaM7Pap9YnzCalTiGePsWeFE+byif+hxFAf5XrxFH+JGG+ vR8YK2UjYQbvY/mCYAFggU5IuR0qV0bYM6zuG1LNdIXR2q9r31UEgmtbswYVZxJWOTIE YbTpH94/dJ1gn3esoVGQhgGwhENiDbborG/AiJ2M3Io4Z+PqBiZqoWy52XOvEXtwQZt7 EVh6pc8uXuukvyixZHvWLJKEDVs9Pr9nYgDMjE7Sfze1fkUAUgQ8iQyFaEW5R4CB2FnM ZaNw== X-Gm-Message-State: ALoCoQnBMi2udUMBlW7VpQGoogaz9XK3G16ZTb7bGHGGapfHhe1WvwH/IAg27mEefVzkDZwtqMa2 X-Received: by 10.152.6.133 with SMTP id b5mr576793laa.10.1416575920240; Fri, 21 Nov 2014 05:18:40 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.98 with SMTP id d2ls197662lae.19.gmail; Fri, 21 Nov 2014 05:18:39 -0800 (PST) X-Received: by 10.112.172.97 with SMTP id bb1mr4511913lbc.38.1416575919774; Fri, 21 Nov 2014 05:18:39 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id wz10si5272062lbb.109.2014.11.21.05.18.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Nov 2014 05:18:39 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id l4so3967425lbv.26 for ; Fri, 21 Nov 2014 05:18:39 -0800 (PST) X-Received: by 10.152.37.69 with SMTP id w5mr4374454laj.67.1416575919398; Fri, 21 Nov 2014 05:18:39 -0800 (PST) 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.184.201 with SMTP id ew9csp87136lbc; Fri, 21 Nov 2014 05:18:38 -0800 (PST) X-Received: by 10.52.167.234 with SMTP id zr10mr3745197vdb.64.1416575915359; Fri, 21 Nov 2014 05:18:35 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ex10si2282681vcb.19.2014.11.21.05.18.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Nov 2014 05:18:35 -0800 (PST) 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 1Xro5Q-0007JV-EL; Fri, 21 Nov 2014 13:17:20 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xro5P-0007IO-5x for xen-devel@lists.xen.org; Fri, 21 Nov 2014 13:17:19 +0000 Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id 35/ED-02702-E5B3F645; Fri, 21 Nov 2014 13:17:18 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1416575827!13996777!5 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.12.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 29562 invoked from network); 21 Nov 2014 13:17:17 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 21 Nov 2014 13:17:17 -0000 X-IronPort-AV: E=Sophos;i="5.07,431,1413244800"; d="scan'208";a="193695923" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Fri, 21 Nov 2014 08:17:14 -0500 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 1Xro5J-0003Ap-7r; Fri, 21 Nov 2014 13:17:14 +0000 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Fri, 21 Nov 2014 13:17:13 +0000 From: Ian Campbell To: Date: Fri, 21 Nov 2014 13:16:58 +0000 Message-ID: <1416575824-15555-9-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1416505070.26869.2.camel@citrix.com> References: <1416505070.26869.2.camel@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST v3 09/15] 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.181 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 9530aa4..8b70442 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -727,6 +727,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'};