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.

how to enable watchdog from u-boot on DM8127



Hi All,

We are developing a product based on TI's DM8127 processor. We are using DVR RDK for our development.

The Soc, does support watchdog timer, but i could not find any relevant code in the u-boot's source code of DVR RDK.

Can any one help me with this?. How can i enable watchdog support from u-boot?

Any help would be highly appreciated.

Thanks,

Krinali Shah

  • Hi,

    I am not able to resolve this issue yet. Any idea on how I can enable wathdog support from u-boot?

    I also tried to enable the watchdog from Kernel. Once my board is up, I write below sequence to open watchdog node and set timeout. 

    int data = 0;
    int dev_id = -1;
    int ret_val = 0;
    dev_id = open("/dev/watchdog", O_RDWR);
    if(-1 == dev_id)
    {
    printf("Unable to open watchdog device node\n");
    return -1;
    }
    ret_val = ioctl(dev_id, WDIOC_GETTIMEOUT, &data);
    if(ret_val)
    {
    printf("Unable to get timeout setting for watchdog\n");
    return -1;
    }
    else
    printf("Current Timeout value is: %d seconds\n", data);

    data = 60; //time in seconds
    ret_val = ioctl(dev_id, WDIOC_SETTIMEOUT, &data);
    if(ret_val)
    {
    printf("Unable to set timeout setting for watchdog\n");
    return -1;
    }
    else
    printf("New Timeout value is: %d seconds\n", data);

    data = 0;
    ret_val = ioctl(dev_id, WDIOC_GETTIMEOUT, &data);
    if(ret_val)
    {
    printf("Unable to set timeout value for watchdog\n");
    return -1;
    }

    else

    printf("New Timeout value is: %d seconds\n", data);

    Watchdog is still disabled. Please help me on this. it is really urgent.

    Thanks,

    Krinali Shah