From: Seung-Woo Kim Date: Mon, 11 Sep 2017 02:54:37 +0000 (+0900) Subject: configs: artik_common: fix to boot with ramdisk if existing X-Git-Tag: submit/tizen_4.0/20170911.041310^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git configs: artik_common: fix to boot with ramdisk if existing 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 --- 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" \