configs: artik_common: fix to boot with ramdisk if existing 15/148815/1 accepted/tizen_unified accepted/tizen/4.0/unified/20170911.155039 accepted/tizen/unified/20170911.060201 submit/tizen/20170911.041312 submit/tizen_4.0/20170911.041310
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 11 Sep 2017 02:54:37 +0000 (11:54 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 11 Sep 2017 03:02:14 +0000 (12:02 +0900)
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>
include/configs/artik_common.h

index 4c9103b0c032f86e696b8ae37167fb9d2dccf355..bfa4959b27e946f2d07cc0b145533d6281341618 100755 (executable)
                "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"                                            \