diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-09-11 11:54:37 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-09-11 12:02:14 +0900 |
commit | 42a312988baede7e4b8f567c0922885a192dd475 (patch) | |
tree | d8cb9c2e92b63458518b3e689192b4f56daa2a65 | |
parent | dc1fbdebf4c80479be21305ac85e9312f81d1dea (diff) | |
download | u-boot-artik-accepted/tizen_unified.tar.gz u-boot-artik-accepted/tizen_unified.tar.bz2 u-boot-artik-accepted/tizen_unified.zip |
configs: artik_common: fix to boot with ramdisk if existingsubmit/tizen_4.0/20170911.041310submit/tizen/20170911.041312accepted/tizen/unified/20170911.060201accepted/tizen/4.0/unified/20170911.155039accepted/tizen_unified
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-x | include/configs/artik_common.h | 6 |
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" \ |