From patchwork Mon Aug 24 17:26:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 510273 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 E7C6A14032C for ; Tue, 25 Aug 2015 05:00:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2D09B4B686; Mon, 24 Aug 2015 21:00:53 +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 4zzBECUIJA9h; Mon, 24 Aug 2015 21:00:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B42224B6CB; Mon, 24 Aug 2015 21:00:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CEB884B681 for ; Mon, 24 Aug 2015 21:00:38 +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 pR8eKfruy8Qj for ; Mon, 24 Aug 2015 21:00:38 +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 mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by theia.denx.de (Postfix) with ESMTPS id 555D94B67F for ; Mon, 24 Aug 2015 21:00:38 +0200 (CEST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id t7OHR5qQ008042 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 24 Aug 2015 10:27:05 -0700 (PDT) Received: from yow-dellw-pg2.corp.ad.wrs.com (128.224.56.7) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.235.1; Mon, 24 Aug 2015 10:27:05 -0700 From: Paul Gortmaker To: Date: Mon, 24 Aug 2015 13:26:52 -0400 Message-ID: <1440437213-49224-5-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1440437213-49224-1-git-send-email-paul.gortmaker@windriver.com> References: <1440437213-49224-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Cc: Tom Rini , Paul Gortmaker Subject: [U-Boot] [PATCH 4/5] sbc8641d: add basic flash setup instructions to README file 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" ...so that I don't have to go work them out from scratch again by peering at the manual. Signed-off-by: Paul Gortmaker --- board/sbc8641d/README | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/board/sbc8641d/README b/board/sbc8641d/README index a051466a11b0..af180888182d 100644 --- a/board/sbc8641d/README +++ b/board/sbc8641d/README @@ -26,3 +26,24 @@ and settings may change with board revisions. -------------------- PCI: The PCI command may hang if no boards are present in either slot. + +4. Reflashing U-Boot +-------------------- +The board has two independent flash devices which can be used for dual +booting, or for u-boot backup and recovery. A two pin jumper on the +three pin JP10 determines which device is attached to /CS0 line. + +Assuming one device has a functional u-boot, and the other device has +a recently installed non-functional image, to perform a recovery from +that non-functional image goes essentially as follows: + +a) power down the board and jumper JP10 to select the functional image. +b) power on the board and let it get to u-boot prompt. +c) while on, using static precautions, move JP10 back to the failed image. +d) use "md fff00000" to confirm you are looking at the failed image +e) turn off write protect with "prot off all" +f) get new image, i.e. "tftp 200000 /somepath/u-boot.bin" +g) erase failed image: "erase FFF00000 FFF3FFFF" +h) copy in new image: "cp.b 200000 FFF00000 40000" +i) ensure new image is written: "md fff00000" +k) power cycle the board and confirm new image works.