From patchwork Tue Mar 8 11:42:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 63677 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1975316lbc; Tue, 8 Mar 2016 03:43:54 -0800 (PST) X-Received: by 10.194.201.166 with SMTP id kb6mr28653224wjc.125.1457437434516; Tue, 08 Mar 2016 03:43:54 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id z132si20430765wme.3.2016.03.08.03.43.54; Tue, 08 Mar 2016 03:43:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 550C2A76F8; Tue, 8 Mar 2016 12:43:27 +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 VqUMWwyPLUas; Tue, 8 Mar 2016 12:43:27 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7EDA7A7726; Tue, 8 Mar 2016 12:43:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E4AE1A770D for ; Tue, 8 Mar 2016 12:43:20 +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 7VaWffvfrgEI for ; Tue, 8 Mar 2016 12:43:20 +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 mail-pf0-f171.google.com (mail-pf0-f171.google.com [209.85.192.171]) by theia.denx.de (Postfix) with ESMTPS id AD1EDA76FA for ; Tue, 8 Mar 2016 12:43:11 +0100 (CET) Received: by mail-pf0-f171.google.com with SMTP id 129so11298348pfw.1 for ; Tue, 08 Mar 2016 03:43:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DPMfc/uTDSYV7SDG4sVR1GaYU7wjwDNYs+ZFSdR3zxo=; b=CjFUpDWodM71atO9bFYveyH/JgLVhOlkO4soInAmIoUIK++01sviaCGT6m966Qe2Po v1dlgWRVwwvCBQBz35ph5B/PV+aqFjEyNHMNyDnVYxHqHQNdMW0TYi6T/BSmtoZJjX3L nzlua13O+NZV9L7v7naKQeXw5yB4bLND2OCaw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DPMfc/uTDSYV7SDG4sVR1GaYU7wjwDNYs+ZFSdR3zxo=; b=M4wx/hbpR89fZmnXlRvVqCYRomRGVFVEc+QSa/y3d2kMVvM2F6yXR5kz97xu8iuVQA h/AWJLKzYLnWcI/uwCM4Fil9hg8Lwvx0s4DhOzSIVzVTVxeqeRWwvSfDMXC2ut1bOzYl P2qHwbwaxcDhKQLSMd475azuyMOEtoICXXDUsj3oif7ukz1Sc4Mngsiatr7Llir/9wK/ 8GP1kHvLolEE3POtHSXwacdiIU47FJogDxNc81FF5SmZMrPmzFAJFBUuL5bcvDeiplSM DMcKAGRbjDS5w0UrVXswGKvMdOe7vSbDz+t/N9JyfIFaKRK7eB1Y/lcoXzzSkerfhWiI 4/Kw== X-Gm-Message-State: AD7BkJJ3S/hcU/KEfi0isyJ6gXTQkCcOCmSlHqvfSG9OX7exjfpzSGdPTQvoINiNJq75kING X-Received: by 10.98.16.198 with SMTP id 67mr41211514pfq.21.1457437390021; Tue, 08 Mar 2016 03:43:10 -0800 (PST) Received: from localhost (110-170-137-3.static.asianet.co.th. [110.170.137.3]) by smtp.gmail.com with ESMTPSA id c18sm4471183pfj.41.2016.03.08.03.43.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Mar 2016 03:43:09 -0800 (PST) From: Semen Protsenko To: u-boot@lists.denx.de Date: Tue, 8 Mar 2016 18:42:28 +0700 Message-Id: <1457437348-31327-7-git-send-email-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457437348-31327-1-git-send-email-semen.protsenko@linaro.org> References: <1457437348-31327-1-git-send-email-semen.protsenko@linaro.org> Cc: Praneeth Bajjuri , Tom Rini , Felipe Balbi Subject: [U-Boot] [PATCH 6/6] arm: am57xx: Keep environment in eMMC 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" From: Sam Protsenko Use eMMC (instead of SD card) to store U-Boot environment. Signed-off-by: Sam Protsenko --- include/configs/am57xx_evm.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) -- 2.7.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index 1ab9498..f467f46 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -22,11 +22,13 @@ #define CONFIG_NR_DRAM_BANKS 2 -#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc" -#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */ +#define CONFIG_ENV_SIZE (128 << 10) +#define CONFIG_ENV_OFFSET 0xE0000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT #define CONSOLEDEV "ttyO2" #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */