From patchwork Mon Aug 20 16:45:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 178890 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 ADAF82C00A2 for ; Tue, 21 Aug 2012 02:49:24 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AA2E9285DB; Mon, 20 Aug 2012 18:49:00 +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 f8LySuqkXmmk; Mon, 20 Aug 2012 18:49:00 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F31C28562; Mon, 20 Aug 2012 18:47:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32FD82842C for ; Mon, 20 Aug 2012 18:47:12 +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 isY6dt9kCPpw for ; Mon, 20 Aug 2012 18:47:10 +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-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id AE6D428532 for ; Mon, 20 Aug 2012 18:46:18 +0200 (CEST) Received: by mail-pb0-f44.google.com with SMTP id rr4so8956257pbb.3 for ; Mon, 20 Aug 2012 09:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=+ka3gstQNTL/rer62+FHLjfgY7njNyVituupILfpKuY=; b=NiIC+cMULLw1G4vaK0B+mqMfT7JPQD9J7SKl8WxekWk+T4MKMG8oFpq9Ik1v03lER4 mqQFQvTTWutMVXkgtt+h+XOhsTfWuqo7R2KuTRm0fIpjLTCiO2OPj4UJ6vyjNanKcvn9 pxCL4Qup2bxqMcjmY04k6PC4nY8UDk8amRF6Dmd1D0WBCVnbmVOl1NCEeGXF82EZDl/Q dFbMuLQ2rV9a+bEzBt3qb3F6X7yL2ZRdoPQDHHzB2cTVV1LJwTqG+83Cdv1Hdw/fqPc0 LCdNdZ6fZmQwYENCDcmM42TKs2nxF1HgoksvJIp9B8v1K7Y51KhK14rrxwwS8vhYKRN6 R2ug== Received: by 10.66.81.232 with SMTP id d8mr30837524pay.66.1345481178091; Mon, 20 Aug 2012 09:46:18 -0700 (PDT) Received: from localhost.localdomain (ip68-230-54-74.ph.ph.cox.net. [68.230.54.74]) by mx.google.com with ESMTPS id qn3sm11423096pbc.6.2012.08.20.09.46.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 09:46:17 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 20 Aug 2012 09:45:51 -0700 Message-Id: <1345481154-7050-17-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345481154-7050-1-git-send-email-trini@ti.com> References: <1345481154-7050-1-git-send-email-trini@ti.com> Cc: Sudhakar Rajashekhara , Christian Riesch Subject: [U-Boot] [PATCH v2 16/18] da850_am18xxevm: Add README.da850_am18xxevm 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 Add a board-specific README that documents how to write u-boot.ais to the SPI found on this board. Changes-series: 2 - Add Signed-off-by: Tom Rini --- board/davinci/da8xxevm/README.da850_am18xxevm | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm new file mode 100644 index 0000000..382b718 --- /dev/null +++ b/board/davinci/da8xxevm/README.da850_am18xxevm @@ -0,0 +1,53 @@ +Summary +======= +The README is for the boot procedure used for the LogicPD AM1808 EVM. + +The board is booted in three stages. The initial bootloader which executes +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The +RBL initialises the memory and the SPI controller and reads the AIS image +starting at block 0. This image can contain both the SPL and U-Boot +binaries. + +AIS is an image format defined by TI for the images that are to be +loaded to memory by the RBL. The image is divided into a series of +sections and the image's entry point is specified. Each section comes +with meta data like the target address the section is to be copied to +and the size of the section, which is used by the RBL to load the +image. At the end of the image the RBL jumps to the image entry +point. + +The secondary stage bootloader(spl) which is loaded by the RBL then loads +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot +entry point. + + +Compilation +=========== +To build a SPI-bootable image, run 'make da850_am18xxevm'. This will build +the u-boot.ais file that needs to be written to SPI flash. + + +Flashing the images to Nand +=========================== +The AIS image can be written to SPI flash using the following commands. +Assuming that the network is configured and enabled and the u-boot.ais file +is tftp'able. + +U-Boot > sf probe 0 +U-Boot > sf erase 0 +320000 +U-Boot > tftp u-boot.ais +U-Boot > sf write c0700000 0 $filesize + + +Recovery +======== + +In the case of a "bricked" board, you need to use the TI tools found +here[1] to write a UBL file and u-boot.bin. Once the system is running +again from these tools a good u-boot.ais may be re-written to SPI flash. + + +Links +===== +[1] + http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137