From patchwork Fri Nov 10 01:44:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 13452004 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E53AC4332F for ; Fri, 10 Nov 2023 01:45:54 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.629887.982433 (Exim 4.92) (envelope-from ) id 1r1GaF-0000eJ-Bw; Fri, 10 Nov 2023 01:45:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 629887.982433; Fri, 10 Nov 2023 01:45:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r1GaF-0000eC-9B; Fri, 10 Nov 2023 01:45:19 +0000 Received: by outflank-mailman (input) for mailman id 629887; Fri, 10 Nov 2023 01:45:18 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r1GaE-0000aP-SB for xen-devel@lists.xenproject.org; Fri, 10 Nov 2023 01:45:18 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [2604:1380:4641:c500::1]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c80aa7d3-7f6a-11ee-9b0e-b553b5be7939; Fri, 10 Nov 2023 02:45:10 +0100 (CET) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 12C4061944; Fri, 10 Nov 2023 01:45:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3A8DC433C9; Fri, 10 Nov 2023 01:45:02 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c80aa7d3-7f6a-11ee-9b0e-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699580703; bh=nXcOhJwUSITcWKDgtXJhN1gzhRWj51errqNVjvv/5xw=; h=Date:From:To:cc:Subject:From; b=TIH3IXfbd0u13Ru0blHId3MyQ1XkXwob3VVPLoBdWi/0N4bpTEBO3NG0VdEyINMIp uvFkmK1wGmDUTPM6tthdT6arttxkg8pBHp1dOW2l7Z6XyVti9BO0QIz1b7xFHqMatD CuAqdBoeaWSDk+ISziZAudaRHtjGLoWECRn8JoEUdkS+D/s6XX84ehNMDS8wzkChWg 5G+2NKTt4+RaXD1bsnFr6DhKuGErS9FxkqGnKY64efeTk9Psi4n4Q1S953vJ6RIfRG a8rvjK+Bg9EKRODtwoHpV21g+BAzgbpD1NLuwOzVlwvb/G03q+8pzPrOtlQY3ZKImA SJQztqgkpvUTw== Date: Thu, 9 Nov 2023 17:44:58 -0800 (PST) From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: viryaos-discuss@lists.sourceforge.net cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, michal.orzel@amd.com, brian@woods.art Subject: [PATCH] Use hex for bitstream_size as expected by u-boot Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Reported-by: Brian Woods Signed-off-by: Stefano Stabellini Reviewed-by: Michal Orzel diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen index b284887..6e52da5 100755 --- a/scripts/uboot-script-gen +++ b/scripts/uboot-script-gen @@ -790,7 +790,7 @@ bitstream_load_and_config() check_file_type "$BITSTREAM" "BIT data" bitstream_addr=$memaddr load_file $BITSTREAM "fpga_bitstream" - bitstream_size=$filesize + bitstream_size=`printf "0x%X\n" $filesize` if test "$UBOOT_SOURCE" then # we assume the FPGA device is 0 here