mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] blspec: invalidate only necessary bootm variables
@ 2019-07-02  7:17 Rouven Czerwinski
  2019-07-02  7:17 ` [PATCH 2/2] f_fastboot: remove only image from " Rouven Czerwinski
  2019-07-04  6:48 ` [PATCH 1/2] blspec: invalidate only necessary " Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Rouven Czerwinski @ 2019-07-02  7:17 UTC (permalink / raw)
  To: barebox; +Cc: Rouven Czerwinski

Instead of removing all global bootm variables, remove only the ones
which will be set by the blspec entries. This allows setting the
bootm.tee variable to load OP-TEE for blspec entries or setting the
image load address.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 common/blspec.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/common/blspec.c b/common/blspec.c
index 41f2a4c534..66e5033e35 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -63,7 +63,11 @@ static int blspec_boot(struct bootentry *be, int verbose, int dryrun)
 	};
 
 	globalvar_set_match("linux.bootargs.dyn.", "");
-	globalvar_set_match("bootm.", "");
+	globalvar_set_match("bootm.image", "");
+	globalvar_set_match("bootm.oftree", "");
+	globalvar_set_match("bootm.initrd", "");
+
+	bootm_data_init_defaults(&data);
 
 	devicetree = blspec_entry_var_get(entry, "devicetree");
 	initrd = blspec_entry_var_get(entry, "initrd");
-- 
2.22.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/2] f_fastboot: remove only image from bootm variables
  2019-07-02  7:17 [PATCH 1/2] blspec: invalidate only necessary bootm variables Rouven Czerwinski
@ 2019-07-02  7:17 ` Rouven Czerwinski
  2019-07-04  6:48 ` [PATCH 1/2] blspec: invalidate only necessary " Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Rouven Czerwinski @ 2019-07-02  7:17 UTC (permalink / raw)
  To: barebox; +Cc: Rouven Czerwinski

Remove only the bootm.image variable which will be set by fastboot.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 drivers/usb/gadget/f_fastboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index bdf0c807df..82a202cc21 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -767,7 +767,7 @@ static void __maybe_unused cb_boot(struct f_fastboot *f_fb, const char *opt)
 	fastboot_tx_print(f_fb, FASTBOOT_MSG_INFO, "Booting kernel..\n");
 
 	globalvar_set_match("linux.bootargs.dyn.", "");
-	globalvar_set_match("bootm.", "");
+	globalvar_set_match("bootm.image", "");
 
 	data.os_file = xstrdup(FASTBOOT_TMPFILE);
 
-- 
2.22.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/2] blspec: invalidate only necessary bootm variables
  2019-07-02  7:17 [PATCH 1/2] blspec: invalidate only necessary bootm variables Rouven Czerwinski
  2019-07-02  7:17 ` [PATCH 2/2] f_fastboot: remove only image from " Rouven Czerwinski
@ 2019-07-04  6:48 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2019-07-04  6:48 UTC (permalink / raw)
  To: Rouven Czerwinski; +Cc: barebox

On Tue, Jul 02, 2019 at 09:17:54AM +0200, Rouven Czerwinski wrote:
> Instead of removing all global bootm variables, remove only the ones
> which will be set by the blspec entries. This allows setting the
> bootm.tee variable to load OP-TEE for blspec entries or setting the
> image load address.
> 
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
>  common/blspec.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-07-04  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-02  7:17 [PATCH 1/2] blspec: invalidate only necessary bootm variables Rouven Czerwinski
2019-07-02  7:17 ` [PATCH 2/2] f_fastboot: remove only image from " Rouven Czerwinski
2019-07-04  6:48 ` [PATCH 1/2] blspec: invalidate only necessary " Sascha Hauer

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