From nobody Sat Sep 23 22:51:47 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RtPXS3c0Nz4vMj2 for ; Sat, 23 Sep 2023 22:52:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RtPXS0Lb4z3fR5 for ; Sat, 23 Sep 2023 22:52:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695509526; bh=fstJu4aSwQ/mkzuk7vyG6kNWuAb2cdwfPaAn2wNH2A0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=FX0Kd3nLThvGykJIA/0LTBxdNY/Up0B8APl6wuc2EK6yFUb7eIKy5C6MZbc2t1uQrGjyo6yfXTMci76ncXkva4pxkRfXV3fntIWMlv7MswL5GYfkOluDXKQjMe5TfICuTZ/5tTvnc4b9L+jlWDUQsWa+8V7cqtKJbyypELRSJT3YVwwcmXO6kD/KQO0kHbV6USIoNskb7kzqgqc1PXhUnETqlB68q9zlSB50wwErnWvU/5WRFS3UW2xqsD5FkJZLRbgl4Bqaq0TmW0AJ3qPaxyBsjaJw5QCJkl+3e26+8cXVNTHYelpxAJmJdM8PiwqRsbKxF6vVs1+yj+bSycvryQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695509526; bh=3iHs7UCbCizlqc1x9tyYjX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0momdXEvivyUDW67naw9GGmTv1fvn7x7K.0U4BdxrGDmLOHxh8k19ZALEf3uoW.PuF cADaWUKRXtBs95sZ2Sf4eF.R84mE0V7yUBm6faQ_yRhg3YCXjkcyzepIjZoOGykanvZ4.CzBIENV .ez0VX9CBmnIcTk7FqMT6XnXxfD_qSrZLtZ3oGgpi98cdJtZEPZ8wequ4bfakouHQmQTsP.Byuv8 bWunMvExtdusKUgN.gsH8pQaK.vI7q7xAS0nQ6tcwN1AeiEle486_DQw2y.69wLxY_Z74BQ8Tsx2 QP_naPPOy4p6l37QmqU_O1JfepCAeJhjcVLLjIUemfa8GXMXxyFM4DqrmbDwcx66FKakJLghiWfo qVegA49HKs07dK5f2HgjBC.bUDa8DjhRlv8P7rR55ZRZfSrPAnVojpUYtHRGdLrBG2itkrXegekJ q2QD_h0JSF0ZZ7LR.eGMv8OR6ojvGvJ2jdS7NB_ASCAhwax07Xr3UAVQbE.sxZvSS.BVnqEg1sgo vT6EpKXDJCSsYdJTVPVmWJeCuXC4xRAorDPMvy8kT1Kjjx6DLjp2oG5S7Bwj13_.3ZZ4Cc0wVvx3 r.h_N X-Sonic-MF: X-Sonic-ID: a24279d8-2bd2-4547-87f2-fae013baa242 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sat, 23 Sep 2023 22:52:06 +0000 Received: by hermes--production-ne1-6cbd549489-jfw92 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c531b950d067def1344f470bace09c08; Sat, 23 Sep 2023 22:51:59 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Shutdown -r under -current hangs on RPi3 From: Mark Millard In-Reply-To: Date: Sat, 23 Sep 2023 15:51:47 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: <0AADDACB-ABA3-47FF-B3A7-05B313F5326C@yahoo.com> <9D29DD48-1572-4C04-AD88-8436AC8DDDCC@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4RtPXS0Lb4z3fR5 On Sep 23, 2023, at 15:26, bob prohaska wrote: > On Sat, Sep 23, 2023 at 12:41:34PM -0700, Mark Millard wrote: > [huge snip] > >> >> So a "boot -v" before such sessions might, eventually, prove >> useful. >> > > Are you saying boot -v will affect or display extra shutdown > messages? Yes, such is possible. It even can cause extra messages during normal operations. (Such is not its normal intent but I've seen some normal-operation debug code guarded by checking for verbose boot having been enabled.) QUOTE boot -v can add messages both to boot-time and to the later reboot/shutdown-time. END QUOTE That does not mean that the boot -v is entered later to do so. However, there is: # sysctl -Wd debug.bootverbose debug.bootverbose: Control the output of verbose kernel messages So use of: # sysctl debug.bootverbose=1 before shutdown may be a way of controlling it later, after having already booting. This might be handy if one forgot to do the the boot -v at boot time. > I couldn't find a man page for the boot command. It is a FreeBSD-loader command, not a FreeBSD-OS command. But the "-v" is interpreted by the kernel, not the loader. There is: # man loader_simp but it just reports: boot boot kernelname [...] boot -flag ... Immediately proceeds to bootstrap the system, loading the kernel if necessary. Any flags or arguments are passed to the kernel, but they must precede the kernel name, if a kernel name is provided. It is the kernel that interprets the "-v", not the loader. > Apologies if I'm being dense, but I don't see an opportunity > to invoke boot -v manually after invoking shutdown -r. That is because you do it before invoking shutdown -r . You can not wait until the problem has already occurred. You must cause the extra messaging to be enabled before knowing if the problem will occur. > Typically I type shutdown -r, the system may or may not > emit the ertt message, but keeps going to emit the > "Resetting system ..." message. At that time the system > either reboots normally, or becomes unresponsive to the > serial console. If it reboots, the red power LED turns > on, the green LED flashes briefly, the disk LED starts > flashing and the red LED turns off as boot progresses. > > If the boot gets stuck the red LED remains off, given > enough time the disk LED turns off. At that point power > cycling seems to be the only way out. > > The fact that the system emits a "Resetting system" > message suggests the complaint about ertt isn't fatal. You assume, serial/sequential/single-threaded/non-interrupt based. That may or may-not be the case. I'm giving instructions based on covering both alternatives. But I've also said that the extra messages are potentially useful even if there is no ertt related message generated. So it need not matter if the ertt related code is involved in the hangup: boot -v ( or sysctl debug.bootverbose=1 ) is still appropriate. === Mark Millard marklmi at yahoo.com