1 // SPDX-License-Identifier: GPL-2.0+
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
16 * Board-specific Platform code can reimplement show_boot_progress () if needed
18 __weak void show_boot_progress(int val) {}
20 static void run_preboot_environment_command(void)
25 p = env_get("preboot");
27 # ifdef CONFIG_AUTOBOOT_KEYED
28 int prev = disable_ctrlc(1); /* disable Control C checking */
31 run_command_list(p, -1, 0);
33 # ifdef CONFIG_AUTOBOOT_KEYED
34 disable_ctrlc(prev); /* restore Control C checking */
37 #endif /* CONFIG_PREBOOT */
40 /* We come here after U-Boot is initialised and ready to process commands */
45 bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
47 #ifdef CONFIG_VERSION_VARIABLE
48 env_set("ver", version_string); /* set version variable */
49 #endif /* CONFIG_VERSION_VARIABLE */
53 run_preboot_environment_command();
55 #if defined(CONFIG_UPDATE_TFTP)
56 update_tftp(0UL, NULL, NULL);
57 #endif /* CONFIG_UPDATE_TFTP */
59 s = bootdelay_process();
60 if (cli_process_fdt(&s))
61 cli_secure_boot_cmd(s);
66 panic("No CLI available");