From patchwork Thu Jul 18 19:13:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 260126 X-Patchwork-Delegate: trini@ti.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 651AC2C0090 for ; Fri, 19 Jul 2013 05:15:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1B5414A048; Thu, 18 Jul 2013 21:15:06 +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 efg6JG0zFtw1; Thu, 18 Jul 2013 21:15:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CF1704A0B8; Thu, 18 Jul 2013 21:14:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BA884A051 for ; Thu, 18 Jul 2013 21:13:45 +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 O0d7+A6Ls2oe for ; Thu, 18 Jul 2013 21:13:40 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-gh0-f176.google.com (mail-gh0-f176.google.com [209.85.160.176]) by theia.denx.de (Postfix) with ESMTPS id 2E88E4A01C for ; Thu, 18 Jul 2013 21:13:19 +0200 (CEST) Received: by mail-gh0-f176.google.com with SMTP id z17so1041868ghb.21 for ; Thu, 18 Jul 2013 12:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=bBBVgDJT/UdwGvCeYYIIRwmrGFsp1FZSaAyht+vXHe0=; b=ylvc8nztDbyExKITxv167+sBL2BDxQUZBBZXLWIoQJCNvI6fAjbseqkvv4CN028eiK oTQ5qO14o0YunVsWRKnsjOjkfe93casM8UmJeQj08779uIXpgOL4XPuQiwfwLfRf6Tzn pNrstZH5kObl0O/dVJknKYggYzIpFaNOzyXqZedoZyWSdKUmiRbM0JPFYjBv06eRLtdf Byl2oIrciYaTzSW+t7N7ArqDlatMJkNAM6bJdpb+uCOf7l0X4NZlF7h9JKfsIIX3DhKm PYs4EnFQF0FEoBUkzYVgjwIpSaEnppgc9IvHptr0My3EEuIdWYaz03W9ka9rn5gsW7w2 kSjg== X-Received: by 10.236.14.37 with SMTP id c25mr6826649yhc.122.1374174798187; Thu, 18 Jul 2013 12:13:18 -0700 (PDT) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPSA id x52sm16501164yhh.18.2013.07.18.12.13.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jul 2013 12:13:17 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Thu, 18 Jul 2013 15:13:05 -0400 Message-Id: <1374174785-27578-9-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1374174785-27578-1-git-send-email-trini@ti.com> References: <1374174785-27578-1-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH v4 8/8] board/ti/am335x/README: Document NOR programming X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The Beaglebone White may be populated with a memory cape that has a NOR module. Document how to program it. Signed-off-by: Tom Rini --- board/ti/am335x/README | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/board/ti/am335x/README b/board/ti/am335x/README index 6d45352..67b5246 100644 --- a/board/ti/am335x/README +++ b/board/ti/am335x/README @@ -38,6 +38,29 @@ U-Boot # nand write 81000000 0 260000 U-Boot # load mmc 0 ${loadaddr} uImage U-Boot # nand write ${loadaddr} kernel 500000 +NOR +=== + +The Beaglebone White can be equiped with a "memory cape" that in turn can +have a NOR module plugged into it. In this case it is then possible to +program and boot from NOR. Note that due to how U-Boot is architectured we +must build a specific version of U-Boot that knows we have NOR flash. This +build is named 'am335x_evm_nor'. Further, we have a 'am335x_evm_norboot' +build that will assume that the environment is on NOR rather than NAND. In +the following example we assume that and SD card has been populated with +MLO and u-boot.img from a 'am335x_evm_nor' build and also contains the +'u-boot.bin' from a 'am335x_evm_norboot' build. When booting from NOR, a +binary must be written to the start of NOR, with no header or similar +prepended. In the following example we use a size of 512KiB (0x80000) +as that is how much space we set aside before the environment, as per +the config file. + +U-Boot # mmc rescan +U-Boot # load mmc 0 ${loadaddr} u-boot.bin +U-Boot # protect off 08000000 +80000 +U-Boot # erase 08000000 +80000 +U-Boot # cp.b ${loadaddr} 08000000 ${filesize} + Falcon Mode ===========