From patchwork Fri Sep 18 21:49:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 53948 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 9F7FA218E3 for ; Fri, 18 Sep 2015 21:49:36 +0000 (UTC) Received: by lbbti1 with SMTP id ti1sf21318468lbb.3 for ; Fri, 18 Sep 2015 14:49:35 -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:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=9Vkj7op1nrs2lr3V2ujUWwG2NEftH6v16iYz6TfWRfI=; b=MHlHEe0SCM7sz4LYp6yUiSynfhmwnwzyAfF1WVQxAeB8VdDlqy9wV8iRXS+Kpl0BYN IyX5iTVIER83L2s/TsI2fAeMcHi09g5GE8b7eD50NSZceBx6PfBpWhJH8+AVH7VhtCtH euBg0znsdsSGYvVwQ3uba1dOSO2f6+1XnZIjaLOJSsLd4p1ImMwGgKBqSTm7/buKBr00 VSr+E4Avn6ZF5UjGdjZPZzo+xeG0zGtnwty0AplDKlbD2xy3kJ0jcTPFFUBoakePph/D rumPLaaLis5OZSiFIba/XlbqouZXkcpvBHUVQtXZ/dGtXFJ7oTmIzIYr3OALOzN+gfqr HBqQ== X-Gm-Message-State: ALoCoQn0ndeGCJ7ETkGqjdw8CGj9sewWe4cxUmas3fpWL5BSUTqIGCq0LLIIILeDIr9JgzWrtVaJ X-Received: by 10.152.163.97 with SMTP id yh1mr1283291lab.10.1442612975544; Fri, 18 Sep 2015 14:49:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.39 with SMTP id s7ls255968lae.15.gmail; Fri, 18 Sep 2015 14:49:35 -0700 (PDT) X-Received: by 10.112.54.169 with SMTP id k9mr3868346lbp.95.1442612975412; Fri, 18 Sep 2015 14:49:35 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id f10si7432336lbd.66.2015.09.18.14.49.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2015 14:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lahg1 with SMTP id g1so38446615lah.1 for ; Fri, 18 Sep 2015 14:49:35 -0700 (PDT) X-Received: by 10.112.129.202 with SMTP id ny10mr3973165lbb.112.1442612975272; Fri, 18 Sep 2015 14:49:35 -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.59.35 with SMTP id w3csp534308lbq; Fri, 18 Sep 2015 14:49:34 -0700 (PDT) X-Received: by 10.180.74.52 with SMTP id q20mr407827wiv.94.1442612974647; Fri, 18 Sep 2015 14:49:34 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ta5si198217wic.124.2015.09.18.14.49.34; Fri, 18 Sep 2015 14:49:34 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9FBC5A7466; Fri, 18 Sep 2015 23:49:32 +0200 (CEST) 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 GLLFI7Wumd7E; Fri, 18 Sep 2015 23:49:32 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BD4E04B974; Fri, 18 Sep 2015 23:49:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 45894A7436 for ; Fri, 18 Sep 2015 23:49:21 +0200 (CEST) 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 Lz0P7NiD_McO for ; Fri, 18 Sep 2015 23:49:21 +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 bhuna.collabora.co.uk (bhuna.collabora.co.uk [93.93.135.160]) by theia.denx.de (Postfix) with ESMTPS id 0C11A4B96D for ; Fri, 18 Sep 2015 23:49:16 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sjoerd) with ESMTPSA id 874443C88823 Received: by dusk.luon.net (Postfix, from userid 1000) id 10DE02310E; Fri, 18 Sep 2015 23:49:13 +0200 (CEST) From: Sjoerd Simons To: Simon Glass Date: Fri, 18 Sep 2015 23:49:12 +0200 Message-Id: <1442612952-21498-3-git-send-email-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1442612952-21498-1-git-send-email-sjoerd.simons@collabora.co.uk> References: <1442612952-21498-1-git-send-email-sjoerd.simons@collabora.co.uk> Cc: Tom Rini , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/2] rockchip: firefly: Save the environment on SD card X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sjoerd.simons@collabora.co.uk X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mailfrom=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 Save the environment on the SD card for Firefly in the empty space between the SPL and the u-boot image. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- include/configs/chromebook_jerry.h | 1 + include/configs/firefly-rk3288.h | 8 ++++++++ include/configs/rk3288_common.h | 1 - 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/configs/chromebook_jerry.h b/include/configs/chromebook_jerry.h index a22b123..058325c 100644 --- a/include/configs/chromebook_jerry.h +++ b/include/configs/chromebook_jerry.h @@ -9,6 +9,7 @@ #include +#define CONFIG_ENV_IS_NOWHERE #define CONFIG_SPL_SPI_SUPPORT #define CONFIG_SPL_SPI_FLASH_SUPPORT #define CONFIG_SPL_SPI_LOAD diff --git a/include/configs/firefly-rk3288.h b/include/configs/firefly-rk3288.h index a82adc8..4c5c4dd 100644 --- a/include/configs/firefly-rk3288.h +++ b/include/configs/firefly-rk3288.h @@ -11,4 +11,12 @@ #define CONFIG_SPL_MMC_SUPPORT +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 0 +/* SPL @ 32k for ~36k + * ENV @ 96k + * u-boot @ 128K + */ +#define CONFIG_ENV_OFFSET (96 * 1024) + #endif diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index 400e72c..5b1653e 100644 --- a/include/configs/rk3288_common.h +++ b/include/configs/rk3288_common.h @@ -11,7 +11,6 @@ #define CONFIG_SYS_NO_FLASH #define CONFIG_NR_DRAM_BANKS 1 -#define CONFIG_ENV_IS_NOWHERE #define CONFIG_ENV_SIZE 0x2000 #define CONFIG_SYS_GENERIC_BOARD #define CONFIG_SYS_MAXARGS 16