From patchwork Tue Aug 19 18:58:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 3 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=1755630013; bh=Ujo8wn9TQCYbi61d8rWISjlk5PDvg4ctrOAoXT1zYoQ=; 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=H4YiI6ZgPOzUJr9Pn7S/bsb97zkb69PyksDMLrgQnDblG7H80dL1ZTYFXX7jhkUCf Z4fUIdIubjBTrhzxKSlQ+fd7RJt5DvxGTYizWWgUvZU9jadQv3/S5ax6h85JKdnkL8 uGaX/L7vq95kSP/ccaJabMCq1Lf7Bn3fjn+36HCrtS2wPHQTC8qtIC4slHif/P2iq2 FG4HQ3r45gErr9idk4v7Fm3Wn9dYLusw1qKC8Ocz9lcVOS+1CuLiFqBhUuuP+kUaZO m6gInquL08SuzLb6cbpe+zingJY5WG3YDIdp895g/s0DXNI8O5TNalpODOU8cgmQQC dDtRzbnXcUQrw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 691A6675FA for ; Tue, 19 Aug 2025 13:00:13 -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 6fI1GoV4t9A9 for ; Tue, 19 Aug 2025 13:00:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630013; bh=Ujo8wn9TQCYbi61d8rWISjlk5PDvg4ctrOAoXT1zYoQ=; 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=H4YiI6ZgPOzUJr9Pn7S/bsb97zkb69PyksDMLrgQnDblG7H80dL1ZTYFXX7jhkUCf Z4fUIdIubjBTrhzxKSlQ+fd7RJt5DvxGTYizWWgUvZU9jadQv3/S5ax6h85JKdnkL8 uGaX/L7vq95kSP/ccaJabMCq1Lf7Bn3fjn+36HCrtS2wPHQTC8qtIC4slHif/P2iq2 FG4HQ3r45gErr9idk4v7Fm3Wn9dYLusw1qKC8Ocz9lcVOS+1CuLiFqBhUuuP+kUaZO m6gInquL08SuzLb6cbpe+zingJY5WG3YDIdp895g/s0DXNI8O5TNalpODOU8cgmQQC dDtRzbnXcUQrw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 591BE675F8 for ; Tue, 19 Aug 2025 13:00:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630011; bh=T2eq6KXb2sHn87CTTfNkhA0s/LUrTt7geKeJVC460Zc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nvJtILxhfGvqNeDQ0QiqfZCsZSgPKKe2AmgtmqEZuRXBzQq0zRqfO4fJWZy46Vb/R 8GBki9jjKlnkjGQGFsWNdz/IymlhIVHcaxuUcIOJHj0tJoMHhtDz4Al1VAxiAJfbTw M4UafZ5tNh3qecdvC4K/ldZ6dx1TFo2ht2XAry72ouTdBoccY8p1lhgTDwt6XdXgh9 T0X5lXNjs8TDRbvW/CyIcvMVg6Nj44OXEPx9jL/2MUeyznvIidEuQdbaC//3aKMRzN s2mDPRVNShCvyc6GhUsgWHYfsfNXCcUCNWKDnqCO/JIkkvgxrtxWQ6tCQEJCDrM2MT 12v55F4FCq9Jw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 27EEA675EE; Tue, 19 Aug 2025 13:00: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 10026) with ESMTP id HkiV1LR3lhKL; Tue, 19 Aug 2025 13:00:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630007; bh=Gph+LuTtfez1VKRVQv5NrUAEI0N3GXnBffy0QKtCqdU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TwYyKawd5NA+Bn2WJnbOnY9t+h6cA9/F7x+9rbfbZKE/S5U8eyzq01GSUuhDtj9zD UUh9G0hFHLSl4KnnJJ0GzbbJJHWBybRdfdgF2audUdBQiWbDh1qzc0vqL94BWfMPef 2t7OpGeXPPWM+/szeuQAzxd81iMkIv50IjXtfmJLKfYbmm3Gi8K9jdBpMY5z8zolfB 23Zw6tLOsVu8MzDaPKvmRi00gEPdYWXE+nUi6G53El4ahAt/+o9XMwMloc/k0aNctD +9fvim+wxmoBi52AnhF6JlXy4HBdlrcrzB+7qO8EQxtsS/BigtuqesC99mq1+AEHWw fyO5yksAwiXfQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D26E4675DE; Tue, 19 Aug 2025 13:00:06 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:32 -0600 Message-ID: <20250819185900.835939-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: H5IZR4LLXBXFC6P3EBBF2UNAM5NK7CIP X-Message-ID-Hash: H5IZR4LLXBXFC6P3EBBF2UNAM5NK7CIP 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 01/22] arm: bootm: Add some 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 Provides some debugging info while doing bootm processing. Signed-off-by: Simon Glass --- Changes in v2: - Make the messages longer and more explanatory arch/arm/lib/bootm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index cb365d95c7b..12383b2c36e 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -11,6 +11,8 @@ * Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) */ +#define LOG_CATEGORY LOGC_BOOT + #include #include #include @@ -349,20 +351,24 @@ int do_bootm_linux(int flag, struct bootm_info *bmi) { struct bootm_headers *images = bmi->images; + log_debug("boot linux flag %x\n", flag); /* No need for those on ARM */ if (flag & BOOTM_STATE_OS_BD_T || flag & BOOTM_STATE_OS_CMDLINE) return -1; if (flag & BOOTM_STATE_OS_PREP) { + log_debug("Preparing to boot Linux\n"); boot_prep_linux(images); return 0; } if (flag & (BOOTM_STATE_OS_GO | BOOTM_STATE_OS_FAKE_GO)) { + log_debug("Jumping to Linux (or faking it)\n"); boot_jump_linux(images, flag); return 0; } + log_debug("No flags set: continuing to prepare and jump to Linux\n"); boot_prep_linux(images); boot_jump_linux(images, flag); return 0; From patchwork Tue Aug 19 18:58:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 4 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=1755630028; bh=+JtCw5NHod0wbq7997thGuzpWjv9lTpkPci3Bw0wqeo=; 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=Zuel2LtVc9GDmaJhe3FlRuB6aqcXhlJFi8XvuDoKX/zAJ+nWCe9slf+GOBHdeWAiF g90L+0hCQ6kK8wm1vlImDu46UxyFA6YbSwEPGEViV/8ubi61jhVz4eKZYqEEsiE421 1e27XIuPCUdzMKo+8jRRX6E6uwz11Kd90o9+GqP5ABduLhHWx9ZLDnueD0YBu9JU1Z 1XXofzbMmVSPU9AvkBuWgWWiDfwjQBfKC9lcncDWyzCyTxV08xdlszaTiUfYyDwyTX Xwxsp3XUz9guLT2537+G5DArdfSiCeqUZFhiEP0Bdp4ipe5SpHtaVBmFIZyIc/403V RhygDOv0RaIxw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B370D675FC for ; Tue, 19 Aug 2025 13:00:28 -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 7DdRMAu7p9IZ for ; Tue, 19 Aug 2025 13:00:28 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630028; bh=+JtCw5NHod0wbq7997thGuzpWjv9lTpkPci3Bw0wqeo=; 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=Zuel2LtVc9GDmaJhe3FlRuB6aqcXhlJFi8XvuDoKX/zAJ+nWCe9slf+GOBHdeWAiF g90L+0hCQ6kK8wm1vlImDu46UxyFA6YbSwEPGEViV/8ubi61jhVz4eKZYqEEsiE421 1e27XIuPCUdzMKo+8jRRX6E6uwz11Kd90o9+GqP5ABduLhHWx9ZLDnueD0YBu9JU1Z 1XXofzbMmVSPU9AvkBuWgWWiDfwjQBfKC9lcncDWyzCyTxV08xdlszaTiUfYyDwyTX Xwxsp3XUz9guLT2537+G5DArdfSiCeqUZFhiEP0Bdp4ipe5SpHtaVBmFIZyIc/403V RhygDOv0RaIxw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A0CDE675F2 for ; Tue, 19 Aug 2025 13:00:28 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630026; bh=RHuKS6CIkSfIfBItQR2t1OnyGONIZzppcjUiHYJC2FI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zo32BoVpm+XC0BAgZwFCMvxWmVDFn6JDmcVjqGE+B2YpfR4X/yRlV4sTjE1BHV2tj 4L1LKm6p0XdQqruwt9GhYukA2Uiu3XpVmOcOMOOfEJkC9lJJv0hkNi9RGPWf1jD4YS cBngl1JkE4GmejdZtSTREBu8VYKsuCxoxBiHu9gGuk91BaKg9PwCvEPl9HOWjJbNoz TM4eknUb7KmyEyoNJbzVDj9B6fkgN4s2UxBj3jqzxWJZ69SdmXocmgKjvPogPOaage Rk6RJ27iBQ+E7swHp3nWMpZlkuT5MY9EL2O0+8/DF5Of7agflSitzwGCFSDhaukv3k U21E8dEU9aPVQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 83CE9675DE; Tue, 19 Aug 2025 13:00: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 10026) with ESMTP id e_iGdceJ_1lv; Tue, 19 Aug 2025 13:00:26 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630022; bh=r8SvegxOHY9XNJw/vQwjfF7A9hNJ1FOy8hcNB/sGqr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jmj+3r0AdP85j3B+1TAX5FDerrf5JvgESio5A4+cxRtrxmIqecOfo3zH1tiEys3Zf +8nsPez/9/Hh/UaWnriac5JQpGo2xiAkXC0RON/SNTbaCGLn12bm26c5lvx4Da5LyI 6QKHAf7aozvDVokXA4xPMUeuMOXgFPU39yBbxspSvvICFxfeo4ax15umBXVmsQOvEf E2kfZRtyKqPMOX9yPKWbU/1UEi9Bp5z41BOA4yHzbAjX4ET36URuqPaaeutXMnKWM2 M/En5iznLqy0TdrO/ohbWZazNHXjfcoWR4cc4lCn+4tyg5f490qzaPAPYpEUQ02a1c aUzT9kEyzNQlQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 255F5675F3; Tue, 19 Aug 2025 13:00:22 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:33 -0600 Message-ID: <20250819185900.835939-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: EB2VTURZK5WF7CSNVJ5Z6ASPM6TWVWUO X-Message-ID-Hash: EB2VTURZK5WF7CSNVJ5Z6ASPM6TWVWUO 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: Simon Glass , Heinrich Schuchardt X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 02/22] arm: Fix swtiching typo 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 This should say 'switching', so fix it. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v1) arch/arm/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 12383b2c36e..f15092fcae4 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -156,7 +156,7 @@ static void do_nonsec_virt_switch(void) { if (ll_boot_init()) { smp_kick_all_cpus(); - dcache_disable(); /* flush cache before swtiching to EL2 */ + dcache_disable(); /* flush cache before switching to EL2 */ } } #endif From patchwork Tue Aug 19 18:58:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 5 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=1755630031; bh=dVMKQ8oysW20INe9eKfj62GpozyA+4LOO/gj6UfusGo=; 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=A8x/GXuYUXcimaDpn+v/rVyJDmPQpxi76/tqAiu0kH/VYNCdNXR0o555DLV+rd8FY tGEhU3lxGZmEQx9w0WGjJtwd//nk4uqcM83a3SYIkPe107YIWRS/iEvytC0gosXLX4 9EHbCs8Qg8wqy4jdcgkFoGiM+e3f8G7DXkiGW/6LF/U6nj7Y8FSYZhyjIlV8kYh1qY HRGH7b6CL1zqDF1t5ZXLYsf28H+lTxiOWsGMhl0sYVsr5uxSisGKWZwRBr3UNYcJHS A3MT3A4sKrV5th/SXxncOo3URpR56XLR4By4y5nTScO9V0mZrlo2+ia7EFladJuVc/ pGYxrrwVZHZQg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0E1A2675FC for ; Tue, 19 Aug 2025 13:00: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 10024) with ESMTP id opSolWVrHNGb for ; Tue, 19 Aug 2025 13:00:31 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630030; bh=dVMKQ8oysW20INe9eKfj62GpozyA+4LOO/gj6UfusGo=; 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=IxMuEhDTfFQ5R6YKoW5TIOCeeuX8tz/nR6QlNrNfA0splf1g3C8yhVrELG1buGTpk mMUnFqQmxCkEECJkj4W3z5ERQ5J1NW5qARwylqu+1cPiOeoUfPZjoRygBbs+VveSPZ sRVlAYKINI9cN5dCyzV8sPZCZDigY2F31q9roFG9tJOJNllnN+Jzy55bwql1a3Ru4g MCCPydfvGX9p/4YlgqCA0DYutily9aR1jLTmmXcRKzwd8bl1EfBZVrRYra6QCkGYw5 KyHsDskNGOIjTBKM5pf7NenwFXJmZ+uSojs5av2VQHlPBYqSEkHeV1eOKAPHtc4qsp zlG4fSOwgSmdQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F1DF0675F2 for ; Tue, 19 Aug 2025 13:00:30 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630028; bh=iigmcJMCIE0IN1Ihchr+om/S0KqTQ2g2PKxqFHYQd9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j2RCNKPqtLuWdiro5jzlUgUYVsZX7jz1dSs2hO/qBEWMl6rpPa6L8ErRUHSeypM0e KBHXYZfAGUkaTFxxiY8+5V/WTMocBKKUjFx1opnJw22KwCJmdSZtGE/jJgeSl1DYHJ fd0moxkUeAbDRIh15wk0Own5Q7QkXDfkNlwQaxR/TlqTEVn9FE/I/jlAg3lOGDWUdU rCbVw2UdOjvhju0Jo2wLRq/2zOL46TP9Q1RPzsA/xj72+AEGaJ8EsHxG5NNgJjAFG0 HCLOiuy70OhIqIt9T5T8/LWmxtzLtYmIbO/pXsP0MIVrgnWkNkjW4GMK78cxtCu2SK BDTpi16puMYZw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 85AC4675DE; Tue, 19 Aug 2025 13:00:28 -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 Jyem7ZejM39F; Tue, 19 Aug 2025 13:00:28 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630027; bh=2JqiDZxcunmeRsvMu01tQfHlurxjR+6jUrga158N4qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f+p/QbUwupzfnmGKfXhu2/WlUMgz0vxUAsoKh2zrki0FmTG/kufWb7GR7Tt6QPUCH 4Y/RJ3lZr10s8PzL42raYIbV1ox8Ts8WsRDcaexQ3S4ZI2MVrB+LoAGrWukccuXdlr ZykFUFYkp6gv7iUfiSqmII3FpRUmEHYgrr+Gr5vn0xUqD7cL3I7GBSohWNjHTqXhTc XBMItUzPnkSo+gS2kUqgchm0bvB77s/Lw2e4gwoWaSFQCdUmsiD9b/NBFHVnd+9Hld q8b6OcL2KQcdCIOCWgx3wMXbZVzYg1Cz15hFje4P8LfwhnNDePsjewAqeyAuaPR1Y1 GiS+o1DiYARoA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C88C6675F2; Tue, 19 Aug 2025 13:00:26 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:34 -0600 Message-ID: <20250819185900.835939-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: ZYMKN5TDAJKX52OAW6Z7UCNDWU7BV7GB X-Message-ID-Hash: ZYMKN5TDAJKX52OAW6Z7UCNDWU7BV7GB 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 03/22] arm: Show the exception level with bdinfo 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 Some machines start U-Boot in a different exception level, so provide a way to view it. Signed-off-by: Simon Glass --- Changes in v2: - Use the existing current_el() function arch/arm/lib/bdinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/lib/bdinfo.c b/arch/arm/lib/bdinfo.c index 73033310879..d7426efbd7c 100644 --- a/arch/arm/lib/bdinfo.c +++ b/arch/arm/lib/bdinfo.c @@ -11,6 +11,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -61,4 +62,7 @@ void arch_print_bdinfo(void) printf("Early malloc usage: %x / %x\n", gd->malloc_ptr, CONFIG_VAL(SYS_MALLOC_F_LEN)); #endif +#ifdef CONFIG_ARM64 + lprint_num_l("CurrentEL", current_el()); +#endif } From patchwork Tue Aug 19 18:58:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 6 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=1755630036; bh=iLPukOAMmfq1EbLrrr9B7HAVLMxcxQ1aq0T+x4mjqCY=; 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=iNjiONel7srswUiwfzFjnmpOJDCm5QGsBi5bEb5MOlAP5tx1Gg7z3nB3LWAzvq5kx 472h7Uv5FBZPGq13zbmUBjngDXfysltyseO6xXXXVDKaflTQoj2Itit2JTPxt/kcLo 1UNaw07TIkTvU+VTLdnogj0zuV10WypJd6y+65dD4e/96SjjaUsp0TcOAoyqpPgocv FdNFaI+VIfJxCcis68VVGbWhKfok1MfdLl/eE+8e+dedeV5D79OcHFWhKX1yrwFJQn DBnSlEDMYHuQ7lLgwzdo3+rSP+Gilgce7aEo34HYc9Iv9eK1j3jgkiaNPYOJU5wYJv XdSc4+8oujbBA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8579A67601 for ; Tue, 19 Aug 2025 13:00:36 -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 qqkUrQ1KYsuI for ; Tue, 19 Aug 2025 13:00:36 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630036; bh=iLPukOAMmfq1EbLrrr9B7HAVLMxcxQ1aq0T+x4mjqCY=; 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=iNjiONel7srswUiwfzFjnmpOJDCm5QGsBi5bEb5MOlAP5tx1Gg7z3nB3LWAzvq5kx 472h7Uv5FBZPGq13zbmUBjngDXfysltyseO6xXXXVDKaflTQoj2Itit2JTPxt/kcLo 1UNaw07TIkTvU+VTLdnogj0zuV10WypJd6y+65dD4e/96SjjaUsp0TcOAoyqpPgocv FdNFaI+VIfJxCcis68VVGbWhKfok1MfdLl/eE+8e+dedeV5D79OcHFWhKX1yrwFJQn DBnSlEDMYHuQ7lLgwzdo3+rSP+Gilgce7aEo34HYc9Iv9eK1j3jgkiaNPYOJU5wYJv XdSc4+8oujbBA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6E4AB675FD for ; Tue, 19 Aug 2025 13:00:36 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630033; bh=fLae88nQh7plswF7x55bqP4Y+mhVUCPciy8ixLQRNbs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PLxYmnOdafOHfj+Yd1hDpjK4hc5irLIe3f4KWkcCMVrsY1DAxchCJaQ2UTrGL9fQE vxWZ80Fv2/xwS/epxeNUIv4jJ4Xnn/BMrFz2pBdKujw9iaFdmdRLjaamb0dSnAPmZV zA8UMzMhvGZKL1R+3DHJMxNVegbe8M/XP4zn6C3fxpDKj6EQ2NBcfpnh/z3R/V/lXx CVInlz4THYMuFG9uY+lw1M9u+ykTwOuLw2qs4RyucVv+IKs8Ko+8U3awOpyOZtgHrD 40JxMnv6KgUmCKAFwBw7uy9REEdpgkpqapK57fls8kZxF44a5DcEC2ffgYgnSpGzR2 seVOZTcCQPLmw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4DFB7675DE; Tue, 19 Aug 2025 13:00: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 10026) with ESMTP id Q_y07MxFthDH; Tue, 19 Aug 2025 13:00:33 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630029; bh=CQ15ovVjZ+Cg2CMB6mu3r4Aq3xZJz8r+KsWGNjxoQPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nKJekXkv5lqOGS3juxWOgyUgWvHz3jDZCXpYSIsr89Ny1akCkziZBZK689Sxs7bYy snoGpOw6F0gOEBKEDLJxrvsr1/oWAx13/iiceSBbDh9GPz4f6HTXkwRDQuJQPTHPNo Oq0Mpm3ZquhKDzDeZDUXj6f93i6sQ2LLSpwot7okG95u1vkhk5eH/uz1rwFe0J8WOa h+CcefhGVgBxzQuHzi6HXjB8tWRQ3MVC1EDsWaxdyc+ps11tfMR9y896Fjg/yC5HKf GmDEHA0Q+A0fzmHB7uT8V0awPnkmDDuBIfbaUcD79kaOosCwvqa14a5I6dbvBc8THx u+0ogRwu8xZGA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id CA1A4675EE; Tue, 19 Aug 2025 13:00:28 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:35 -0600 Message-ID: <20250819185900.835939-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: FQYF2YXETODLXJO24HRY6XLTRDCIZNM2 X-Message-ID-Hash: FQYF2YXETODLXJO24HRY6XLTRDCIZNM2 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 04/22] arm: Drop kernel_entry for arm64 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 This variable is tricky to set up and is only used to show an address. Drop it and use the source variable instead. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/lib/bootm.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index f15092fcae4..02ff8beaeab 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -260,15 +260,10 @@ static void switch_to_el1(void) static void boot_jump_linux(struct bootm_headers *images, int flag) { #ifdef CONFIG_ARM64 - void (*kernel_entry)(void *fdt_addr, void *res0, void *res1, - void *res2); int fake = (flag & BOOTM_STATE_OS_FAKE_GO); - kernel_entry = (void (*)(void *fdt_addr, void *res0, void *res1, - void *res2))images->ep; - debug("## Transferring control to Linux (at address %lx)...\n", - (ulong) kernel_entry); + (ulong)images->ep); bootstage_mark(BOOTSTAGE_ID_RUN_OS); bootm_final(fake ? BOOTM_FINAL_FAKE : 0); From patchwork Tue Aug 19 18:58:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 7 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=1755630038; bh=FoS03lPqlEai9IsP5Ekzhf8Yc545XGSASa6b7PmSN9M=; 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=M+UCIIMDg1T1niH/VU8/YKghYV2tpAY2P5bJbkOeSDe5lrO1d6Ko6ahPZs0wA7/JQ c+xQCS2UsB87TfU5QmmuQqu+5VU82NP1dud6n0YQ8A7uTylV19EGiBSkaYkSIH9Gtb xk3JVVAJk5btdWerpR9yQ1okIsiJyZhGrdsPKKF+Roqv54ujFLuuLR3ErrcgOa731y qWTXgGIn7CFmKG5/iOup+9hPvbhkJPu7FlEwohCXpxdVOG4QT5Io3K4VQxYi/ypLHu fO7oG6nosjVcOLZNH05y/lTnPiAfLGTXGHzfCe1VQShmanQtsO1sHO+SZAf2B8PFx8 Q7RYl4WaRVySg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D7EE0675F9 for ; Tue, 19 Aug 2025 13:00:38 -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 Q6bpxJtcPC1A for ; Tue, 19 Aug 2025 13:00:38 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630036; bh=FoS03lPqlEai9IsP5Ekzhf8Yc545XGSASa6b7PmSN9M=; 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=CFl9SkOL/e+hFYRRNpPUc94cwH3PcPuqN3mGa2G5shivK6tX1edGTjnBJDq9aRhvr MzuzlmEUKEwnLfHFKdtSJa0TOTs7C3Q07/lV6piDZEnF1i4+saiGPFs+2/m5TNT9Bv Z4uziuJkw8GZGAhWnT6hqVBy40shiLX723dp8EwdaBjKA0xo0pm1IMHiC+FxyS+BX8 SITe3ssGgbYAjTxxf5Xs1Uk2U9mNcFU8WF+H7J+KL6DvRy9/+q2t+V9fvlVNr9ZEq3 HSNu4Xx/8CaeRv0f0EWNephyS58BL2Fj5ul4oBLY/XPUhKtOlvrMSnXeDHlY2atBeU 84GrRe+kFA2sQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D5A8067604 for ; Tue, 19 Aug 2025 13:00:36 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630035; bh=DbucwXYkbRr42WBu+mj4LSHWMNjgGPAOyie0KaNVcbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j1DsA7S0/rcKRJ3C6YF2VTQbOnRXs6GdVJe4TTfgJsN57GiYGMmJBdSYwm446n1pc dTeYCYN6kcNiOxAxqQ/5hLTC5+F97vybPtJgtvVzw3eKiVbqsCFlqX+XN2eMP9hGwx h46kDhz82DwUyBu8iYQr52qlQu0m3vfqyhgoV1v6JrOP+NvCbXAJS/cRaABpfnL/17 9dBSjmImK5ymxdEFqChujs6rmq52G5yDBhuRZnhFC9QzQUclSO/BQ78/DiYEaUxnKF RjnnX1WUOjgNp0cjhktLRVVWc+g5y70gsK8q9tPxKsW4RA9GNDT09fnJhLtiBSceM9 0jMGdDJuzOuEw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3B33B675DE; Tue, 19 Aug 2025 13:00:35 -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 hKoUg_tcBPhq; Tue, 19 Aug 2025 13:00:35 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630033; bh=LfH68G/TtQeHYFB7g4oieL1OA6JauIfZiYy2nXO7MAA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sfie0oIjCgzOkcp/MR7Q71L46/Cm5ExuEOrXVyR+SkKGXLbvIgOZS3SQMY6OSRMOw lhSuAvXvVnTLC+u7EbnNX6MZoWXQ5qjZYUIGnAFuUrPXqA9XZ58uy3qlVGQ9KnUGzM uY7MrhhbxSdpsCCI7t+iyLSLDTu4F5JCYiSSOWwmSdgYlLouwV3uN4cVtq0eGQ7eNr 64YqgAMDZG0vdJwnm5+FxM2c5FdxLycPFXEJR6LZRc72oBTyOwktJ1NBj1mW5DPnHc +SpURXiPLFI2j43lt4jmCkczCGPxbeqnN71Z+7iyiHjxo/RRoBXv8j4nJDuPkTOXol aj8Rxn1dD0RKg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 66B4D675EE; Tue, 19 Aug 2025 13:00:33 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:36 -0600 Message-ID: <20250819185900.835939-6-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: I64E7SL2RFXGE7BGSKEWZX4WEHC2AA7J X-Message-ID-Hash: I64E7SL2RFXGE7BGSKEWZX4WEHC2AA7J 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 05/22] meminfo: Allow for up to 10 hex digits 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 On platforms where most of the memory is above 4GB, the EFI app may find itself using addresses with 9 or even 10 digits. Expand the width of the columns to cope with this. Add some double bars across digits 9 and 8 so that it is easier to make the value. Signed-off-by: Simon Glass --- (no changes since v1) cmd/meminfo.c | 9 +++++---- test/cmd/meminfo.c | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/meminfo.c b/cmd/meminfo.c index 5e83d61c2dd..2f83ca27537 100644 --- a/cmd/meminfo.c +++ b/cmd/meminfo.c @@ -19,9 +19,9 @@ static void print_region(const char *name, ulong base, ulong size, ulong *uptop) { ulong end = base + size; - printf("%-12s %8lx %8lx %8lx", name, base, size, end); + printf("%-12s %10lx %10lx %10lx", name, base, size, end); if (*uptop) - printf(" %8lx", *uptop - end); + printf(" %10lx", *uptop - end); putc('\n'); *uptop = base; } @@ -58,9 +58,10 @@ static int do_meminfo(struct cmd_tbl *cmdtp, int flag, int argc, if (!IS_ENABLED(CONFIG_CMD_MEMINFO_MAP)) return 0; - printf("\n%-12s %8s %8s %8s %8s\n", "Region", "Base", "Size", "End", + printf("\n%-12s %10s %10s %10s %10s\n", "Region", "|| Base", + "|| Size", "|| End", "Gap"); - printf("------------------------------------------------\n"); + printf("--------------------------------------------------------\n"); upto = 0; if (IS_ENABLED(CONFIG_VIDEO)) print_region("video", gd_video_bottom(), diff --git a/test/cmd/meminfo.c b/test/cmd/meminfo.c index 53b41e3b49e..b2f306d06e2 100644 --- a/test/cmd/meminfo.c +++ b/test/cmd/meminfo.c @@ -17,7 +17,7 @@ static int cmd_test_meminfo(struct unit_test_state *uts) ut_assert_nextline("DRAM: 256 MiB"); ut_assert_nextline_empty(); - ut_assert_nextline("Region Base Size End Gap"); + ut_assert_nextline("Region || Base || Size || End Gap"); ut_assert_nextlinen("-"); /* For now we don't worry about checking the values */ From patchwork Tue Aug 19 18:58:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 8 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=1755630039; bh=OxEBPWv6234YZWfaM74UtPVNF1ppnd212Yjp7IX8w9c=; 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=OrS7StVBpj7XqCscUBdZbE3vsHb9TwswWL3j60x+Ncxi8GGjGU1+pE1rPy2PIzN1k WpylnmR+i1fMuLnS5zUUZBVXDLUXA6xXCtBc+SFDbfT2wj6zKqhxmixZxMmNLx3P3x bLZFOoiO+zhkKhgu0pymNac7U6wruoNtU5duNJNGqARSCjR5EcBIC2LJtZTeQJYxJk iuAQScyxRIZFUcAMOwKa9ke78qcJuvGUUNFqJfqRcN8WddbiFEwLmIHRadmO2nu9t+ KVj7Fof6b6ueGbarE3hLn2jvgROB6QUizbPN7A2XoFuwCvUau12RGpiZNVkikbXILk jT22KgOF+upaw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1802167604 for ; Tue, 19 Aug 2025 13:00:39 -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 L96Zrae55CKu for ; Tue, 19 Aug 2025 13:00:39 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630037; bh=OxEBPWv6234YZWfaM74UtPVNF1ppnd212Yjp7IX8w9c=; 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=cPhneHej2tI8z6aCb+d7QwU9sMyF71tv5Ajb+RtRSksdbKvdDWvaYN7RtsWbeHG5/ cZtu4RYiUqG+Z8BkkB7k3n7Q++NXg6EPd6pERjOzpLODjH5Nauy+Rc2miC+EtnMBIh FnERQHGZN3Ur3x/Gi9/kFxLJBVE0eON9ArRZNu7lGomxqhJPDJY1panhbO8LQXTxk8 gw7v/R0YDPUxCY4SjL4v4gYCz92bzLDL2+KtMQ5nbt467xEScoQo/8VJQR9Inlgqrx 0izNDU3ycklty/S4S2aoyKn4sSsUimh2hk4AhxaghPXnix8jBWK1sG6NOrwTKEh3Yf 2vzlYwMD93bMw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2B7EE6760A for ; Tue, 19 Aug 2025 13:00:37 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630036; bh=ch6bTKu6kyq/z20mAPoT1fEuvYO/uM4VaWbQxAgF0Io=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DaPTFA/YlZ7vP5xzKCo1t+s4p4rThHL51TJdEuWS78rLtM7vha537TeGhwnmnVMyJ kvoeDA1PRgjzH252xxKc22SQYSmEXd+y35cc+DeacJqtBw/N0Dv6UVKbV2P1HBSkZr 3uBpOoM1s/OzW1GAsDAtiBauuG+OLEB7vB1CHy3dJjQHifh2oZSz6eosSPsIwgy4Ea NLAw5QPjE7Yo9F8eVoJiF3TLy17xIyqr1fKS06/rCNdrHDVm7IPac2p4ojiGnyI/FF QakG2e1SLua1cQ1UJ3Kdq5mM0ZguMy6DxLRPEg2zmeao0Pap7rQEzKcai5csxUPSwW V9y2G7Z2Mj3Og== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 04461675F3; Tue, 19 Aug 2025 13:00:36 -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 DsqPexbIGbw5; Tue, 19 Aug 2025 13:00:35 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630035; bh=LH1pO5qV20eRIRQ1t6opg6OZGTBC20jLGWFKcG2ie0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WtsfICYObES5jbuEgP8HsDlumJKNWqZ+swzPznsj6vaTUGezSFicVPe7LEJfdAxPS spd+dkV4BsIAE42380QiEo4s0iZ/tWG70m9Ja+rNrykBfcjznhRqr6j+nuHN+cq6QS mDKDPfQT7HQgcWLje4DtTA0riVL/EldKgy0qS48naJbjMEM/VFEKCjHDwh4fa/TXCl +KgRrLyc1MGhR9ZjRE9AlIdMuSmJErzX7lNVvcZJorCfYD3RwigYq2Z8X3o/0KXcHa K0JmrnyO0JFAui2wehqUaN0FtFOZwND/9mTsCCp2B+3bI8jA5R9+mfvhU9eAB2lsBp jintA80Yfgcqw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 808C7675EE; Tue, 19 Aug 2025 13:00:35 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:37 -0600 Message-ID: <20250819185900.835939-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: QHGTRKELPIRM3MWHX22MD4OSOQVIYXXU X-Message-ID-Hash: QHGTRKELPIRM3MWHX22MD4OSOQVIYXXU 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 06/22] event: Add a dummy function for event_notify() 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 When CONFIG_EVENT is disabled, we should not try to send an event. This is already handled for events without parameters, so handle it for events that do have parameters, too. Signed-off-by: Simon Glass --- (no changes since v1) include/event.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/event.h b/include/event.h index 67b5bdd8a8b..a68be9fc1e8 100644 --- a/include/event.h +++ b/include/event.h @@ -402,6 +402,7 @@ void event_show_spy_list(void); */ const char *event_type_name(enum event_t type); +#if CONFIG_IS_ENABLED(EVENT) /** * event_notify() - notify spies about an event * @@ -416,7 +417,6 @@ const char *event_type_name(enum event_t type); */ int event_notify(enum event_t type, void *data, int size); -#if CONFIG_IS_ENABLED(EVENT) /** * event_notify_null() - notify spies about an event * @@ -431,6 +431,11 @@ static inline int event_notify_null(enum event_t type) { return 0; } + +static inline int event_notify(enum event_t type, void *data, int size) +{ + return 0; +} #endif #if CONFIG_IS_ENABLED(EVENT_DYNAMIC) From patchwork Tue Aug 19 18:58:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 9 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=1755630042; bh=WDLhC5O5tmwkmCQNmiQmQ582mdEuJA3vwEKUrakcPIU=; 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=o8jBCIk3uhxPpJOirR7RtqWjQ//9aLtTzyOUj6KlOBkjECHUdGf+nnBn5mqQ55//4 ZKRcooLbWfcISri6+jV5Z+G5e4Rx8y1RUmSb01OG/NS2bMizlpswBK6zvammHRiNhG cdSmXY8leFfjktNa8kI2CLe2hIfPFUIDg/0M3s07gvPeoOLaPY8ci7SrkydbCZvrBY UFzBTRvsIG7xIgSo4DbpWdW31mnUQFPlVFG3K4y72HHT/lgh3b4J0fTug+KPkYOHSG OfksMMEEASOqr01X6TrHyN2Iz0Yh+Edeoa5Gl78kjt6nsYbwtVYC1bK1GfkCPz67Kr Tr8DOEPDDPkBw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 91CFB675FD for ; Tue, 19 Aug 2025 13:00:42 -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 N4za_bjRd3p4 for ; Tue, 19 Aug 2025 13:00:42 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630042; bh=WDLhC5O5tmwkmCQNmiQmQ582mdEuJA3vwEKUrakcPIU=; 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=o8jBCIk3uhxPpJOirR7RtqWjQ//9aLtTzyOUj6KlOBkjECHUdGf+nnBn5mqQ55//4 ZKRcooLbWfcISri6+jV5Z+G5e4Rx8y1RUmSb01OG/NS2bMizlpswBK6zvammHRiNhG cdSmXY8leFfjktNa8kI2CLe2hIfPFUIDg/0M3s07gvPeoOLaPY8ci7SrkydbCZvrBY UFzBTRvsIG7xIgSo4DbpWdW31mnUQFPlVFG3K4y72HHT/lgh3b4J0fTug+KPkYOHSG OfksMMEEASOqr01X6TrHyN2Iz0Yh+Edeoa5Gl78kjt6nsYbwtVYC1bK1GfkCPz67Kr Tr8DOEPDDPkBw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 80FBE675F8 for ; Tue, 19 Aug 2025 13:00:42 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630041; bh=mQmSZ9E2O600zCFXkVcnQRRUu8+U39EAAs3qRb7L1Yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BJHpUIJlK/oj08iguJM7x/GeWYAhlqGnqLvLu6BG/TPQNndqc1isiy20ifIaNQNQx HvolN2YxNxPbbuz6NfbpGzaBLXqpIitRtxlkrSBTcU2AjoKsJdhD2VYzAjb9MPYtiV gFX/YKyoUavJ8VZguQJcHbOE07Q0perTPebPdlyvFQgLhcKjOE0WlQe+TvCFcwtLpA YRXk389dFwJdNg/edcwHDXsJ50g0FNGK75jIZBtV7A1yPgFpxZE2rRVw5hmNQIw/ZL cucN+2xh+NcKl0YKNnhEyWRl4kwcqtvmpNgNxbwLaJ7ZrjIzBRvmcXFae1hOG9mlu4 gFN7IjeYlDZxQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 40B20675F8; Tue, 19 Aug 2025 13:00:41 -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 QrtnVRygXgl4; Tue, 19 Aug 2025 13:00:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630036; bh=WVJoBgipfX8Y2F9pbMK8LtR6Y1C+96Phapctc/Bma+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GQ0MlKYFU2uE6JkT9hZ0M3+0JdtqBw+ghSHfXRfd1SmIm+cdELBnSYZy6MsfIxZDl WIislvqn0cwymH1yeimNfocn1jYghG81i659Wg/+NHo+XLyL/ywu7YkM5XspvLGwHe gJ+drfVpKapfIOi/aGaAQ5Pey+Mk5VfwbDrInVjoW6aZQkmIBouTl4bszRiZoiAx71 2SyOFcTWLWoDha29Fcjbs+Q9uTClHRZP9JX9nnUCGgGiE8pIiaSwt/w11rPoIwwc0L 31ia+JjqfxC3T5R5CBdNvOiv5JNiOyu3koO8p57ZKjaPClBW5AzNimet4/1g44elxw pWkULO98zBmCA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 44C96675EE; Tue, 19 Aug 2025 13:00:36 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:38 -0600 Message-ID: <20250819185900.835939-8-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: O2TYUHNAHMD5QV6HCR7GRRIZZAW3LHPE X-Message-ID-Hash: O2TYUHNAHMD5QV6HCR7GRRIZZAW3LHPE 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 07/22] boot: Improve debugging in bootm_load_os() 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 This shows an image type as an OS, which is not correct. Fix it up to show both. Signed-off-by: Simon Glass --- Changes in v2: - Add a colon so it is clear that 'load_os type' is not a compound term boot/bootm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot/bootm.c b/boot/bootm.c index d9bcb748cb1..a536737db09 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -773,7 +773,8 @@ static int bootm_load_os(struct bootm_info *bmi, int boot_progress) ulong decomp_len; int err; - log_debug("load_os type '%s' comp '%s'\n", + log_debug("load_os: type '%s' os '%s' comp '%s'\n", + genimg_get_type_short_name(os.type), genimg_get_os_short_name(os.type), genimg_get_comp_short_name(os.comp)); /* From patchwork Tue Aug 19 18:58:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 10 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=1755630045; bh=XIhlcYMk9yB5gIiaUL1xKIokMZcYuBPKCA1IFhcauVI=; 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=Pd+TfWwnbzEtNwLuIQ7QMxN6ehP1AoCharAa6Q/oDkWA+VFsOoSwTs1A2Osw9e2D7 DBmHtPVRnkO0ij/NFnUWasgGJKB1ljACMGi8KLwHD1xUHy/rTVRDjTmIaIRsFFONLZ w4ybMUFMMMt0CbsnnIlt/wxDlT1hhrCeluW80NPevo1TECGFCAlqjzyboNqEQ0hzQl uChGGcxPntVVvoNUNAgEd8IdXd+ZXXkIANab/tNTCwJfgMHScqhXJdJaUvRfwhyEHm qSccksI8uHTsiLsuZf406aCw2ZaxHjFG883KTxIvgHkHsLWOHw5swgs7hgBh19Zfpy yVJCkkUs9H7PA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 494FB67607 for ; Tue, 19 Aug 2025 13:00:45 -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 NVTTzsNM2i4A for ; Tue, 19 Aug 2025 13:00:45 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630045; bh=XIhlcYMk9yB5gIiaUL1xKIokMZcYuBPKCA1IFhcauVI=; 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=Pd+TfWwnbzEtNwLuIQ7QMxN6ehP1AoCharAa6Q/oDkWA+VFsOoSwTs1A2Osw9e2D7 DBmHtPVRnkO0ij/NFnUWasgGJKB1ljACMGi8KLwHD1xUHy/rTVRDjTmIaIRsFFONLZ w4ybMUFMMMt0CbsnnIlt/wxDlT1hhrCeluW80NPevo1TECGFCAlqjzyboNqEQ0hzQl uChGGcxPntVVvoNUNAgEd8IdXd+ZXXkIANab/tNTCwJfgMHScqhXJdJaUvRfwhyEHm qSccksI8uHTsiLsuZf406aCw2ZaxHjFG883KTxIvgHkHsLWOHw5swgs7hgBh19Zfpy yVJCkkUs9H7PA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3970267600 for ; Tue, 19 Aug 2025 13:00:45 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630042; bh=QsQdaNjTpS0gyLoYAk0zGENvGv86wIPmT/XADfbVG+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KIKSlmDqqPwHXemeZQQkGW/Htb976bgMoNHDv9GrPpRWqouv7wwVPEYCtvFkPj+RR IluypQd8su1NSUueoisj2S/a+vVZSM7H9figJzhsB9SB3u0Yc520GObbOi0dVeZRYt FglDIj2ZXDRpIkIEIIzVoLdIG9b+tIiUYkje3oy1NCOd9I1unqypBzzsMZLZGATzbK b1KtyGHtn4/5sWOyV4FdPQUqSXiEi600fjCANgAiBsNe3PAcsxSxvzuAKnFUi7ncMh eVQi9KUa3sKtAuMZjo1PCMN9vxCo6YGeYwclGBYNWWegYBbdKk7nMqbvvnxe/T5pmY F2RqNKptEypVg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9B163675F8; Tue, 19 Aug 2025 13:00:42 -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 yxeXIYKLlb5x; Tue, 19 Aug 2025 13:00:42 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630041; bh=ZQdkrbAu0jsSdh07pXNlJF6jjtJ/4w9Dz8Qq7G5M1Hs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=br2rq27YE2wP19D15G0SPpGeKPElJwe+juMOH+YGM2+kBsTfDnz4+/SgXSC6wR6eo A3qWLyAO8hnqnikPJsJ5dmp0DhqX5kdGXICRUf/Fx3+fxLhw53NhLldTkwizdwcDE8 WygV1IwWE6bYSMy2FTau243FLk6BkeMjkmUAqZEfK60oXluOg30E1WPE73ERkuF8Mt 4oThlk2r3QxzRKSin12ymV338A4tlGtfjdr2zAezh0BzVnGb6OkoCKjeAyGr9SCNeD kgnEi+B7iN5642QHEJzrVrLGCs1TkeYkWePMID0EYKuwn4huBtgZTkUAV8PSO+LWg0 ZznYTJl8Nv//w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id CF921675DE; Tue, 19 Aug 2025 13:00:40 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:39 -0600 Message-ID: <20250819185900.835939-9-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: YUR27PHJYMIYPMOE5OS26TEYFFUFBBDU X-Message-ID-Hash: YUR27PHJYMIYPMOE5OS26TEYFFUFBBDU 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 08/22] boot: Pass flags to the bootm_final event 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 For a fake go, we should tell the event not to actually do anything irreversable, so pass the flag along. Move the enum into a separate event_decl.h header file since otherwise we must include bootm.h which causes a breakage with qemu-ppce500 We also don't want to pull event.h into the tools build, since it uses types like u8 which are not available outside U-Boot Signed-off-by: Simon Glass --- (no changes since v1) boot/bootm_final.c | 13 ++++++++----- include/bootm.h | 13 +------------ include/event.h | 10 ++++++++++ include/event_decl.h | 27 +++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 17 deletions(-) create mode 100644 include/event_decl.h diff --git a/boot/bootm_final.c b/boot/bootm_final.c index 7594880399e..881d737ce67 100644 --- a/boot/bootm_final.c +++ b/boot/bootm_final.c @@ -17,6 +17,7 @@ __weak void board_quiesce_devices(void) void bootm_final(enum bootm_final_t flags) { + struct event_bootm_final final; int ret; printf("\nStarting kernel ...%s\n\n", flags & BOOTM_FINAL_FAKE ? @@ -43,15 +44,17 @@ void bootm_final(enum bootm_final_t flags) */ dm_remove_devices_active(); - ret = event_notify_null(EVT_BOOTM_FINAL); + final.flags = flags; + ret = event_notify(EVT_BOOTM_FINAL, &final, sizeof(final)); if (ret) { printf("Event handler failed to finalise (err %dE\n", ret); return; } + if (!(flags & BOOTM_FINAL_FAKE)) { + bootm_disable_interrupts(); - bootm_disable_interrupts(); - - if (!(flags & BOOTM_FINAL_NO_CLEANUP)) - cleanup_before_linux(); + if (!(flags & BOOTM_FINAL_NO_CLEANUP)) + cleanup_before_linux(); + } } diff --git a/include/bootm.h b/include/bootm.h index b026e1dd80d..392825841e9 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -7,6 +7,7 @@ #ifndef _BOOTM_H #define _BOOTM_H +#include #include struct boot_params; @@ -16,18 +17,6 @@ struct cmd_tbl; #define BOOTM_ERR_OVERLAP (-2) #define BOOTM_ERR_UNIMPLEMENTED (-3) -/** - * enum bootm_final_t - flags to control bootm_final() - * - * @BOOTM_FINAL_FAKE: true to do everything except actually boot; it then - * returns to the caller - * @BOOTM_FINAL_NO_CLEANUP: true to skip calling cleanup_before_linux() - */ -enum bootm_final_t { - BOOTM_FINAL_FAKE = BIT(0), - BOOTM_FINAL_NO_CLEANUP = BIT(1), -}; - /** * struct bootm_info() - information used when processing images to boot * diff --git a/include/event.h b/include/event.h index a68be9fc1e8..5fecaa66e80 100644 --- a/include/event.h +++ b/include/event.h @@ -12,6 +12,7 @@ #include #include +#include /** * enum event_t - Types of events supported by U-Boot @@ -260,6 +261,15 @@ union event_data { struct event_ft_fixup_f { oftree tree; } ft_fixup_f; + + /** + * struct event_bootm_final - State information + * + * @flags: Flags passed to bootm_final() + */ + struct event_bootm_final { + enum bootm_final_t flags; + } bootm_final; }; /** diff --git a/include/event_decl.h b/include/event_decl.h new file mode 100644 index 00000000000..483ae687e5a --- /dev/null +++ b/include/event_decl.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Declarations needed by events + * + * Copyright 2025 Simon Glass + */ + +#ifndef __event_decl_h +#define __event_decl_h + +#include + +/** + * enum bootm_final_t - flags to control bootm_final() + * + * Note that this is defined in event.h since it is used by events + * + * @BOOTM_FINAL_FAKE: true to do everything except actually boot; it then + * returns to the caller + * @BOOTM_FINAL_NO_CLEANUP: true to skip calling cleanup_before_linux() + */ +enum bootm_final_t { + BOOTM_FINAL_FAKE = BIT(0), + BOOTM_FINAL_NO_CLEANUP = BIT(1), +}; + +#endif From patchwork Tue Aug 19 18:58:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 11 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=1755630047; bh=JXt1bGfdxk0Zh6vjP3wZQDriqP7WSDZ541QpfpT+BlI=; 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=ScoT9iqxVxWqd56kSDKP4ZWbBSMNcRPcjVQ7S15or++j10QMO2vZvUSLy4K8U1nz6 +8/7wnutA6z/6iLtJuXX+0LGOG/zGZvqBA0R3o/aU8Qj/uyihYXX9osD9Rj+LTPLbB KVNFWbA5pJvpAh4lrSbMcFrQbNACP6k92+yzrte+b6zw9JehTEK5sWzDJjegEXR3cg 7YqyAmvMP3pRjg9VbaeyIm93DZwBRYCO38EcGITPvr4DXhUvEtqG2xHW9qUH99JEgW Mjv5topEedoIWTJdCjJ7tHm4oo4nkXhGLcu95PAHlmhPP8TLhVvchPmBCByLO7Izxc lXY2MbLpjnAWQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9086C675F3 for ; Tue, 19 Aug 2025 13:00:47 -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 PkvOv4k9YyDB for ; Tue, 19 Aug 2025 13:00:47 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630046; bh=JXt1bGfdxk0Zh6vjP3wZQDriqP7WSDZ541QpfpT+BlI=; 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=eCmA74GRZEitjXWRongS0pLBkL5pBRyv+aMUt3SF3MYn3K3Epi2eey5EL/cE3xRCR R436n+9TTBbEFP42jVzGSnYndGyhjT6w2/okkEkH4oYcG36XNs1K15J6XPPxHbJc06 84BMboHYpBEXcaUAiaNm8pv8JsrMFRzCBK+jRm/6PayiP7q83fPet1pmcWnbALBm3O /r7/wxmkKYJsYE3GX6Sfbft/7FSMkOEZ//gZMld0cvgokPowjuBh90gkK1SahBzroi 5V+dVbgnuHx4mQgs90LE+a55y2aqdvQkVB15dMJ8BOp/QfYHn7ezvCQniI9PDrdUYr BfXUTnGBKXjqA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8A3E1675F8 for ; Tue, 19 Aug 2025 13:00:46 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630044; bh=6lfmgLXsqsbOht8Nfta2HgGaV2rvpMxNdwNu/Jpq2Ms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qGwl0DRbR59Qw2xs664+F/9bt19iOL8sHkYbVdBCkYNi15P4FSJSY1dIiaC+ixW2E dI9GSrBWcoROXJypi9uctUZwWD354B86MX++tHNnKSrw21tdXZC2+aRW2gv+UOtNsM 1rN9CFa5KaZO87gH6/KM7ccU7uilXt6R9WAxuD6o5XjyEwQHELRs6EXKs3S2pB4DKP gbbD4VoR8Qxwkq+pii0dJ0aNFSVA7KoKv3V6xUpyk0hbce5amVCLszofkLvA+jCtmB KS39ojzxKufUZUj1BwiZt4nfcffWjNhFVo3YID3xqkziTxytI6t0jL/hVv9JlM179o mXD9kLv9u8iKw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C072C675FD; Tue, 19 Aug 2025 13:00:44 -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 09_BjSZULDYo; Tue, 19 Aug 2025 13:00:44 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630043; bh=3l7a9hQTurWApNoMyQVwdB602h/S94+xFVghgBHnCRw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LmsXOhWRDDHggqV7Hp2bPJBwem+1ACrpvIgL3vOujUywI/ZcUxLTV3xfKaPMVv0tV F7PYC1SUROXTygpleC5ihBVb8vV3sVtPH38qCi6Ee4dJftqB0nD83mdSWI2UR6FRqF JQ4nA7UvqLlWKNMVlu0uvF+O6T/fT4TCtH31oO97wH03BLah3dmxtyOhMOWtwaX9y9 LQx7PFdATzmbdJqbiFplbpHe7v+xLG27KtlMhuT3ZBRSbnk5D4p8AhKqcpwPTCGEXz nNIDLP23heHk13jp/YLTrwbiCT8PJcHPT0nJ854XOZXK80hYNBjpWCocxJfLuO0Sz+ 2Zk+4CyVWtgSg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D6E0F675F3; Tue, 19 Aug 2025 13:00:42 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:40 -0600 Message-ID: <20250819185900.835939-10-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: QNDWSNNEVOAHJV6IQEDGDA43YROJYBK4 X-Message-ID-Hash: QNDWSNNEVOAHJV6IQEDGDA43YROJYBK4 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 09/22] fdt: Add debugging for fdt_simplefb 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 some simple debug output to see what it is doing. Signed-off-by: Simon Glass --- (no changes since v1) board/efi/efi-arm_app/board.c | 4 ++++ boot/fdt_simplefb.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/board/efi/efi-arm_app/board.c b/board/efi/efi-arm_app/board.c index ce6c3e78ebc..662e48a3b74 100644 --- a/board/efi/efi-arm_app/board.c +++ b/board/efi/efi-arm_app/board.c @@ -30,6 +30,10 @@ int board_exit_boot_services(void *ctx, struct event *evt) uint key; int ret; + if (evt->data.bootm_final.flags & BOOTM_FINAL_FAKE) { + printf("Not exiting EFI (fake go)\n"); + return 0; + } printf("Exiting EFI\n"); ret = efi_get_mmap(&desc, &size, &key, &desc_size, &version); if (ret) { diff --git a/boot/fdt_simplefb.c b/boot/fdt_simplefb.c index 5822131767d..6c75a6d5b5f 100644 --- a/boot/fdt_simplefb.c +++ b/boot/fdt_simplefb.c @@ -6,6 +6,8 @@ * Stephen Warren */ +#define LOG_CATEGORY LOGC_BOOT + #include #include #include @@ -48,6 +50,8 @@ static int fdt_simplefb_configure_node(void *blob, int off) ysize = uc_priv->ysize; bpix = uc_priv->bpix; fb_base = plat->base; + log_debug("simplefb: fb %lx x %d y %d bpix %x\n", fb_base, + xsize, ysize, bpix); } switch (bpix) { From patchwork Tue Aug 19 18:58:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 12 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=1755630047; bh=/DxLCam6FPSmrYPO8epaiMM7TEvrai8ll86wXXC4PQU=; 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=JguJo31ZCJOitn55kQKTp0ZTj4N3nJJhiUzvOOcZhQ07tMRTW4LoFhW9wxWHRCv6B XpeQUMxe4TaO52I6HLP8Il15sa4FwTMi8JV5NzYap5LIdtwu7eopfauybDYD3e3LdI vsJh2npe32nkf2LKxShcVN3Ar0ywXK92iV0Yr9SEm8wW4VNXE6hb+Zn7da14DOy27Q Oyn4PeSrDDdOwTgDtxisMCtscP/o+QCV2E1tiMeP8FrGUbStq6kwQ5xknCw3tX2yia PHwD/8VDkRBpckSlbLDN/2/+Ai7zOWPLu/+cas/R6naemTi3KIa0o8YS/G3Z8voZOY LEmBB/mw48kSw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C7D2467607 for ; Tue, 19 Aug 2025 13:00:47 -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 nkiBit8v7ClI for ; Tue, 19 Aug 2025 13:00:47 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630046; bh=/DxLCam6FPSmrYPO8epaiMM7TEvrai8ll86wXXC4PQU=; 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=gXiZzA8y8CmA/qnbT3ByRZPmad1k12LwmoJAWKfku+LxwYnwugkxxeFW9mWWLXcTh PYFsvY7HDXKu6OWY+jTp08aH3bQhiJnrB6uaL45aeVUz3qm9lShAru3HQFfppw8rUa 2vGy5DswbTaHVcH3/nwVl39ZOlHBlj/OSky9faa/DtNpV0J4tBY8mprYDARW8/PpSy 5A5q8817Sz20hDc1rLIL/DJnc1mLbRYr7fSt5hHu6BySy0SecI6UPV34qvdE7m4+w0 7r1E3hkxBTszZjKRzAEs56g+bzq0+NWmdB2/i0pYQvpfNNWmg0qPOyginAskhQwPvT YFvP3eRQPcNwg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CA54667608 for ; Tue, 19 Aug 2025 13:00:46 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630044; bh=0dvwiQt2mGxv8DtiX/jWFZvfK0cB4Cn73BYhyozZr1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gldfw5rI6SKK7ZXc+3DFSFuXvtbLMfO75sAgVHl0VbdDRGQqkMdY+Tmm0RqwKLSsc iNFxIfRQ27kimbKnEvBuUA/rB/rdYXl7PolTouqMm3zzZT0FALmrj2bcDFnK7L9vve VV8oYm+TiJZl3/y9TamqvOo8VFZKE5fDBUlxKBB/a3Jk7Q3N6ohrFyW47LqO4q2XOY yPZ3Fj31+3WEi9gONQrHsnioK2xOz6vELCPCN8f0W5HvGxyPN8TX7Mrb31Qwa3i41c IfI8imRdGm9DiPDLuDr1YaVH1tNaGirbfQ9F/mKtutLlMfCIuSd11iMRkA6JrbXd2o dyoU5Hd/ZBwgA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D25E2675F3; Tue, 19 Aug 2025 13:00:44 -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 fVEvPtZudicq; Tue, 19 Aug 2025 13:00:44 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630043; bh=oSZShic5PR67eJgXCnFbTmy4/8gGhDxvI+R601AQPKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QH4OsqNP5M7m0l5OYiA9pWLwlmglFD1X5D+6sbJ+0JgiM/5HUOTOUOmfSBpf8cGR9 8KOIny8TthbbLUf6aMV7a4NqMyWnBeA4K+iVXSo46mZg3dQ2JsNt7AnB4Eq1jxcAqS /6FYgRdoEn+r2BMj3N77Psg3Cs/uEIyXeMrjuEBpxKHcgmHhHbfNg8iOsc4JztAU8v FmBCzAt57Xazjw6RtEcgDbNjn9Xr/Ulg173lhj82H7aP+xEIQ/3pmaNoqfdaWyyvNT cRh4Box4X0k75iNipmp2BXsoNTs+/WBWs0NSB112lAoZRYjDUAnaOrUeAO6f0iCkns oJlCB5rWwc8zg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9AD7F675F8; Tue, 19 Aug 2025 13:00:43 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:41 -0600 Message-ID: <20250819185900.835939-11-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: UFRZH3TJPQHNPQMN2YVCV4RSSQBUCYEB X-Message-ID-Hash: UFRZH3TJPQHNPQMN2YVCV4RSSQBUCYEB 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 10/22] efi: app: Show only a summary of disks and partitions 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 The EFI app shows a list of every disk and partition it can find. On Qualcomm x1e laptops this can fill the screen. The information is not that useful, so just show a summary. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app_init.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/efi_client/efi_app_init.c b/lib/efi_client/efi_app_init.c index 938b16d14ab..7d30e79528f 100644 --- a/lib/efi_client/efi_app_init.c +++ b/lib/efi_client/efi_app_init.c @@ -128,6 +128,7 @@ static int setup_block(void) struct efi_device_path_to_text_protocol *text; struct efi_device_path *path; struct efi_block_io *blkio; + int num_disks, num_parts; efi_uintn_t num_handles; efi_handle_t *handle; int ret, i; @@ -150,7 +151,7 @@ static int setup_block(void) if (ret) return log_msg_ret("text", -ENOTSUPP); - for (i = 0; i < num_handles; i++) { + for (num_disks = 0, num_parts = 0, i = 0; i < num_handles; i++) { struct udevice *dev; const u16 *name; bool is_part; @@ -174,6 +175,7 @@ static int setup_block(void) is_part = devpath_is_partition(path); if (!is_part) { + num_disks++; len = util->get_device_path_size(path); ret = efi_bind_block(handle[i], blkio, path, len, &dev); if (ret) { @@ -183,15 +185,17 @@ static int setup_block(void) } } else { dev = NULL; + num_parts++; } /* * Show the device name if we created one. Otherwise indicate * that it is a partition. */ - printf("%2d: %-12s %ls\n", i, dev ? dev->name : "", - name); + log_debug("%2d: %-12s %ls\n", i, + dev ? dev->name : "", name); } + log_info("EFI: disks %d, partitions %d\n", num_disks, num_parts); boot->free_pool(handle); return 0; From patchwork Tue Aug 19 18:58:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13 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=1755630052; bh=1tUAUXjAD5POFYAwQNGCnrQ5x5NaDvgSWg/aFqtRLlg=; 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=XeyrfBkmSLX3kTd/CDSNQGamPnSlh4l4OKUwkTjNYWWkgcVZfUmwlxzjtiKAy3ikb Ip5rM+8mEoMA4bzRQD/ObrtV4NMhq5yIJN94suA5XHGPUGYfoF+fwFPl1aPL4NVcbC 3unhrouA29n/tcdpJO10GxAzTwatzuYTWYiv+QwgUJgiMy4HT3P/69DY7XCMH3cK4q YDW4OHMobsKIOC2PZyx8DUm+ZdOE6/3pEULhGjk4Ky7EufziCLs/TPpI6tCdYcdKaD NuWqvJXoioBaZqKk5RYgzAawsKvlscc2X15JoUiTmZf8roXiV8EiRlxEP6x1AwaOdq atBbnQuHd/dlA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6F4F167600 for ; Tue, 19 Aug 2025 13:00:52 -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 FLflE4xOqyQo for ; Tue, 19 Aug 2025 13:00:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630052; bh=1tUAUXjAD5POFYAwQNGCnrQ5x5NaDvgSWg/aFqtRLlg=; 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=XeyrfBkmSLX3kTd/CDSNQGamPnSlh4l4OKUwkTjNYWWkgcVZfUmwlxzjtiKAy3ikb Ip5rM+8mEoMA4bzRQD/ObrtV4NMhq5yIJN94suA5XHGPUGYfoF+fwFPl1aPL4NVcbC 3unhrouA29n/tcdpJO10GxAzTwatzuYTWYiv+QwgUJgiMy4HT3P/69DY7XCMH3cK4q YDW4OHMobsKIOC2PZyx8DUm+ZdOE6/3pEULhGjk4Ky7EufziCLs/TPpI6tCdYcdKaD NuWqvJXoioBaZqKk5RYgzAawsKvlscc2X15JoUiTmZf8roXiV8EiRlxEP6x1AwaOdq atBbnQuHd/dlA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5C5D9675F8 for ; Tue, 19 Aug 2025 13:00:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630050; bh=lJSPPczAe+M9sr6h28tcKUgT85TxbxRLlHRhiWhLrfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L5C++bxHWuOVRj29p4wZ3Sba3MuAFpZkuytDpvUZLax/z439X5m2fS5APe/cajg08 n9El9elTWIgE9IY9DfTX7B5cu71oStITN2MFwQXr48Hx6+O/REQA+l8Ps9vwrF26Rk Wirr2l+EQMWx/TpktPVqVwAoTDXw+OOo5Mft9lt+wK9UUDyFkUFyx/AXhzB74EdaWA 5h3pqzOf3ZkDdPv4eF0ohemZOnOeTTxUG4XdX0t1ASzytmESjJGeB8N8Mt100DDP6m fmWleT2F/eatsvASpgXc/CUfTC//Zo9EFlmmPN2gAV+KlPtvIwn3KaqhOSWIQrI36H AcyP6MiWOe8Kg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 077E8675F8; Tue, 19 Aug 2025 13:00:50 -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 LWd1VsOgiGAJ; Tue, 19 Aug 2025 13:00:49 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630044; bh=OVNjRxc/FHllXHeLKl3xbT/L0cm18/rJ+x/y8Gs5zGk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=quIbbuaj9uKih58TAOd1T1PPv/hqrYIyGiO6D+wCVT9cMj14dU24trVq9JPSBCTEF UZOdKaJxugxJpibubBE8S7Pk4n+7fBwpNEBacKqAhALXHMVDtFCd3mtzOwt0QLClrG izBCIMWRiw4in98kbNM1Nz+iNLfn0s7U/uo1BwQpcsaIWQO7vAz8rDvSkIc3m1ru5G CTNgDJbXPWUtttMRk+cKApvrHiY/5NpcFjivzE37u/F1X+N3SpadtDwXopvfnsek59 71HfHaQP/cKfzHB32lOllfBCaeeI4KHoSUvhyVEGIRgB1HNrKJLcxbS0w2VHKo6qBc pd0HBCrihyI6w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 611D8675DE; Tue, 19 Aug 2025 13:00:44 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:42 -0600 Message-ID: <20250819185900.835939-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: L6OEZLLTDZVXV6TN3EBUY37IOWWTS4WL X-Message-ID-Hash: L6OEZLLTDZVXV6TN3EBUY37IOWWTS4WL 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 11/22] efi: Fix up the addr_find command 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 This command was written before the lmb unification, so does not currently build. Tidy it up and enable it for the EFI app, by default. Also allow it to search any partition, not just a FAT one, since we may have the kernel on ext4 Signed-off-by: Simon Glass --- (no changes since v1) cmd/Kconfig | 3 ++- cmd/addr_find.c | 40 +++++++++++++--------------------------- 2 files changed, 15 insertions(+), 28 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 4d564ab5ac6..b7b80cbe59f 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -129,7 +129,8 @@ config CMD_ACPI want to make hardware changes without the OS needing to be adjusted. config CMD_ADDR_FIND - bool "addr_find" + bool "addr_find" + default y if EFI_APP help This command searches for an unused region of address space sufficiently large to hold a file. If successful, it sets the diff --git a/cmd/addr_find.c b/cmd/addr_find.c index 8dcad300ad8..876c58feabd 100644 --- a/cmd/addr_find.c +++ b/cmd/addr_find.c @@ -16,19 +16,17 @@ DECLARE_GLOBAL_DATA_PTR; int do_addr_find(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - struct lmb_region *mem, *reserved; const char *filename; - struct lmb lmb; loff_t size; + ulong addr; int ret; - int i, j; if (!gd->fdt_blob) { log_err("No FDT setup\n"); return CMD_RET_FAILURE; } - if (fs_set_blk_dev(argv[1], argc >= 3 ? argv[2] : NULL, FS_TYPE_FAT)) { + if (fs_set_blk_dev(argv[1], argc >= 3 ? argv[2] : NULL, FS_TYPE_ANY)) { log_err("Can't set block device\n"); return CMD_RET_FAILURE; } @@ -49,32 +47,20 @@ int do_addr_find(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) return CMD_RET_FAILURE; } - lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); - mem = &lmb.memory; - reserved = &lmb.reserved; - - for (i = 0; i < mem->cnt; i++) { - unsigned long long start, end; + addr = lmb_alloc(size, SZ_1M); + if (!addr) { + log_err("Failed to find enough RAM for 0x%llx bytes\n", size); + return CMD_RET_FAILURE; + } - start = mem->region[i].base; - end = mem->region[i].base + mem->region[i].size - 1; - if ((start + size) > end) - continue; - for (j = 0; j < reserved->cnt; j++) { - if ((reserved->region[j].base + reserved->region[j].size) < start) - continue; - if ((start + size) > reserved->region[j].base) - start = reserved->region[j].base + reserved->region[j].size; - } - if ((start + size) <= end) { - env_set_hex("loadaddr", start); - debug("Set loadaddr to 0x%llx\n", start); - return CMD_RET_SUCCESS; - } + if (env_set_hex("loadaddr", addr)) { + log_err("Could not set loadaddr\n"); + return CMD_RET_FAILURE; } - log_err("Failed to find enough RAM for 0x%llx bytes\n", size); - return CMD_RET_FAILURE; + log_debug("Set loadaddr to %lx\n", addr); + + return CMD_RET_SUCCESS; } U_BOOT_CMD( From patchwork Tue Aug 19 18:58:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 14 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=1755630052; bh=pmZZQvu2x6L5iuHeVxvgCm1bQg7+b4uPxywkXevWU2s=; 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=fkfPFXTXsC4kCwetO6tBXf8RCW4HZGxKZn+8dd7bX2rqVKlxN5lHq5e76xDJpTXW/ 8sLZN5ReZe20c1vH128cNYAzWx8stn5NCXSasu4rOtu72LaHUEI29nnmYIYuqxT3Xt HIR6Dc1FhmOphNe88CuMC6joniNdtNGnKfTpVr+mNTkzEFjnuJrcEXm9fkGKpA7n1w lIcrGxEaj5Ccn8HJcZHN3pGl2xcO8V91D0qovD8SDCg+R4TeJd9N0LD0SHO5fzAgs1 zcz0tRbbLonHA9IYW2B0hFc/CiQJyf2OcrAhZAkZvOoTCoTJ/pzTiCNwCwBW5skeJZ DKcACaEAAWnDg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B981067608 for ; Tue, 19 Aug 2025 13:00:52 -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 7ViWX-aQwkIZ for ; Tue, 19 Aug 2025 13:00:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630052; bh=pmZZQvu2x6L5iuHeVxvgCm1bQg7+b4uPxywkXevWU2s=; 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=fkfPFXTXsC4kCwetO6tBXf8RCW4HZGxKZn+8dd7bX2rqVKlxN5lHq5e76xDJpTXW/ 8sLZN5ReZe20c1vH128cNYAzWx8stn5NCXSasu4rOtu72LaHUEI29nnmYIYuqxT3Xt HIR6Dc1FhmOphNe88CuMC6joniNdtNGnKfTpVr+mNTkzEFjnuJrcEXm9fkGKpA7n1w lIcrGxEaj5Ccn8HJcZHN3pGl2xcO8V91D0qovD8SDCg+R4TeJd9N0LD0SHO5fzAgs1 zcz0tRbbLonHA9IYW2B0hFc/CiQJyf2OcrAhZAkZvOoTCoTJ/pzTiCNwCwBW5skeJZ DKcACaEAAWnDg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A8C2867607 for ; Tue, 19 Aug 2025 13:00:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630050; bh=2yJpcPGyvrmADR8VQMZLpg42nq8AeP+vREMrb84iEVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AVGD/45bSg/wPEvq+jGffBtRGsnUj87HXaqZ01P1TdiSFhIaWHhpSb15ZZ4ubVAYU 8KFAWRVheFViEH+B5zE0YaEyy2FHvVKtjRmaWNjm8JwrhjYZatAOu4lGke6IRrpAQA P1/8dLQx4sDRS32w89WY3p7oJRPF8nV1wkpIVd+8QjcinynQukLIbXzw7SigEG5Pvw 3BycTCASM7QxUuQ0bvYGegDxoiAnKIIE2NvLJfP/GJNI5BC+L6pPZ5Q7ITfd0NL0dU BCK1sLnDGqRbZMh3zxXsv04uDDRL1ik4K6V/YMrW2eQ+uQFw81WzL2XM+GHe9Szwsa qB1avmixNoWWA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ABE1C675DE; Tue, 19 Aug 2025 13:00:50 -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 V83XUAkzcsG6; Tue, 19 Aug 2025 13:00:50 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630049; bh=W+dUUulFiq+YYVPC6WolLp/Bi1+stalAkUqwhfWAvto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qLqCGJYfbhODFY0oppXEPfjutVdvETh+vTNFHDbAAV40TJ+Lkifn0qMhotdIeaZaT qePVWWiiBpPzA2hERD/wBas4Rq9wfKmHcsEX+0pr02fV7qmdfmhOCZb4A7BbXGOKYz ABijrOcahj78DKqNud7OHMxoIDu1CfFmiy3cN85mr5BBN+3yq2n2ylKqLd7Alz0qfM dGq0e7wl3DImJprkhYV7/9Vt2uY+99zL8e3wQtTEusxXbiMLaQK8y/a8Br5s8ITIi1 p8rETM6WC/k6awm2f9gONrmgFg27wz9JAnDlIlSdDZgnsPcKFLKs6O6tOkyQqjeSuc 6mbTDvsFX5vXA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id ED212675F3; Tue, 19 Aug 2025 13:00:48 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:43 -0600 Message-ID: <20250819185900.835939-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: ZISARD4744AH6F4VWH2JMFDVGPY3SE7D X-Message-ID-Hash: ZISARD4744AH6F4VWH2JMFDVGPY3SE7D 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 12/22] efi: app: Tidy up some stale comments in setup_memory() 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 A few comments are out of date. Drop the one about global_data_ptr and reword the one about memory above 4GB. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 75ebe3a9719..764e562692e 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -92,11 +92,6 @@ static efi_status_t setup_memory(struct efi_priv *priv) efi_status_t ret; int pages; - /* - * Use global_data_ptr instead of gd since it is an assignment. There - * are very few assignments to global_data in U-Boot and this makes - * it easier to find them. - */ ptr = efi_malloc(priv, sizeof(*ptr), &ret); if (!ptr) return ret; @@ -111,8 +106,8 @@ static efi_status_t setup_memory(struct efi_priv *priv) pages = CONFIG_EFI_RAM_SIZE >> 12; /* - * Don't allocate any memory above 4GB. U-Boot is a 32-bit application - * so we want it to load below 4GB. + * Try not to allocate any memory above 4GB, just for ease of looking at + * addresses. */ addr = 1ULL << 32; ret = boot->allocate_pages(EFI_ALLOCATE_MAX_ADDRESS, From patchwork Tue Aug 19 18:58:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 15 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=1755630055; bh=j7eEoBbn0/ajxW6tPb7i8uvx6hH6m8k762VkVBWEcQ0=; 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=wZisi40ahk/D9zc5+UINxBdNMLfgMpyoF21f1G1Q2Ac3p9xOFkApk3uT3KkHc1QqJ Co1e0cBqzWCVeFYpj4/To8TKyO9UpL+4CvY+VYF/te3CU6YzDKGV+L+uY5nGfnacmw K0OJT9kbGRRO1a+aRNdw4tuJz0ECwZBDXaIDyesNilQhsVgyjz86nroLqzIqozI7rO zrn5DxxY4KcScTtrpft0eirWjybIZvcZKEy6ZklGAD5iJ7bJd2oKv8NhFVV9I8xjiM gSN+umy7JYJPoE4uLpykxTet4JFU0t6Q2xG6KYCzhUGBYbEPZ+S2ck8YicfdsA5xJY Jw6JCe9M1Z8MQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 123A467616 for ; Tue, 19 Aug 2025 13:00:55 -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 kDswSY7KxUFL for ; Tue, 19 Aug 2025 13:00:55 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630053; bh=j7eEoBbn0/ajxW6tPb7i8uvx6hH6m8k762VkVBWEcQ0=; 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=nfU4sRrsGD1/6w58Njf+w8uQ/QSWoAxsjYJXYip9Zs1N7k4cJ6oi/Nvn2OST6Us8g bqEoIsvVAPZ6uhsG/pddrKTiUCsbocaWayFfqnjnbQM1qX7LE6IMOUrw0gy/ypzshH XYk0ML03/c+OZc48S7Ikm7LIO+wi1W9iipK1rdrUYlHtubJTzzESWu7frbnniaDq5j VnGuLztLosR0jMsnsxjtbOCojHMLhYhpiWFT63XLpuru+M6EVO6FcdOvea2rKCpkha OymdZF2OHYNYgPAt9in6MEVuoac/KKie8eg9wj/qFe9DXjf6DXcy5DOLTqIah8mFRa 597ebYCOLFMIg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 10A8C6760D for ; Tue, 19 Aug 2025 13:00:53 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630051; bh=Ss2eRH8JwaLhd13uBPCbspVowrm6OgATsvpgrV2+Gq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YaDaMadvTuSb3Aw81lTMYFVocU4c8qfP8/1U2LS2mNlrNnx+FdYvDq24SvW/rZqlq WHe35V/VgoGAI32vJhNBguMWED71s6+LyBRev01lB9327ylpxCZcdwuJV24MWoeucc qaOa1otBS0Mj9zGJ/+F2BZIxdYjxjIbgc5eSLEnuU3WY6nohGaB049gBxpdhzM6Mxa nY496lB3oV95Rv5EAKmdNZYVBKm0B+AQzuoqJ+A7+nVDGZ5ieOFWC+qkJJgbpuAoVm /i776KhKxcGH4Q5O+3o8WnfsHbmd5WWNU23U1Ri7odbru4iEqSUoItqAx8X3F+jU+s ODRhpo5zebH2g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 68AED675DE; Tue, 19 Aug 2025 13:00:51 -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 ix1XAnsEgRAc; Tue, 19 Aug 2025 13:00:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630051; bh=gBryQ1wZ91U/K+K4rTgEoTDnKmjdKOUSbW+WVgEgKvQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rpcoIss17WSQ0T+oA6c5q/JvhyOdSYgncZLsFljTTnJhqatI5qj+dwCiq7CxGdNW4 kQLYij/5sN16NMBxWPS4xUwXBZWMrMYa5GS3koX6d9JrPZmkHI1EY4zCkjtiCoyBu6 +u5aY+tpy/TWar6OBT4uks1F+l4a8m+JRbrYKNm2jGaSln1VmNMx7KtVWqTmlHJw+d lbhJzAmKGd6i5xFs+N4m/HpoefmoS2DjKzlF6i8xiuSyNkCyGk8iNIFEVjmFWVZWuW +CyMtxEx3SuI6yXgPjKXkRUcNMt9g4zUuYLy/MX0WN8vHKqJJlniAHRFh1C2vX91mU sLXt01l6Klo4g== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id ED529675F3; Tue, 19 Aug 2025 13:00:50 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:44 -0600 Message-ID: <20250819185900.835939-14-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: FIYE4MI343GASKR25A4BOCTVMVMSMQZR X-Message-ID-Hash: FIYE4MI343GASKR25A4BOCTVMVMSMQZR 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 13/22] efi: app: Allocate pages in any region 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 Rather than immediately falling back to the pool allocator when we cannot get enough memory below 4GB, try the page allocator first. This provides 4K-aligned memory, which is nicer to look at when debugging. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 764e562692e..92aee94a695 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -112,6 +112,11 @@ static efi_status_t setup_memory(struct efi_priv *priv) addr = 1ULL << 32; ret = boot->allocate_pages(EFI_ALLOCATE_MAX_ADDRESS, priv->image_data_type, pages, &addr); + if (ret) { + log_info("(any address) "); + ret = boot->allocate_pages(EFI_ALLOCATE_ANY_PAGES, + priv->image_data_type, pages, &addr); + } if (ret) { log_info("(using pool %lx) ", ret); priv->ram_base = (ulong)efi_malloc(priv, CONFIG_EFI_RAM_SIZE, @@ -123,6 +128,7 @@ static efi_status_t setup_memory(struct efi_priv *priv) log_info("(using allocated RAM address %lx) ", (ulong)addr); priv->ram_base = addr; } + gd->ram_base = addr; gd->ram_size = pages << 12; return 0; From patchwork Tue Aug 19 18:58:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 16 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=1755630059; bh=ROWk3BWUppaEqvBDIIU6Hert9FQX/XQHYWlE5YXSurc=; 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=mcfn1q0ENdT3yGgQ+13l41odE2+XyUXYG2eDTX5eDz2lTsatRXN8t9clLCPornwPZ Fp+jRgftXqQCwjxdGkibP/RfOGjgKNUxJtMhpPzTah7c/kXwgNF97EGP7WnaGoQZqX FyDKV4FXwuiMyD7Lk9Y6tQ3z+S6WdOIpJYQTofqgmWOcZcoCRRcTmRo4jn8/TeUg8x Ip9lx0gSzWAt7zzK5GUg4chEiHzkt5hNhYLoN1oYgR26yGw2q1G9gAk1aKjczgrZ9v xqvOqrqOyfDdeIbStrTHp+2amJUwU5fxP2SWhkVXf37msPfRh3MQQFhhgTVU9/5p5D 8e8zjBoF3FR0w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 60E6F6760D for ; Tue, 19 Aug 2025 13:00:59 -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 mHbFpg0M79be for ; Tue, 19 Aug 2025 13:00:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630054; bh=ROWk3BWUppaEqvBDIIU6Hert9FQX/XQHYWlE5YXSurc=; 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=GTI9EShX1diC9k1/3eqpcy/GNkko23vkgmwsd/22zSkNn6d3tyNVcOk2IdELQ1tyV sxkI+0Hbn9TFplpmS/tCys5YNbYW968cAXps0ONY9+H8+Z0YgPYqLEp5vsLaeEXfVB e2zIu8a/fheFQibycTNGnf7gTsvsJGz+q7yREqDoHYAigUfSf3B01TB9zM88r+/ZiS r6Pd2+6IAxFeeYVRGrdAbgAM1+bfpFinJpqBGoC6anuAVwENnfZG4SRnPpNR4JqKHK E7pRmm+fxQmFA6df+Bw2lHG6pUcgLaO7dLrVw2k2KQUPlL4Vi0iyv4YG5n2WNTqMxW Fud9qH5/WRe8Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EA99167607 for ; Tue, 19 Aug 2025 13:00:54 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630052; bh=6BWx1aaM379nEQYAgUwoZSPVKsfsdcIPkBOjRW97280=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DW5KYkth4PyT7k016jpJz3JfRFafniWlwfG29Z97rmlFv+cJ5sa1XQZ1z6d8wHCU3 Gdb2n8Hbn/+89WsBC6Ccfp2Kh1WDD9+3rnikw/RNyDYuxO9cwHJtqVYHP6gqaH2VRi MfGOLjwmRbD1hA2k848Nsi+gwnXRovUUuVQ2+ZqsQoofiahvaMo7GQvplRftk02MqN qtNhtyiJyGDIo8yJy6WAWbc3SapEezUGrCMiznBZgdcwqo+PhFrw3m5Gl9YtJ5g0IH YqBNEXo/W9qXa7NOon0jXG9hThKPsa1MKjN3iyh23YqIqQHOMYAJuMiCE6XQCPrfZG +sWUcYyDLoruQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3D3D8675DE; Tue, 19 Aug 2025 13:00:52 -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 D9v6GkKopA3V; Tue, 19 Aug 2025 13:00:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630051; bh=fvzNpj7yxlhSC3tevk6ECduXkXCQzRwwxLO1wKXElu0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oj3w4muT8yUZHI20EBkQxcPJYl7a4craDxE2Hm4crng24dDt+oMpAHFFbv2E3YGQU t/Um+N7k6z2A1bpUoVZBWspup6BQ0BBl3nSHOBl1Xok4cYZor7/NsOAa+pxbD1sE4g vupjIWAg73ShzbKPYEjkGjQ8of6DF2ZZ8Ubb50hBcimldRKbNiA88JZpgJeyPweP6A 0mYorPh1U0I3TDBhm9yy4DPPAk16MGKVpxKcc9zVagAalUTAv3ivJGBmE1uo5pKod4 8CMq3ZGZwWTRkKiC6fCgleSo7KTnYSW3iqT0HPOzE0EgBTTwkOfhkqaoBU7aZ7rZD6 l61O9rLk+19BQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id AD595675F3; Tue, 19 Aug 2025 13:00:51 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:45 -0600 Message-ID: <20250819185900.835939-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: LQGFG5U6RPJK25OAPAN4U52LCWMKNCSD X-Message-ID-Hash: LQGFG5U6RPJK25OAPAN4U52LCWMKNCSD 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 14/22] efi: app: Pick up the SMBIOS table 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 If an SMBIOS table is available, pick it up so that it can be parsed, or examined with the 'smbios' command. Signed-off-by: Simon Glass --- (no changes since v1) lib/Kconfig | 3 ++- lib/efi_client/efi_app.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index 0834d46fbb4..ed35c1f0b30 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -1168,7 +1168,7 @@ config SPL_OID_REGISTRY config SMBIOS bool "SMBIOS support" - depends on X86 || EFI_LOADER + depends on X86 || EFI_LOADER || EFI_APP default y select LAST_STAGE_INIT imply CMD_SMBIOS if X86 @@ -1183,6 +1183,7 @@ config SMBIOS config SMBIOS_PARSER bool "SMBIOS parser" + default y if EFI_APP help A simple parser for SMBIOS data. diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 92aee94a695..00022b0ab9f 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -159,6 +159,7 @@ static void free_memory(struct efi_priv *priv) static void scan_tables(struct efi_system_table *sys_table) { efi_guid_t acpi = EFI_ACPI_TABLE_GUID; + efi_guid_t smbios = SMBIOS3_TABLE_GUID; uint i; for (i = 0; i < sys_table->nr_tables; i++) { @@ -166,6 +167,8 @@ static void scan_tables(struct efi_system_table *sys_table) if (!memcmp(&tab->guid, &acpi, sizeof(efi_guid_t))) gd_set_acpi_start(map_to_sysmem(tab->table)); + else if (!memcmp(&tab->guid, &smbios, sizeof(efi_guid_t))) + gd->arch.smbios_start = map_to_sysmem(tab->table); } } From patchwork Tue Aug 19 18:58:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 17 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=1755630059; bh=2YTpdPQDvTIxO3lJrZnLN8LZ30WiGb+sEDgJr9x1ZEo=; 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=C0OhCl7jBaemZ6uCcru5RtqdrQ0Qq7/013fWqwjqdDG4lMJZP+Tg4ANYe+gW6P5ls SAcJtFUiFuwq43fXNIkzH2CcCqpOsoPetGiVv0/q8JXtBJFdd7ju+6Ivcr6v1VCMdT DZ95lO3WnzWINBOk9jMsVYV5eXaIZFPtJbcFYMsQ8EiqCtJAK2ctL6hsLM1lGTTzoX 8bh6AZohhIZezIyBjptM25c0Ws11lrKMdv/qxJ/sAGDNaPmayc6H78gWPXwpn3VOZv /MDOmDN8ZpdljjRyKOd585Syv9Xv/P7SrRuwpn39E7WQzbAesik4rCUcMTySnxR8P2 wqwHdVrBMg4hQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B3089675F4 for ; Tue, 19 Aug 2025 13:00:59 -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 9JpxqR8MZhjo for ; Tue, 19 Aug 2025 13:00:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630057; bh=2YTpdPQDvTIxO3lJrZnLN8LZ30WiGb+sEDgJr9x1ZEo=; 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=q1R6gliqiXR5i5OJYrM+O+i8nkZo3j4JcHg2X4ERdiP67EsS42Z3cqtxGd6q9u8bQ O+mChgEvN+zG6rVWPN6YeU0BV77XMGgUXOL2jK5v/HX3uxmIU2x9lOTvtHmxoeI33k CRVmuQX1J2Xe25JNH07ircPdOZxJaqMsVb1YYwsspNupZwRbQXLnC3Lo0SkmV9aS3W C8CIyhHwCERZWc4QwFrdJaHwFJdw2GHxmTDh9zv/BE9MZTaW0QvD8wZCB809SNA4Sf WoOvp+bB0S01sDJjRTswaNJd166A2IIIsHAVYeOb4Lb1OYiB10HxprdpLCQjE2URFi WFldSPXz1o6AA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4E887675DE for ; Tue, 19 Aug 2025 13:00:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630054; bh=Y6QPgLJrzOjpo3tao0B9x+ZFsZctZW0y9UgRtNTBhEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YaRi43/FC4SYkTDUbgSDhl9KWtMf1euaTgT2WHF0l+xH6C+OOoyg6ryV1Qgh4RQ6N lYlFKT70kkaokaP2Ouo35RPKkk3l0e77npC1ZbXYCBh1puGe2fmKPmUCTPKdt1FLSi K+fxO4yhrz6E5IuTGCEhPn5meW1IVoOW5U857pDT6E+ZVH18mNODNRIWLvIJmzTRnM OF5e3WCvEqZCJV0T/atMPrLDJww108kevlRaEsaF7iXZmJo5gUzb6oDd1pP9FZOqyI QTL/Wa9WgsISPtdr3PZverTXUMsK+Xbb/SZK4LcKTQkeTExa/sMtsT9ZFbTAG5uHB4 OXvJR/qOwe1Aw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F18D567614; Tue, 19 Aug 2025 13:00:54 -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 a7oYbcYYsvTc; Tue, 19 Aug 2025 13:00:54 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630052; bh=d4c01HIpYSG9lUHtZoLQAzD1ociKswTOg8zIzkzX6qI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JO9lBwi5ka0ZZQwO3dRNqCd3WhdbhoDk0BJYutePDEr1ZS2ssGhsioQCtrzugWJBW 4Smg3lOywjjA82Vs8ustvCi+rdO+LKIzKQ8B6lDNWceTo5VS5en+gInPIdH7/Pw2FC 3guzT+l3PeYuMlt/FD5+36eesnywQvcBcCMvcOTFVl1u1xrxz6niUQVKVLLeTERxFL KrHQCGSOpQy6fa8rUIff7kOk//upH/lEOmtK+xzfgLCZwacsn7ivf5YlWKrXXuOlZA p0Q3OVKnhm6LVVmf9vRuoj6/UipP4xBBFgvpLSW1lzdOD2l/WW8iBAe3u+o1ZFJZxf pOkUULM9a5x9Q== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8323C675F3; Tue, 19 Aug 2025 13:00:52 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:46 -0600 Message-ID: <20250819185900.835939-16-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: CGPBNCNPG3BUXJPFNCE5ODKDHGZ3VGJS X-Message-ID-Hash: CGPBNCNPG3BUXJPFNCE5ODKDHGZ3VGJS 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 15/22] efi: app: Use EFI_PAGE_SHIFT instead of 12 in free_memory() 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 Use the constant intended for this purpose, instead of open-coding the value. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 00022b0ab9f..19a0032a784 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -149,7 +149,8 @@ static void free_memory(struct efi_priv *priv) if (priv->use_pool_for_malloc) efi_free(priv, (void *)priv->ram_base); else - boot->free_pages(priv->ram_base, gd->ram_size >> 12); + boot->free_pages(priv->ram_base, + gd->ram_size >> EFI_PAGE_SHIFT); efi_free(priv, (void *)gd->malloc_base); efi_free(priv, (void *)gd); From patchwork Tue Aug 19 18:58:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 19 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=1755630062; bh=aflmzRUW50/zMwx3EjYSQTUsRizEpjS+dr3O2YqO0eE=; 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=vPUvfqB2Pnvnd9+2lNqVmF4agWloZ9y7+P5AmXTPYXnbtruYwFUeDKO+h9IVHi+35 uhw+AR/hB3/gnBsLDWqGzwiwrdaAOcUYmKoNzlPotQGRvML2B2oUD2l8DMITuvBkYH gmWkJhqqudFBEsEedDiauoO1eq6jdVoI7mCy3DTGYe5wwEzG9/hY8bAN2YdkQIYRab XvTZd6JLhmvGqWwEHarmbjgV2hE5Fk01JPGXBrOw6o3Etn7iOGjJM/73qc6Hz8hOwC mqoGV2kTONtnVlksRofBizXhBZkQNbaMxEI/j5rbiDJZG4Y2Unp/TWjYToaUxaqL8x VM7SHtGXb/Euw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6EAD067612 for ; Tue, 19 Aug 2025 13:01:02 -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 a09bY_76SXb1 for ; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630060; bh=aflmzRUW50/zMwx3EjYSQTUsRizEpjS+dr3O2YqO0eE=; 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=NUYahxzi9YYnuNrpDIvJvo26qAmVJS1gOVwQxNGkL7MEmka+LRbBgI1olhc9ZIHJd eWS5dJq24tQLOSrR9DSr+TflQNaOUDXGtlXC4KI3j6v2yGNisgSR0S9icUy2UM0g2F aEBTR78PLfPKFJs4UIPqWh6sOi5+7Qpu8rVOqf77rB3j06kfwMN9A/R/pzE+qQWcpZ wu1ry6ROf5o7kOzxDW1+A9qijnIHsXnFjtllJs7fAFTJzrQJ6STjqmTvCLZc7IhsYw 0JrrKlayrwesueynzZ80ZI/eQI0XKsKdGhTT1OzrTo+3Tpm+4cVxGjpHMby86Z7xCS THrFk08jxoY9w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 40A9E67605 for ; Tue, 19 Aug 2025 13:01:00 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630057; bh=eXZxxO6HeufeqDMOFb/Bo4Mq0VQnAhp4fTu3oyOH0rI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XaGKGHHUSecljXZH40sFaHgtfn6DbuaP/0V1NSMFY3P+Z4l5SK7rvxoNhdb77ALtt +Sd2uGUsDIFURHkBJYFh4AUa+Zplhnb/KR8rAPKHX1BTUONu4j1RIWxaQ+77wVZcAL 6Rx5WjZ166Dj6okUjpPwTGZHfsUXZn6MYJA730uRI6x9Ah3+gJJRsds4DaJUE7OcS5 Fw8h3/6dcKz2/cOdeBFhb2061xkcF1QoEpXclGCyrmtSuP2oD2MzaNSIM4tOBQ0but 6mE0Do102Nvmt7+l23VdarGSKOuRym1oBmA8MlSnwUZujZIdyUaeo2vvmsDkdcnwEL owpAFJsWrttuQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 490EB675F9; Tue, 19 Aug 2025 13:00:57 -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 mm036__69GYj; Tue, 19 Aug 2025 13:00:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630053; bh=wWccCfRYRNUJIaQwbOyr0BB4pLROFc6WTX9GUuebz6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s7mkkbKSWt3Q32C1zvsqT/+Y9Cp58Q6MCvsHrziLtDTKjq3ERsv1ZR19pT2DRGAFk zEOEjX0LnfnI7Fba3Tg3W1IoO2hzHkOe0Fol+b4NZp/uL6aF9ZpAlXEW9zluuw72gs xD5+OThz+tmt1qnkFpHvzUexyQplGwIABs0jJywpg0Gj7HNMxdbbN7XvG0oCbgZcmj aQ0S7uk8xQ4Dbi9ZdS4JEyXYmk4iowv4MmV0NCEh3E+/D5ACj/1Q/WsAwPEYaq6gcO Qo9eZEmXm8/M7QcAkO5gSMdLIPcSTZT72GWzk42oCg/yEPb5oRKcOQiJ9EXmo2UfWJ f0NqKlYb4dQJQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 42D8E675DE; Tue, 19 Aug 2025 13:00:53 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:47 -0600 Message-ID: <20250819185900.835939-17-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: AUXHGREVJKXBM4PKBN4DE4SLGNO3T73R X-Message-ID-Hash: AUXHGREVJKXBM4PKBN4DE4SLGNO3T73R 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 16/22] efi: app: Print the final message before freeing memory 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 Printing may make use of tables which could go away when freed, so do the free as the last thing before exiting the app. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 19a0032a784..3c78165adef 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -231,8 +231,8 @@ static void efi_exit(void) { struct efi_priv *priv = efi_get_priv(); - free_memory(priv); printf("U-Boot EFI exiting\n"); + free_memory(priv); priv->boot->exit(priv->parent_image, EFI_SUCCESS, 0, NULL); } From patchwork Tue Aug 19 18:58:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 18 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=1755630062; bh=JHIYggt5FUi9xZvuydz7NqDwkJ2w7bXn4xcK3MtGMk4=; 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=r6/dx8CpzeIPM+CJYLAtilOXiwm117TkZ3Pyg+fsGMJhC5jd2BpCjYZhHGipOZS8L tn5h7PcX48gsHw/680CLuz1iynyQ+eB94hzgIVaC6wltpCbVfPlaIUTcZ/eHfbmkSj zUTPx4opiP4Tq11uv9ycjL3N7aCnz4MNStvGAv5CHOlE/Tz7CAFWfG7Ec7KM14/pvJ GABN5aiIY7TN4KYB7Ap3e6UvdbGHsiTwP3uUMNzAb+r1B5lfdtr0XbgAWIR8vqRLNB ST1gkrWLiZ//nx8sIzmVBF4mmoxMF3V5mTfrwnGu/Y7+VjEXoMicqz8rTAO6oM8ZiX E0TvlbTVX81yQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3F774675FA for ; Tue, 19 Aug 2025 13:01:02 -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 3N8xpNRxn7BM for ; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630059; bh=JHIYggt5FUi9xZvuydz7NqDwkJ2w7bXn4xcK3MtGMk4=; 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=m0hm+xEXoXOKsc1tiIhnkErx+hIyTeUXGuaDi7N5KTSjq3gYrfdWoeuwrpuAStYyL TyV/JfSQR5H0ph/7u4HRC+6NlT6ApS/zkj7bFVVqhyxj2fRE/IoWLZXpNoyk6Q8yIo ve03VhiMzhvfxm7jPxPXd22KYut7kdaGqbz6xaOcYMhnGIVsJdO7Re4xIGuuWZJBYT uoiN+o1EEpnWYViiOnQ3FMFxVOgo079peV0/tKCREx7G+PuM+4qxbqt1sKdSh2KsLL 8aXMmFdMSt6y+COMnEaih6LekTE83iHe05J5ktIy+tSeVIRGHRrQcY38BbzRh728Li T3CWrDFt2mUTQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CBE9D67614 for ; Tue, 19 Aug 2025 13:00:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630057; bh=T8THqVCysMBcmz5I5Sn2s1nZdK8wh0bLDUq7iqk68gE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lPBSlqSwuW6dVCZDZwbqjlsxIOIz+m2UD8zXKDhsWaq642teGkTn28Mz+IxZl2dzH XjzbcGf3i5RqUpu0KCCSNlnlN8GmULUK1/u1LdELIBGWp5Fxq3VJ2tltVUMuVY0O6P P8kmR/2Cge+6ndytjSH2leCNXoj9NTn03dod/+XM7HWy9ee8cHNVTtIYhw8HfirDZd mkVQxiCC+behn+vhU+hJ7QIwR8QLcxGSFYT4R2UcYQMAQxm3CqVSWnph1T8wxS1k4k +N8fmMWmLBFq2L5TMyUVN6zgjFN4NR1Z4p19eESMbtmJ0uActX61itx8YYnK2p9D9N vclEfXlYzgK0A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 491106760D; Tue, 19 Aug 2025 13:00:57 -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 RC82JBb5h90I; Tue, 19 Aug 2025 13:00:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630054; bh=dK8FEf/emh6lUgGYccEDpatucZkVmKYQT7cbAf7JUnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iZxgkmnweTz9inKF9QmYnr8FDCfvejpkn9mOLahH+zu1iot2NsLDG2q/IV7M8wdI2 Vyi5yGpiVy0T4G5jX3uYmEYO935H0Lnp+hEWuHCWy6DOPforY3aZm7EQRKjd22N/YL c6MssWqAZZL4oJv3xpAVpCMmDbo8J+Q1MU5GF8plUR/FBwHuOhzOigXmzqE1anLsAm 4MQMlx7KUApKdUVaHi3nfoLu5mped+AsXBUdSyLJJDLoEldDajG91iDwaNiKghpDvD 1yYKMl/Oq5s7PQ4fskQn2vmW7EcsFDM1Ty/8WhLYjjOp+rQU7Dvoj2Z6WQ1sxedUMT US2863XTgMi6A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 13732675FC; Tue, 19 Aug 2025 13:00:54 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:48 -0600 Message-ID: <20250819185900.835939-18-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SKU7ZKOJYRZLVEDQYXS3XZ44UGMMI5ZJ X-Message-ID-Hash: SKU7ZKOJYRZLVEDQYXS3XZ44UGMMI5ZJ 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 17/22] efi: app: Use the relocated global_data 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 The new global_data is set up by the app but it never uses it. Switch to the new value after board_init_f(), so that the output of the 'meminfo' command is more contiguous. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 3c78165adef..942c7ab5133 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -221,6 +221,7 @@ efi_status_t EFIAPI efi_main(efi_handle_t image, printf("starting\n"); board_init_f(GD_FLG_SKIP_RELOC); + gd = gd->new_gd; board_init_r(NULL, 0); free_memory(priv); From patchwork Tue Aug 19 18:58:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 20 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=1755630064; bh=o/c+DrTb2VuOppPHQ7e1b+ihhJQz/e/4NZ2pjKdUBU0=; 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=pbXG8RpoAx6n1oE/uS0+XroZ2VmUTiU0CnEIOLm16T8qknuyDjNW2eOKZjcB4baK3 VzwyNvms2gmfvxY7HA+X1BJudFX6YoUTUuSudHjUXNMHYQh1fQyfPt4mUTK5gz/cok DVhlMX0QWhU/p4IPkJiqXBbSUePLaKH5KpLok10iBc/BxFg2L6s9pOmQuaNImJaVSu Bi6JsJ0+ZPVIN66AICAbwfrl0RBKrin9OV9A1OVXjVduR6CUS9HJgPcvXMnaHmZ7RR +IYif2WLFpJ3Ma4RlU6kDmCUNJ1ddqR+0ezsRmuHPXKqzJKgb1W9Mk0WdQIrSXY6YN Tq1n8iWHiKN8Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D0FB1675F4 for ; Tue, 19 Aug 2025 13:01:04 -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 8DElqT3kb3vV for ; Tue, 19 Aug 2025 13:01:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630063; bh=o/c+DrTb2VuOppPHQ7e1b+ihhJQz/e/4NZ2pjKdUBU0=; 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=Xn+MJg8K5L81aW3/IFUSO/JArxDHpml8sqzoMKlDndPRMiLUsCA6aXGCUVTUQZXxn iM5dhTDkDcHHHZ2hTlkBPEwvBF9VyOp/2Wk5jj82dByKYioBt956e6agzHeZgvUPNn hc7/sLMoPATKunO7Rs8y9MraxVJoAYftFBaYAW6QzbHFsEEwmMzTHjZPwpdX5NRy+4 p5Fg/7TLCWchwXVfXb/fxKCZzqZpYMpiJMqPq/CaBH+YtaBEqrK+HmHQzVeL/kdnqv wOXBeaoNugSm5lt77Fn1JZoZCccKQANqm7FFsQlVKGaxiqNtcPXtLEXqQqxhImFtkG p4O3sCkwai3Cw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9207A675F8 for ; Tue, 19 Aug 2025 13:01:03 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630062; bh=n8nnaFa03ux0UVNNAU4x6A5dniGls7rjLIuYPDru3Rg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rN9mqe5rkLBxMcFKHQY6dcjVItARn8cPaiWDG8RrCn/cR+RU88E4a04ACPNqYdYca iYZ7tWLdhALlGYfsraYxhjx5WuWLCMH7T1T3UfqwOv520Hl+UPyquv7VWeaxgOAB7J 7Yisp8MEBae6JmfmeLiFApcfO1EXmwkAeCTOK5H6Z0a6N1hxSIzpx+dArMtZIZks12 lp0CG3EZScNDQgSBmtw0aE8gtZfwvlRot2DyP+atV73vRMLngBPwxFa8I4K4GgbdVv yPPKLLnDjHthKr0vOHbOMB4QU3MF32/Zwcy9cK4L9Orcy9LPzKRPAQIKNJQ7MMC5+T hNBB52wFkA7Jw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2DCEA675F4; Tue, 19 Aug 2025 13:01:02 -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 ITsSBfv5RD9x; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630055; bh=j9JHg+safhXa7n0YgIP5j1sDjpXC4c77SekQF0N00Sw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hfOwYReIbQ5C+Hcjuim+BtDyZgCMFU1A4XcjecHZn97CuPFKc/0qX5Nn+tZi6oHf0 0DDWuRkZx2NzA87fdO26L6vXFPdBU71dKT9aM1fWtqXEORzI24ECziytPXtYxjU840 112Zurs0ygv1LIYKllrnDslgXeeuLpVCE5xWbiE9oKzZViDr59WuyDaq9FLsa4YP4n w89ulWufe2f9NN10eTNSv5kVSBsUUoZ/oo7IS3VH2A0joCZa+uZW/W0BwTWz6wXc5Y ZFL1WK6RooKFFdhYiBpoe6UW5oWkSANFwoAnUqBAvAnp/xVqm9Ve074JpTenzAW51z Ikbfk95GpbmVA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D5692675F8; Tue, 19 Aug 2025 13:00:54 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:49 -0600 Message-ID: <20250819185900.835939-19-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: X6MMHR3CLV56EFXHQRRD3SDHBVZA4SEG X-Message-ID-Hash: X6MMHR3CLV56EFXHQRRD3SDHBVZA4SEG 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 18/22] efi: app: Only show the memory map 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 This is quite a long dump and is only useful when debugging. Show it only if LOG_DEBUG is defined in this file. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 942c7ab5133..28f6610e0eb 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -8,6 +8,8 @@ * This file implements U-Boot running as an EFI application. */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include @@ -307,7 +309,9 @@ int ft_system_setup(void *fdt, struct bd_info *bd) if (ret) return log_msg_ret("erm", ret); - efi_dump_mem_table(map, size, desc_size, false); + if (_DEBUG) + efi_dump_mem_table(map, size, desc_size, false); + ram_start = -1ULL; ram_end = -1ULL; end = (void *)map + size; From patchwork Tue Aug 19 18:58:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 21 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=1755630065; bh=iFsBhdJCA2KJIEF9pEHzQvNZqcRFhBpSCN8s5F9Uo0k=; 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=i4gz3QXM25gnsbNXw3uVwCmhMPF7MCnMajAJJE6WXgkToca+7hzzvlmYUJ3R5unmU 9zxexH+Jr4oJMS9S/KjsFKiBvsQVdHXpiusWSF3MvgBB/lqlTfKoe/3QCSqR4/0qDB m5rO5DvEglxh0KR8p8nlh6ky9BEf7ds6W4wORMUbTOfZZ6OYzO9qMImBsJ7TsKq9fi hYrO59MrZ0ocvo6LDINW4YWJ4m+/BtVQTqo584ZV6ZSWUgg0B2j1CJiXMNde00HinX ZMZ7ix/s+MWyoAc4qMIG7mPlwiaI/gXIyE0fro+BTDf5bdil/cRoWoxvjdpfZjqALM ki3+UmMs8o0zg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2B4726760C for ; Tue, 19 Aug 2025 13:01:05 -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 Wp9FCY16X-AS for ; Tue, 19 Aug 2025 13:01:05 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630064; bh=iFsBhdJCA2KJIEF9pEHzQvNZqcRFhBpSCN8s5F9Uo0k=; 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=Ig7cEbj0Ho5pLI3YVdNNHvw2vZh6ntuCbmdx8rriR0mlwt7lFpFJJD6Qly72RuATB zVHh8gpaNRQ5GkBxR6hlLULCsTSCF3CyirUeASvDKH2LXHqjGLd/XfcsiWeGho8TAT klMy+xjV2vhekVqwBRsBLjTDjzVN2RZoYxB1/72gIjWz5q2qbhhp8PrSDrVvppIRjh J30ARNwUTnuv/zO/mVHjFl/slum9o5Jw9Gqzo77KO+pasJwqqsNwchzI8bn3a7J2nb a2hiYrwNEU97cg1RY8n06k6A087nnpbdeWaMT/ic+C2F3PG7+1fH/oQb/vI1I9YxI9 WQV1MHP4jy50Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6495D67607 for ; Tue, 19 Aug 2025 13:01:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630062; bh=51c948aw7MBXB4xufwdNuQKBVsphYnAhpUrXfDfGMDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PejSTrwLECe8Ayp8zsJPbsJYzzXmjF74i8v6VBgmOjGBtHT3VumYt6fJDj0nb9Cbo l1pdOn+NxvTfwH/8d1oHU/0+tSMpP565dZ+cha+7kh5sjsN6xfeAGFs6ndeVhNDl07 ZUAyjomtnNgBaTEXdWzgQTXXNdoPPpezQeF8w9ZldJ2RqIqscCI+QFZrJaVc1b3b3g jFzsKv5qL0cgoVgxOczJ+wcSLnSbcyzKl7JNq4+Veq4roRoj7OXsDCMc7WZXvFy8f2 CRnSu7WnkjbRLElO84odBip/fOFmq6d+USmyL1JD0I4S6yUoyB3PvJs3ulQj/2RMbZ niMGcaEuluE+g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 36241675F8; Tue, 19 Aug 2025 13:01:02 -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 YSKZ29ezmZfp; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630055; bh=vS24GUS6zqrEHrUWdDH4PKBqKqVs0XfI3EURfVIi1A8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z1yHwzBhiQqUFW2sm3+zny5NGs9N8KZKzrGX2pbctBI9OjgpyKG3u0Z+IVRPJerXE NUPZKjJAqNg6Y/EAB10QeCg1qsLNkV3s0/gCAZpFcDE/HyikBKXaqYtzDeNgtSocjM BFlxtR2HtlIvQsknDzPAyhYdxmNlll5eI69dUcoIqeCTPvr109d90+tCWJIGDOMeP6 MqmFXuLhfSrNT/LLBxHfCGzR0P0iidQYT9YcQ1RIU47u6dJB0MVokl1yDUHmEN6y2u ewDnU33dPPHdnZ5dtq+dyn1k17LjTlQu1aSQi70vc1/oIC05iA+i1SKwFqNoB1U4ff Or77BweQBoTrg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9176F675FA; Tue, 19 Aug 2025 13:00:55 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:50 -0600 Message-ID: <20250819185900.835939-20-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: EF22JDTWGEZZBTRUCEBAW3CWTDMN74HF X-Message-ID-Hash: EF22JDTWGEZZBTRUCEBAW3CWTDMN74HF 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 19/22] efi: app: Add a simplefb node to the devicetree 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 Use simplefb on ARM devices so that we see a console earlier, assuming that 'console=tty0' is passed to Linux. Signed-off-by: Simon Glass --- (no changes since v1) configs/efi-arm_app64_defconfig | 1 + lib/efi_client/efi_app.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/configs/efi-arm_app64_defconfig b/configs/efi-arm_app64_defconfig index 7e7a033311c..31658c17275 100644 --- a/configs/efi-arm_app64_defconfig +++ b/configs/efi-arm_app64_defconfig @@ -15,6 +15,7 @@ CONFIG_FIT=y CONFIG_BOOTSTD_FULL=y CONFIG_SHOW_BOOT_PROGRESS=y CONFIG_OF_SYSTEM_SETUP=y +CONFIG_FDT_SIMPLEFB=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTCOMMAND="bootflow scan -lbp" CONFIG_SYS_PBSIZE=532 diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 28f6610e0eb..81d60f9404a 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -339,6 +340,12 @@ int ft_system_setup(void *fdt, struct bd_info *bd) return ret; } + ret = fdt_simplefb_add_node(fdt); + if (ret) { + printf("failed to set up simplefb\n"); + return ret; + } + free(map); return 0; From patchwork Tue Aug 19 18:58:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 22 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=1755630065; bh=HcskMd5Yv9Qh/wA4nnjXclqvQR4tLF9O78zaID49wzA=; 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=qbg9rEECb52od29lwxmBJfMFRF7YS5+QFvX2ywMVKZ4IzXKLYEbO+VF0pYoPWx3Fz 20Y+bQuT/GhBqQJnG/yyTuJTkGncg/QaiKzCLoQfx1HgX25BU3ibBXfscP7YKv93WF BIfCczPsG5+XckrDTKB99OR17pEBgG/8bYTOXJMc84GnZ3gCAydvSkBr4vMJ51yKgC r8YYsQNgewYhXlTiMTpZW/5XgtS1aW1jFVXnpqdg+Qgwc/V65XBkaK0g1qDxyYS3X4 Z9rDT7HjdJLfc4SsTlj4aK3YwD0/1tV4O++MQnd4jj63s1J536XYmc9Nc6XhWzBPt9 G72YM4RcITF6g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CF95B67613 for ; Tue, 19 Aug 2025 13:01:05 -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 fvnQRqjdTz5U for ; Tue, 19 Aug 2025 13:01:05 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630065; bh=HcskMd5Yv9Qh/wA4nnjXclqvQR4tLF9O78zaID49wzA=; 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=qbg9rEECb52od29lwxmBJfMFRF7YS5+QFvX2ywMVKZ4IzXKLYEbO+VF0pYoPWx3Fz 20Y+bQuT/GhBqQJnG/yyTuJTkGncg/QaiKzCLoQfx1HgX25BU3ibBXfscP7YKv93WF BIfCczPsG5+XckrDTKB99OR17pEBgG/8bYTOXJMc84GnZ3gCAydvSkBr4vMJ51yKgC r8YYsQNgewYhXlTiMTpZW/5XgtS1aW1jFVXnpqdg+Qgwc/V65XBkaK0g1qDxyYS3X4 Z9rDT7HjdJLfc4SsTlj4aK3YwD0/1tV4O++MQnd4jj63s1J536XYmc9Nc6XhWzBPt9 G72YM4RcITF6g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B6C1067612 for ; Tue, 19 Aug 2025 13:01:05 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630064; bh=zCT3a/Gqj6iQElE+fX0rWgfqHS0qU3k1AGxIt+xgrp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FGCHGGo0FREpj1ckRvncZ0P14TL0b64qYGcC02Erh2gK2iiOOZdx9a1LuJax8smF9 s1c1pnid6boHsMdg4CyNpnCEPxbMrCUymwEygTIj4jfd/hPK0wZGXjWt/EBX+yWR9x RGGQTJeavhDEOc8RBOxXh71QM1KViVxE4TLnGIxsrDq52WFVxK5+pzxCV9PJtM7XWZ VuiyTddtIBWRaoNMPXPhBYWfZkAbXffeEXpMm38wHUS6jeA7kTYJ2//Ot0mCpjpQJ1 bfxSh32MuPtji+o+tpMjSApmaeEEiqQnU3SlR7fhCy8b7kqb5crvqJ97wssc54Vs4I s5UJp1UkwmeOg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B3A5F67615; Tue, 19 Aug 2025 13:01:04 -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 jMhtI9WFAiv7; Tue, 19 Aug 2025 13:01:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630060; bh=apDKSZj7T8XUN+oTsBHurKa8GTm3hTLy4Ec0i8IhX9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SW+LNmDgQQVDXMcBAckCIRMoT1qzI8sheGmeuv2aaihzcS1ZVA54RIMQq9WY0+lf7 /DIGjwga3kHhFwtjbaTR4di8X1fL7bQqdj0K36YDvLkgvud48xmgnu0lQOMrYi7qQC ZTbC3r/FRzZHMVSs79ar51T0H/JTKa6ee4u721A6mCyRNg4TIqLM0nc6SrSbPyvdh9 4kc4GEcp/uq3ngQqlFVHnAvuuBMlszvRdBZdJhEq8c7KBAmQA9TTZi/NGJYdecdkHa 818Y978wYPwDnKLaIHP9VwmNp5YaRMQqg8hyZRo5Uaw0yQW3lxFySkh9T/kMNtwHHW FnpWoK6QG3RbQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 29D99675F9; Tue, 19 Aug 2025 13:01:00 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:51 -0600 Message-ID: <20250819185900.835939-21-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 4QR5KEVM2JKQVTGFI67WGUNX6FOWLAWT X-Message-ID-Hash: 4QR5KEVM2JKQVTGFI67WGUNX6FOWLAWT 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 20/22] efi: arm: Increase the cyclic timeout again 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 The video sync sometimes takes 20ms on this board when running under emulation, so increase the limit to 50ms. Signed-off-by: Simon Glass --- (no changes since v1) configs/efi-arm_app64_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/efi-arm_app64_defconfig b/configs/efi-arm_app64_defconfig index 31658c17275..4cadaeaedb8 100644 --- a/configs/efi-arm_app64_defconfig +++ b/configs/efi-arm_app64_defconfig @@ -21,7 +21,7 @@ CONFIG_BOOTCOMMAND="bootflow scan -lbp" CONFIG_SYS_PBSIZE=532 CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_LOG=y -CONFIG_CYCLIC_MAX_CPU_TIME_US=15000 +CONFIG_CYCLIC_MAX_CPU_TIME_US=50000 CONFIG_BOARD_EARLY_INIT_R=y CONFIG_CMD_BOOTZ=y CONFIG_CMD_MEMINFO=y From patchwork Tue Aug 19 18:58:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 23 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=1755630070; bh=124vJEkXqfdopxhEXxNUc/6X8fWcyTN0oXEFxyw02VM=; 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=Ku6zhuanGzyeRdQzIjxxYytpPA2fiz99jo7q7FjCQiRReYeZVh8ao9ks4B7sC+PN4 DdEtDv6OX4//TUpNRVChZJzeQxKrq7bOjpO5pTqX5c+nqavVw0Wv5juiqWqBQXI6wk tRK1HRfdfvqqbCV/pYEE3kqOHF6YsYOTc6j/15rhZS/QChFdQBf2XuwYC9z+IGZvlQ lHOTaMHVHzxGupuFtHBiQYi44shdSQnGDzlHVtxTTsNP+Yg0dVMZXcMQln2wt4kxgn hMLi7wSITT+iPjzQsuMJnU1MtLof44eiZ3jdQcr+naemw9CZFKKsIMmzjj5v8UPd9p DMG3jwqV5EsUg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1A97D67607 for ; Tue, 19 Aug 2025 13:01:10 -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 qM_R3dAg_Sza for ; Tue, 19 Aug 2025 13:01:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630070; bh=124vJEkXqfdopxhEXxNUc/6X8fWcyTN0oXEFxyw02VM=; 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=Ku6zhuanGzyeRdQzIjxxYytpPA2fiz99jo7q7FjCQiRReYeZVh8ao9ks4B7sC+PN4 DdEtDv6OX4//TUpNRVChZJzeQxKrq7bOjpO5pTqX5c+nqavVw0Wv5juiqWqBQXI6wk tRK1HRfdfvqqbCV/pYEE3kqOHF6YsYOTc6j/15rhZS/QChFdQBf2XuwYC9z+IGZvlQ lHOTaMHVHzxGupuFtHBiQYi44shdSQnGDzlHVtxTTsNP+Yg0dVMZXcMQln2wt4kxgn hMLi7wSITT+iPjzQsuMJnU1MtLof44eiZ3jdQcr+naemw9CZFKKsIMmzjj5v8UPd9p DMG3jwqV5EsUg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0A038675EE for ; Tue, 19 Aug 2025 13:01:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630068; bh=MHepsaVwBrXPzBS/1draPnl4+yvtuKS3d0gXzecXVc0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BoSl98ULYuFTDDOEld0AKVdzkOY6hbIjJmmwqZwHQWlOe1w+WD8sjxjUlgeuBnwMp mNoLiPT4EeLXVkgQCVSAS34FbP46RQ1mkgVry14kU415pAHsigCJ7i2lHiOfugKuYu TYhP+KraAyjqOaleMWA5xSmQ7L5fELCcCmGgNdD7UooZwGFMYCDlyEfdzr99dGpu+r I85fG0Zx18cmyenoSegNkPlBn/FRWRT5Zz3+u9IjlxLAyzNZGU/+EAOmy8wCG+wuoT 6A85y0nFcl3ndvNRCnhxaWHZ3nfdkg8bXHDEGLdGnhU3EeFIO7tu9vQuci552fQLp3 CFh3c9zsEub+A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 25943675F4; Tue, 19 Aug 2025 13:01:08 -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 3wbwcJ9EeXU1; Tue, 19 Aug 2025 13:01:08 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630062; bh=LA1ls4g+Kahr5lYlLL1TwQYmzfHPvFEjgpLX/9xVI9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HrRO0gJMrkSr3xq45DY+E8NPkUZNo+lmWrtzlYeRRM3AxvIo/We1Y57z4/spdOA1b ku5pM6D3s2OWROOICKTJf4RXnNoMDesFXIgYsYewJL8ujthHlHHMqQO0xTK8qv6IV/ Z+J/rT8w5vSkSIu73YTKI6dU7VDw4wBBFnFhbutec6SZOQkeDkCBkeH8ftUeDtekZd mX4imzdF73kAbzUqpaliBYWlldKZ6ARJVlkik4TZUDUGjh5JDHxAMn229PJgiPadOi 7zqJvjfX66PGl/UH0MeR2mbqX2yUJFRJapgSXhtTVG7LI1l7pWuVwx+8yh1CFR4U7B E8lFiG4xROlBA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 337DA675DE; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:52 -0600 Message-ID: <20250819185900.835939-22-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: BWC2F5SY3OBTK7WXZDTBFZX2SHZNT57U X-Message-ID-Hash: BWC2F5SY3OBTK7WXZDTBFZX2SHZNT57U 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 21/22] efi: app: Show the model when the vidconsole starts 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 When running with a vidconsole we only see the prompt at the top of the display. Set the option to show the model as well. Signed-off-by: Simon Glass --- (no changes since v1) configs/efi-arm_app64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/efi-arm_app64_defconfig b/configs/efi-arm_app64_defconfig index 4cadaeaedb8..2b686d882e6 100644 --- a/configs/efi-arm_app64_defconfig +++ b/configs/efi-arm_app64_defconfig @@ -21,6 +21,7 @@ CONFIG_BOOTCOMMAND="bootflow scan -lbp" CONFIG_SYS_PBSIZE=532 CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_LOG=y +CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_CYCLIC_MAX_CPU_TIME_US=50000 CONFIG_BOARD_EARLY_INIT_R=y CONFIG_CMD_BOOTZ=y From patchwork Tue Aug 19 18:58:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 24 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=1755630074; bh=8DPgV0Ab5Z7qtdcz6USacUEx/z00K65QvZPPilxYDMo=; 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=mW+gInV+mNQwyTWn1r0SVeUwVo05NyWorBbx9HcLw9jP7su/NdwJMknwr22z8CWCH 55ZajZz8b3+ikMvDscvbmNfo1Cyo1EL8LtwUyTBy3Rt+pQbJLwo1c4/v7R0m8jNpRx 6kD0hzLcMc9Ijfstgyuf67RNxu3V3Mgx9evJz+VnJm7eHNepP5TaNJn1HpuSameDtv vLk8nvSSOiZ/J2r3iMg8zZryX0qTU89wlgKVGSE5vy5UPsy4GS94+/aZ571gzfaorb iFsKNwZ+t+f3k8ek6Xf/a33qRjINsoNHhG5eOvzF04CymGJtb5Ul0+4AAexqVdOPv5 Wen16yEUt6iOA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6893C67605 for ; Tue, 19 Aug 2025 13:01:14 -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 m5w1dFJivUNP for ; Tue, 19 Aug 2025 13:01:14 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630074; bh=8DPgV0Ab5Z7qtdcz6USacUEx/z00K65QvZPPilxYDMo=; 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=mW+gInV+mNQwyTWn1r0SVeUwVo05NyWorBbx9HcLw9jP7su/NdwJMknwr22z8CWCH 55ZajZz8b3+ikMvDscvbmNfo1Cyo1EL8LtwUyTBy3Rt+pQbJLwo1c4/v7R0m8jNpRx 6kD0hzLcMc9Ijfstgyuf67RNxu3V3Mgx9evJz+VnJm7eHNepP5TaNJn1HpuSameDtv vLk8nvSSOiZ/J2r3iMg8zZryX0qTU89wlgKVGSE5vy5UPsy4GS94+/aZ571gzfaorb iFsKNwZ+t+f3k8ek6Xf/a33qRjINsoNHhG5eOvzF04CymGJtb5Ul0+4AAexqVdOPv5 Wen16yEUt6iOA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 57F78675F9 for ; Tue, 19 Aug 2025 13:01:14 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630072; bh=iOlwsnU9o6Jgt7wSJpmMtb63mCN9O+c9cOT3i1JQ2kA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Up9qkFosmIbhFNJ+MQ4FwIZIcqG0uOTZ1CNXC6Cvt98QubK7TIa7bXS4eVIlbFxeY mLa65LGvch/SjySwezYWTcLjg2TtzdryOnkpxm2HKcYkoqKZi4HrlCuH5m7vbRXi4L CxwWPP8N3jhsLWilb6u6GlILrXgMd49RgoSEUl/yzEH1mvo2mOnUxnfyGIvlX9Erhg ecqR6VEHugddGiu1GEEUw1AdB2E/A4O243SLwaz1cM/Hqq4TE3Y97bpImmY7d7msUi LfrRYApG74HHxZPxZPwYgodLfhIafs+DSIHHcoOCgy2dO2h+R+zbrSOrCdJJ3ptMgU aUqnWlYRIKN+Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 56EFB675F9; Tue, 19 Aug 2025 13:01:12 -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 0l630GxHoMTp; Tue, 19 Aug 2025 13:01:12 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630067; bh=UE0P40bdaxr6fLiT05yJnFQzfnupIL2OugaofR3di/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qo4sRBZ1ytI4c8vkTFcBdVs6kh806tt4hON/swZeUJp28ErMgfvuJRI+stWH5973g g0xQ6nP3zjg3G7SSlUzkxElRykJ+EhcXQqqUSgytxOdSnDFsvZGd+4FJBMOtpvmxA2 2rbsFLTGJfS09hV5hM3WwK+81h6Rw9+xJJhgfcbSUYN8yTUEzGv0QVf73iwZVeiTWm Eh8PBT74vFfduKJ1Zze9QSyNLc0yYHOuOy7IYUXpaRyznR+X2FR1WoMrNDnCrSAtbm HTDAuhlEhFCSj6NtBeNn7i9W4d6BKK/L16B6tpWu3hHprdDgyWSjFRqu39iBtt922J Sff/MArB1Kepg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C6E9B675F8; Tue, 19 Aug 2025 13:01:06 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:53 -0600 Message-ID: <20250819185900.835939-23-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: LH5LQBWGRFZS227OSEN7SBISJLFCCOZ2 X-Message-ID-Hash: LH5LQBWGRFZS227OSEN7SBISJLFCCOZ2 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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 22/22] efi: app: Enable the cat command 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 This can be handy for looking at extlinux.conf files, so enable it for the app. Signed-off-by: Simon Glass --- (no changes since v1) configs/efi-arm_app64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/efi-arm_app64_defconfig b/configs/efi-arm_app64_defconfig index 2b686d882e6..2bc7a87506d 100644 --- a/configs/efi-arm_app64_defconfig +++ b/configs/efi-arm_app64_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_MEMINFO=y CONFIG_CMD_MEMINFO_MAP=y CONFIG_CMD_DM=y CONFIG_CMD_LSBLK=y +CONFIG_CMD_CAT=y CONFIG_CMD_CACHE=y CONFIG_CMD_TIME=y CONFIG_CMD_EXT4_WRITE=y