From: sbabic at denx.de <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] ARM: imx6q_logic: Allow optional arguments to cmd line
Date: Fri, 26 Apr 2019 09:37:31 +0000 (UTC) [thread overview]
Message-ID: <20190426093748.A592FC21E1D@lists.denx.de> (raw)
In-Reply-To: <20190411184609.6190-1-aford173@gmail.com>
> 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
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
prev parent reply other threads:[~2019-04-26 9:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-11 18:46 [U-Boot] [PATCH] ARM: imx6q_logic: Allow optional arguments to cmd line Adam Ford
2019-04-26 9:37 ` sbabic at denx.de [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190426093748.A592FC21E1D@lists.denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox