From: Frederick Gotham <cauldwell.thomas@gmail.com>
To: barebox@lists.infradead.org
Subject: Issue CPU instructions to start watchdog?
Date: Mon, 20 Jan 2020 11:33:13 +0000 [thread overview]
Message-ID: <CALtZhhMAHMh0HBatmQVL=uU6hYBuK3wvYPntqbQ-7rR5OzX_xA@mail.gmail.com> (raw)
I'm developing an embedded Linux device, and I'm using Barebox as a
part of Buildroot. The CPU is x64 with 4 cores, and it has an Intel
TCO watchdog timer.
The exact processor I'm using is the Intel Silver N5000, and the
datasheet for it says:
"TCO_TMR is the watchdog timer provided by the ACPI block. It is used
by an OS monitor for OS crashes."
When I boot up Barebox, it does not have the file "/dev/watchdog".
I've tried a few different things but I just simply can't get Barebox
to recognise the Intel watchdog timer.
Ideally I would like to have the watchdog timer start running at Power
On, however my current BIOS hasn't got any watchdog settings, and so
until I get a new BIOS (which might never happen), I have to start the
watchdog timer from within Barebox in order to get the device to
reboot if the Linux kernel freezes while it's loading.
At this stage I think I might actually have to write assembler to
issue instructions to the CPU to start the Watchdog timer. I have
looked this up and it's definitely not straight-forward, e.g.
interfacing with the ACPI block and its registers... I would be pretty
much writing a device driver.
Anyone got any ideas?
I really need my device to reboot if the Linux kernel freezes while loading.
Frederick
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2020-01-20 11:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-20 11:33 Frederick Gotham [this message]
2020-01-20 15:05 ` Ahmad Fatoum
Reply instructions:
You may reply publicly 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='CALtZhhMAHMh0HBatmQVL=uU6hYBuK3wvYPntqbQ-7rR5OzX_xA@mail.gmail.com' \
--to=cauldwell.thomas@gmail.com \
--cc=barebox@lists.infradead.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox