[U-Boot] i.MX6 based board does not work if watchdog support is enabled

Otavio Salvador otavio at ossystems.com.br
Sun Sep 29 19:54:45 CEST 2013


On Sun, Sep 29, 2013 at 5:23 AM, Michael Trimarchi
<michael at amarulasolutions.com> wrote:
> On Sun, Sep 29, 2013 at 2:19 AM, Otavio Salvador
> <otavio at ossystems.com.br> wrote:
>> I am trying to add support for watchdog in one board and it is not
>> working as expected.
>>
>> I did add the:
>>
>> #define CONFIG_HW_WATCHDOG
>> #define CONFIG_IMX_WATCHDOG
>>
>> into the board config file.
>>
>> Into the board .c file, I added:
>>
>> int board_late_init(void)
>> {
>> ...
>> #ifdef CONFIG_HW_WATCHDOG
>>      hw_watchdog_init();
>> #endif
>>
>> return 0;
>> }
>>
>> and the hw_watchdog_init is indeed called.
>>
>> It starts booting and shows:
>>
>> U-Boot 2013.10-rc3-00046-gc1c2434-dirty (Sep 28 2013 - 21:12:53)
>>
>> CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
>> Reset cause: WDOG
>> Board: yyyy
>> DRAM:  1 GiB
>> MMC:   FSL_SDHC: 0, FSL_SDHC: 1
>> In:    serial
>> Out:   serial
>> Err:   serial
>> Net:�
>>
>> and it in fact resets.
>>
>> I am booting the board from USB loader. May it be an issue?
>>
>
> I have read the code and briefly compare with linux one and seems the setting
> on the register is ok and default is 128secs if CONFIG_WATCHDOG_TIMEOUT_MSECS
> is not define.
>
> are you sure that you don't change this define?

I set it originally to 10000 and later to 128000 and in the end
removed it. It kept doing it wrong.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the U-Boot mailing list