Re: How to configure Imx6ul watchdog from barebox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux