From patchwork Fri Nov 21 13:17:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 41311 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5AD15244B0 for ; Fri, 21 Nov 2014 13:19:47 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf1912697lbj.3 for ; Fri, 21 Nov 2014 05:19:45 -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=daoZ/v9SkRaPGTBW8lUMAcLFNAV7ptOlOcdBIk7I81g=; b=gdKn2NtZA8DixW/1w1pH8Pu4bLrSS7PNSAmoFXE/ElB7n2BKTBr6UbPtHNEykOmTge f9jCdnhDo+bERyTe99/9vdYk5SvPbLSYwM7qYPoJsOj65wIcyNhsu52B1ZIixxm4AYne mfjeaZacW4zA8wzl1KNNJwCYD3p/6qQrloAa8Dqk5PWS/9DZvTCN42I8BnUEGh8SZTWB lYEBDFV33Z8mM8C1bJkeDuPMzaDh3rnX+Me5WH/g8JnOonLTU4IoiapgYLJsxJD0Tn3Y SmkT3Ea2TqC/f+q0RTad9VeXIwYoIKEBLjBxdQaJNFllMx7dsntmij0R/iuGxkdunGc4 fetw== X-Gm-Message-State: ALoCoQnXxinc4hJN6OpELORQRur86UHMNoCq5ZSu6gZdc/kvG/qMS/unpqtPTnKuoFIuxDEnT4+g X-Received: by 10.112.48.6 with SMTP id h6mr826311lbn.19.1416575985820; Fri, 21 Nov 2014 05:19:45 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.227 with SMTP id n3ls200007lan.71.gmail; Fri, 21 Nov 2014 05:19:45 -0800 (PST) X-Received: by 10.112.168.201 with SMTP id zy9mr4424496lbb.77.1416575985554; Fri, 21 Nov 2014 05:19:45 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id y1si5370553laa.37.2014.11.21.05.19.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Nov 2014 05:19:45 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id q1so4252439lam.30 for ; Fri, 21 Nov 2014 05:19:45 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr4383992laz.27.1416575985440; Fri, 21 Nov 2014 05:19:45 -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 ew9csp87311lbc; Fri, 21 Nov 2014 05:19:44 -0800 (PST) X-Received: by 10.52.121.82 with SMTP id li18mr1301122vdb.82.1416575983677; Fri, 21 Nov 2014 05:19:43 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ir5si2286548vcb.11.2014.11.21.05.19.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Nov 2014 05:19:43 -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 1Xro5U-0007Nr-3k; Fri, 21 Nov 2014 13:17:24 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xro5S-0007Kq-3d for xen-devel@lists.xen.org; Fri, 21 Nov 2014 13:17:22 +0000 Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id 76/CB-20609-16B3F645; Fri, 21 Nov 2014 13:17:21 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1416575827!13996777!8 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 29842 invoked from network); 21 Nov 2014 13:17:20 -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:20 -0000 X-IronPort-AV: E=Sophos;i="5.07,431,1413244800"; d="scan'208";a="193695965" 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:19 -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 1Xro5N-0003B4-Ek; Fri, 21 Nov 2014 13:17:18 +0000 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Fri, 21 Nov 2014 13:17:17 +0000 From: Ian Campbell To: Date: Fri, 21 Nov 2014 13:17:02 +0000 Message-ID: <1416575824-15555-13-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 13/15] Osstest/Debian: Add 0x prefix to $filesize 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.215.43 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: $filesize is an unprefixed hex number, but fdt set requires the 0x to interpret it properly. See http://lists.denx.de/pipermail/u-boot/2014-October/193622.html Signed-off-by: Ian Campbell --- v3: Reference ML thread. v2: New patch, previously included in "Osstest/Debian: Workaround oddities in the u-boot script parser.". Note that the oddities with requiring a space before the ">" is no longer reproducible with the latest u-boot. --- Osstest/Debian.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 3e56c1f..82669a5 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -177,7 +177,7 @@ echo command line: \\\${bootargs} ext2load scsi 0 \\\${kernel_addr_r} $kern fdt mknod /chosen module\@0 fdt set /chosen/module\@0 compatible "xen,linux-zimage" "xen,multiboot-module" -fdt set /chosen/module\@0 reg <\\\${kernel_addr_r} \\\${filesize}> +fdt set /chosen/module\@0 reg <\\\${kernel_addr_r} 0x\\\${filesize}> # clk_ignore_unused is due to http://bugs.xenproject.org/xen/bug/45 fdt set /chosen/module\@0 bootargs "$xenkopt ro root=$root clk_ignore_unused" echo Loaded $kern to \\\${kernel_addr_r} (\\\${filesize}) @@ -186,7 +186,7 @@ echo command line: $xenkopt ro root=$root ext2load scsi 0 \\\${ramdisk_addr_r} $initrd fdt mknod /chosen module\@1 fdt set /chosen/module\@1 compatible "xen,linux-initrd" "xen,multiboot-module" -fdt set /chosen/module\@1 reg <\\\${ramdisk_addr_r} \\\${filesize}> +fdt set /chosen/module\@1 reg <\\\${ramdisk_addr_r} 0x\\\${filesize}> echo Loaded $initrd to \\\${ramdisk_addr_r} (\\\${filesize}) fdt print /chosen