watchdog doesn't work on ls1028a-rdb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

watchdog doesn't work on ls1028a-rdb

Jump to solution
1,406 Views
zumengchen
Contributor III

Hi experts,

It seems watchdog does not work on ls1028a-rdb, which Layerscape LS1028A BSP v0.2 said it could work.

would you please help me to double check it, thanks. BTW, I have enabled by the following in dts:

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index bb672ab..6c6a14c 100755
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -106,6 +106,10 @@
};
};

+&wdog0 {
+ status = "okay";
+};

Cheers,

Zumeng

P.S.

Later I tried to using imx2-wdt, the driver seems installed, but watchdog timer seems can't reboot the board as follows:

root@nxp-ls1028a:~# dmesg|grep dog
[ 3.455182] imx2-wdt 23c0000.watchdog: timeout 60 sec (nowayout=1)
eep 1; done1028a:~# echo 1 > /dev/watchdog ; for i in `seq 1 60`; do echo $i; sl
[ 63.838944] watchdog: watchdog0: watchdog did not stop!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
root@nxp-ls1028a:~#
root@nxp-ls1028a:~#
root@nxp-ls1028a:~#
root@nxp-ls1028a:~# lsmod
Module Size Used by
root@nxp-ls1028a:~# systemctl status watchdog
�● watchdog.service - watchdog daemon
Loaded: loaded (/lib/systemd/system/watchdog.service; disabled; vendor prese>
Active: inactive (dead)
root@nxp-ls1028a:~# systemctl start watchdog
root@nxp-ls1028a:~# systemctl status watchdog
�● watchdog.service - watchdog daemon
Loaded: loaded (/lib/systemd/system/watchdog.service; disabled; vendor prese>
Active: active (running) since Tue 2019-03-26 02:30:35 UTC; 1s ago
Process: 2520 ExecStart=/bin/sh -c [ x$run_watchdog != x1 ] || exec /usr/sbin>
Process: 2519 ExecStartPre=/bin/sh -c [ -z "${watchdog_module}" ] || [ "${wat>
Main PID: 2522 (watchdog)
Tasks: 1 (limit: 4642)
Memory: 580.0K
CGroup: /system.slice/watchdog.service
�└�─2522 /usr/sbin/watchdog

Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: interface: no interface to check
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: temperature: no sensors to check
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: no test binary files
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: no repair binary files
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: error retry time-out = 60 seconds
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: repair attempts = 1
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: alive=/dev/watchdog heartbeat=[none>
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: watchdog now set to 60 seconds
Mar 26 02:30:35 nxp-ls1028a watchdog[2522]: hardware watchdog identity: imx2+ w>
Mar 26 02:30:35 nxp-ls1028a systemd[1]: Started watchdog daemon.
root@nxp-ls1028a:~# pkill watchdog
[ 160.652895] watchdog: watchdog0: nowayout prevents watchdog being stopped!
[ 160.659830] watchdog: watchdog0: watchdog did not stop!
root@nxp-ls1028a:~#
root@nxp-ls1028a:~#
root@nxp-ls1028a:~#
root@nxp-ls1028a:~#

0 Kudos
1 Solution
1,139 Views
zumengchen
Contributor III

Thanks Yiping for your reply

View solution in original post

0 Kudos
2 Replies
1,139 Views
yipingwang
NXP TechSupport
NXP TechSupport

I have verified watchdog cannot work normally in LS1028 BSP 0.2, although I modified watchdog dts mode as the following in arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi. I have reported this problem to Linux SDK development team.


                wdog0: watchdog@23c0000 {
                        compatible= "fsl,ls1028a-wdt", "fsl,imx21-wdt";
                        reg = <0x0 0x23c0000 0x0 0x10000>;
                        interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&clockgen 4 1>;
                        big-endian;
                };

Thanks,

Yiping

0 Kudos
1,140 Views
zumengchen
Contributor III

Thanks Yiping for your reply

0 Kudos