From patchwork Sat Apr 1 15:19:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ladislav Michl X-Patchwork-Id: 746030 X-Patchwork-Delegate: trini@ti.com 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 3vwMVb2NDVz9s03 for ; Sun, 2 Apr 2017 02:19:51 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E7B04C21C6D; Sat, 1 Apr 2017 15:19:48 +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=UNPARSEABLE_RELAY 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 E3E7EC21C50; Sat, 1 Apr 2017 15:19:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C7DB7C21C51; Sat, 1 Apr 2017 15:19:45 +0000 (UTC) Received: from cvs.linux-mips.org (eddie.linux-mips.org [148.251.95.138]) by lists.denx.de (Postfix) with ESMTP id 7DBD4C21C50 for ; Sat, 1 Apr 2017 15:19:45 +0000 (UTC) Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990506AbdDAPTpZTnND (ORCPT ); Sat, 1 Apr 2017 17:19:45 +0200 Date: Sat, 1 Apr 2017 17:19:43 +0200 From: Ladislav Michl To: u-boot@lists.denx.de Message-ID: <20170401151943.yexem456fepvwq75@lenoch> References: <20170401151326.4d3ijtffy744rwaz@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170401151326.4d3ijtffy744rwaz@lenoch> User-Agent: NeoMutt/20170113 (1.7.2) Cc: Pau Pajuelo Subject: [U-Boot] [PATCH 7/7] igep003x: Add netboot support 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: Pau Pajuelo netboot allows to boot an external image using TFTP and NFS protocols Signed-off-by: Pau Pajuelo Signed-off-by: Ladislav Michl Tested-by: Pau Pajuelo --- include/configs/am335x_igep003x.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/configs/am335x_igep003x.h b/include/configs/am335x_igep003x.h index 2962f72582..9a62fc9cb7 100644 --- a/include/configs/am335x_igep003x.h +++ b/include/configs/am335x_igep003x.h @@ -79,6 +79,16 @@ "run nandargs; " \ "run nandload; " \ "bootz ${loadaddr} - ${fdtaddr} \0" \ + "netload=tftpboot ${loadaddr} ${bootfile}; " \ + "tftpboot ${fdtaddr} ${fdtfile} \0" \ + "netargs=setenv bootargs console=${console} " \ + "${optargs} " \ + "root=/dev/nfs " \ + "ip=${ipaddr} nfsroot=${serverip}:${rootnfs},v3,tcp \0" \ + "netboot=echo Booting from net ...; " \ + "run netargs; " \ + "run netload; " \ + "bootz ${loadaddr} - ${fdtaddr} \0" \ "findfdt="\ "if test ${board_name} = igep0033; then " \ "setenv fdtfile am335x-igep-base0033.dtb; fi; " \ @@ -93,7 +103,8 @@ #define CONFIG_BOOTCOMMAND \ "run findfdt;" \ "run mmcboot;" \ - "run nandboot;" + "run nandboot;" \ + "run netboot;" /* NS16550 Configuration */ #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* UART0 */