From patchwork Tue Jul 11 09:23:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: linux-kernel-dev X-Patchwork-Id: 786518 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3x6GrQ19Khz9s7g for ; Tue, 11 Jul 2017 19:24:54 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D87A9C21E4F; Tue, 11 Jul 2017 09:24:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 74B57C21E6F; Tue, 11 Jul 2017 09:24:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id ED423C21E27; Tue, 11 Jul 2017 09:24:37 +0000 (UTC) Received: from Netsrv01.beckhoff.com (netsrv01.beckhoff.com [62.159.14.10]) by lists.denx.de (Postfix) with ESMTPS id 6B7AEC21E72 for ; Tue, 11 Jul 2017 09:24:35 +0000 (UTC) Received: from lbs1.beckhoff.com (172.17.66.104) by NT-Mail02.beckhoff.com (10.1.0.27) with Microsoft SMTP Server (TLS) id 14.3.301.0; Tue, 11 Jul 2017 11:24:34 +0200 From: To: Date: Tue, 11 Jul 2017 11:23:21 +0200 Message-ID: <20170711092321.1998-3-linux-kernel-dev@beckhoff.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170711092321.1998-1-linux-kernel-dev@beckhoff.com> References: <20170711092321.1998-1-linux-kernel-dev@beckhoff.com> MIME-Version: 1.0 X-Originating-IP: [172.17.66.104] X-OLX-Disclaimer: Done Cc: Patrick Bruenn Subject: [U-Boot] [PATCH 2/2] imx: cx9020: try pxe boot, if no vmlinuz on mmc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Patrick Bruenn If no vmlinuz is found on mmc, try to boot from pxe. Signed-off-by: Patrick Bruenn --- configs/mx53cx9020_defconfig | 1 + include/configs/mx53cx9020.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/configs/mx53cx9020_defconfig b/configs/mx53cx9020_defconfig index e0c597cbe2..9609647f0b 100644 --- a/configs/mx53cx9020_defconfig +++ b/configs/mx53cx9020_defconfig @@ -18,6 +18,7 @@ CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_CMD_PXE=y CONFIG_OF_CONTROL=y CONFIG_FPGA_ALTERA=y CONFIG_FPGA_CYCLON2=y diff --git a/include/configs/mx53cx9020.h b/include/configs/mx53cx9020.h index b056298d9a..cff1462d00 100644 --- a/include/configs/mx53cx9020.h +++ b/include/configs/mx53cx9020.h @@ -67,6 +67,7 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ "fdt_addr_r=0x71ff0000\0" \ + "pxefile_addr_r=0x73000000\0" \ "ramdisk_addr_r=0x72000000\0" \ "console=ttymxc1,115200\0" \ "uenv=/boot/uEnv.txt\0" \ @@ -81,6 +82,7 @@ "rootfstype=${mmcrootfstype} " \ "${cmdline}\0" \ "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \ + "loadpxe=dhcp;setenv kernel_addr_r ${loadaddr};pxe get;pxe boot;\0" \ "loadrd=load mmc ${bootpart} ${ramdisk_addr_r} ${bootdir}/${rdfile};" \ "setenv rdsize ${filesize}\0" \ "loadfdt=echo loading ${fdt_path} ...;" \ @@ -130,6 +132,9 @@ "echo debug: [${bootargs}] ... ;" \ "echo debug: [bootz ${loadaddr} - ${fdt_addr_r}];" \ "bootz ${loadaddr} - ${fdt_addr_r}; " \ + "else " \ + "echo loading from dhcp ...; " \ + "run loadpxe; " \ "fi;\0" #define CONFIG_BOOTCOMMAND \