From: York Sun <york.sun@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] armv8/ls1043a: Add MTD partition scheme
Date: Tue, 5 Apr 2016 13:32:31 -0700 [thread overview]
Message-ID: <570420DF.5090408@nxp.com> (raw)
In-Reply-To: <1459502893-11399-1-git-send-email-wenbin.song@nxp.com>
On 04/01/2016 02:37 AM, Wenbin Song wrote:
> Add and share the the MTD partition scheme with kernel by defualt bootargs.
> And add the "mtdparts" env.
>
> Signed-off-by: Wenbin Song <wenbin.song@nxp.com>
> ---
> include/configs/ls1043a_common.h | 22 ++++++++++++++++++++--
> 1 file changed, 20 insertions(+), 2 deletions(-)
>
> diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
> index fd243b1..6964873 100644
> --- a/include/configs/ls1043a_common.h
> +++ b/include/configs/ls1043a_common.h
> @@ -236,6 +236,21 @@
> #define CONFIG_HWCONFIG
> #define HWCONFIG_BUFFER_SIZE 128
>
> +#if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
> +#define MTDPARTS_DEFAULT "mtdparts=spi0.0:1m(uboot)," \
> + "5m(kernel),1m(dtb),9m(file_system)"
> +#else
> +#define MTDPARTS_DEFAULT "mtdparts=60000000.nor:1m(nor_bank0_rcw)," \
> + "1m(nor_bank0_uboot),1m(nor_bank0_uboot_env)," \
> + "1m(nor_bank0_fman_uconde),40m(nor_bank0_fit)," \
> + "1m(nor_bank4_rcw),1m(nor_bank4_uboot)," \
> + "1m(nor_bank4_uboot_env),1m(nor_bank4_fman_ucode)," \
> + "40m(nor_bank4_fit);7e800000.flash:" \
> + "1m(nand_uboot),1m(nand_uboot_env)," \
> + "20m(nand_fit);spi0.0:1m(uboot)," \
> + "5m(kernel),1m(dtb),9m(file_system)"
> +#endif
> +
> /* Initial environment variables */
> #define CONFIG_EXTRA_ENV_SETTINGS \
> "hwconfig=fsl_ddr:bank_intlv=auto\0" \
> @@ -248,10 +263,13 @@
> "kernel_start=0x61100000\0" \
> "kernel_load=0xa0000000\0" \
> "kernel_size=0x2800000\0" \
> - "console=ttyAMA0,38400n8\0"
> + "console=ttyAMA0,38400n8\0" \
> + "mtdparts=" MTDPARTS_DEFAULT "\0"
>
> #define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \
> - "earlycon=uart8250,mmio,0x21c0500"
> + "earlycon=uart8250,mmio,0x21c0500 " \
> + MTDPARTS_DEFAULT
You could use $mtdparts here so your bootcmd doesn't get too long.
York
next prev parent reply other threads:[~2016-04-05 20:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 9:28 [U-Boot] [PATCH] armv8/ls1043a: Add MTD partition scheme Wenbin Song
2016-04-05 20:32 ` York Sun [this message]
2016-04-05 21:02 ` York Sun
2016-04-06 3:24 ` Wenbin Song
2016-04-06 4:20 ` Wenbin Song
2016-04-06 4:39 ` York Sun
2016-04-06 7:11 ` Wenbin Song
2016-04-06 17:17 ` York Sun
2016-04-07 5:46 ` Wenbin Song
2016-07-19 22:02 ` york sun
2016-07-20 3:02 ` Wenbin Song
2016-07-20 21:27 ` york sun
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=570420DF.5090408@nxp.com \
--to=york.sun@nxp.com \
--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 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.