From patchwork Mon Feb 16 12:14:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 440122 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9AB29140213 for ; Tue, 17 Feb 2015 00:44:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 396614B849; Mon, 16 Feb 2015 14:44:15 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VWTqLlZWxnRZ; Mon, 16 Feb 2015 14:44:15 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6E0DAA7420; Mon, 16 Feb 2015 14:43:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 663EC4B666 for ; Mon, 16 Feb 2015 13:23:48 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x6WZ26oItHMs for ; Mon, 16 Feb 2015 13:23:48 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) by theia.denx.de (Postfix) with ESMTPS id E610B4B660 for ; Mon, 16 Feb 2015 13:23:45 +0100 (CET) Received: from localhost.localdomain (46-140-72-82.static.cablecom.ch [46.140.72.82]) by mrelay.perfora.net (node=mreueus001) with ESMTP (Nemesis) id 0MRVnS-1Xz5dA1HPU-00Sj7e; Mon, 16 Feb 2015 13:18:10 +0100 From: Marcel Ziswiler To: u-boot@lists.denx.de Date: Mon, 16 Feb 2015 13:14:46 +0100 Message-Id: <5dea6cb306fa1aacfa4f7d2be4f9da8a865d7426.1424087838.git.marcel@ziswiler.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: References: X-Provags-ID: V02:K0:IzSm1KfIxBE76nrGOQEHxy4inoLHXveB4xNso9AzbHC NLtc20rQVt4gY1OtseftZMWsSBqogjKU3OzSmPnsv7gEouilnL V76FcDFhyEagAEQ05hUBUgchbep0mWJxTVC6XhLhGfV5AOGqa3 bYJHN0SDmYrp0aXSJ9gDOHJiOFbNsEEkXLmCNiVaJmVdc4LyqY fHTwitdZKKul+MOFH2CzhXqfkhbPmFi9kF2p4ZU4uVvvZQJhiQ KRl+WJP2Ym3JWAWlxHx0CkjaRkFhBrf2sGfCaLAByzPFJapY4c zw8Dsj8lPlpYsUyXOnT6LfbCLU9SQPtlIjgp4U8V9Xy2zWF/Es ayYS6RafasuhouLemuysIUjK5yIap5Nmwt5TMiG9uDx8sn7djO R70G9uJJC3o7yTG2dETFAiveVeLJ2xc/FXvcQe8V3IkCwZMmWA ZIcxtNwRy9a3nI1Cl3EraEevRLQ== X-UI-Out-Filterresults: notjunk:1; X-Mailman-Approved-At: Mon, 16 Feb 2015 14:43:19 +0100 Cc: "Kang , Marcel Ziswiler Subject: [U-Boot] [PATCH 08/12] pxa: colibri_pxa270: avoid overwriting factory configuration block X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Specify a CONFIG_BOARD_SIZE_LIMIT of 256 KB in order to avoid overwriting the factory configuration block located at offset 0x40000 in NOR flash. Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/configs/colibri_pxa270.h b/include/configs/colibri_pxa270.h index c2714f7..1b1816a 100644 --- a/include/configs/colibri_pxa270.h +++ b/include/configs/colibri_pxa270.h @@ -7,8 +7,8 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#ifndef __CONFIG_H -#define __CONFIG_H +#ifndef __CONFIG_H +#define __CONFIG_H /* * High Level Board Configuration Options @@ -16,6 +16,8 @@ #define CONFIG_CPU_PXA27X 1 /* Marvell PXA270 CPU */ #define CONFIG_SYS_GENERIC_BOARD #define CONFIG_SYS_TEXT_BASE 0x0 +/* Avoid overwriting factory configuration block */ +#define CONFIG_BOARD_SIZE_LIMIT 0x40000 /* * Environment settings @@ -100,7 +102,6 @@ #define CONFIG_CMDLINE_EDITING 1 #define CONFIG_AUTO_COMPLETE 1 - /* * Clock Configuration */ @@ -150,10 +151,11 @@ #endif #define CONFIG_SYS_MONITOR_BASE 0x0 -#define CONFIG_SYS_MONITOR_LEN 0x80000 +#define CONFIG_SYS_MONITOR_LEN 0x40000 +/* Skip factory configuration block */ #define CONFIG_ENV_ADDR \ - (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) + (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN + 0x40000) #define CONFIG_ENV_SIZE 0x40000 #define CONFIG_ENV_SECT_SIZE 0x40000 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE) @@ -219,4 +221,4 @@ #include "pxa-common.h" -#endif /* __CONFIG_H */ +#endif /* __CONFIG_H */