From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v4 09/13] Osstest/Debian: Add 0x prefix to $filesize Date: Wed, 21 Jan 2015 11:18:10 +0000 Message-ID: <1421839094-10857-9-git-send-email-ian.campbell@citrix.com> References: <1421839070.4899.8.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1421839070.4899.8.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org $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 f03ece5..96b823a 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -187,7 +187,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}> fdt set /chosen/module\@0 bootargs "$xenkopt" echo Loaded $kern to \\\${kernel_addr_r} (\\\${filesize}) echo command line: $xenkopt @@ -195,7 +195,7 @@ echo command line: $xenkopt 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 -- 2.1.4