diff mbox

[U-Boot,7/7] igep003x: Add netboot support

Message ID 20170401151943.yexem456fepvwq75@lenoch
State Accepted
Commit 2e0c6f38f3893a247c23de180999b2618ed01c8a
Delegated to: Tom Rini
Headers show

Commit Message

Ladislav Michl April 1, 2017, 3:19 p.m. UTC
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(-)

Comments

Pau Pajuelo April 6, 2017, 5:23 p.m. UTC | #1
Tested-by: Pau Pajuelo <ppajuel@gmail.com>

2017-04-01 17:19 GMT+02:00 Ladislav Michl <ladis@linux-mips.org>:
>
> 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
>
Tom Rini May 8, 2017, 7:40 p.m. UTC | #2
On Sat, Apr 01, 2017 at 05:19:43PM +0200, Ladislav Michl wrote:

> 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>
> Tested-by: Pau Pajuelo <ppajuel@gmail.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

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 */