Util-Linux Archive on lore.kernel.org
 help / color / Atom feed
From: Paul Thomas <pthomas8589@gmail.com>
To: util-linux@vger.kernel.org
Subject: last reboot
Date: Mon, 9 Sep 2019 15:07:44 -0400
Message-ID: <CAD56B7foOQ8UYuMYPBqaYUa4DQw_qc4QUJRRkgdeV1g1x0NfoA@mail.gmail.com> (raw)

Hello, 'last' is a handy tool, and using it for
'last reboot' provides a nice log.

I was wondering if there are currently any platforms where more
information about the reboot type is supported? For instance on the
Zynq UltraScale+ devices there are a variety of reboot reasons:
https://www.xilinx.com/html_docs/registers/ug1087/crl_apb___reset_reason.html#

So on each startup the reason could be read and logged before
resting the register[1].

I guess one tricky issue would be the kernel interface,
for a test I was just using memtool like this:
# memtool md 0xFF5E0220+1
ff5e0220: 00000001

Where 00000001 indicates an 'External POR', but this probably
isn't how we'd want to do it.

I'm not subscribed to the mailing-list so please cc me any response.

thanks,
Paul

[1] If the register is not reset then multiple bits can accumulate
so you wouldn't now which is correct for the current boot

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-09 19:07 Paul Thomas [this message]
2019-09-10 13:44 ` Sami Kerola
2019-09-10 14:04   ` Paul Thomas

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAD56B7foOQ8UYuMYPBqaYUa4DQw_qc4QUJRRkgdeV1g1x0NfoA@mail.gmail.com \
    --to=pthomas8589@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Util-Linux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/util-linux/0 util-linux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 util-linux util-linux/ https://lore.kernel.org/util-linux \
		util-linux@vger.kernel.org util-linux@archiver.kernel.org
	public-inbox-index util-linux


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.util-linux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox