mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
projects/Amlogic: LePotato: faster booting by not trying to parse env/dtb on boot
env and dtb are not present on SD card, if we don't parse them we save time.
This commit is contained in:
parent
9d30630dbd
commit
9e84c656ea
@ -60,3 +60,38 @@ index b3ccfae..6052a87 100644
|
||||
#define CONFIG_FASTBOOT_FLASH_MMC_DEV 1
|
||||
#define CONFIG_FASTBOOT_FLASH 1
|
||||
#define CONFIG_USB_GADGET 1
|
||||
diff --git a/board/amlogic/libretech_cc/libretech_cc.c b/board/amlogic/libretech_cc/libretech_cc.c
|
||||
index 33bd007..b1748d9 100644
|
||||
--- a/board/amlogic/libretech_cc/libretech_cc.c
|
||||
+++ b/board/amlogic/libretech_cc/libretech_cc.c
|
||||
@@ -417,13 +417,6 @@ U_BOOT_CMD(hdmi_init, CONFIG_SYS_MAXARGS, 0, do_hdmi_init,
|
||||
#endif
|
||||
#ifdef CONFIG_BOARD_LATE_INIT
|
||||
int board_late_init(void){
|
||||
- //update env before anyone using it
|
||||
- run_command("get_rebootmode; echo reboot_mode=${reboot_mode}; "\
|
||||
- "if test ${reboot_mode} = factory_reset; then "\
|
||||
- "defenv_reserv aml_dt;setenv upgrade_step 2;save; fi;", 0);
|
||||
- run_command("if itest ${upgrade_step} == 1; then "\
|
||||
- "defenv_reserv; setenv upgrade_step 2; saveenv; fi;", 0);
|
||||
-
|
||||
#ifndef CONFIG_AML_IRDETECT_EARLY
|
||||
/* after */
|
||||
run_command("cvbs init;hdmitx hpd", 0);
|
||||
@@ -448,16 +441,10 @@ int board_late_init(void){
|
||||
#elif defined(CONFIG_DTB_MEM_ADDR)
|
||||
{
|
||||
char cmd[128];
|
||||
- int ret;
|
||||
if (!getenv("dtb_mem_addr")) {
|
||||
sprintf(cmd, "setenv dtb_mem_addr 0x%x", CONFIG_DTB_MEM_ADDR);
|
||||
run_command(cmd, 0);
|
||||
}
|
||||
- sprintf(cmd, "imgread dtb boot ${dtb_mem_addr}");
|
||||
- ret = run_command(cmd, 0);
|
||||
- if (ret) {
|
||||
- printf("%s(): cmd[%s] fail, ret=%d\n", __func__, cmd, ret);
|
||||
- }
|
||||
}
|
||||
#endif// #ifndef DTB_BIND_KERNEL
|
||||
#ifdef CONFIG_AML_V2_FACTORY_BURN
|
||||
|
Loading…
x
Reference in New Issue
Block a user