configs: artik710_raptor: fix to boot with ramdisk if existing
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 11 Sep 2017 05:31:04 +0000 (14:31 +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: I5fc4f5405a417b3208ddf93df5e897362e0bcaf1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
include/configs/artik710_raptor.h

index a754ea4a3005c1b4c49a869417e1035114bccff4..35a7a1c6c977c66d7e0958362c7f4a156dd01773 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;"       \