From patchwork Mon Mar 16 19:53:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 450727 X-Patchwork-Delegate: yorksun@freescale.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 CC9C714009B for ; Tue, 17 Mar 2015 06:53:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D4D75A7425; Mon, 16 Mar 2015 20:53:24 +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 S9X2-DPsXfMP; Mon, 16 Mar 2015 20:53:24 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 094DC4B62B; Mon, 16 Mar 2015 20:53:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C7B7A4B62B for ; Mon, 16 Mar 2015 20:53:21 +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 w2TDTNmfPmdL for ; Mon, 16 Mar 2015 20:53:21 +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 mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by theia.denx.de (Postfix) with ESMTPS id 3E34E4B628 for ; Mon, 16 Mar 2015 20:53:17 +0100 (CET) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id t2GJrBma023915 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 16 Mar 2015 12:53:12 -0700 (PDT) Received: from yow-lpgnfs-02.corp.ad.wrs.com (128.224.149.8) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.224.2; Mon, 16 Mar 2015 12:53:11 -0700 From: Paul Gortmaker To: York Sun Date: Mon, 16 Mar 2015 15:53:05 -0400 Message-ID: <1426535585-761-1-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.2.1 In-Reply-To: <550722CD.20009@freescale.com> References: <550722CD.20009@freescale.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Paul Gortmaker Subject: [U-Boot] [PATCH v2] sbc8548: document how to write main flash from alternate flash 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" If you are running on the alternate flash in order to fix a corrupted main flash image, it might be good to have the steps for that documented as well. Also delete any protect commands from non-active flash banks; they are only required for the instances where you are writing to the currently in use flash image. Signed-off-by: Paul Gortmaker --- [v2: drop protect commands from instances where we flash the non active flash bank ; it wasn't protected anyway.] board/sbc8548/README | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/board/sbc8548/README b/board/sbc8548/README index feac5e3e63e5..92731645f266 100644 --- a/board/sbc8548/README +++ b/board/sbc8548/README @@ -132,11 +132,19 @@ image in the SODIMM that is built with CONFIG_SYS_ALT_BOOT enabled, tftp u-boot.bin md 200000 10 - protect off all era eff00000 efffffff cp.b 200000 eff00000 100000 md eff00000 10 - protect on all + +If you are running the alternate 64MB /CS0 settings and want to update +the "normal" default 8MB u-boot image, then (built with CONFIG_SYS_ALT_BOOT +disabled) the steps will become: + + tftp u-boot.bin + md 200000 10 + erase effa0000 efffffff + cp.b 200000 effa0000 60000 + md effa0000 10 Finally, if you are running the alternate 64MB /CS0 settings and want to update the in-use u-boot image, then (again with CONFIG_SYS_ALT_BOOT