diff --git a/projects/Amlogic/devices/LePotato/packages/u-boot/patches/u-boot-0004-faster-boot.patch b/projects/Amlogic/devices/LePotato/packages/u-boot/patches/u-boot-0004-faster-boot.patch index 819081f8fb..8b2426b39c 100644 --- a/projects/Amlogic/devices/LePotato/packages/u-boot/patches/u-boot-0004-faster-boot.patch +++ b/projects/Amlogic/devices/LePotato/packages/u-boot/patches/u-boot-0004-faster-boot.patch @@ -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