From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 03 Dec 2024 22:46:54 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tIajO-003emL-0q for lore@lore.pengutronix.de; Tue, 03 Dec 2024 22:46:54 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tIajO-0004hH-6M for lore@pengutronix.de; Tue, 03 Dec 2024 22:46:54 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=et3ClWL3ird32xaatuky05t6i8P/HrJk9vDMpWVzMHk=; b=4GDUX63kADC3wA1Z9QlScRnfQb zFesvPC7yBCXTffUEYAB/J/EphNESTZtCP7POpNQeaFXpNA4sihrXDtV3oIERDhgzxMy//g8h7i9B ykF6/5KuLykkG41wsMYgDolDZtig7LUmBIFXepYCpnvWFeC+eNISkJEsrv52DOMeQL8DQAMSre0s4 05FYITFzJPCT5WQrxsycTLE33kVO+ZT/eV9CnOrInwg7Z72/js08cwAfAEwXM3v2+JXxNWrk8djcT qjATDbk8CTYoB/bfbz8npkLbhdl+SXXMQs0/MSphL6PPfken2r7dNfEd2uJJsOiouGehLRro6hV7J 6nDiITYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIaif-0000000AozV-1gjb; Tue, 03 Dec 2024 21:46:09 +0000 Received: from mail.inside-m2m.de ([188.68.57.244]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIaiZ-0000000AoyJ-2Jib for barebox@lists.infradead.org; Tue, 03 Dec 2024 21:46:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=inside-m2m.de; s=default; t=1733262356; bh=LItQpfUfARvYyxtkpUAWo0k3ui19g43OrqVIiSI6dBg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pry3Zcki1VxWPooHOcNZ6OEemx004U/FmbcY0fXblwVz0JxmLz3kHYPZM2guIXg9q hWpbAsel8hTCFfgrDouUK/ej+7QW3f7vqk6S1Pzq6EobuqjdqXWtCmHvHuL5FS09tX ogEQibSYq2f0qipbBSBOk2NSu02ZfHKN0DXkhHTZ1X6yvGT3ktDW0KMZHUOm+/5FHs uDia7HwVUiAD6FpuVRTK/SyfCmc1YGm3IZ3RY8s/8NCtmE/xCFrWplvPF7I3h/wehX huTOcwlud3E6q129K302vFTeSWt7A/i96RUe3PEEGawaDc8mzojkhBmtOFwZOGNnnG IRBQ0usW/A7kQ== Received: from hephaistos (unknown [94.31.103.219]) (Authenticated sender: konstantin.kletschke@inside-m2m.de) by mail.inside-m2m.de (Postfix) with ESMTPSA id 7FBF9401DA; Tue, 3 Dec 2024 22:45:56 +0100 (CET) Date: Tue, 3 Dec 2024 22:45:54 +0100 From: Konstantin Kletschke To: Ahmad Fatoum Cc: barebox@lists.infradead.org Message-ID: References: <83e0f4b3-c558-48dc-b867-f88376d73bc2@pengutronix.de> <19923329-f254-435d-9557-5e1b6835b8ec@pengutronix.de> <49df1ec9-aca8-49b0-95fe-d577c5b615db@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <49df1ec9-aca8-49b0-95fe-d577c5b615db@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_134603_865115_A57D8CE7 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: Reset on Beaglebone Black has become unreliable/broken X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) On Tue, Dec 03, 2024 at 09:28:39PM +0100, Ahmad Fatoum wrote: > - Try it first on a correctly working system an see that you get a > > at the usual place. Working system and comparison of its registers of PMIC with broken one tomorrow. If still required. > - Try it on a broken system and see if you get a > YES. I get this at the very first start with a '2' and console note before 2 empty newlines and then the "barebox 2024.10.0-00152-g53c99b9f550b-dirty #33 Tue Dec 3 22:01:26 CET 2024": 2>Switch to console [cs0] barebox 2024.10.0[...] > See the patch I just Cc'd you on. Worked like a charm! With vanilla code (one ">" in lowlevel.c) I get the LL output, the warm reset behaviour (stuck at S1, watchdog, reset cmd, linux reboot) is the same. As expected since its only debugging dealt with here. Being the playful idiot child I am I was so happy this now working I wanted to see something more and added this in lowlevel.c: @@ -135,6 +140,9 @@ static noinline int beaglebone_sram_init(void) am33xx_enable_uart0_pin_mux(); omap_debug_ll_init(); putc_ll('>'); + putc_ll('6'); + putc_ll('6'); + putc_ll('6'); Aka added three 6 to be put out, which they are! The side effect of my additional 3 6 chars is: reset cmd, S1, wd 3, mw 0x44e00f00 0x1 and linux reboot are working fine now! Additional LL debug output is there, console notification message, >, my sixes, and it comes reliably up! Kind Regards Konstantin -- INSIDE M2M GmbH Konstantin Kletschke Berenbosteler Straße 76 B 30823 Garbsen Telefon: +49 (0) 5137 90950136 Mobil: +49 (0) 151 15256238 Fax: +49 (0) 5137 9095010 konstantin.kletschke@inside-m2m.de http://www.inside-m2m.de Geschäftsführung: Michael Emmert, Derek Uhlig HRB: 111204, AG Hannover