From patchwork Tue Sep 23 15:44:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 37740 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5EDF120970 for ; Tue, 23 Sep 2014 15:44:57 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k14sf898627wgh.7 for ; Tue, 23 Sep 2014 08:44:56 -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:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=t4a2wXmvPZcaqZvHL66FPdR9XC4by1m1QMKs81GZ+gQ=; b=jWOH8XDZy+nUv0GqQ3hV4pYnEx4ra8Q6JTz/qloxEJtkkumzOE3IpdgLL9l3vaSzck miK/Z6mdosL3pzI11+OPIEdjdSZyCE7RJwoHQbJklvk8mcwKwTnCYRJwYuznKwdPmqUY QCFmkCQKBC9BTPE/e8E3t/sGVogJF37htbGBdDBqBjmd1GKJL5QhrGyVJdLOX2n1j1h5 Xk9jvxx34jXbaKzO601eyHobpFS3RfKq072k6wBCFMGvlM6Wuq2iXmNxvrpclEK96DqJ krE9qOfBHaKCvP5aDowVq/OKMdDKTObvIeFZk3bgv7iHieOi+4PnZnqSNH3Tu4EIja4a KNMg== X-Gm-Message-State: ALoCoQkKUovAQBj4joWotNpWdLli1kpdnLJLOKa7nGsFk5o/FQud/S6DMnz05+gdfIweOvrrfJNK X-Received: by 10.112.131.33 with SMTP id oj1mr81446lbb.7.1411487096527; Tue, 23 Sep 2014 08:44:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.197 with SMTP id l5ls55223laa.58.gmail; Tue, 23 Sep 2014 08:44:56 -0700 (PDT) X-Received: by 10.112.155.230 with SMTP id vz6mr217941lbb.99.1411487096390; Tue, 23 Sep 2014 08:44:56 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx.google.com with ESMTPS id ul7si19268417lbb.8.2014.09.23.08.44.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 08:44:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id l4so8867963lbv.5 for ; Tue, 23 Sep 2014 08:44:56 -0700 (PDT) X-Received: by 10.112.53.230 with SMTP id e6mr418367lbp.100.1411487096259; Tue, 23 Sep 2014 08:44:56 -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.130.169 with SMTP id of9csp437070lbb; Tue, 23 Sep 2014 08:44:55 -0700 (PDT) X-Received: by 10.181.27.197 with SMTP id ji5mr24385853wid.54.1411487094714; Tue, 23 Sep 2014 08:44:54 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id pz9si15569091wjc.69.2014.09.23.08.44.53 for ; Tue, 23 Sep 2014 08:44:54 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 34B10A744C; Tue, 23 Sep 2014 17:44:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 v7GWFrJwompb; Tue, 23 Sep 2014 17:44:52 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 864A4A7436; Tue, 23 Sep 2014 17:44:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C659CA73E2 for ; Tue, 23 Sep 2014 17:44:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 Ur+Wcjt2Dh2M for ; Tue, 23 Sep 2014 17:44:32 +0200 (CEST) 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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 31ACEA73EA for ; Tue, 23 Sep 2014 17:44:28 +0200 (CEST) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s8NFiP7m017362 for ; Tue, 23 Sep 2014 10:44:25 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8NFiPR4025055 for ; Tue, 23 Sep 2014 10:44:25 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Tue, 23 Sep 2014 10:44:25 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8NFiOeL012622; Tue, 23 Sep 2014 10:44:25 -0500 From: Felipe Balbi To: Tom Rini Date: Tue, 23 Sep 2014 10:44:18 -0500 Message-ID: <1411487058-29135-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.1.273.g97b8860 In-Reply-To: <1411487058-29135-1-git-send-email-balbi@ti.com> References: <1411487058-29135-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Cc: U-Boot Mailing List Subject: [U-Boot] [PATCH 2/2] arm: am43xx: switch over to CONFIG_ENV_IS_IN_FAT X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 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 By using CONFIG_ENV_IS_IN_FAT it's far easier to have a private, minimal environment for e.g. booting off of network or mounting rootfs on NFS without having to modify the configuration header. Signed-off-by: Felipe Balbi --- include/configs/am43xx_evm.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index 0707827..4472c3e 100644 --- a/include/configs/am43xx_evm.h +++ b/include/configs/am43xx_evm.h @@ -11,6 +11,9 @@ #define CONFIG_AM43XX +#define CONFIG_CMD_FAT +#define CONFIG_CMD_SAVEENV + #define CONFIG_BOARD_LATE_INIT #define CONFIG_ARCH_CPU_INIT #define CONFIG_SYS_CACHELINE_SIZE 32 @@ -82,7 +85,11 @@ /* NS16550 Configuration */ #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */ -#define CONFIG_ENV_IS_NOWHERE +#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" +#define CONFIG_FAT_WRITE #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" @@ -103,7 +110,7 @@ #ifdef CONFIG_QSPI_BOOT #define CONFIG_SYS_TEXT_BASE 0x30000000 -#undef CONFIG_ENV_IS_NOWHERE +#undef CONFIG_ENV_IS_IN_FAT #define CONFIG_ENV_IS_IN_SPI_FLASH #define CONFIG_SYS_REDUNDAND_ENVIRONMENT #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED