From: Jaehoon Chung Date: Thu, 6 Jul 2017 02:13:20 +0000 (+0900) Subject: rpi: tizen-boot: check whether there is an init file in sbin directory X-Git-Tag: submit/tizen/20170707.021344^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F137435%2F1;p=platform%2Fkernel%2Fu-boot.git rpi: tizen-boot: check whether there is an init file in sbin directory 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 --- diff --git a/board/raspberrypi/rpi/tizen-boot.scr b/board/raspberrypi/rpi/tizen-boot.scr index 5b7453e747..daa0a44e5f 100644 --- a/board/raspberrypi/rpi/tizen-boot.scr +++ b/board/raspberrypi/rpi/tizen-boot.scr @@ -27,7 +27,7 @@ bootmode=ramdisk 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} @@ -51,7 +51,7 @@ if load $bootdev $mmcbootdev:$mmcbootpart $kernel_addr_r $kernel; then; 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