From patchwork Thu Apr 23 14:52:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 47463 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0088C2121F for ; Thu, 23 Apr 2015 14:53:00 +0000 (UTC) Received: by wgtl5 with SMTP id l5sf4906671wgt.1 for ; Thu, 23 Apr 2015 07:52:59 -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:cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=KyaB4Ey6QrrBUiW/8NJgHM39NV5PVo2pVVOJH/jlBKw=; b=WZYAaOUN2Ls/Vo6r7M+aMmsHD9zqmUizS/pJkV2yyFM7G8D68dcv3wZDBXRwM9lPOE HagxPo297ToXZe1U6FaSCtwtJtv0daCiKK1DfetO90SHSYdaNRwRDf6JlOYU8uL/e65L Lh+47tAdNKppm6iEDaFSPgpQAGD4L7OYsBpmuDYMkNi/Tm3HDFPeufBa8R/WYLHSLPns PfeRusqusIAoK75ajkYDbOfaJzyudDqYxgLgmMnje8FvUVJXWReo+G2keVg/JXfvhYmd Aa1QumXXF8Nr+sPUVlqxItkLkwDtqHs1VoGV8233Mr6w7PC1AmotJh+bg8fbBvZXA5UG 3h2w== X-Gm-Message-State: ALoCoQl+U4sNxmlPbtZwwjaRbc1J5VNMyk/kr2ZNQnTYNWj4n09DfT3ZAhZCuvLMQepYMxtF38eG X-Received: by 10.180.85.129 with SMTP id h1mr1803140wiz.6.1429800779262; Thu, 23 Apr 2015 07:52:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.169 with SMTP id l9ls364496lah.52.gmail; Thu, 23 Apr 2015 07:52:59 -0700 (PDT) X-Received: by 10.112.119.139 with SMTP id ku11mr2699245lbb.49.1429800779083; Thu, 23 Apr 2015 07:52:59 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id sw10si6117096lbb.158.2015.04.23.07.52.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 07:52:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by laat2 with SMTP id t2so14540593laa.1 for ; Thu, 23 Apr 2015 07:52:59 -0700 (PDT) X-Received: by 10.152.19.199 with SMTP id h7mr2896706lae.32.1429800778936; Thu, 23 Apr 2015 07:52:58 -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.67.65 with SMTP id l1csp622302lbt; Thu, 23 Apr 2015 07:52:58 -0700 (PDT) X-Received: by 10.107.34.80 with SMTP id i77mr4168467ioi.33.1429800777368; Thu, 23 Apr 2015 07:52:57 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id x2si7231563ich.58.2015.04.23.07.52.53 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 23 Apr 2015 07:52:57 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YlIUf-0004Hw-0q; Thu, 23 Apr 2015 14:52:45 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YlIUd-0004Hr-7q for edk2-devel@lists.sourceforge.net; Thu, 23 Apr 2015 14:52:43 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.192.181 as permitted sender) client-ip=209.85.192.181; envelope-from=zhangfei.gao@linaro.org; helo=mail-pd0-f181.google.com; Received: from mail-pd0-f181.google.com ([209.85.192.181]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YlIUX-0007rq-R6 for edk2-devel@lists.sourceforge.net; Thu, 23 Apr 2015 14:52:43 +0000 Received: by pdbqa5 with SMTP id qa5so20443348pdb.1 for ; Thu, 23 Apr 2015 07:52:32 -0700 (PDT) X-Received: by 10.66.162.74 with SMTP id xy10mr2390538pab.55.1429800752216; Thu, 23 Apr 2015 07:52:32 -0700 (PDT) Received: from localhost.localdomain ([180.150.148.224]) by mx.google.com with ESMTPSA id fe3sm6900220pbd.76.2015.04.23.07.52.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Apr 2015 07:52:31 -0700 (PDT) From: Zhangfei Gao To: olivier.martin@arm.com, leif.lindholm@linaro.org Date: Thu, 23 Apr 2015 22:52:02 +0800 Message-Id: <1429800722-25721-3-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429800722-25721-1-git-send-email-zhangfei.gao@linaro.org> References: <1429800722-25721-1-git-send-email-zhangfei.gao@linaro.org> X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1YlIUX-0007rq-R6 Cc: edk2-devel@lists.sourceforge.net Subject: [edk2] [PATCH 2/2] ArmPlatformPkg: ArmVExpressFastBoot add PcdArmFastbootFlashLimit X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org 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.46 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 Adding PcdArmFastbootFlashLimit to split big pacakge accoringly. Otherwise memory may not enough for downloading file like 1G Signed-off-by: Zhangfei Gao --- ArmPlatformPkg/ArmPlatformPkg.dec | 1 + .../ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBoot.c | 4 +++- .../ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatformPkg.dec index 9364bb9..660ea69 100644 --- a/ArmPlatformPkg/ArmPlatformPkg.dec +++ b/ArmPlatformPkg/ArmPlatformPkg.dec @@ -130,6 +130,7 @@ gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L""|VOID*|0x0000000D gArmPlatformTokenSpaceGuid.PcdDefaultBootInitrdPath|L""|VOID*|0x0000000E gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|L""|VOID*|0x000000F + gArmPlatformTokenSpaceGuid.PcdArmFastbootFlashLimit|L""|VOID*|0x0000003E # PcdDefaultBootType define the type of the binary pointed by PcdDefaultBootDevicePath: # - 0 = an EFI application # - 1 = a Linux kernel with ATAG support diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBoot.c b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBoot.c index 4d0811c..d35ddab 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBoot.c +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBoot.c @@ -395,7 +395,9 @@ ArmFastbootPlatformGetVar ( OUT CHAR8 *Value ) { - if (AsciiStrCmp (Name, "product")) { + if (!AsciiStrCmp (Name, "max-download-size")) { + AsciiStrCpy (Value, FixedPcdGetPtr (PcdArmFastbootFlashLimit)); + } else if (AsciiStrCmp (Name, "product")) { AsciiStrCpy (Value, FixedPcdGetPtr (PcdFirmwareVendor)); } else { *Value = '\0'; diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf index 468f5a4..f5bae8a 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf @@ -52,3 +52,4 @@ [Pcd] gArmVExpressTokenSpaceGuid.PcdAndroidFastbootNvmDevicePath gArmPlatformTokenSpaceGuid.PcdFirmwareVendor + gArmPlatformTokenSpaceGuid.PcdArmFastbootFlashLimit