All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nathan Dunne" <Nathan.Dunne@arm.com>
To: meta-arm@lists.yoctoproject.org
Cc: nd@arm.com, Nathan Dunne <Nathan.Dunne@arm.com>
Subject: [PATCH gatesgarth] arm-autonomy/u-boot: Modified kernel_addr for fvp-base with xen
Date: Wed, 24 Mar 2021 15:26:39 +0000	[thread overview]
Message-ID: <20210324152639.4375-1-nathan.dunne@arm.com> (raw)

From: Nathan Dunne <Nathan.Dunne@arm.com>

Modified the default booti command for fvp-base with xen to boot
into xen at 0x84000000, rather than requiring the user to break
into the u-boot prompt.

Issue-Id: SCM-2195
Signed-off-by: Nathan Dunne <Nathan.Dunne@arm.com>
Change-Id: I91f324ce77716474596a78f97e74f432969d9803
---
 .../documentation/arm-autonomy-quickstart.md     |  4 ++++
 .../fvp-base/xen_u-boot_kernel_addr.patch        | 16 ++++++++++++++++
 .../recipes-bsp/u-boot/u-boot_2020.07.bbappend   |  9 +++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 meta-arm-autonomy/recipes-bsp/u-boot/u-boot-2020.07/fvp-base/xen_u-boot_kernel_addr.patch
 create mode 100644 meta-arm-autonomy/recipes-bsp/u-boot/u-boot_2020.07.bbappend

diff --git a/meta-arm-autonomy/documentation/arm-autonomy-quickstart.md b/meta-arm-autonomy/documentation/arm-autonomy-quickstart.md
index ce9dd53..2a997b8 100644
--- a/meta-arm-autonomy/documentation/arm-autonomy-quickstart.md
+++ b/meta-arm-autonomy/documentation/arm-autonomy-quickstart.md
@@ -119,6 +119,10 @@ To boot the system using an u-boot base board you will need to:

 In this example the addresses might need to be adapted depending on your board.

+For arm-autonomy host on FVP-Base u-boot has been modified such that
+`booti 0x84000000 - 0x83000000` is the default boot command. If FVP-Base is your
+MACHINE target there should be no need to interfere with u-boot.
+
 Guest project
 -------------
 The guest projects are not target specific and will use a Yocto MACHINE defined
diff --git a/meta-arm-autonomy/recipes-bsp/u-boot/u-boot-2020.07/fvp-base/xen_u-boot_kernel_addr.patch b/meta-arm-autonomy/recipes-bsp/u-boot/u-boot-2020.07/fvp-base/xen_u-boot_kernel_addr.patch
new file mode 100644
index 0000000..ac27dde
--- /dev/null
+++ b/meta-arm-autonomy/recipes-bsp/u-boot/u-boot-2020.07/fvp-base/xen_u-boot_kernel_addr.patch
@@ -0,0 +1,16 @@
+Upstream Status: Inappropriate [meta-arm-autonomy specifc u-boot config]
+Signed-off-by: Nathan Dunne <nathan.dunne@arm.com>
+
+diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/vexpress_aemv8a.h
+index e63c335f85..9ee050a4a6 100644
+--- a/include/configs/vexpress_aemv8a.h
++++ b/include/configs/vexpress_aemv8a.h
+@@ -162,7 +162,7 @@
+ #elif CONFIG_TARGET_VEXPRESS64_BASE_FVP
+ #define CONFIG_EXTRA_ENV_SETTINGS	\
+ 				"kernel_name=Image\0"		\
+-				"kernel_addr=0x80080000\0"	\
++				"kernel_addr=0x84000000\0"	\
+ 				"initrd_name=ramdisk.img\0"	\
+ 				"initrd_addr=0x88000000\0"	\
+ 				"fdtfile=devtree.dtb\0"		\
diff --git a/meta-arm-autonomy/recipes-bsp/u-boot/u-boot_2020.07.bbappend b/meta-arm-autonomy/recipes-bsp/u-boot/u-boot_2020.07.bbappend
new file mode 100644
index 0000000..daabc5f
--- /dev/null
+++ b/meta-arm-autonomy/recipes-bsp/u-boot/u-boot_2020.07.bbappend
@@ -0,0 +1,9 @@
+# Machine specific u-boot
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:"
+
+#
+# FVP BASE
+#
+
+SRC_URI_append_fvp-base = "${@bb.utils.contains('DISTRO_FEATURES', 'arm-autonomy-host', ' file://xen_u-boot_kernel_addr.patch', '', d)}"
--
2.17.1


                 reply	other threads:[~2021-03-24 15:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210324152639.4375-1-nathan.dunne@arm.com \
    --to=nathan.dunne@arm.com \
    --cc=meta-arm@lists.yoctoproject.org \
    --cc=nd@arm.com \
    /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.