diff mbox series

[U-Boot] ARM: imx6q_logic: Allow optional arguments to cmd line

Message ID 20190411184609.6190-1-aford173@gmail.com
State Accepted
Commit fd1a2d7e778f0ca671dacecafc569cded1b32ec6
Delegated to: Stefano Babic
Headers show
Series [U-Boot] ARM: imx6q_logic: Allow optional arguments to cmd line | expand

Commit Message

Adam Ford April 11, 2019, 6:46 p.m. UTC
This adds an extra, optional environmental variable called
'optargs' which if enabled allow additional parameters to be
passed to the kernel (ie, quiet, cma=128M, etc.)
Each script that setups the bootargs will just append this.

Signed-off-by: Adam Ford <aford173@gmail.com>

Comments

Stefano Babic April 26, 2019, 9:37 a.m. UTC | #1
> This adds an extra, optional environmental variable called
> 'optargs' which if enabled allow additional parameters to be
> passed to the kernel (ie, quiet, cma=128M, etc.)
> Each script that setups the bootargs will just append this.
> Signed-off-by: Adam Ford <aford173@gmail.com>
> diff --git a/include/configs/imx6_logic.h b/include/configs/imx6_logic.h
> index ad45b106b0..dbf566522f 100644
> --- a/include/configs/imx6_logic.h
> +++ b/include/configs/imx6_logic.h
> @@ -46,11 +46,11 @@
>  	"finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \
>  	"nandroot=ubi0:rootfs rootfstype=ubifs\0" \
>  	"mmcargs=setenv bootargs console=${console},${baudrate}" \
> -	" root=PARTUUID=${uuid} rootwait rw\0 ${mtdparts}\0" \
> +	" root=PARTUUID=${uuid} rootwait rw ${mtdparts} ${optargs}\0" \
>  	"nandargs=setenv bootargs console=${console},${baudrate}" \
> -	" ubi.mtd=fs root=${nandroot} ${mtdparts}\0" \
> +	" ubi.mtd=fs root=${nandroot} ${mtdparts} ${optargs}\0" \
>  	"ramargs=setenv bootargs console=${console},${baudrate}" \
> -	" root=/dev/ram rw ${mtdparts}\0"                    \
> +	" root=/dev/ram rw ${mtdparts} ${optargs}\0"                    \
>  	"loadbootscript=" \
>  	"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
>  	"bootscript=echo Running bootscript from mmc ...;" \

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/include/configs/imx6_logic.h b/include/configs/imx6_logic.h
index ad45b106b0..dbf566522f 100644
--- a/include/configs/imx6_logic.h
+++ b/include/configs/imx6_logic.h
@@ -46,11 +46,11 @@ 
 	"finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \
 	"nandroot=ubi0:rootfs rootfstype=ubifs\0" \
 	"mmcargs=setenv bootargs console=${console},${baudrate}" \
-	" root=PARTUUID=${uuid} rootwait rw\0 ${mtdparts}\0" \
+	" root=PARTUUID=${uuid} rootwait rw ${mtdparts} ${optargs}\0" \
 	"nandargs=setenv bootargs console=${console},${baudrate}" \
-	" ubi.mtd=fs root=${nandroot} ${mtdparts}\0" \
+	" ubi.mtd=fs root=${nandroot} ${mtdparts} ${optargs}\0" \
 	"ramargs=setenv bootargs console=${console},${baudrate}" \
-	" root=/dev/ram rw ${mtdparts}\0"                    \
+	" root=/dev/ram rw ${mtdparts} ${optargs}\0"                    \
 	"loadbootscript=" \
 	"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
 	"bootscript=echo Running bootscript from mmc ...;" \