All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: mach-omap2: Generate MLO file from SD boot capable targets
@ 2017-06-13 20:04 Andrew F. Davis
  2017-06-14  5:57 ` Lokesh Vutla
  2017-06-16 17:11 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew F. Davis @ 2017-06-13 20:04 UTC (permalink / raw)
  To: u-boot

Secure boot targets that can be loaded from an SD card FAT partition
need to be called "MLO" on the filesystem, make a copy with this name
to clarify the correct image for SD card booting.

Signed-off-by: Andrew F. Davis <afd@ti.com>
---
 arch/arm/mach-omap2/config_secure.mk | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/config_secure.mk b/arch/arm/mach-omap2/config_secure.mk
index 0346cb93ab..c12fbc6ad6 100644
--- a/arch/arm/mach-omap2/config_secure.mk
+++ b/arch/arm/mach-omap2/config_secure.mk
@@ -67,9 +67,14 @@ u-boot-spl_HS_2ND: $(obj)/u-boot-spl.bin FORCE
 u-boot-spl_HS_ULO: $(obj)/u-boot-spl.bin FORCE
 	$(call if_changed,mkomapsecimg)
 
-# Standard ISSW target (certain devices, various boot modes)
+# Standard ISSW target (certain devices, various boot modes), when copied to
+# an SD card FAT partition this file must be called "MLO", we make a copy with
+# this name to make this clear
 u-boot-spl_HS_ISSW: $(obj)/u-boot-spl.bin FORCE
 	$(call if_changed,mkomapsecimg)
+	@if [ -f $@ ]; then \
+		cp -f $@ MLO; \
+	fi
 
 # For SPI flash on AM335x and AM43xx, these require special byte swap handling
 # so we use the SPI_X-LOADER target instead of X-LOADER and let the
@@ -79,9 +84,13 @@ u-boot-spl_HS_SPI_X-LOADER: $(obj)/u-boot-spl.bin FORCE
 
 # For supporting single stage boot on keystone, the image is a full u-boot
 # file, not an SPL. This will work for all boot devices, other than SPI
-# flash
+# flash. On Keystone devices when booting from an SD card FAT partition this
+# file must be called "MLO"
 u-boot_HS_MLO: $(obj)/u-boot.bin
 	$(call if_changed,mkomapsecimg)
+	@if [ -f $@ ]; then \
+		cp -f $@ MLO; \
+	fi
 
 # For supporting single stage XiP QSPI on AM43xx, the image is a full u-boot
 # file, not an SPL. In this case the mkomapsecimg command looks for a
-- 
2.13.0

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

* [U-Boot] [PATCH] arm: mach-omap2: Generate MLO file from SD boot capable targets
  2017-06-13 20:04 [U-Boot] [PATCH] arm: mach-omap2: Generate MLO file from SD boot capable targets Andrew F. Davis
@ 2017-06-14  5:57 ` Lokesh Vutla
  2017-06-16 17:11 ` [U-Boot] " Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Lokesh Vutla @ 2017-06-14  5:57 UTC (permalink / raw)
  To: u-boot



On Wednesday 14 June 2017 01:34 AM, Andrew F. Davis wrote:
> Secure boot targets that can be loaded from an SD card FAT partition
> need to be called "MLO" on the filesystem, make a copy with this name
> to clarify the correct image for SD card booting.
> 
> Signed-off-by: Andrew F. Davis <afd@ti.com>

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh

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

* [U-Boot] arm: mach-omap2: Generate MLO file from SD boot capable targets
  2017-06-13 20:04 [U-Boot] [PATCH] arm: mach-omap2: Generate MLO file from SD boot capable targets Andrew F. Davis
  2017-06-14  5:57 ` Lokesh Vutla
@ 2017-06-16 17:11 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2017-06-16 17:11 UTC (permalink / raw)
  To: u-boot

On Tue, Jun 13, 2017 at 03:04:59PM -0500, Andrew F. Davis wrote:

> Secure boot targets that can be loaded from an SD card FAT partition
> need to be called "MLO" on the filesystem, make a copy with this name
> to clarify the correct image for SD card booting.
> 
> Signed-off-by: Andrew F. Davis <afd@ti.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170616/139be52b/attachment.sig>

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

end of thread, other threads:[~2017-06-16 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 20:04 [U-Boot] [PATCH] arm: mach-omap2: Generate MLO file from SD boot capable targets Andrew F. Davis
2017-06-14  5:57 ` Lokesh Vutla
2017-06-16 17:11 ` [U-Boot] " Tom Rini

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.