| Message ID | 20251018084117.1798704-14-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1760776938; bh=e7JrYNYoZQDSvLYaYlsKzrIB/esc8nZCcWDU90u7Zns=; 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=Lbk89GO+m2xA9cN63dNgF0wF7uaKXkQ0DNr+ruR+njkWe3WoVo2Zikv885086mfME 4z2FbEaXmEGlo65Pk5Iy3lD5v6XJ1Ny4sS9z9+NKrX76vrgXcuoOB/7TRf7DescXjS AhWRDg8cM1ZO+fW+db6hOAusj1HxR6fPIfwXCZjTclegkT0F6ab7tIJGYtxa/ocmlp PqJTZNfqfZE+JLwEZIIRK2KZUqwbXGGehspjgcrpDWxeZDZ/JZe7EkKTMaWiafFKcI C7Gj8ZUXJ0vT3suSsO1MKYX3Ppob9NPZylSuQFMEyuldIGwc1fifBGzBsRCCV3MLQG pF1vWqdgGgO3g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 133F0681CD for <u-boot-concept@u-boot.org>; Sat, 18 Oct 2025 02:42:18 -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 10_e2xEci19A for <u-boot-concept@u-boot.org>; Sat, 18 Oct 2025 02:42:18 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760776938; bh=e7JrYNYoZQDSvLYaYlsKzrIB/esc8nZCcWDU90u7Zns=; 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=Lbk89GO+m2xA9cN63dNgF0wF7uaKXkQ0DNr+ruR+njkWe3WoVo2Zikv885086mfME 4z2FbEaXmEGlo65Pk5Iy3lD5v6XJ1Ny4sS9z9+NKrX76vrgXcuoOB/7TRf7DescXjS AhWRDg8cM1ZO+fW+db6hOAusj1HxR6fPIfwXCZjTclegkT0F6ab7tIJGYtxa/ocmlp PqJTZNfqfZE+JLwEZIIRK2KZUqwbXGGehspjgcrpDWxeZDZ/JZe7EkKTMaWiafFKcI C7Gj8ZUXJ0vT3suSsO1MKYX3Ppob9NPZylSuQFMEyuldIGwc1fifBGzBsRCCV3MLQG pF1vWqdgGgO3g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 01F04681BB for <u-boot-concept@u-boot.org>; Sat, 18 Oct 2025 02:42:18 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760776936; bh=3E8cWg13e/vNZXBuyvDZLGdX89suozKAdP2E4EDmCiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QSeDtBR7oUUbjeRlzbDJiGVl09fDEx+fy4CxH74X6Ijbs7PcE8YRSHYMLCokOSDUs Ac3GRSs1sCLWSO1aNJMSqjrIUH8RtfJMRzbDaOUSUpTN3m5DrTdjbIl8uhtTAIaYH4 GZtEUDYY6KqUaN2F5fbY1WajtfBzS9vF9P3I2Twbcgdzpv+cwyB3h2goN+c15VAmGU 1hSIv9TGlOidc0CJv89qtOW/MXL55j5Nhrw+4SvksslX7hmwrvscMq0Kt9k12bJCRN vvnfIub2sBHUUHijOSOUAUl2N22KSJt+oNdypl+zWJ6wDsYZioR/TS1HQToNor6c1x XqCP7GHPiWQNg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5ECFB68188; Sat, 18 Oct 2025 02:42:16 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id xWurVwskxM2v; Sat, 18 Oct 2025 02:42:16 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760776930; bh=AOIQ7hc1Ate4Fv4JEZHvScYiQ55ka1r8kz6SkVD8eNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ftOIeMIk/cXSx7BxXjfRHa0G+t2u6ZCgExiB+gPzM5EW4jfOaUKIbD7bYSuLpfv8w gYAnkzAFeUfIbULx1eOGJ0K2cRWkbrD6koOFz457Hs3rcWvqueWn1F/AE1HcQH4G3X XUdn9RSKCd0tVcNpgwfzHxNnZRuOxNFWv0MPCWJaLWVJcsovFvjdnIOrCHd9m9avoO JUHhmfREyMsJC8JubK9HEmMAinEbUV6yvtfL76OcSCASxmacW6+ljlEcNWC93iwPlG uoHWbvpHz4BTHnknGUmYV5/uIArxci09pJhZ3WZY3FLJE6vYuBGAHq9dzASn/WnFsc j18RVV1aj6gdg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 6CEAF68109; Sat, 18 Oct 2025 02:42:10 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sat, 18 Oct 2025 02:40:58 -0600 Message-ID: <20251018084117.1798704-14-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251018084117.1798704-1-sjg@u-boot.org> References: <20251018084117.1798704-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 2U5A5K7EX6JZXHNWV77QWBMSVS6H3NSU X-Message-ID-Hash: 2U5A5K7EX6JZXHNWV77QWBMSVS6H3NSU 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 <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 13/24] bootctl: Avoid hanging on failure List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/2U5A5K7EX6JZXHNWV77QWBMSVS6H3NSU/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
bootctl: Expand bootctl to include a new UI
|
|
Commit Message
Simon Glass
Oct. 18, 2025, 8:40 a.m. UTC
From: Simon Glass <sjg@chromium.org> For now just drop to the cmdline so that the state can be examined. This will aid debugging. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/bootctl/bootctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/boot/bootctl/bootctl.c b/boot/bootctl/bootctl.c index 9fa943222db..7155ff0a8f0 100644 --- a/boot/bootctl/bootctl.c +++ b/boot/bootctl/bootctl.c @@ -58,7 +58,8 @@ int bootctl_run(void) ret = bc_logic_poll(logic); if (ret) { printf("logic err %dE\n", ret); - hang(); + /* could hang here */ + return ret; } } while (ret != -ESHUTDOWN);