From patchwork Wed Feb 5 15:24:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 317183 X-Patchwork-Delegate: panto@antoniou-consulting.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 A3DFC2C0091 for ; Thu, 6 Feb 2014 02:25:54 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5432D4B98D; Wed, 5 Feb 2014 16:25:28 +0100 (CET) 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 7-a5n3iKAM3x; Wed, 5 Feb 2014 16:25:28 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 66C174B9C5; Wed, 5 Feb 2014 16:24:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C144D4B9CB for ; Wed, 5 Feb 2014 16:24:41 +0100 (CET) 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 vNjze2Hd4RAD for ; Wed, 5 Feb 2014 16:24:38 +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 mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by theia.denx.de (Postfix) with ESMTPS id 224D24B98C for ; Wed, 5 Feb 2014 16:24:25 +0100 (CET) Received: by mail-qa0-f51.google.com with SMTP id f11so738935qae.10 for ; Wed, 05 Feb 2014 07:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=7cR2BgMWFWBLbzoJcOpcJtA/WRixXk5+NFFnAaDNXAA=; b=RKu64f7fpAeGU7ZoyVpJS9NaHHdj0715j2Xa/UcS156hLD0vFumVkDs5Mpj7aMU8Kd b16dTfz8/J+8VljOR03PxRJX/9BxkcrGlPSPnYGco2Q0hgW1cGjMwA8fFcAMOE4ebJb3 x+l5UBJDjJOvX2Ft7e+dJlal9N7eKRs+pWRwNG0encFod7UGvyVZsTz0TAb2FyjT2X26 VsET9Q7bUGB5ZWPMEjiDhCFeA4JkpFjYRlD8ZSVz8j9XsZoKiGMWEwe/dbBwfMSqtQFR iBRRFRq4weWCi441Oa/ZeNADq5Hni8Ik5wWbnAj2RpRvyslfM8es0dRootaiVdoaLl82 54jA== X-Received: by 10.224.97.67 with SMTP id k3mr3499372qan.17.1391613864258; Wed, 05 Feb 2014 07:24:24 -0800 (PST) Received: from localhost.localdomain (cpe-174-106-216-211.ec.res.rr.com. [174.106.216.211]) by mx.google.com with ESMTPSA id 30sm37452405qgt.4.2014.02.05.07.24.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Feb 2014 07:24:23 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Wed, 5 Feb 2014 10:24:25 -0500 Message-Id: <1391613865-13192-8-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391613865-13192-1-git-send-email-trini@ti.com> References: <1391613865-13192-1-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH v3 8/8] dra7xx_evm: Add CONFIG_SUPPORT_EMMC_BOOT, document usage 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 README to the board which lists the commands required to enable booting from the eMMC boot partitions found on the board. Cc: Lokesh Vutla Signed-off-by: Tom Rini Signed-off-by: Pantelis Antoniou --- board/ti/dra7xx/README | 25 +++++++++++++++++++++++++ include/configs/dra7xx_evm.h | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 board/ti/dra7xx/README diff --git a/board/ti/dra7xx/README b/board/ti/dra7xx/README new file mode 100644 index 0000000..2fdaeac --- /dev/null +++ b/board/ti/dra7xx/README @@ -0,0 +1,25 @@ +Summary +======= + +This document covers various features of the 'dra7xx_evm' build and some +related uses. + +eMMC boot partition use +======================= + +It is possible, depending on SYSBOOT configuration to boot from the eMMC +boot partitions using (name depending on documentation referenced) +Alternative Boot operation mode or Boot Sequence Option 1/2. In this +example we load MLO and u-boot.img from the build into DDR and then use +'mmc bootbus' to set the required rate (see TRM) and 'mmc partconfig' to +set boot0 as the boot device. +U-Boot # setenv autoload no +U-Boot # usb start +U-Boot # dhcp +U-Boot # mmc dev 1 1 +U-Boot # tftp ${loadaddr} dra7xx/MLO +U-Boot # mmc write ${loadaddr} 0 100 +U-Boot # tftp ${loadaddr} dra7xx/u-boot.img +U-Boot # mmc write ${loadaddr} 300 400 +U-Boot # mmc bootbus 1 2 0 2 +U-Boot # mmc partconf 1 1 1 0 diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index f210ed8..3c53f0a 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -73,6 +73,8 @@ #define CONFIG_SPL_SPI_CS 0 #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000 +#define CONFIG_SUPPORT_EMMC_BOOT + /* USB xHCI HOST */ #define CONFIG_CMD_USB #define CONFIG_USB_HOST