From patchwork Mon Sep 22 18:00:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 395 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=1758564131; bh=BtHqyoacUoRM6dDL2fyERzy7md/MydZRmy8KWZu7WI0=; 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=DJ0Ba6n/sZgXmwGnma1uWG3oFmqRBuO1JMftzRmhBOuYWpYO4b+PdtQC1TBYjJ8zC FuHgvxAhqoAKFZpfxW7w5pwwj0fF5fuwKpg3M2HhugsfPzkqvSipQ6ss7QOHaY+9Lz rzVb/kiie4mii6/ViPVR5QhXjijK0fhKmFOgXpbCeBzEBb3FLhFsVjKKSFbFnGcGX8 vYvmnhiSHvMTdxwpMPwbF9rvVeuUs/PAtnCrpMAPh7nxSkkZXTqpqm10Vylx8fc8tw nIO7tD43Bg7E3XF/1EOvTB6fg7pD7YO+ToD2fqiCboZGOIyE/mTzTGhBlShWlGfS0D FpjyOQlykwDQA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EFBD167C52 for ; Mon, 22 Sep 2025 12:02:11 -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 Z_r6PVxz4VYw for ; Mon, 22 Sep 2025 12:02:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564131; bh=BtHqyoacUoRM6dDL2fyERzy7md/MydZRmy8KWZu7WI0=; 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=DJ0Ba6n/sZgXmwGnma1uWG3oFmqRBuO1JMftzRmhBOuYWpYO4b+PdtQC1TBYjJ8zC FuHgvxAhqoAKFZpfxW7w5pwwj0fF5fuwKpg3M2HhugsfPzkqvSipQ6ss7QOHaY+9Lz rzVb/kiie4mii6/ViPVR5QhXjijK0fhKmFOgXpbCeBzEBb3FLhFsVjKKSFbFnGcGX8 vYvmnhiSHvMTdxwpMPwbF9rvVeuUs/PAtnCrpMAPh7nxSkkZXTqpqm10Vylx8fc8tw nIO7tD43Bg7E3XF/1EOvTB6fg7pD7YO+ToD2fqiCboZGOIyE/mTzTGhBlShWlGfS0D FpjyOQlykwDQA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DBCD267BCF for ; Mon, 22 Sep 2025 12:02:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564129; bh=xJvwXa97tNokwu6FO7t2qkM6565Ca9aNsA2jGJlugio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XtZzwDk5X6UAAwc50bCQ1cFlL6BVerIfRRxeCH6nd5k00mc9J1P4GO5NZKz/k60N7 59JsWFN+qgy/At09D66KLJZM1GtImSvmFHwpvvETH2QirtUTfaQvawDoW6rR1AEQor 3cIDvKwYRbhoS0IF0d808SAsEeQVv2kUlStlhN0wlb3Qm7Gg2/HM+IcVAL0NgzK2aM NoeEgFrYAKfe7VF8Q3H51LSvHqOYQJBrsjDbmc0vI7I/wwVzvSCP1QdI1OyOkNkW4P 2UWpjlKOhpeOMO+Lj26h5JbwLPr2bFGsrfFToYgAXHHREv9ploSWU1tnwgFmeGnqlB 1DIdPWREaEAyw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C404A67BCF; Mon, 22 Sep 2025 12:02:09 -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 2xdHOPI1EO48; Mon, 22 Sep 2025 12:02:09 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758564127; bh=+Z9Scyzo80ZzQvN+h9ov0uX/1zSUtkmvnRFBCpBs+XA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CBbCz/D4mJsQqb4HTEEmI0kTbfVutWWTvdY4AhHxvXTuBfwL7IeMwN1cXq3Qe30tG jqkX9eaaw6iQo/vWr7e2HgqZ/9xaYKI0vB91DZ7B9r4lMz07GKk+RCMmhxKh55hB9B UoasujMjFeCnGyuZQSNRPTNtG+K9ORGE/3UhUpTkEQmuWd+SUpA2wqgdcqQ9i5Dgig u0WsBJUC716JIm2PACTBY8zl/cQdo797wtSjEJXI9xoJT2zELTqc326dUSy4lYNUJ7 ZUtxvl4loeBZXYd4oj1DPEM/teGlwKMYD7BSfBkPC2OM3SbWREzfI1q3EbG1nANdlA hzfLJn18BmOdw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 45EA167B38; Mon, 22 Sep 2025 12:02:07 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Sep 2025 12:00:56 -0600 Message-ID: <20250922180116.3088502-13-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: SI3BZVPXRDCX243CDRK3N6VYGZ5ZQNGK X-Message-ID-Hash: SI3BZVPXRDCX243CDRK3N6VYGZ5ZQNGK 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 12/24] boot: Show the ramdisk node when debugging 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 Add a new debug line for the offset of the ramdisk node. Fix up some missing newlines on other log messages in this file, while we are here. Signed-off-by: Simon Glass --- boot/image-board.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boot/image-board.c b/boot/image-board.c index 9d75def96e2..8dbc344ffb9 100644 --- a/boot/image-board.c +++ b/boot/image-board.c @@ -392,7 +392,7 @@ static int select_ramdisk(struct bootm_headers *images, const char *select, u8 a break; case IMAGE_FORMAT_FIT: if (CONFIG_IS_ENABLED(FIT)) { - log_debug("ramdisk fit load"); + log_debug("ramdisk fit load\n"); rd_noffset = fit_image_load(images, rd_addr, &fit_uname_ramdisk, &fit_uname_config, @@ -400,6 +400,7 @@ static int select_ramdisk(struct bootm_headers *images, const char *select, u8 a BOOTSTAGE_ID_FIT_RD_START, FIT_LOAD_OPTIONAL_NON_ZERO, rd_datap, rd_lenp); + log_debug("rd_noffset %d\n", rd_noffset); if (rd_noffset < 0) return rd_noffset; @@ -418,7 +419,7 @@ static int select_ramdisk(struct bootm_headers *images, const char *select, u8 a void *vendor_boot_img = map_sysmem(get_avendor_bootimg_addr(), 0); void *ramdisk_img; - log_debug("android abootimg"); + log_debug("android abootimg\n"); if (init_boot_img == -1) ramdisk_img = map_sysmem(boot_img, 0); else @@ -431,7 +432,7 @@ static int select_ramdisk(struct bootm_headers *images, const char *select, u8 a } else { void *ptr = map_sysmem(images->os.start, 0); - log_debug("android other"); + log_debug("android other\n"); ret = android_image_get_ramdisk(ptr, NULL, rd_datap, rd_lenp); unmap_sysmem(ptr); }