3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
17 * Board-specific Platform code can reimplement show_boot_progress () if needed
19 __weak void show_boot_progress(int val) {}
21 static void run_preboot_environment_command(void)
26 p = env_get("preboot");
28 # ifdef CONFIG_AUTOBOOT_KEYED
29 int prev = disable_ctrlc(1); /* disable Control C checking */
32 run_command_list(p, -1, 0);
34 # ifdef CONFIG_AUTOBOOT_KEYED
35 disable_ctrlc(prev); /* restore Control C checking */
38 #endif /* CONFIG_PREBOOT */
41 /* We come here after U-Boot is initialised and ready to process commands */
46 bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
48 #ifdef CONFIG_VERSION_VARIABLE
49 env_set("ver", version_string); /* set version variable */
50 #endif /* CONFIG_VERSION_VARIABLE */
54 run_preboot_environment_command();
56 #if defined(CONFIG_UPDATE_TFTP)
57 update_tftp(0UL, NULL, NULL);
58 #endif /* CONFIG_UPDATE_TFTP */
60 s = bootdelay_process();
61 if (cli_process_fdt(&s))
62 cli_secure_boot_cmd(s);
67 panic("No CLI available");