From patchwork Wed Nov 8 23:12:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Bajjuri, Praneeth" X-Patchwork-Id: 118343 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5884435qgn; Wed, 8 Nov 2017 15:13:16 -0800 (PST) X-Google-Smtp-Source: ABhQp+QQtLVTk/E46VJovq8OYEB2GPlVa82uucAmzFnaW9/fnQ97jajWwVVDRN1aiyKFdFCl8QkF X-Received: by 10.80.222.130 with SMTP id c2mr2649814edl.218.1510182796754; Wed, 08 Nov 2017 15:13:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510182796; cv=none; d=google.com; s=arc-20160816; b=qEPDoH1kJXnMhawAyj6SyiTmUU0uHq87iQ2Rh0az1LzmssLoeN8O0tkL+XXI50sjuS cNWWxhcF6XU105sSa/mC2toH5VC8GaChC5UH1YIbpeWCiwPjYjaArLNSE3ooqp/HGdXz 6jjHVp1s6ZO4dIGe7GHo7paONvwLnLlMx/OU7QG5hHTTFiJ2UbOxfpJbNjPB5hZs81UA O6J+tJ0Q8WDGGWPQ2UKr6saGl9OaF9iY6TL9pLPTmtUfmfMzTGSWV3VEvEcyU0gm3wYB 2WUVC9LQZcVPAYXfeVKP6UXIjOWHFb0iN4lhLY8vAPnBfeOZzXcXwQTfcCwL/yuGYzJ1 8bbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=akYYWqQtCMTRbZqPkHNQBJHNHICLexmT3IOxnb5ba14=; b=DKl/76s2NHnbLytE4Cv2s/U+QmOuL25T3l0MDbFNM/H7iJ86tqWTpcOxP15QQndVVO uPR6TQIc7Ju2KAU8kkfjat7JAcOXbo6azLtJlaBT5SUDPUmySwAd8gPf0a0WArbiXyN6 ZZ979IgvbE+mKkGId0ft6pdZZ5lRLJ20Hd+VHw607ryTcB4hz6sNNTePtXwnx3nEzqoA dKUg8uQl9SknSLnVG19gClHRQuQL0QsjGVje13AplUuYL9/uP1achIwRjbvbtvQwV5k1 wJ3EjvjgyvIRhzhM4+7ZNV0RqYOIw1KX7LdpwZsXfvaepcTrdgsCnsBmEmd6M2Mnxl0P wcAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=GTg19QRW; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 5si247867edp.431.2017.11.08.15.13.16; Wed, 08 Nov 2017 15:13:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=GTg19QRW; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id D559FC21DBB; Wed, 8 Nov 2017 23:13:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BBD0CC21C4C; Wed, 8 Nov 2017 23:13:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DD677C21C4C; Wed, 8 Nov 2017 23:13:10 +0000 (UTC) Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by lists.denx.de (Postfix) with ESMTPS id 34996C21C35 for ; Wed, 8 Nov 2017 23:13:10 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id vA8ND7C9031665; Wed, 8 Nov 2017 17:13:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1510182787; bh=rQSznaDAno1TIpnGVtLzO62gezJf1Xrti9k5nRxTe+4=; h=From:To:CC:Subject:Date; b=GTg19QRW7qjzK+qXj39iN1RtJabTP+w3+hI5mTw8w/OTFUUlxBzv1jOfkPgLJz3rk qmkfKVvXFVgvk0RG9cT3lCuq+UByTG7t26E369aRJ3mjV/VVFm7fK05VDPMboMguqd BJLvkYcWfS1O9WHlWlRbzSocllLf0eaC2CWMwHfs= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vA8ND7Np021106; Wed, 8 Nov 2017 17:13:07 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 8 Nov 2017 17:13:07 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Wed, 8 Nov 2017 17:13:07 -0600 Received: from droidlinux (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vA8ND7mZ028438; Wed, 8 Nov 2017 17:13:07 -0600 Received: from praneeth by droidlinux with local (Exim 4.82) (envelope-from ) id 1eCZWt-0000p0-3A; Wed, 08 Nov 2017 17:13:07 -0600 From: Praneeth Bajjuri To: Praneeth Bajjuri , Date: Wed, 8 Nov 2017 17:12:56 -0600 Message-ID: <1510182776-3116-1-git-send-email-praneeth@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Tom Rini Subject: [U-Boot] [PATCH] dra7x: fastboot: Increase recovery partition size X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" As per current android recommendation https://source.android.com/devices/architecture/kernel/modular-kernels 1. Android recovery mode should contain both SOC and ODM kernel modules in the recovery partition. 2. If a kernel module is required both in recovery and normal boot mode, the module has to be located in recovery and vendor partition seperately. 3. Kernel modules used in recovery mode should be independent of vendor and odm partition 4. Recovery image should contain atleast storage, display, keypad, battery and pmic modules. Due to these requirements, recovery image size has increased to >10MB. This patch is to increase recovery partition size for TI devices so that we dont see such flashing error log: sending 'recovery' (12560 KB)... OKAY [ 0.436s] writing 'recovery'... FAILED (remote: too large for partition) finished. total time: 0.458s Signed-off-by: Praneeth Bajjuri Reviewed-by: Sam Protsenko --- include/configs/am57xx_evm.h | 2 +- include/configs/dra7xx_evm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index ebb0474..dc05bea 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -56,7 +56,7 @@ "name=reserved,size=256K,uuid=${uuid_gpt_reserved};" \ "name=efs,size=16M,uuid=${uuid_gpt_efs};" \ "name=crypto,size=16K,uuid=${uuid_gpt_crypto};" \ - "name=recovery,size=10M,uuid=${uuid_gpt_recovery};" \ + "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \ "name=boot,size=10M,uuid=${uuid_gpt_boot};" \ "name=system,size=768M,uuid=${uuid_gpt_system};" \ "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \ diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index 34a4555..f84c1f0 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -63,7 +63,7 @@ "name=reserved,size=256K,uuid=${uuid_gpt_reserved};" \ "name=efs,size=16M,uuid=${uuid_gpt_efs};" \ "name=crypto,size=16K,uuid=${uuid_gpt_crypto};" \ - "name=recovery,size=10M,uuid=${uuid_gpt_recovery};" \ + "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \ "name=boot,size=10M,uuid=${uuid_gpt_boot};" \ "name=system,size=768M,uuid=${uuid_gpt_system};" \ "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \