From patchwork Wed Aug 20 14:46:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 90 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=1755701226; bh=82plFbYH/e3GXlLsU0Z0nV/BLBa9Vihl3fV05HQGyfA=; 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=gnTM5qoSAQpSdl5lumthOyRdTaQVf/KQLphVaot29bYFDzLR8FLhRY8XDsO2orFmJ xQM88Tb8ygUyOv3Qfw7JN2PA6jpmCUuIPUbW0SJCTli1CVCdFLGS4QjphOgBR7bjbo UEng6PNBbZ9csGc+75Q5durZYe8S0dGHTnF6Viv663FJldho3GpQvPI7lXB1bNQNqd nDuHk9ureiAg5EXsr+zUNwyZHaiGWRftnhkz/IalzRI2aDG3y0qhyjOHpGhG/DqIcR UKrSm+1Qy78qruD4dd0xAI8jZNT/Buyx0IUIKOeMIE1jKxS/f1/W4sw2Siz3Kbhfm9 OrAxa2/82Qq1g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1C23C6768B for ; Wed, 20 Aug 2025 08:47:06 -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 w_P3qGvftgoJ for ; Wed, 20 Aug 2025 08:47:06 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701224; bh=82plFbYH/e3GXlLsU0Z0nV/BLBa9Vihl3fV05HQGyfA=; 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=rLSDinpMfcVeZMDuCCU84WjTmR1jhOVLmtXWWyGKRxcyfPQNRby1F0NlV7oLA6wQ4 udxvhhm/m2hX74eRILkD+MVu+YaVyyw5q4uX+IS9/2USAcsOin6Kp+HioPpS0Bvmhi 5BSjo4tUshxKIrdfmHkQ8RSqSAYLjq45WHbd1o4dAEV5TqRcj+tvaGyj/Qe0LfSEZa 8mJW934ocBHyrUTapbnjNJVz6vv3F3VgmCInu5B1WdFp8UHT8QuOz0+xeMD0Kxh2cx /Dhf9FBYvL3dH2NkhCSUY8ztTJ0QA2jPFtw8G66ZwedaCy1Wl2u5PXb0os1GgOfNbd WA47TskCFmfvw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AA907676A0 for ; Wed, 20 Aug 2025 08:47:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701218; bh=xC2ysOX6ikCzRmFVHcPCr6g+hpy4WD4IMh+1Cfixoeo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JZ8Vt0+B2MnVvIpIppOZiMmUCXM0+LVA8GMxbCxFv+YDNVpUB06k3aazWQx9N5Qgt ZGgeCwoJxnKz2x9jzoHsGHJtWYMKSdFSe/1SqioECMlO4dGRoZ8pNBd4IuJ68b2AIp +7UsoUadRc4ot9CISpnwU7Ld9SKtkxa6vt4dWLif82aYuWbIjzlFr1zvqkdpQHDLLq Bwi2gqFIAWikR1gBiYKG3Krrf7qEvlPplTVvDRoRuVGhX3dfIbYXXW94HwTwoi9/Yc qwNwZmpIpZcJEJCc81PyN39Ds34LHD+Wk3JQlj6Ls+5kiEkrAY0pWYkJfbLEqpx+0D +v4Vnvhje+F5g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 71AD567695; Wed, 20 Aug 2025 08:46:58 -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 7NeyGw5C7ct6; Wed, 20 Aug 2025 08:46:58 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701213; bh=sSTpkrOZXOP/zz3L/FGs+vEKwilgICflbGo+4GEi6es=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TznnkZgMDGaiJos/x7svpvK7LcIxeB7MGeWav1gCpMHVCCfWdiTIsPlPwVg4yVR75 Rb9hoGrpKRpblFVEdK4PVHEsUwo6eUphpEnQoOHwFRBgBCol46bisxsFnRpkhat2hC ar7etjMIk889ZKgbsC2brL+nlL01Y16BdOWsIBJeB16pEmA9u4zy3+op8CEC5zM5Nv mokkShhkhypbutfjQomp1JKsIhVQpctYnwibW+cz0fEZOfyIMcnaALItxM13dIKn2P 37gGj7EMErWtSaxQ3V0LHJH1u6WIayDR9oT8t0dIfQhj35bnJoc/zWgr1QN++VXEGW IEj9JRahm91dQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3B8DC67419; Wed, 20 Aug 2025 08:46:53 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Wed, 20 Aug 2025 08:46:14 -0600 Message-ID: <20250820144621.1073679-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250820144621.1073679-1-sjg@u-boot.org> References: <20250820144621.1073679-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: VGMAVWAGM3IQQNUNNIMWYKPEHKLYGOTP X-Message-ID-Hash: VGMAVWAGM3IQQNUNNIMWYKPEHKLYGOTP 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 , Claude X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 12/14] efi: Add a little debugging to calculate_paths() 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 when things go wrong. Co-developed-by: Claude Signed-off-by: Simon Glass --- lib/efi/run.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/efi/run.c b/lib/efi/run.c index ac2b73be0f6..4f47743476d 100644 --- a/lib/efi/run.c +++ b/lib/efi/run.c @@ -41,7 +41,7 @@ efi_status_t calculate_paths(const char *dev, const char *devnr, return ret; } #endif - + log_debug("dev '%s' devnr '%s' path '%s'\n", dev, devnr, path); ret = efi_dp_from_name(dev, devnr, path, &device, &image); if (ret != EFI_SUCCESS) return ret; @@ -74,6 +74,9 @@ static const char *calc_dev_name(struct bootflow *bflow) const struct udevice *media_dev; media_dev = dev_get_parent(bflow->dev); + log_debug("bflow->dev='%s', media_dev='%s', uclass_id=%d\n", + bflow->dev->name, media_dev->name, + device_get_uclass_id(media_dev)); if (!bflow->blk) { if (device_get_uclass_id(media_dev) == UCLASS_ETH) @@ -88,6 +91,9 @@ static const char *calc_dev_name(struct bootflow *bflow) if (device_get_uclass_id(media_dev) == UCLASS_MASS_STORAGE) return "usb"; + if (device_get_uclass_id(media_dev) == UCLASS_EFI_MEDIA) + return "efi"; + return blk_get_uclass_name(device_get_uclass_id(media_dev)); }