public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] Enable pxe boot for mx53cx9020
@ 2017-07-11  9:23 linux-kernel-dev at beckhoff.com
  2017-07-11  9:23 ` [U-Boot] [PATCH 1/2] imx: cx9020: use fdt_addr_r and ramdisk_addr_r linux-kernel-dev at beckhoff.com
  2017-07-11  9:23 ` [U-Boot] [PATCH 2/2] imx: cx9020: try pxe boot, if no vmlinuz on mmc linux-kernel-dev at beckhoff.com
  0 siblings, 2 replies; 5+ messages in thread
From: linux-kernel-dev at beckhoff.com @ 2017-07-11  9:23 UTC (permalink / raw)
  To: u-boot

From: Patrick Bruenn <p.bruenn@beckhoff.com>

To make kernel development more easy on CX9020, this scripts enables pxe
boot in the default bootscript. pxe boot is then used as a fallback in
case there is no vmlinuz found on mmc.


Patrick Bruenn (2):
  imx: cx9020: use fdt_addr_r and ramdisk_addr_r
  imx: cx9020: try pxe boot, if no vmlinuz on mmc

 configs/mx53cx9020_defconfig |  1 +
 include/configs/mx53cx9020.h | 17 +++++++++++------
 2 files changed, 12 insertions(+), 6 deletions(-)

-- 
2.11.0

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

* [U-Boot] [PATCH 1/2] imx: cx9020: use fdt_addr_r and ramdisk_addr_r
  2017-07-11  9:23 [U-Boot] [PATCH 0/2] Enable pxe boot for mx53cx9020 linux-kernel-dev at beckhoff.com
@ 2017-07-11  9:23 ` linux-kernel-dev at beckhoff.com
  2017-07-12  8:30   ` Stefano Babic
  2017-07-11  9:23 ` [U-Boot] [PATCH 2/2] imx: cx9020: try pxe boot, if no vmlinuz on mmc linux-kernel-dev at beckhoff.com
  1 sibling, 1 reply; 5+ messages in thread
From: linux-kernel-dev at beckhoff.com @ 2017-07-11  9:23 UTC (permalink / raw)
  To: u-boot

From: Patrick Bruenn <p.bruenn@beckhoff.com>

Replace fdtaddr and rdaddr variable names with u-boot standard names
fdt_addr_r and ramdisk_addr_r.
This will make the use of pxe boot more easy.

Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
---

 include/configs/mx53cx9020.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/configs/mx53cx9020.h b/include/configs/mx53cx9020.h
index 151c4b3faf..b056298d9a 100644
--- a/include/configs/mx53cx9020.h
+++ b/include/configs/mx53cx9020.h
@@ -66,8 +66,8 @@
 #define CONFIG_SYS_TEXT_BASE    0x77800000
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-	"fdt_addr=0x71ff0000\0" \
-	"rdaddr=0x72000000\0" \
+	"fdt_addr_r=0x71ff0000\0" \
+	"ramdisk_addr_r=0x72000000\0" \
 	"console=ttymxc1,115200\0" \
 	"uenv=/boot/uEnv.txt\0" \
 	"optargs=\0" \
@@ -81,10 +81,10 @@
 		"rootfstype=${mmcrootfstype} " \
 		"${cmdline}\0" \
 	"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
-	"loadrd=load mmc ${bootpart} ${rdaddr} ${bootdir}/${rdfile};" \
+	"loadrd=load mmc ${bootpart} ${ramdisk_addr_r} ${bootdir}/${rdfile};" \
 		"setenv rdsize ${filesize}\0" \
 	"loadfdt=echo loading ${fdt_path} ...;" \
-		"load mmc ${bootpart} ${fdt_addr} ${fdt_path}\0" \
+		"load mmc ${bootpart} ${fdt_addr_r} ${fdt_path}\0" \
 	"mmcboot=mmc dev ${mmcdev}; " \
 		"if mmc rescan; then " \
 			"echo SD/MMC found on device ${mmcdev};" \
@@ -128,8 +128,8 @@
 			"fi;" \
 			"run mmcargs;" \
 			"echo debug: [${bootargs}] ... ;" \
-			"echo debug: [bootz ${loadaddr} - ${fdt_addr}] ... ;" \
-			"bootz ${loadaddr} - ${fdt_addr}; " \
+			"echo debug: [bootz ${loadaddr} - ${fdt_addr_r}];" \
+			"bootz ${loadaddr} - ${fdt_addr_r}; " \
 		"fi;\0"
 
 #define CONFIG_BOOTCOMMAND \
-- 
2.11.0

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

* [U-Boot] [PATCH 2/2] imx: cx9020: try pxe boot, if no vmlinuz on mmc
  2017-07-11  9:23 [U-Boot] [PATCH 0/2] Enable pxe boot for mx53cx9020 linux-kernel-dev at beckhoff.com
  2017-07-11  9:23 ` [U-Boot] [PATCH 1/2] imx: cx9020: use fdt_addr_r and ramdisk_addr_r linux-kernel-dev at beckhoff.com
