| Message ID | 20250922180116.3088502-19-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564153; bh=GFBWSilnT7/LqdDDPa6iqEbvRQ1Jm/K7sVT5rh3qxoY=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=DgDbeQE/k9/JSsCUdvy6+9SMVkJBuav2ngopF7eomhvI9nEdU7q7xtOTmabMls/VQ c8fBDJ9sH28lhkCw76EFkBO95S++KN1XU/0uxLFrSv3yemiMIKuvap4DLsOHVKJ7vN Q25ZCNlfPGJpHptRIZTr99mjle83xuRhVhjX9iYufNrzk1Jd8NVD3WYXg+vJd83NYg RArcLtF1JfPswsH6XdxJCNW8tQ8xqgCYo4c79GjYfFJy9CeqPN9kBM0jcS21QAJlZf kbcXctx7bcoopCrHzs631QF/KhoYqFMVQlkuZR+A726jaR6nBGlMaDs2T9X3O1Zbs0 jAq9glHk+bMhQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9603867C32 for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:02:33 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id M5jngtc22qRp for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:02:33 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564153; bh=GFBWSilnT7/LqdDDPa6iqEbvRQ1Jm/K7sVT5rh3qxoY=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=DgDbeQE/k9/JSsCUdvy6+9SMVkJBuav2ngopF7eomhvI9nEdU7q7xtOTmabMls/VQ c8fBDJ9sH28lhkCw76EFkBO95S++KN1XU/0uxLFrSv3yemiMIKuvap4DLsOHVKJ7vN Q25ZCNlfPGJpHptRIZTr99mjle83xuRhVhjX9iYufNrzk1Jd8NVD3WYXg+vJd83NYg RArcLtF1JfPswsH6XdxJCNW8tQ8xqgCYo4c79GjYfFJy9CeqPN9kBM0jcS21QAJlZf kbcXctx7bcoopCrHzs631QF/KhoYqFMVQlkuZR+A726jaR6nBGlMaDs2T9X3O1Zbs0 jAq9glHk+bMhQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 86AA367C52 for <u-boot-concept@u-boot.org>; Mon, 22 Sep 2025 12:02:33 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564151; bh=ZVIg1DVVg6WbWsxGUbcXAsfaki9Y0MTCT0OPEjY7DNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aw5OjoUunslCJTQiVegvRhEiWz2DeSekyUNpI74Zyy+TfnG49rasS1f3HWNY6DEk1 zb0dWV9k8y4rD/tIPx8Y+778+1enIERkGHUr7x8o+KIvkDC6ioy3T5yHXA1jlvnhzo V0/YjLPuSPCUzT/kBPXXDdqPOtqOe1iNXDfL5Nhfyhn9gJvyzTD1EuBH2EfpewgeDO 94PCT/Z4YGDbAyndL8DIuS50xCOZ/WtlVJ3uN0dpxtU6uTjJCpvbYU+PlFUcAP8b4E gdBs2ktGoYUcvUR0WKQnvYLPQv+PNqGzj0RM9pf8wIZUumkJscqpqdYFmcCyFztVCC 2DZC/h3uho9kw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7E66B67C52; Mon, 22 Sep 2025 12:02:31 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id gRlTQwPAv2aE; Mon, 22 Sep 2025 12:02:31 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564146; bh=K93KCoECWGoTj16fRtogYeAvY4Cru4PkQXQGy/G1t3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IaxRFGPtuL0R5kSax19EwqKccNun6A+gDm7zdG5R4xP0nF/MrquWSOqOCByoxb6N1 X8m+rl1fXI3GNCk+FeQnOppO+WYF/NM8hTEh127OjKmywAqlS8YmO+4ItQwdiqz1tr ISHxDcGuyOHj4aFcObeD69PKiDWG82i+sjMtiQ/vY4vADTQkgR2qeFQehXs7u2zR7q jY1yhSlK1Bzbp7oZ+gifEem28Gf2huGsHqrtp6lNSi7PQbBEKQRHxgp1tOJUQK0+fG A69nXSUg7M32KtH48Xf/CxwcknvnWXG2y5AYcocAc74xSlnasZuk2LC6F7rF6O2kwx fBKGsOY1oYfYg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E085C67C32; Mon, 22 Sep 2025 12:02:25 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 22 Sep 2025 12:01:02 -0600 Message-ID: <20250922180116.3088502-19-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250922180116.3088502-1-sjg@u-boot.org> References: <20250922180116.3088502-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 7PBVHSGG56PK57LVUAIEAEL2WHFXCTBX X-Message-ID-Hash: 7PBVHSGG56PK57LVUAIEAEL2WHFXCTBX X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 18/24] arm: bootm: Fix a confusing message about ATAGs List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/7PBVHSGG56PK57LVUAIEAEL2WHFXCTBX/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
boot: efi: Various improvements to booting with the EFI app
|
|
Commit Message
Simon Glass
Sept. 22, 2025, 6:01 p.m. UTC
From: Simon Glass <sjg@chromium.org> When an FDT is not provided, U-Boot currently says: FDT and ATAGS support not compiled in even if CONFIG_OF_LIBFDT and CONFIG_LMB are enabled. This can send people on a wild goose chase. Add a separate message for a devicetree not being present. Signed-off-by: Simon Glass <sjg@chromium.org> --- arch/arm/lib/bootm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 7c650c3ab67..111c2132c6e 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -167,8 +167,9 @@ __weak void board_prep_linux(struct bootm_headers *images) { } static int boot_prep_linux(struct bootm_headers *images) { char *commandline = env_get("bootargs"); + bool use_fdt = CONFIG_IS_ENABLED(OF_LIBFDT) && IS_ENABLED(CONFIG_LMB); - if (CONFIG_IS_ENABLED(OF_LIBFDT) && IS_ENABLED(CONFIG_LMB) && images->ft_len) { + if (use_fdt && images->ft_len) { debug("using: FDT\n"); if (image_setup_linux(images)) { log_err("FDT creation failed!"); @@ -203,6 +204,9 @@ static int boot_prep_linux(struct bootm_headers *images) } setup_board_tags(¶ms); setup_end_tag(gd->bd); + } else if (use_fdt && !images->ft_len) { + log_err("No FDT provided\n"); + return -ENOENT; } else { panic("FDT and ATAGS support not compiled in\n"); }