summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/hardkernel/odroidc2/odroidc2.c8
-rwxr-xr-xinclude/configs/odroidc2.h12
2 files changed, 14 insertions, 6 deletions
diff --git a/board/hardkernel/odroidc2/odroidc2.c b/board/hardkernel/odroidc2/odroidc2.c
index c58c6ccda0..aa6cb46d4d 100644
--- a/board/hardkernel/odroidc2/odroidc2.c
+++ b/board/hardkernel/odroidc2/odroidc2.c
@@ -416,6 +416,14 @@ static void board_run_fastboot(void)
static void board_run_recovery(void)
{
+ /*
+ * In case of recovery mode,
+ * bootargs should be updated with new modeline
+ */
+ run_command("usb pwren", 0);
+ run_command("hdmitx edid", 0);
+ run_command("setenv bootargs ${bootargs} modeline=${modeline}", 0);
+
run_command("movi read dtb 0 ${dtb_mem_addr}", 0);
run_command("movi read recovery 0 ${loadaddr}", 0);
run_command("bootm ${load_addr}", 0);
diff --git a/include/configs/odroidc2.h b/include/configs/odroidc2.h
index d4accd0dde..e1069cfe41 100755
--- a/include/configs/odroidc2.h
+++ b/include/configs/odroidc2.h
@@ -288,17 +288,17 @@
"dtbaddr=0x1000000\0" \
"fdt_high=0x20000000\0" \
"hdmimode=custombuilt\0" \
- "usb pwren \0" \
- "hdmitx edid \0" \
"cecconfig=cec0xf\0" \
ENV_PXE_DEFAULT \
"bootargs=root=/dev/mmcblk0p2 rw init=/init rootwait " \
"console=ttyS0,115200 " \
"hdmimode=custombuilt hdmitx=cecf " \
- "modeline=${modeline} " \
- "logo=osd1,loaded,0x3f800000,1080p60hz " \
+ "logo=osd1,loaded,0x3f800000,custombuilt " \
"androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#} " \
"androidboot.selinux=disabled \0" \
- "bootcmd=cfgload; showlogo ${hdmimode}; movi read dtb 0 ${dtbaddr}; movi read boot 0 ${loadaddr}; booti ${loadaddr} - ${dtbaddr}\0"
-
+ "bootcmd=cfgload; usb pwren; hdmitx edid; " \
+ "setenv bootargs ${bootargs} modeline=${modeline}; " \
+ "movi read dtb 0 ${dtbaddr}; " \
+ "movi read boot 0 ${loadaddr}; " \
+ "booti ${loadaddr} - ${dtbaddr}\0"
#endif