From: Dalon Westergreen <dwesterg@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/7] arm: socfpga: add env settings to common header
Date: Sun, 22 Jan 2017 19:25:50 -0800 [thread overview]
Message-ID: <1485141956-3667-2-git-send-email-dwesterg@gmail.com> (raw)
In-Reply-To: <1485141956-3667-1-git-send-email-dwesterg@gmail.com>
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.
---
include/configs/socfpga_common.h | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 6285266..40438ed 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -336,5 +336,35 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
* Stack setup
*/
#define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
+
+/* Extra Environment */
+#define CONFIG_COMMON_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" \
+ "mmc_boot=2\0" \
+ "mmc_os=3\0" \
+ "mmcroot=/dev/mmcblk0p${mmc_os}\0" \
+ "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
+ " root=${mmcroot} rw rootwait;" \
+ "bootz ${loadaddr} - ${fdt_addr}\0" \
+ "mmcload=mmc rescan;" \
+ "load mmc 0:${mmc_boot} ${loadaddr} ${bootimage};" \
+ "load mmc 0:${mmc_boot} ${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"
+
+#ifndef CONFIG_EXTRA_ENV_SETTINGS
+#define CONFIG_EXTRA_ENV_SETTINGS CONFIG_COMMON_ENV_SETTINGS
+#endif
#endif /* __CONFIG_SOCFPGA_COMMON_H__ */
--
2.7.4
next prev parent reply other threads:[~2017-01-23 3:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-23 3:25 [U-Boot] [PATCH v2 0/7] arm: socfpga: update socfpga environments Dalon Westergreen
2017-01-23 3:25 ` Dalon Westergreen [this message]
2017-01-23 3:25 ` [U-Boot] [PATCH v2 2/7] arm: socfpga: update de0 nano default environment Dalon Westergreen
2017-01-23 3:25 ` [U-Boot] [PATCH v2 3/7] arm: socfpga: update cyclone5 socdk " Dalon Westergreen
2017-01-23 3:25 ` [U-Boot] [PATCH v2 4/7] arm: socfpga: update arria5 " Dalon Westergreen
2017-01-23 3:25 ` [U-Boot] [PATCH v2 5/7] arm: socfpga: Update DE1 environment Dalon Westergreen
2017-01-23 3:25 ` [U-Boot] [PATCH v2 6/7] arm: socfpga: Update SoCKit environment Dalon Westergreen
2017-01-23 3:25 ` [U-Boot] [PATCH v2 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=1485141956-3667-2-git-send-email-dwesterg@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