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: Praneeth Bajjuri X-Patchwork-Id: 836049 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="GTg19QRW"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yXMXx6TN2z9rvt for ; Thu, 9 Nov 2017 10:13:20 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id DBDD3C21DBB; Wed, 8 Nov 2017 23:13:15 +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};" \