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
Quoted 10 lines · Lokesh Vutla
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. IfHW_WATCHDOGis 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()
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170216/11b519e4/attachment.sig>
Quoted 8 lines · Tom Rini
Quoted 7 lines · Lokesh Vutla
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. IfHW_WATCHDOGis disabled, SPL is able to download the image completely and u-boot successfully boots up. After this I could not progress anything.
Quoted 7 lines
Quoted 3 lines
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