All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 01/13] smegw01: Enable setting additional boot params
@ 2023-04-21 10:56 Fabio Estevam
  2023-04-21 10:56 ` [PATCH v2 02/13] smegw01: Select CONFIG_CMD_SQUASHFS Fabio Estevam
                   ` (11 more replies)
  0 siblings, 12 replies; 15+ messages in thread
From: Fabio Estevam @ 2023-04-21 10:56 UTC (permalink / raw)
  To: sbabic; +Cc: eduard, u-boot, Fabio Estevam

From: Eduard Strehlau <eduard@lionizers.com>

Introduce EXTRA_BOOTPARAMS to allow passing additional parameters
to kernel command line. This is useful for debugging purposes.

Signed-off-by: Eduard Strehlau <eduard@lionizers.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v1:
- None

 include/configs/smegw01.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/configs/smegw01.h b/include/configs/smegw01.h
index 11031744be..a356f095a6 100644
--- a/include/configs/smegw01.h
+++ b/include/configs/smegw01.h
@@ -17,6 +17,11 @@
 /* MMC Config*/
 #define CFG_SYS_FSL_ESDHC_ADDR	0
 
+/* default to no extra bootparams, we need an empty define for stringification*/
+#ifndef EXTRA_BOOTPARAMS
+#define EXTRA_BOOTPARAMS
+#endif
+
 #define CFG_EXTRA_ENV_SETTINGS \
 	"image=zImage\0" \
 	"console=ttymxc0\0" \
@@ -26,7 +31,8 @@
 	"mmcdev=0\0" \
 	"mmcpart=1\0" \
 	"mmcargs=setenv bootargs console=${console},${baudrate} " \
-		"root=/dev/mmcblk0p${mmcpart} rootwait rw\0" \
+		"root=/dev/mmcblk0p${mmcpart} rootwait rw " \
+		__stringify(EXTRA_BOOTPARAMS) "\0" \
 	"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
 	"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
 	"mmcboot=echo Booting from mmc ...; " \
-- 
2.38.1


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

end of thread, other threads:[~2023-04-24 11:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 10:56 [PATCH v2 01/13] smegw01: Enable setting additional boot params Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 02/13] smegw01: Select CONFIG_CMD_SQUASHFS Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 03/13] smegw01: Select bootcount support Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 04/13] smegw01: Add altbootcmd Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 05/13] smegw01: Run altbootcmd in the case of failure Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 06/13] smegw01: Only commit to new partition if update was successful Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 7/7] smegw01: Enable EMMC boot from multiple partitions Fabio Estevam
2023-04-21 18:10   ` Pali Rohár
2023-04-24 11:09     ` Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 08/13] smegw01: Change default boot device to eMMC Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 09/13] smegw01: Switch to fitImage Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 10/13] smegw01: Add lockdown U-Boot env support Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 11/13] smegw01: Read the second MAC address Fabio Estevam
2023-04-21 10:56 ` [PATCH v2 12/13] smegw01: Disable additional boot menu options Fabio Estevam
2023-04-21 10:56 ` [PATCH 13/13] smegw01: Fix fallback to altbootcmd Fabio Estevam

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.