Hi,
I'd generated the WDT reset by kernel panic and uboot detects the WDT reset correctly but after clearing the bit (SRC_SRSR.wdog_rst_b) and reset, still WDT is occurring till I do power cycle. i.e after power cycle it was proper.
What could be the issue ?
U-Boot 2020.04-5.10.9-1.0.0+gad7247c882 (Jan 14 2023 - 14:30:11 +0530)
CPU: i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 48C
Reset cause: WDOG
Model: i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 512 MiB
NAND: 0 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
[*]-Video Link 0 (480 x 272)
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1(part 0) is current device
flash target is MMC:1
Net:
Warning: ethernet@2188000 (eth0) using random MAC address - 62:4c:7e:4a:93:16
eth0: ethernet@2188000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=> md 0x20D8008 1
020d8008: 00000010 ....
=>
020d800c: 00000000 ....
=> md 0x20D8008 1
020d8008: 00000010 ....
=> mw 0x20D8008 0x10
=> md 0x20D8008 1
020d8008: 00000000 ....
=> reset
resetting ...
U-Boot 2020.04-5.10.9-1.0.0+gad7247c882 (Jan 14 2023 - 14:30:11 +0530)
CPU: i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 48C
Reset cause: WDOG
Model: i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 512 MiB
NAND: 0 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
[*]-Video Link 0 (480 x 272)
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1(part 0) is current device
flash target is MMC:1
Net:
Warning: ethernet@2188000 (eth0) using random MAC address - 32:61:c0:6a:fc:a6
eth0: ethernet@2188000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=>
=> md 0x20D8008 1
020d8008: 00000010 ....
=>
Steps to reproduce the issue:
1. Boot Linux OS
2. Create kernel panic
3. WDT reset occured
4. Rebooted automatically to Linux OS again
5. Dump SRC_SRSR register and can see WDT event, and clear it (which is expected)
6. Do 'reboot' command
7. Linux OS booted
8. Dump SRC_SRSR register and can see WDT event again which is unexpected.
9. Press reset button or power cycle the board
10. Now WDT event got cleared.
Hello,
You need to download the proper dirver for wdt, since you are playing with a non-supported kernel version is probably that you don't have the driver, please download an official bsp from:
Regards
Thanks for your reply.
I am using official kernel release from nxp and wdt driver is used from below location.
<linux>/drivers/watchdog/imx2_wdt.c