Hi igorpadykov ,
In my kernel dts file i have like this
&gpc {
/* use ldo-bypass, u-boot will check it and configure */
fsl,ldo-bypass = <0>;
fsl,wdog-reset = <1>;
};
&wdog1 {
status = "okay";
};
so now if i am running
./wdt_driver_test.out 10 5 0
Starting wdt_driver (timeout: 10, sleep: 5, test: ioctl)
Trying to set timeout value=10 seconds
The actual timeout was set to 10 seconds
Now reading back -- The timeout is 10 seconds
^C
Now exactly after 10 seconds it is rebooting.
In U-boot also i am trying to enable wdog.For that i did like below.
In board file i added like this in board_late_init function
#ifdef CONFIG_IMX_WATCHDOG
hw_watchdog_init();
#endif
and in includes/configs/custom_board.h file #define CONFIG_IMX_WATCHDOG 1
and i reduced time in drivers/watchdog/imx_watchdog.c
//#define CONFIG_WATCHDOG_TIMEOUT_MSECS 128000
#define CONFIG_WATCHDOG_TIMEOUT_MSECS 12000
after enabling wdt in u boot my kernel watchdog is not working what ever time i given , it is taking more than 5 mins to reboot.
and in log i observed like below after enabling watchdog in u boot
Starting udev
udevd[130]: starting version 182
bootlogd: cannot allocate pseudo tty: No such file or directory
random: dd urandom read with 95 bits of entropy available
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1729: No soundcards found...
Mon May 30 11:44:05 UTC 2016
random: nonblocking pool is initialized
INIT: Entering runlevel: 5
Configuring network interfaces... fec 2188000.ethernet eth0: no PHY, assuming direct connection to switch
libphy: PHY fixed-0:00 not found
fec 2188000.ethernet eth0: could not attach to PHY
ifconfig: SIOCSIFFLAGS: No such device
Starting Xserver
Starting system message bus: dbus.
Starting rpcbind daemon...done.
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
...done.
Starting Telephony daemon
Starting Linux NFC daemon
Starting OProfileUI server
PU: Power-on latency exceeded, new value 4670334 ns {if watchdog is not enabled in u boot it is not coming}
How to solve this issue if any one knows kindly help me .
Thanks & Regards,
Lavanya