All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/7] igep003x: Add netboot support
Date: Sat, 1 Apr 2017 17:19:43 +0200	[thread overview]
Message-ID: <20170401151943.yexem456fepvwq75@lenoch> (raw)
In-Reply-To: <20170401151326.4d3ijtffy744rwaz@lenoch>

From: Pau Pajuelo <ppajuelo@iseebcn.com>

netboot allows to boot an external image using TFTP and NFS protocols

Signed-off-by: Pau Pajuelo <ppajuelo@iseebcn.com>
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 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 */
-- 
2.11.0

  parent reply	other threads:[~2017-04-01 15:19 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-01 15:13 [U-Boot] [PATCH 0/7] Add IGEP SMARC AM335x module support Ladislav Michl
2017-04-01 15:14 ` [U-Boot] [PATCH 1/7] ARM: am33xx: fix typo in spl.h Ladislav Michl
2017-04-06 17:18   ` Pau Pajuelo
2017-05-08 19:39   ` [U-Boot] [U-Boot,1/7] " Tom Rini
2017-04-01 15:15 ` [U-Boot] [PATCH 2/7] ARM: am33xx: define BOOT_DEVICE_ONENAND Ladislav Michl
2017-04-06 17:19   ` Pau Pajuelo
2017-05-08 19:39   ` [U-Boot] [U-Boot,2/7] " Tom Rini
2017-04-01 15:16 ` [U-Boot] [PATCH 3/7] mtd: nand: Consolidate nand spl loaders implementation Ladislav Michl
2017-04-06 17:20   ` Pau Pajuelo
2017-04-07 17:28   ` [U-Boot] [U-Boot, " Tom Rini
2017-04-16 13:31     ` [U-Boot] [PATCH v2 " Ladislav Michl
2017-05-08 19:42       ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-04-01 15:17 ` [U-Boot] [PATCH 4/7] igep0033: Rename to igep003x Ladislav Michl
2017-04-06 17:21   ` Pau Pajuelo
2017-05-08 19:40   ` [U-Boot] [U-Boot,4/7] " Tom Rini
2017-04-01 15:17 ` [U-Boot] [PATCH 5/7] igep003x: UBIize Ladislav Michl
2017-04-03  4:18   ` Heiko Schocher
2017-04-06 17:22     ` Pau Pajuelo
2017-05-08 19:40   ` [U-Boot] [U-Boot,5/7] " Tom Rini
2017-04-01 15:18 ` [U-Boot] [PATCH 6/7] igep003x: Add support for IGEP SMARC AM335x Ladislav Michl
2017-04-06 17:22   ` Pau Pajuelo
2017-05-08 19:40   ` [U-Boot] [U-Boot, " Tom Rini
2017-04-01 15:19 ` Ladislav Michl [this message]
2017-04-06 17:23   ` [U-Boot] [PATCH 7/7] igep003x: Add netboot support Pau Pajuelo
2017-05-08 19:40   ` [U-Boot] [U-Boot,7/7] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170401151943.yexem456fepvwq75@lenoch \
    --to=ladis@linux-mips.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.