Hello,
I am using Uboot on an i.MX6UL. I'm flashing UBoot from the "serial downloader" mode (BOOT_MODE = 01). Once the flashing is finished, I would like to reset the CPU in order to boot properly from the eMMC. The problem is, when I type the reset command from Uboot, the BOOT_MODE bits from SRC_SBMR2 are still 01 even if the BOOT_MODE pins are 10. Thus, the CPU boot a second time in "serial downloader" configuration instead of "internal boot".
I was wondering if forcing a new latch on BOOT_MODE pin was possible. If yes, how to do it?
Thanking you by advance.
Regards,
Hi kevinjoly
is it working after por or switching power off/on, as uboot may use own reset routines as described on
issue may be posted on uboot mail list
alternatively one can try with sdk using wdog reset
Github SDK
https://github.com/backenklee/swp-report/tree/master/iMX6_Platform_SDK
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor.
Indeed, in Uboot the reset sequence is done by a watchdog u-boot/imx_watchdog.c at master · u-boot/u-boot · GitHub .
I tried to implement something like the patch you mentionned. Unfortunately, since the BOOT_MODE pin are used, the GPR9 (copied to SBMR1) is not taken in account (correct me if I'm wrong). However, the patch you mentionned is aimed for iMX6 (not iMX6UL).
Is it the same ROM code ? Where can I find documentation about GPRn register usage in the ROM code?
Best regards,
Kevin
Hi Kevin
is it working with por or some sdk example, without GPR9 usage.
Best regards
igor
The boot mode is correct on power on reset. For instance, if the boot mode is serial downloader and I reset the chip with the internal boot mode selected, internal boot is choosen. That is not the case in watchdog reset.
Didn't try with SDK.
Hi kevinjoly,
I'm facing the same issue on an imx6q, did you solved your problem ? How ?
Best regards,
Damien.
Hi Damien,
Yes, the problem was that the watchdog output pin wasn't connected to the reset chip.
Cheers
Kevin