Check the "init" file in sbin directory.
If there is the "init" file, it should be ramdisk image.
Change-Id: Ic827f42c783668832f7d9201132fee0185d953c5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
fi
# boot from ram0 if there is sbin
-if test -e $bootdev $mmcrootdev:$ramdiskpart sbin; then;
+if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
rootdev=ram0
else
rootdev=mmcblk${mmcrootdev}p${mmcrootpart}
echo ${bootmode} "boot";
load $bootdev $mmcbootdev:$mmcbootpart $fdt_addr_r $fdtfile;
load $bootdev $mmcbootdev:$mmcbootpart $kernel_addr_r $prefix$kernel;
- if test -e mmc $mmcrootdev:$ramdiskpart sbin; then;
+ if test -e mmc $mmcrootdev:$ramdiskpart sbin/init; then;
echo "Loading Ramdisk from partition"${ramdiskpart};
mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
fi