* How to configure Imx6ul watchdog from barebox
@ 2017-01-25 19:27 Haris Papadopoulos
2017-01-26 7:39 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Haris Papadopoulos @ 2017-01-25 19:27 UTC (permalink / raw)
To: barebox
Hi,
I am using barebox on a board from phytec phyBOARD-Segin that uses an
imx6ul processor (phyCORE-i.MX 6UL).
Any idea how to configure the watchdog to automatically start in the
bootloader and then be kicked from linux? In which file do I have to
do the following configs?
CONFIG_WATCHDOG=y
CONFIG_WATCHDOG_IMX=y
Where can I setup the relevant flags?
Also, does barebox have the bootcount feature?
Thanks
Haris
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to configure Imx6ul watchdog from barebox
2017-01-25 19:27 How to configure Imx6ul watchdog from barebox Haris Papadopoulos
@ 2017-01-26 7:39 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-01-26 7:39 UTC (permalink / raw)
To: Haris Papadopoulos; +Cc: barebox
On Wed, Jan 25, 2017 at 07:27:01PM +0000, Haris Papadopoulos wrote:
> Hi,
>
> I am using barebox on a board from phytec phyBOARD-Segin that uses an
> imx6ul processor (phyCORE-i.MX 6UL).
>
> Any idea how to configure the watchdog to automatically start in the
> bootloader and then be kicked from linux? In which file do I have to
> do the following configs?
You can pass the -w option to the boot command, or, create a
nv.boot.watchdog_timeout variable (using nv boot.watchdog_timeout=10 for
example). This would enable the watchdog each time just before booting.
To enable/test the watchdog once you can use the 'wd' command. Use
'wd 3' to enable the watchdog with a timeout of three seconds and do
a 'wd 3' again before it runs out.
>
> CONFIG_WATCHDOG=y
> CONFIG_WATCHDOG_IMX=y
>
> Where can I setup the relevant flags?
>
> Also, does barebox have the bootcount feature?
I'm Not exactly sure where you aiming at. There is the bootchooser
framework which allows you to create different redundant boot scenarios
in which you can boot different systems based on successful/failed
booting combined with configurable watchdog timeouts. See
http://barebox.org/doc/latest/user/bootchooser.html
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-26 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-25 19:27 How to configure Imx6ul watchdog from barebox Haris Papadopoulos
2017-01-26 7:39 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox