All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] pico-imx6ul: Add NFS boot support
@ 2016-06-15 16:53 Diego Dorta
  2016-06-16 14:21 ` Fabio Estevam
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Dorta @ 2016-06-15 16:53 UTC (permalink / raw)
  To: u-boot

Add script for retrieving the kernel via TFTP and mounting the
rootfs via NFS.

Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
---
 include/configs/pico-imx6ul.h | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h
index 73e37e1..9d8ee1f 100644
--- a/include/configs/pico-imx6ul.h
+++ b/include/configs/pico-imx6ul.h
@@ -96,7 +96,31 @@
 			"bootz ${loadaddr} - ${fdt_addr}; " \
 		"else " \
 			"echo WARN: Cannot load the DT; " \
-		"fi;\0"
+		"fi;\0" \
+	"netargs=setenv bootargs console=${console},${baudrate} " \
+		"root=/dev/nfs " \
+	"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
+		"netboot=echo Booting from net ...; " \
+		"run netargs; " \
+		"if test ${ip_dyn} = yes; then " \
+			"setenv get_cmd dhcp; " \
+		"else " \
+			"setenv get_cmd tftp; " \
+		"fi; " \
+		"${get_cmd} ${image}; " \
+		"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
+			"if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
+				"bootz ${loadaddr} - ${fdt_addr}; " \
+			"else " \
+				"if test ${boot_fdt} = try; then " \
+					"bootz; " \
+				"else " \
+					"echo WARN: Cannot load the DT; " \
+				"fi; " \
+			"fi; " \
+		"else " \
+			"bootz; " \
+		"fi;\0" \
 
 #define CONFIG_BOOTCOMMAND \
 	   "if mmc rescan; then " \
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] pico-imx6ul: Add NFS boot support
  2016-06-15 16:53 [U-Boot] [PATCH] pico-imx6ul: Add NFS boot support Diego Dorta
@ 2016-06-16 14:21 ` Fabio Estevam
  2016-06-18  8:56   ` Stefano Babic
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2016-06-16 14:21 UTC (permalink / raw)
  To: u-boot

On Wed, Jun 15, 2016 at 1:53 PM, Diego Dorta <diego.dorta@nxp.com> wrote:
> Add script for retrieving the kernel via TFTP and mounting the
> rootfs via NFS.
>
> Signed-off-by: Diego Dorta <diego.dorta@nxp.com>

Acked-by: Fabio Estevam <fabio.estevam@nxp.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] pico-imx6ul: Add NFS boot support
  2016-06-16 14:21 ` Fabio Estevam
@ 2016-06-18  8:56   ` Stefano Babic
  0 siblings, 0 replies; 3+ messages in thread
From: Stefano Babic @ 2016-06-18  8:56 UTC (permalink / raw)
  To: u-boot

On 16/06/2016 16:21, Fabio Estevam wrote:
> On Wed, Jun 15, 2016 at 1:53 PM, Diego Dorta <diego.dorta@nxp.com> wrote:
>> Add script for retrieving the kernel via TFTP and mounting the
>> rootfs via NFS.
>>
>> Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
> 
> Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
> 
Applied to -next, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-18  8:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-15 16:53 [U-Boot] [PATCH] pico-imx6ul: Add NFS boot support Diego Dorta
2016-06-16 14:21 ` Fabio Estevam
2016-06-18  8:56   ` Stefano Babic

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.