From: Vagrant Cascadian <vagrant@debian.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RESEND PATCH 3/4] Switch odroid to use config_distro_bootcmd.
Date: Fri, 5 May 2017 13:54:01 -0700 [thread overview]
Message-ID: <20170505205402.2164-4-vagrant@debian.org> (raw)
In-Reply-To: <20170505205402.2164-1-vagrant@debian.org>
Using distro_bootcmd standardizes board behavior across many
platforms. This is particularly useful for distributions supporting
multiple boards without requiring custom configuration for each board.
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
---
include/configs/odroid.h | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index abae044b66..fa9edd0cbc 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -43,8 +43,6 @@
/* Console configuration */
-#define CONFIG_BOOTARGS "Please use defined boot"
-#define CONFIG_BOOTCOMMAND "run autoboot"
#define CONFIG_DEFAULT_CONSOLE "ttySAC1,115200n8\0"
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR \
@@ -87,6 +85,20 @@
"bl2 raw 0x1f 0x1d;" \
"tzsw raw 0x83f 0x138\0"
+#define BOOT_TARGET_DEVICES(func) \
+ func(MMC, mmc, 1) \
+ func(MMC, mmc, 0)
+
+#include <config_distro_bootcmd.h>
+
+#define MEM_LAYOUT_ENV_SETTINGS \
+ "bootm_size=0x10000000\0" \
+ "kernel_addr_r=0x42000000\0" \
+ "fdt_addr_r=0x43000000\0" \
+ "ramdisk_addr_r=0x43300000\0" \
+ "scriptaddr=0x50000000\0" \
+ "pxefile_addr_r=0x51000000\0"
+
/*
* Bootable media layout:
* dev: SD eMMC(part boot)
@@ -173,7 +185,9 @@
"initrdname=uInitrd\0" \
"initrdaddr=42000000\0" \
"scriptaddr=0x42000000\0" \
- "fdtaddr=40800000\0"
+ "fdtaddr=40800000\0" \
+ MEM_LAYOUT_ENV_SETTINGS \
+ BOOTENV
/* I2C */
#define CONFIG_SYS_I2C_S3C24X0
--
2.11.0
next prev parent reply other threads:[~2017-05-05 20:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-05 20:53 [U-Boot] [RESEND PATCH 0/4] Switch odroid to use distro_bootcmd Vagrant Cascadian
2017-05-05 20:53 ` [U-Boot] [RESEND PATCH 1/4] Fix default console on odroid to only specify the device, as "console=" is redundant with the boot environment Vagrant Cascadian
2017-05-05 20:54 ` [U-Boot] [RESEND PATCH 2/4] Increase the default environment size on odroid, as config_distro_bootcmd requires a more space for the environment Vagrant Cascadian
2017-05-05 20:54 ` Vagrant Cascadian [this message]
2017-05-05 20:54 ` [U-Boot] [RESEND PATCH 4/4] Inherit default value for bootdelay from distro_bootcmd on odroid Vagrant Cascadian
2017-07-12 22:59 ` [U-Boot] [RESEND PATCH 0/4] Switch odroid to use distro_bootcmd Vagrant Cascadian
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=20170505205402.2164-4-vagrant@debian.org \
--to=vagrant@debian.org \
--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.