configs: artik530_raptor: fix to boot with ramdisk if existing
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 11 Sep 2017 05:27:44 +0000 (14:27 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 21 Jan 2019 05:53:50 +0000 (14:53 +0900)
The ramdisk file is only loaded and not used booting rootfs. So fix
to boot with ramdisk if existing.

Change-Id: I117369e1c7ec94642bd0248e54d5f7f43ddc04fa
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
include/configs/artik530_raptor.h

index 0e2cc77d1c963415eaf6aaec87a5c6d60bf76a9d..3ce76f5d0bb7327f656b3a2af73349e4474c94b6 100644 (file)
                "if test -e mmc ${rootdev}:${bootpart} ramdisk.img; then " \
                        "setenv ramdisk_file ramdisk.img;" \
                "fi;" \
+               "if test -e mmc ${rootdev}:${bootpart} ${ramdisk_file}; then " \
+                       "setenv bootargs ${console} "                   \
+                       "root=/dev/ram0 ${root_rw} "                    \
+                       "${opts} ${recoverymode} "                      \
+                       "drm_panel=$lcd_panel;"                         \
+               "fi;"                                                   \
                "ext4load mmc ${rootdev}:${bootpart} $ramdiskaddr $ramdisk_file\0" \
        "boot_cmd_initrd=\n"                                            \
                "run load_fdt; run load_kernel; run load_initrd;"       \