From: Harrison Mutai <harrison.mutai@arm.com>
To: David Feng <fenghua@phytium.com.cn>,
Linus Walleij <linus.walleij@linaro.org>,
Peter Hoyes <Peter.Hoyes@arm.com>,
Liviu Dudau <liviu.dudau@foss.arm.com>,
Tom Rini <trini@konsulko.com>
Cc: nd@arm.com, andre.przywara@arm.com, manish.pandey2@arm.com,
Harrison Mutai <harrison.mutai@arm.com>,
u-boot@lists.denx.de
Subject: [PATCH 2/4] board: vexpress64: default to hardware device tree
Date: Wed, 18 Dec 2024 15:39:29 +0000 [thread overview]
Message-ID: <20241218153933.37649-3-harrison.mutai@arm.com> (raw)
In-Reply-To: <20241218153933.37649-1-harrison.mutai@arm.com>
When booting into the Linux kernel with semi-hosting, use the device
tree provided by hardware unless one is provided in the current
directory.
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
---
include/configs/vexpress_aemv8.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/configs/vexpress_aemv8.h b/include/configs/vexpress_aemv8.h
index 8020689e39..2341b3a938 100644
--- a/include/configs/vexpress_aemv8.h
+++ b/include/configs/vexpress_aemv8.h
@@ -169,12 +169,14 @@
" if load hostfs - ${kernel_addr_r} ${kernel_name}; then" \
" setenv fdt_high 0xffffffffffffffff;" \
" setenv initrd_high 0xffffffffffffffff;" \
- " load hostfs - ${fdt_addr_r} ${fdtfile};" \
+ " if test -n load hostfs - ${fdt_addr_r} ${fdtfile}; then" \
+ " fdt move $fdtcontroladdr $fdt_addr_r;" \
+ " fi;" \
" load hostfs - ${ramdisk_addr_r} ${ramdisk_name};" \
" fdt addr ${fdt_addr_r};" \
" fdt resize;" \
" fdt chosen ${ramdisk_addr_r} ${filesize};" \
- " booti $kernel_addr_r - $fdt_addr_r;" \
+ " booti $kernel_addr_r - ${fdt_addr_r};" \
" fi;" \
"fi\0"
#define BOOTENV_DEV_NAME_SMH(devtypeu, devtypel, instance) "smh "
--
2.46.2
next prev parent reply other threads:[~2024-12-18 15:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20241218153933.37649-1-harrison.mutai@arm.com>
2024-12-18 15:39 ` [PATCH 1/4] bloblist: fix typo in code comments Harrison Mutai
2024-12-18 15:48 ` Tom Rini
2024-12-18 17:23 ` Harrison Mutai
2024-12-18 17:30 ` Tom Rini
2024-12-18 15:39 ` Harrison Mutai [this message]
2024-12-27 8:25 ` [PATCH 2/4] board: vexpress64: default to hardware device tree Linus Walleij
2024-12-18 15:39 ` [PATCH 3/4] bloblist: add support for CONFIG_BLOBLIST_PASSAGE Harrison Mutai
2024-12-18 16:21 ` Tom Rini
2024-12-18 15:39 ` [PATCH 4/4] board: vexpress64: enable bloblist for SPL handoff Harrison Mutai
2024-12-18 16:31 ` Tom Rini
2024-12-19 16:04 ` Harrison Mutai
2024-12-27 16:19 ` Tom Rini
2025-02-04 17:58 [PATCH v3 0/4] Enable bloblist support on Vexpress64 Harrison Mutai
2025-02-04 17:58 ` [PATCH 2/4] board: vexpress64: default to hardware device tree Harrison Mutai
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=20241218153933.37649-3-harrison.mutai@arm.com \
--to=harrison.mutai@arm.com \
--cc=Peter.Hoyes@arm.com \
--cc=andre.przywara@arm.com \
--cc=fenghua@phytium.com.cn \
--cc=linus.walleij@linaro.org \
--cc=liviu.dudau@foss.arm.com \
--cc=manish.pandey2@arm.com \
--cc=nd@arm.com \
--cc=trini@konsulko.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