From patchwork Mon Oct 21 23:24:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 285295 X-Patchwork-Delegate: sbabic@denx.de 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 274392C00CE for ; Tue, 22 Oct 2013 10:30:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D27184A20B; Tue, 22 Oct 2013 01:30:35 +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 PMk0Wxix0OqA; Tue, 22 Oct 2013 01:30:35 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D785A4A216; Tue, 22 Oct 2013 01:30:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 520414A216 for ; Tue, 22 Oct 2013 01:30:26 +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 WY3hUvXiGswv for ; Tue, 22 Oct 2013 01:30:22 +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-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by theia.denx.de (Postfix) with ESMTPS id 895164A22C for ; Tue, 22 Oct 2013 01:30:13 +0200 (CEST) Received: by mail-ve0-f178.google.com with SMTP id jy13so4620911veb.23 for ; Mon, 21 Oct 2013 16:30:10 -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:in-reply-to:references :organization; bh=/weLTvo5HZwETsjnFNq862UXGB+gYPRAoAANw5+FeRo=; b=mFNI2H6B2mUNaZzblnpoNFgJGYOHmSOLcQGcaqccEW3zgoJlOIzrL0PpRBRWtKy/Bk 64gCIXYHYSWrU21sd4XypK6+It0QJEhtYrvq+awy7u7AKJcRibxrufWT9ZrprmJ+OJ/L m9xgibOcpeNS+LfB6SzjxRA7jPS8uyNasf3kf0lOCTgK5FCKv2337+4Daz8u2dApsaJJ pTHk2HJGsNW25Qb1IZtNfqwGPLcDbXm5T0Cq2xWObC6o6FMN3tSM74/TSLuCp+yTrc2v gpe/fLWGEpmhUGRCoZfDwTbfkqbFQbqduq/XU5vO4y2GUavq/vPohtKZdL6DxDuui1Px REMA== X-Received: by 10.221.21.133 with SMTP id qs5mr1251227vcb.28.1382397852841; Mon, 21 Oct 2013 16:24:12 -0700 (PDT) Received: from nano.lab.ossystems.com.br ([177.194.208.225]) by mx.google.com with ESMTPSA id s17sm23975907vdg.5.2013.10.21.16.24.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2013 16:24:11 -0700 (PDT) Received: by nano.lab.ossystems.com.br (Postfix, from userid 1000) id 21DFA16AC0ED4; Mon, 21 Oct 2013 21:24:08 -0200 (BRST) From: Otavio Salvador To: U-Boot Mailing List Date: Mon, 21 Oct 2013 21:24:04 -0200 Message-Id: <1382397845-5313-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1382397845-5313-1-git-send-email-otavio@ossystems.com.br> References: <1382397845-5313-1-git-send-email-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Fabio Estevam , Otavio Salvador Subject: [U-Boot] [RESEND PATCH 2/3] mx28evk: Add 'nandboot' environment command 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 This reads the kernel, ftd and boot into ubifs filesystem. While on that, the SD firmware filename definition has been moved next to the other SD related commands. Signed-off-by: Otavio Salvador --- include/configs/mx28evk.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index 27b1a41..e40df09 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -163,7 +163,6 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ "update_nand_full_filename=u-boot.nand\0" \ "update_nand_firmware_filename=u-boot.sb\0" \ - "update_sd_firmware_filename=u-boot.sd\0" \ "update_nand_firmware_maxsz=0x100000\0" \ "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \ "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \ @@ -191,6 +190,23 @@ "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \ "nand write ${loadaddr} ${fw_off} ${filesize} ; " \ "fi\0" \ + "nandargs=setenv bootargs console=${console_mainline},${baudrate} " \ + "rootfstype=ubifs ubi.mtd=6 root=ubi0_0 ${mtdparts}\0" \ + "nandboot=" /* Boot from NAND */ \ + "mtdparts default; " \ + "run nandargs; " \ + "nand read ${loadaddr} kernel 0x00400000; " \ + "if test ${boot_fdt} = yes; then " \ + "nand read ${fdt_addr} fdt 0x00080000; " \ + "bootm ${loadaddr} - ${fdt_addr}; " \ + "else " \ + "if test ${boot_fdt} = no; then " \ + "bootm; " \ + "else " \ + "echo \"ERROR: Set boot_fdt to yes or no.\"; " \ + "fi; " \ + "fi\0" \ + "update_sd_firmware_filename=u-boot.sd\0" \ "update_sd_firmware=" /* Update the SD firmware partition */ \ "if mmc rescan ; then " \ "if tftp ${update_sd_firmware_filename} ; then " \