From patchwork Mon Sep 22 18:00:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 398 Return-Path: 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=1758564141; bh=zRueU+97wZdxD7N+DXGhPqXbWqJplfA9OTlavOpp0F8=; 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=kNNKAQcgR1QOLOsGwNZjvod2ssoFLDNjIJ0cLGf+5WHorAIVGM9cCDAfSf0wWBTUX det9+U01krCBdBXe1NpUiu7AIhpa7otzeNt3jUXK7f5opMlOMmk25Wanhwvm7i07CJ 9oRC7/igPOEbCGDHWIKFlKQ5MIv39IKrpHMw0LC145l4ZuUQyDvv2dj+kJaYUCoBVa +VT0pn+qmw6owBw/Gi9HjT00z4L6SFn7NYgF2zZdCq+2F2Yf1YY5JgB7Hm6cF0nrws Va8CgYAxBJyQWCgGTLVRntyc5qzMVnskBcSIRs63crBuVOn0ii7Oo8fEGBkYHjF4zF osdZ8YNKM8pZw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7657F67C55 for ; Mon, 22 Sep 2025 12:02:21 -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 G4IpQ9Z1Gejb for ; Mon, 22 Sep 2025 12:02:21 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564139; bh=zRueU+97wZdxD7N+DXGhPqXbWqJplfA9OTlavOpp0F8=; 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=efKLqm7DeIrGFrnSkBgn6HwpDY6Yyx5CitZVP6vjTHAXJuWvvbshjjFgRXKUXp9em XlkaijLAHARR9jcYu3mJmrVqlnFKmkqt4hzx4xx8XKf4Cc+UqvLUzdyQ6oI6KW9Y5i MbIbUIB9M77xbXZQU66M9lhVG5g41toBce4pHXlKV0mr6X1DBuS0wBnAjAvz2cwLkN 9bZ4Cc9HvtDFWQ5FV8sxZYoYC9DdiDgxgG5usUDLVEwusoOisI2gy5U+wX0WMT+96g uqjmTQNwHCSMeahF9N2RO0AuUofvZa2XbxnToiC88mvgSb8yWlKtvzgM8w4xk/Uuzd zwb82Z8BVijdQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7244467C96 for ; Mon, 22 Sep 2025 12:02:19 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564136; bh=hZ7AWwEEhEvbzH/zWi+sDCUAmIhJDfByChIgnQ4H+Ls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZPgmlFevYlxKPqfsKrUZmcnfu1iUlk/fvIbPaPn1/n2FF0OsjYH8pEUpSdKChttir vmT3w9nJghQqnI0zVMTTfG+waxSIz2uFVICFs6lMksh0MuQOwRh9NrAp4z0DX1z8fZ SBKbupgvsaDz4THA4srOsgRD9np4QCQakGdBUgWoDSGLcKABd7/w7JFbeWmNpzNHI8 88dbKCXGrT/+Rdc7/+FHS99PZ2DdOD1d/KWeqNN1H+QzONXZxpYY6t5xQgvBGaJdeQ Q11E5iOwxaGeX8YbKHQQnBpy42sDiu/f5Ot2yRb/rDr8vSvBVspHUOnPE3+HUwXr0q uxeWsHWFUsrOQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7DA4F67C55; Mon, 22 Sep 2025 12:02:16 -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 SL0li8Rtws1s; Mon, 22 Sep 2025 12:02:16 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564134; bh=4faCVlOps+/K2pA+tYEmUMk/VOEStsJ/lF63vAIeFuQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UHpp3ZmeSBDpHWxVW29o0YI3LIJI7xLtxhtpWEcwDLEGW3vseWv5ugcdMJ/dHFvXr sVYCd/+UwwzObN/1RC267fLT8VlHcldW5EcJSLmRLXZ8MzUTjV8xEi9SteThiBR+wg ILa5/Kadd5RM0QpGIqneOswc9WV8Sze4Mn4YLBjtaH6k+NtSrD48l5yTuuYnTWO77I 9ou2jZA3+lWOtkwxiYWJCkqG4ncEMuo+npOVzc83KbRtnzTB0cuPH5c/wo7ezpfZWT +E9kK79cmiO8YCirRRh0PXPvbh9cLl8oupuaUpDtqm76+up8c7F/1dK9kjNdgWCg+N hGEzPnErT2ANA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E496B67BCF; Mon, 22 Sep 2025 12:02:13 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Sep 2025 12:00:58 -0600 Message-ID: <20250922180116.3088502-15-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: KQMJOQPFKZEU5ASVMI47P7O3JBV2JTEV X-Message-ID-Hash: KQMJOQPFKZEU5ASVMI47P7O3JBV2JTEV 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 , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/24] boot: Add more debugging around devicetree selection List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Provide some debugging for the select string and the FDT which is actually chosen from the FIT. Signed-off-by: Simon Glass --- boot/image-fdt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/image-fdt.c b/boot/image-fdt.c index 87c1fef2193..e692fd1f058 100644 --- a/boot/image-fdt.c +++ b/boot/image-fdt.c @@ -170,6 +170,7 @@ int boot_relocate_fdt(char **of_flat_tree, ulong *of_size) return 0; if (fdt_check_header(fdt_blob) != 0) { + log_debug("fdt at %lx\n", (ulong)map_to_sysmem(fdt_blob)); fdt_error("image is not a fdt"); goto error; } @@ -330,6 +331,7 @@ static int select_fdt(struct bootm_headers *images, const char *select, u8 arch, /* use FIT configuration provided in first bootm * command argument */ + log_debug("using existing config node\n"); fdt_addr = map_to_sysmem(images->fit_hdr_os); fdt_noffset = fit_get_node_from_config(images, FIT_FDT_PROP, fdt_addr); @@ -446,6 +448,7 @@ int boot_get_fdt(void *buf, const char *select, uint arch, char *fdt_blob = NULL; ulong fdt_addr; + log_debug("select '%s'\n", select); if (select || genimg_has_config(images)) { int ret;