From patchwork Sat Aug 27 19:39:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandy Patterson X-Patchwork-Id: 663319 X-Patchwork-Delegate: sjg@chromium.org 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 3sM7Y51SN0z9sBg for ; Sun, 28 Aug 2016 05:40:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sightlogix-com.20150623.gappssmtp.com header.i=@sightlogix-com.20150623.gappssmtp.com header.b=YHmIE+Eg; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 394A14B656; Sat, 27 Aug 2016 21:40:07 +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 jir0BslkKGF3; Sat, 27 Aug 2016 21:40:07 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A71E74B98B; Sat, 27 Aug 2016 21:40:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DD5E84B71E for ; Sat, 27 Aug 2016 21:40:02 +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 IqCgs1grPpBb for ; Sat, 27 Aug 2016 21:40:02 +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 mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by theia.denx.de (Postfix) with ESMTPS id 0715E4BDBD for ; Sat, 27 Aug 2016 21:39:55 +0200 (CEST) Received: by mail-qk0-f172.google.com with SMTP id v123so106232252qkh.2 for ; Sat, 27 Aug 2016 12:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sightlogix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=onZudJu0bZFcAHvpJPtuStkPALgebmrIcSFwXkVUD/k=; b=YHmIE+EgEDPFahgLAoysCkjMB5QkYRW7TajHJNh8ZWcL8Z+P9DWLUWvC6SDcSNCfUh g+96+E7OuC+JS+wiZ/ZCIaubofQ60qpSC46Wn7rqwlTw6sWIgYFhs6hYqcZCODK4yx+F cFKRoWp/5WaLUj365QM1260VHIROy+K3XHUbkNIBZ3rpWfhIYbKP0uyLi77Iq50vLSde Ol94dRtEQTOp94teehEXhoEstInaH+eOFGdToXfiV7LcbiI+SoDqgdsXu7/Bg4JJYkGn 7sb+LPnLJsNuxqjsVJNkxndms9pjjnML3cTLQwye9cEcsQo16AOZRI+mPxdyVpKPLr/w oAsQ== 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=onZudJu0bZFcAHvpJPtuStkPALgebmrIcSFwXkVUD/k=; b=HCb1R0CQmO8H5FNd71RhN0CfIg6Qyp1jQmmFWDLukC0aXvjq/yYEW/uxrUVkzSRpAp Kz7uwAzXqgaILfdJsFypdbPKlfjlF0cZvPTIxgcKC4a9S4lC2IXcVpOnRTLo1Sqta1y1 MuMadZvKTM3lMlXJINKIXxlV6iVLcPWonS3oaxdiKKdY0qhK/Hpm4Z5016hN9UmLY/fb goXFl7sq/o8jFl/aAKyYXO99TVf3RWPdv4Pr2qoz9BcihDo3xji5EfnfB50/zuSPKTE9 j+lC/4rOhiJXMvnf1knU73WhbWWW+VEOQkL7YPJWN80hqHd0kD/optL8f5vlOg8An6rG lCVg== X-Gm-Message-State: AE9vXwNXNQsTYHtWUwT53ooAFxtXmfV8VYswidnL33c4fmafdCbL9MJdOoK312Q8kVQNXKlM X-Received: by 10.55.161.87 with SMTP id k84mr6910955qke.11.1472326794699; Sat, 27 Aug 2016 12:39:54 -0700 (PDT) Received: from localhost.localdomain (c-68-82-176-144.hsd1.pa.comcast.net. [68.82.176.144]) by smtp.gmail.com with ESMTPSA id w16sm13775534qta.10.2016.08.27.12.39.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Aug 2016 12:39:54 -0700 (PDT) From: Sandy Patterson To: Ziyuan Xu , Simon Glass Date: Sat, 27 Aug 2016 15:39:09 -0400 Message-Id: <1472326749-11241-3-git-send-email-apatterson@sightlogix.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472326749-11241-1-git-send-email-apatterson@sightlogix.com> References: <1472326749-11241-1-git-send-email-apatterson@sightlogix.com> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 2/2] Enable ROCKCHIP_SPL_BACK_TO_BROM for rock2 board 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" Rock2 has been tested with back to brom feature. The tricky part is that with this feature the default environment is inside u-boot, and it's defined for every rk3288 board independetly. So I just changed it for rock2 here. Solve by moving environment after u-boot before 1M boundary Signed-off-by: Sandy Patterson --- Changes in v2: None include/configs/rock2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/configs/rock2.h b/include/configs/rock2.h index ee924c3..946367f 100644 --- a/include/configs/rock2.h +++ b/include/configs/rock2.h @@ -16,11 +16,11 @@ #define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 0 -/* SPL @ 32k for ~36k - * ENV @ 96k - * u-boot @ 128K +/* SPL @ 32k for 34k + * u-boot directly after @ 68k for 400k or so + * ENV @ 992k */ -#define CONFIG_ENV_OFFSET (96 * 1024) +#define CONFIG_ENV_OFFSET ((1024-32) * 1024) #define CONFIG_SYS_WHITE_ON_BLACK #define CONFIG_CONSOLE_SCROLL_LINES 10