From: Dalon Westergreen <dwesterg@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header
Date: Mon, 30 Jan 2017 07:11:15 -0800 [thread overview]
Message-ID: <1485789075.27967.10.camel@gmail.com> (raw)
In-Reply-To: <fe16ff21-8bf0-2c17-3b40-3f3b26ced689@suse.de>
On Mon, 2017-01-30 at 15:55 +0100, Alexander Graf wrote:
> On 01/29/2017 12:05 AM, Dalon Westergreen wrote:
> >
> > From: Dalon Westergreen <dalon.westergreen@intel.com>
> >
> > Move repeated environment settings for socfpga boards
> > to a common header.
> >
> > The default values for the boot partition and the
> > OS filesystem partition have changed and as
> > as result the default uboot environment for socfpga
> > boards needs updating.
> >
> > Move to using??CONFIG_DEFAULT_DEVICE_TREE for setting the
> > default linux devicetree used during linux boot.
> >
> > Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
> > ---
> > ? include/configs/socfpga_common.h | 35 +++++++++++++++++++++++++++++++++--
> > ? 1 file changed, 33 insertions(+), 2 deletions(-)
> >
> > diff --git a/include/configs/socfpga_common.h
> > b/include/configs/socfpga_common.h
> > index 6285266..744aee9 100644
> > --- a/include/configs/socfpga_common.h
> > +++ b/include/configs/socfpga_common.h
> > @@ -312,10 +312,14 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> > ? /* SPL SDMMC boot support */
> > ? #ifdef CONFIG_SPL_MMC_SUPPORT
> > ? #if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
> > -#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
> > ? #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot-dtb.img"
> > +#ifdef CONFIG_SPL_FAT_SUPPORT
> > +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
> > +#else
> > +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
> > +#endif
> > ? #else
> > -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
> > +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3
> > ? #endif
> > ? #endif
> > ??
> > @@ -336,5 +340,32 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> > ???* Stack setup
> > ???*/
> > ? #define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
> > +
> > +/* Extra Environment */
> > +#ifndef CONFIG_EXTRA_ENV_SETTINGS
> > +#define CONFIG_EXTRA_ENV_SETTINGS \
> > + "verify=n\0" \
> > + "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
> > + "bootimage=" CONFIG_BOOTFILE "\0" \
> > + "fdt_addr=100\0" \
> > + "fdtimage=" CONFIG_DEFAULT_FDT_FILE "\0" \
> > + "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
> > + "bootm ${loadaddr} - ${fdt_addr}\0" \
> > + "mmcroot=/dev/mmcblk0p2\0" \
> > + "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
> > + " root=${mmcroot} rw rootwait;" \
> > + "bootz ${loadaddr} - ${fdt_addr}\0" \
> > + "mmcload=mmc rescan;" \
> > + "load mmc 0:1 ${loadaddr} ${bootimage};" \
> > + "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
> > + "qspiload=sf probe && mtdparts default && run ubiload\0" \
> > + "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
> > + " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
> > + "bootz ${loadaddr} - ${fdt_addr}\0" \
> > + "ubiload=ubi part UBI && ubifsmount ubi0 && " \
> > + "ubifsload ${loadaddr} /boot/${bootimage} && " \
> > + "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
>
> What is the default bootcmd with this environment? Also, keep in mind?
> that it's 2017. Is there any good reason not to default to distro boot?
>
>
> Alex
>
The default is board dependent, but in general is mmcboot. there is no
good reason to not use distro boot. ?Frank Kunz submitted something
to that end for one of these boards the other day. ?once the?
environment common, we will move to distro boot.
next prev parent reply other threads:[~2017-01-30 15:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header Dalon Westergreen
2017-01-30 14:55 ` Alexander Graf
2017-01-30 15:11 ` Dalon Westergreen [this message]
2017-01-30 15:14 ` Alexander Graf
2017-01-28 23:05 ` [U-Boot] [PATCH v8 2/7] arm: socfpga: update de0 nano default environment Dalon Westergreen
2017-01-30 15:04 ` Alexander Graf
2017-01-28 23:05 ` [U-Boot] [PATCH v8 3/7] arm: socfpga: update cyclone5 socdk " Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 4/7] arm: socfpga: update arria5 " Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 5/7] arm: socfpga: Update DE1 environment Dalon Westergreen
2017-01-30 15:07 ` Alexander Graf
2017-01-30 15:17 ` Westergreen, Dalon
2017-01-28 23:05 ` [U-Boot] [PATCH v8 6/7] arm: socfpga: Update SoCKit environment Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 7/7] arm: socfpga: Update sr1500 environment Dalon Westergreen
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=1485789075.27967.10.camel@gmail.com \
--to=dwesterg@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox