public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rick Chen <rick@andestech.com>
To: <ycliang@andestech.com>, <rickchen36@gmail.com>, <rick@andestech.com>
Cc: <u-boot@lists.denx.de>, <trini@konsulko.com>, <sjg@chromium.org>,
	<xypron.glpk@gmx.de>
Subject: [PATCH 2/4] riscv: dts: Support Fast-Boot
Date: Wed, 7 Dec 2022 14:23:32 +0800	[thread overview]
Message-ID: <20221207062334.21292-2-rick@andestech.com> (raw)
In-Reply-To: <20221207062334.21292-1-rick@andestech.com>

By enabling SPL_OPENSBI_OS_BOOT, it will generate linux.itb instead
of default u-boot.itb after compiling. And Lnux Kernel Image will be
appended in linux.itb. Then it can jump to Linux Kernel from openSBI
directly.

Signed-off-by: Rick Chen <rick@andestech.com>
---
 arch/riscv/dts/binman.dtsi | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/dts/binman.dtsi b/arch/riscv/dts/binman.dtsi
index b8fc8f7f35..ca72719d19 100644
--- a/arch/riscv/dts/binman.dtsi
+++ b/arch/riscv/dts/binman.dtsi
@@ -13,14 +13,27 @@
 
 &binman {
 	itb {
-		filename = "u-boot.itb";
+		filename = CONFIG_SPL_OPENSBI_FIT_NAME;
 
 		fit {
-			description = "Configuration to load OpenSBI before U-Boot";
+			description = "Configuration to load OpenSBI before OS";
 			#address-cells = <1>;
 			fit,fdt-list = "of-list";
 
 			images {
+#ifdef CONFIG_SPL_OPENSBI_OS_BOOT
+				linux {
+					description = "Linux";
+					type = "standalone";
+					os = "Linux";
+					arch = "riscv";
+					compression = "none";
+					load = <CONFIG_TEXT_BASE>;
+					linux_blob: blob-ext {
+						filename = "Image";
+					};
+				};
+#else
 				uboot {
 					description = "U-Boot";
 					type = "standalone";
@@ -33,6 +46,7 @@
 						filename = "u-boot-nodtb.bin";
 					};
 				};
+#endif
 
 				opensbi {
 					description = "OpenSBI fw_dynamic Firmware";
@@ -72,6 +86,12 @@
 					fdt = "fdt-SEQ";
 #endif
 				};
+
+				conf-2 {
+					description = "linux";
+					firmware = "opensbi";
+					loadables = "linux";
+				};
 			};
 		};
 	};
-- 
2.17.1


  reply	other threads:[~2022-12-07  6:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07  6:23 [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT Rick Chen
2022-12-07  6:23 ` Rick Chen [this message]
2022-12-07  6:23 ` [PATCH 3/4] riscv: ae350: Support Fast Boot Rick Chen
2022-12-07  6:23 ` [PATCH 4/4] doc: ae350: Add Fast Boot description Rick Chen
2022-12-09 13:48 ` [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT Sean Anderson
2022-12-09 22:07   ` Tom Rini
2022-12-12  6:45     ` Rick Chen
2022-12-12 15:03       ` Tom Rini
2022-12-13  0:31         ` Sean Anderson
2022-12-13  0:42           ` Rick Chen
2022-12-13 16:24             ` Tom Rini
2022-12-14  2:01               ` Sean Anderson
2022-12-14  6:32                 ` Rick Chen
2022-12-13  1:31         ` Rick Chen
2022-12-12  7:49   ` Rick Chen
2022-12-12 15:52     ` Tom Rini
2022-12-13  2:06       ` Rick Chen
2022-12-13 16:27         ` Tom Rini
2022-12-14  0:49           ` Rick Chen
2022-12-14  1:54             ` Tom Rini
2022-12-14  2:14               ` Rick Chen

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=20221207062334.21292-2-rick@andestech.com \
    --to=rick@andestech.com \
    --cc=rickchen36@gmail.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    --cc=ycliang@andestech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox