
Hi,
paste from the doc/README.autoboot
CONFIG_BOOT_RETRY_TIME CONFIG_BOOT_RETRY_MIN
bootretry environment variable
These options determine what happens after autoboot is stopped and U-Boot is waiting for commands.
CONFIG_BOOT_RETRY_TIME must be defined to enable the boot retry feature. If the environment variable 'bootretry' is found then its value is used, otherwise the retry timeout is CONFIG_BOOT_RETRY_TIME. CONFIG_BOOT_RETRY_MIN is optional and defaults to CONFIG_BOOT_RETRY_TIME. All times are in seconds.
If the retry timeout is negative, the U-Boot command prompt never times out. Otherwise it is forced to be at least CONFIG_BOOT_RETRY_MIN seconds. If no valid U-Boot command is entered before the specified time the boot delay sequence is restarted. Each command that U-Boot executes restarts the timeout. end of paste from the doc/README.autoboot
Currently is used function simple_strtoul() for parsing the bootretry enviroment variable. It fails if the bootretry is negative. The attached patch should fix it.