@ 2017-07-11  9:23 ` linux-kernel-dev at beckhoff.com
  2017-07-12  8:30   ` Stefano Babic
  1 sibling, 1 reply; 5+ messages in thread
From: linux-kernel-dev at beckhoff.com @ 2017-07-11  9:23 UTC (permalink / raw)
  To: u-boot

From: Patrick Bruenn <p.bruenn@beckhoff.com>

If no vmlinuz is found on mmc, try to boot from pxe.

Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>

---

 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 \
-- 
2.11.0

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

* [U-Boot] [PATCH 1/2] imx: cx9020: use fdt_addr_r and ramdisk_addr_r
  2017-07-11  9:23 ` [U-Boot] [PATCH 1/2] imx: cx9020: use fdt_addr_r and ramdisk_addr_r linux-kernel-dev at beckhoff.com
@ 2017-07-12  8:30   ` Stefano Babic
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2017-07-12  8:30 UTC (permalink / raw)
  To: u-boot

On 11/07/2017 11:23, linux-kernel-dev at beckhoff.com wrote:
> From: Patrick Bruenn <p.bruenn@beckhoff.com>
> 
> Replace fdtaddr and rdaddr variable names with u-boot standard names
> fdt_addr_r and ramdisk_addr_r.
> This will make the use of pxe boot more easy.
> 
> Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
> ---

Applied to -master, 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] 5+ messages in thread

* [U-Boot] [PATCH 2/2] imx: cx9020: try pxe boot, if no vmlinuz on mmc
  2017-07-11  9:23 ` [U-Boot] [PATCH 2/2] imx: cx9020: try pxe boot, if no vmlinuz on mmc linux-kernel-dev at beckhoff.com
@ 2017-07-12  8:30   ` Stefano Babic
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2017-07-12  8:30 UTC (permalink / raw)
  To: u-boot

On 11/07/2017 11:23, linux-kernel-dev at beckhoff.com wrote:
> From: Patrick Bruenn <p.bruenn@beckhoff.com>
> 
> If no vmlinuz is found on mmc, try to boot from pxe.
> 
> Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
> 
> ---

Applied to -master, 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] 5+ messages in thread

end of thread, other threads:[~2017-07-12  8:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-11  9:23 [U-Boot] [PATCH 0/2] Enable pxe boot for mx53cx9020 linux-kernel-dev at beckhoff.com
2017-07-11  9:23 ` [U-Boot] [PATCH 1/2] imx: cx9020: use fdt_addr_r and ramdisk_addr_r linux-kernel-dev at beckhoff.com
2017-07-12  8:30   ` Stefano Babic
2017-07-11  9:23 ` [U-Boot] [PATCH 2/2] imx: cx9020: try pxe boot, if no vmlinuz on mmc linux-kernel-dev at beckhoff.com
2017-07-12  8:30   ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox