This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335X: Watchdog timer

Hi,

I'm now evaluating Cutsom AM335x board with our linux EZSDK 5.05.

I have 2 questions about watch.

1. enable watchdog

I just installed EZSDK5.05(and run setup.sh).  From booting log, I can find following message. Then can I assume that watchdog timer is enabled? Please confirm it.

[   19.630763] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec

 

2. Then how can I test if watchdog timer is working properly.. Is there any method that  I make 'kernel-panic'-like environment  manually?

 

Thanks and BR,

Devin

  • Hi Devin,

    Yes the watchdog is enabled by default. As you can on the serial port, the timeout is set to 60s. Therefore you can issue the following command and wait 60s before it reboots the board:

    echo 0 > /dev/watchdog

    I suggest you go have a look at the watchdog documentation/driver (drivers/watchdog/omap_wdt.c) for more information about changing the timeout time through ioctl and other options.

    BR

  • Hi Adeneo,

    The document was very helpful. I tested watchdog on a custom board and confirmed that watchdog worked properly.

     

    Thanks and BR,

    Devin 

  • HI Adeneo/David,

    I am using J6  EVM/Vayu EVM,

    In my serial port i am getting this

    omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec...

    But when i am giving command echo 0 > /dev/watchdog,my board is not getting rebooted after 60s.

    Could you please help me in this??

    Moreover I am interested in testing watchdog ..Could you please give me steps for this.

    Thanks in Advance 

     Abhijit

  • This Forum is for Sitara devices, please place your J6 questions in the right forum (OMAP)

  • Hi Abhijit,

    Did you succeeded? watchdog timer is working? we are also using same vayu evm only.after giving the command echo 0 > /dev/watchdog .we are getting kernel panic below logs.If you succeeded explain me the steps.


    root@dra7xx-evm:~# echo 0 > /dev/watchdog
    [ 103.199140] watchdog watchdog0: watchdog did not stop!
    root@dra7xx-evm:~# [ 163.368940] softdog: Initiating system reboot
    [ 163.373336] CPU1: stopping
    [ 163.376063] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W O 3.14.63 #4
    [ 163.383055] Backtrace:
    [ 163.385536] [<c0012138>] (dump_backtrace) from [<c00122d4>] (show_stack+0x18/0x1c)
    [ 163.393136] r6:20000193 r5:ffffffff r4:00000000 r3:00000000
    [ 163.398863] [<c00122bc>] (show_stack) from [<c069260c>] (dump_stack+0x80/0xa0)
    [ 163.406120] [<c069258c>] (dump_stack) from [<c0014b94>] (handle_IPI+0x154/0x180)
    [ 163.413545] r7:c0963f78 r6:c096ec74 r5:00000005 r4:00000001
    [ 163.419266] [<c0014a40>] (handle_IPI) from [<c000868c>] (gic_handle_irq+0x5c/0x64)
    [ 163.426865] r10:00000001 r9:c0a12dc0 r8:c0a12dc0 r7:fa212000 r6:ec933f70 r5:c096edf8
    [ 163.434768] r4:fa21200c r3:c002d44c
    [ 163.438381] [<c0008630>] (gic_handle_irq) from [<c0698140>] (__irq_svc+0x40/0x74)
    [ 163.445894] Exception stack(0xec933f70 to 0xec933fb8)
    [ 163.450967] 3f60: ffffffed 2cded000 c096f740 c002f1c0
    [ 163.459182] 3f80: ec932000 00000000 c096e99c c06a320c c0a12dc0 c0a12dc0 00000001 ec933fc4
    [ 163.467394] 3fa0: ec933fb8 ec933fb8 c002d44c c000f848 a0000013 ffffffff
    [ 163.474033] r7:ec933fa4 r6:ffffffff r5:a0000013 r4:c000f848
    [ 163.479759] [<c000f818>] (arch_cpu_idle) from [<c0082b24>] (cpu_startup_entry+0x68/0x158)
    [ 163.487975] [<c0082abc>] (cpu_startup_entry) from [<c00147e0>] (secondary_start_kernel+0x12c/0x14c)
    [ 163.497057] r7:c0a13554 r3:ec932000
    [ 163.500669] [<c00146b4>] (secondary_start_kernel) from [<80008724>] (0x80008724)
    [ 163.508094] r5:00000015 r4:ac91006a

    After that board is hanged.
    What i need to do.Can you explain me if any one fixed this watchdog timer issue.


    Thanks
    veera