* [U-Boot] [PATCH v2] davinci: omapl138_lcdk: boot from zImage
@ 2016-12-06 14:45 Fabien Parent
2016-12-06 15:54 ` Tom Rini
2016-12-12 13:45 ` [U-Boot] [U-Boot,v2] " Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Fabien Parent @ 2016-12-06 14:45 UTC (permalink / raw)
To: u-boot
Stop booting legacy uImage and now boot zImage.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v1 .. v2
* Used __stringify(CONFIG_BOOTFILE) to avoid code duplication
---
configs/omapl138_lcdk_defconfig | 1 +
include/configs/omapl138_lcdk.h | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
index 52681c92d0..d030ffafc3 100644
--- a/configs/omapl138_lcdk_defconfig
+++ b/configs/omapl138_lcdk_defconfig
@@ -13,6 +13,7 @@ CONFIG_SPL=y
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xb5
CONFIG_HUSH_PARSER=y
CONFIG_SYS_PROMPT="U-Boot > "
+CONFIG_CMD_BOOTZ=y
# CONFIG_CMD_IMLS is not set
CONFIG_CMD_ASKENV=y
# CONFIG_CMD_FLASH is not set
diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h
index 7c2f4141c9..ea28db2f59 100644
--- a/include/configs/omapl138_lcdk.h
+++ b/include/configs/omapl138_lcdk.h
@@ -247,7 +247,7 @@
*/
#define CONFIG_MISC_INIT_R
#define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_BOOTFILE "uImage" /* Boot file name */
+#define CONFIG_BOOTFILE "zImage" /* Boot file name */
#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
@@ -276,19 +276,20 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdtaddr=0xc0600000\0" \
"fdtfile=da850-lcdk.dtb\0" \
- "fdtboot=bootm 0xc0700000 - ${fdtaddr};\0" \
+ "fdtboot=bootz 0xc0700000 - ${fdtaddr};\0" \
"mmcboot=" \
"if fatload mmc 0 0xc0600000 boot.scr; then " \
"source 0xc0600000; " \
"else " \
- "fatload mmc 0 0xc0700000 uImage; " \
+ "fatload mmc 0 0xc0700000 " \
+ __stringify(CONFIG_BOOTFILE) "; " \
"fatload mmc 0 ${fdtaddr} ${fdtfile}; " \
"run fdtboot; " \
"fi;\0" \
"spiboot=" \
"sf probe 0; " \
"sf read 0xc0700000 0x80000 0x220000; " \
- "bootm 0xc0700000;\0"
+ "bootz 0xc0700000;\0"
/*
* U-Boot commands
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] davinci: omapl138_lcdk: boot from zImage
2016-12-06 14:45 [U-Boot] [PATCH v2] davinci: omapl138_lcdk: boot from zImage Fabien Parent
@ 2016-12-06 15:54 ` Tom Rini
2016-12-12 13:45 ` [U-Boot] [U-Boot,v2] " Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2016-12-06 15:54 UTC (permalink / raw)
To: u-boot
On Tue, Dec 06, 2016 at 03:45:09PM +0100, Fabien Parent wrote:
> Stop booting legacy uImage and now boot zImage.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
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/20161206/50b2e32c/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [U-Boot,v2] davinci: omapl138_lcdk: boot from zImage
2016-12-06 14:45 [U-Boot] [PATCH v2] davinci: omapl138_lcdk: boot from zImage Fabien Parent
2016-12-06 15:54 ` Tom Rini
@ 2016-12-12 13:45 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2016-12-12 13:45 UTC (permalink / raw)
To: u-boot
On Tue, Dec 06, 2016 at 03:45:09PM +0100, Fabien Parent wrote:
> Stop booting legacy uImage and now boot zImage.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
> Reviewed-by: Tom Rini <trini@konsulko.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/20161212/2c2cbfaa/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-12 13:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-06 14:45 [U-Boot] [PATCH v2] davinci: omapl138_lcdk: boot from zImage Fabien Parent
2016-12-06 15:54 ` Tom Rini
2016-12-12 13:45 ` [U-Boot] [U-Boot,v2] " Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox