summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2017-09-11 11:54:37 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2017-09-11 12:02:14 +0900
commit42a312988baede7e4b8f567c0922885a192dd475 (patch)
treed8cb9c2e92b63458518b3e689192b4f56daa2a65
parentdc1fbdebf4c80479be21305ac85e9312f81d1dea (diff)
downloadu-boot-artik-accepted/tizen_unified.tar.gz
u-boot-artik-accepted/tizen_unified.tar.bz2
u-boot-artik-accepted/tizen_unified.zip
The ramdisk file is only loaded and not used booting rootfs. So fix to boot with ramdisk if existing. Change-Id: I31f438c3d7a414ec57bdb67f4006b2c7152d87c4 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rwxr-xr-xinclude/configs/artik_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/artik_common.h b/include/configs/artik_common.h
index 4c9103b0c..bfa4959b2 100755
--- a/include/configs/artik_common.h
+++ b/include/configs/artik_common.h
@@ -373,6 +373,12 @@
"if test -e mmc 0:1 ramdisk.img; then " \
"setenv initrd_file ramdisk.img;" \
"fi;" \
+ "if test -e mmc 0:1 ${initrd_file}; then " \
+ "setenv bootargs ${console} " \
+ "root=/dev/ram0 ${root_rw} " \
+ "${opts} ${recoverymode} " \
+ "asix.macaddr=${ethaddr} bd_addr=${bd_addr};" \
+ "fi;" \
"fatload mmc 0:1 $initrd_addr $initrd_file;" \
"bootz $kernel_addr ${initrd_addr}:${initrd_size} " \
"$fdtaddr\0" \