From patchwork Mon Sep 22 18:01:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 400 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=1758564146; bh=hDQNda6tGtxBV9Ei32RNJhSfrt5u6hM2dbtIpqMokpM=; 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=ebm3CltPMi2YfOcO4SFC4XqyVlgRHUEYUJtyGYZrEDqe89EEXdZHOwoeY1N//5k5T m8c1u1JjkQfHtA2EMSNMkvtVsT2R3kQVRyB5cIX6gyiZbs2BkBOqwh20pZPHBmnN3m 8vfbOF0ZEyDjIfIm9lQmpXhK+bYHn5gCEJmW262dv19pqfMqBRKebjox+PiJTaYvyl WcCYqggbhMTfDqFDr4iu1/v2sZSP8/NN6/TfVufpVdOjZHUBwuhEd+iPoRpJuWSObt C2kGh1xoHrrUwSCYtm6Sq+9DHtHnLWWbDZudSstIJ1g5gkTwIPkg8CHZPUHvuP6Wjc 4K5HuMP2vQeNQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D8BBD5FE1A for ; Mon, 22 Sep 2025 12:02:26 -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 2QKfG63nx1_M for ; Mon, 22 Sep 2025 12:02:26 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564146; bh=hDQNda6tGtxBV9Ei32RNJhSfrt5u6hM2dbtIpqMokpM=; 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=ebm3CltPMi2YfOcO4SFC4XqyVlgRHUEYUJtyGYZrEDqe89EEXdZHOwoeY1N//5k5T m8c1u1JjkQfHtA2EMSNMkvtVsT2R3kQVRyB5cIX6gyiZbs2BkBOqwh20pZPHBmnN3m 8vfbOF0ZEyDjIfIm9lQmpXhK+bYHn5gCEJmW262dv19pqfMqBRKebjox+PiJTaYvyl WcCYqggbhMTfDqFDr4iu1/v2sZSP8/NN6/TfVufpVdOjZHUBwuhEd+iPoRpJuWSObt C2kGh1xoHrrUwSCYtm6Sq+9DHtHnLWWbDZudSstIJ1g5gkTwIPkg8CHZPUHvuP6Wjc 4K5HuMP2vQeNQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C6BEA67C5F for ; Mon, 22 Sep 2025 12:02:26 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564143; bh=D1oKL3Ip4BClm+9vgnr3TLX2H3lph0IJ9HNRI/ijlUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UmhkjgjGMvrwzsb0eadaXuRMCVr92BtTlsf5dTteHuweGsKsUGv4TloasQgHR9sGU ZDoKACpaWiUufsNNmW6swICBxAXtBkFO72jg+CgLke7kMDV67RxHvAgAab42pxio1Z 1ho8Nvsjr8u58jjLjoMk2gCm830a6zm6ks5ofIF5jB555R09hhRsJwFCJ9P0n9kZ/k jXLS1YpthXzEvu9bbSyjtCaxxD0ayMA9FIHgqYQ5B9VoAVJmX5sK81C2D6T9SePDhs yK/8tuU9qUAzeHjCJgLpUj6K+j6USbTC0P8fTl1fEy9xGJJdB2eP9OGVIssykuLfN6 ipSK+LthXgQ0w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B67A467C32; Mon, 22 Sep 2025 12:02:23 -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 kPoEPk4_MviH; Mon, 22 Sep 2025 12:02:23 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564140; bh=VFBdL8WUFetw7e2yiPBLwgzGQIGUrrBxgrgV1qXSDRk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZCbx2z+zVfrtO6GFvgfdXb/JM8kKVFIfdnQa54SmGuMa+9Ny+opzm0EOQmaSNP8bS ahrklGm06HlcI2nKue+AcJG2lmhcTAlLzyTgB4Or+ZLgBgjoSWOk6cqpPl6MGboWqk fPAHFguOjOR0caAFTXyr6sN1pbDN4/bdo5jO9a+zH88bDnA4NA3x7RnMnlOfqt/KtX dPnLQ7JJge3xcWRM2jYVbdbyAYFTUbjy+KqfObUmAAwtzceu81EXyKQdwQlXCJrLt2 qnyP2HsTOYe+9GU/GkDaa7R1A15iQqvKlw4scSruMufy8b/gziF9NJX5/BN4Q1li/F C8Z+gvXdW7beg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7F12F67C68; Mon, 22 Sep 2025 12:02:20 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Sep 2025 12:01:00 -0600 Message-ID: <20250922180116.3088502-17-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: Z7YWHW3EAH6VEBSKBRI55UWP2UDA3AKS X-Message-ID-Hash: Z7YWHW3EAH6VEBSKBRI55UWP2UDA3AKS 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 16/24] boot: Add more debugging in FIT-handling 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 return values from a few functions to make it easier to track the flow of execution in a few places. Signed-off-by: Simon Glass --- boot/image-fit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot/image-fit.c b/boot/image-fit.c index 617bc3664d9..7bcdb97985a 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -2467,10 +2467,12 @@ static int handle_load_op(const void *fit, int noffset, const char *prop_name, prop_name, data, load); } else { load = data; /* No load address specified */ + log_debug("No load\n"); } ret = decomp_image(fit, noffset, prop_name, buf, size, image_type, load_op, bootstage_id, data, load, load_end); + log_debug("Decomp ret %d\n", ret); if (ret) return ret; @@ -2517,6 +2519,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr, ret = handle_load_op(fit, noffset, prop_name, buf, len, image_type, load_op, bootstage_id, &load); + log_debug("handle_load_op() returned %d\n", ret); if (ret) return ret; @@ -2527,6 +2530,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr, } /* note that fit_uname will always be NULL if noffset == -ENOPKG */ + log_debug("noffset %d\n", noffset); if (noffset >= 0 || noffset == -ENOPKG) { if (fit_unamep) *fit_unamep = (char *)fit_uname;