summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Go <sangch.go@gmail.com>2020-05-06 05:42:01 +0300
committerLuke Go <sangch.go@gmail.com>2020-05-29 09:12:27 +0300
commit71cd43b3321ed419cb7261ffd732a593bdc452aa (patch)
tree2f987ff64c1ee4e09907468d94eb2fee169851de
parenta79c92ee9d732c76e2f333d96a7b9a1330b4ce4c (diff)
downloadu-boot-71cd43b3321ed419cb7261ffd732a593bdc452aa.tar.xz
ODROID-N2: cramfsload to defaut boot.
Change-Id: Ie50ee0d5300b7fdb37ab7d80ae0ee856edac2cc2
-rw-r--r--include/configs/odroid-g12-common.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/include/configs/odroid-g12-common.h b/include/configs/odroid-g12-common.h
index d37b1a6078..a061e49f72 100644
--- a/include/configs/odroid-g12-common.h
+++ b/include/configs/odroid-g12-common.h
@@ -158,6 +158,7 @@
"display_color_fg=0xffff\0" \
"display_color_bg=0\0" \
"dtb_mem_addr=0x1000000\0" \
+ "cramfsaddr=0x20000000\0" \
"fb_addr=0x3d800000\0" \
"fb_width=1920\0" \
"fb_height=1080\0" \
@@ -198,10 +199,17 @@
"recovery_part=recovery recovery_offset=0; "\
"for n in ${mmc_list}; do "\
"mmc dev ${n}; " \
+ "movi read dtbs 0 ${cramfsaddr}; " \
+ "cramfsload ${dtb_mem_addr} meson64_" CONFIG_DEVICE_PRODUCT "_android.dtb;" \
+ "if test " CONFIG_DEVICE_PRODUCT " = odroidn2; then " \
+ "cramfsload ${loadaddr} " CONFIG_DEVICE_PRODUCT "-opp.dtbo;" \
+ "fdt addr ${dtb_mem_addr};" \
+ "fdt resize 8192;" \
+ "fdt apply ${loadaddr};" \
+ "fi;" \
"movi read recovery 0 ${loadaddr}; " \
- "movi read dtbs 0 ${dtb_mem_addr}; " \
"booti ${loadaddr} - ${dtb_mem_addr}; " \
- "bootm;" \
+ "bootm ${loadaddr};" \
"done\0" \
"boot_rawimage=" \
"setenv bootargs ${initargs} logo=${display_layer},loaded,${fb_addr} " \
@@ -211,10 +219,17 @@
"androidboot.hardware=" CONFIG_DEVICE_PRODUCT "; " \
"for n in ${mmc_list}; do " \
"mmc dev ${n}; " \
+ "movi read dtbs 0 ${cramfsaddr}; " \
+ "cramfsload ${dtb_mem_addr} meson64_" CONFIG_DEVICE_PRODUCT "_android.dtb;" \
+ "if test " CONFIG_DEVICE_PRODUCT " = odroidn2; then " \
+ "cramfsload ${loadaddr} " CONFIG_DEVICE_PRODUCT "-opp.dtbo;" \
+ "fdt addr ${dtb_mem_addr};" \
+ "fdt resize 8192;" \
+ "fdt apply ${loadaddr};" \
+ "fi;" \
"movi read boot 0 ${loadaddr}; " \
- "movi read dtbs 0 ${dtb_mem_addr}; " \
"booti ${loadaddr} - ${dtb_mem_addr}; " \
- "bootm; " \
+ "bootm ${loadaddr}; " \
"done\0" \
"init_display="\
"osd open; osd clear; " \