This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: how to set the autoboot delay to 0?

Part Number: TDA4VM

Hi TI,

I trid to set CONFIG_BOOTDELAY=0, rebuild and burn it to board, but it takes no effect, u-boot always delay 2 secs to boot, BTW, we are using SDK8.0. I would like to know whether there's somewhere else need to modify also? thanks 

  • Hi TI,

    any update for this topic? thanks

  • Hi Veitch,

    Boot to U-Boot prompt and then execute the below command:

    setenv bootdelay 0

    If no further questions please click on verify answer.

    Best Regards,
    Keerthy

  • doHi Keerthy,

    thanks for your reply, I know it can be changed by uboot command, but what we exactly want is setting it in the uboot code, instead of manually setting it for each board, and I have tried to revise CONFIG_BOOTDELAY, but it doesn't work.

  • Hi Veitch,

    You can modify this C file  ti-processor-sdk-linux-rt-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89/common/autoboot.c flow this patch show as blew:

    diff --git a/common/autoboot.c b/common/autoboot.c
    index e628baffb8..3fa1f24773 100644
    --- a/common/autoboot.c
    +++ b/common/autoboot.c
    @@ -361,15 +361,9 @@ const char *bootdelay_process(void)
     
     void autoboot_command(const char *s)
     {
    -       debug("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
     
    -       if (s && (stored_bootdelay == -2 ||
    -                (stored_bootdelay != -1 && !abortboot(stored_bootdelay)))) {
                    bool lock;
                    int prev;
    -
    -               lock = IS_ENABLED(CONFIG_AUTOBOOT_KEYED) &&
    -                       !IS_ENABLED(CONFIG_AUTOBOOT_KEYED_CTRLC);
                    if (lock)
                            prev = disable_ctrlc(1); /* disable Ctrl-C checking */
     
    @@ -377,12 +371,6 @@ void autoboot_command(const char *s)
     
                    if (lock)
                            disable_ctrlc(prev);    /* restore Ctrl-C checking */
    -       }
     
    -       if (IS_ENABLED(CONFIG_USE_AUTOBOOT_MENUKEY) &&
    -           menukey == AUTOBOOT_MENUKEY) {
    -               s = env_get("menucmd");
    -               if (s)
    -                       run_command_list(s, -1, 0);
    -       }
    +
     }