[U-Boot] Uart boot broken on AM335x-evm

Hi All, I am facing an issue with UART boot on AM335x-evm using latest U-Boot. SPL is not able to download u-boot.img completely. After a bit of debug with the help of Andrew, it is watchdog causing the timeout. If HW_WATCHDOG is disabled, SPL is able to download the image completely and u-boot successfully boots up. After this I could not progress anything.
Wondering if anyone else is facing the same issue and any pointers to debug further will be very helpful.
Thanks and regards, Lokesh

On Thu, Feb 16, 2017 at 07:43:31PM +0530, Lokesh Vutla wrote:
Hi All, I am facing an issue with UART boot on AM335x-evm using latest U-Boot. SPL is not able to download u-boot.img completely. After a bit of debug with the help of Andrew, it is watchdog causing the timeout. If HW_WATCHDOG is disabled, SPL is able to download the image completely and u-boot successfully boots up. After this I could not progress anything.
Wondering if anyone else is facing the same issue and any pointers to debug further will be very helpful.
I suspect that somewhere in the Y-MODEM code we need to be calling WATCHDOG_RESET()

On 02/16/2017 08:18 AM, Tom Rini wrote:
On Thu, Feb 16, 2017 at 07:43:31PM +0530, Lokesh Vutla wrote:
Hi All, I am facing an issue with UART boot on AM335x-evm using latest U-Boot. SPL is not able to download u-boot.img completely. After a bit of debug with the help of Andrew, it is watchdog causing the timeout. If HW_WATCHDOG is disabled, SPL is able to download the image completely and u-boot successfully boots up. After this I could not progress anything.
Wondering if anyone else is facing the same issue and any pointers to debug further will be very helpful.
I suspect that somewhere in the Y-MODEM code we need to be calling WATCHDOG_RESET()
Agree, 2c77c0d6524e seems to be the culprit, the watchdog used to be kicked in udelay(), the commit message seems it suggest it is now up to getc(), but I can't find it getting kicked in the getc() path, I think we need to just manually add a kick in the CYGACC_COMM_IF_GETC_TIMEOUT() loop.
Andrew
participants (3)
-
Andrew F. Davis
-
Lokesh Vutla
-
Tom Rini