diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2012-12-05 13:23:40 +0700 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2012-12-05 15:09:50 +0700 |
commit | 81e630d23034b33e5c56da391ef8a3c40217b7fe (patch) | |
tree | a8f58092d02021db72820eaa9f89d5c182f6973a /usr | |
parent | 810da82f4862b6b1d1ffc2bd8f3ca4695a9aa7a1 (diff) | |
download | kernel_samsung_aries-81e630d23034b33e5c56da391ef8a3c40217b7fe.zip kernel_samsung_aries-81e630d23034b33e5c56da391ef8a3c40217b7fe.tar.gz kernel_samsung_aries-81e630d23034b33e5c56da391ef8a3c40217b7fe.tar.bz2 |
aries: stage1: wait for mmc0 to initialize
Compiling bcmdhd as a module causes there to not be enough delay before
stage1 init is called causing it to try and mount /system before mmc0
is initialized. It thinks that there is no system and enters recovery.
Change-Id: Ie6ff14507f56f725bf8649c01d1d199b9d48b335
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/fascinatemtd_initramfs_files/init | 5 | ||||
-rwxr-xr-x | usr/galaxysmtd_initramfs_files/init | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/usr/fascinatemtd_initramfs_files/init b/usr/fascinatemtd_initramfs_files/init index 6c49df3..c987b80 100755 --- a/usr/fascinatemtd_initramfs_files/init +++ b/usr/fascinatemtd_initramfs_files/init @@ -9,6 +9,11 @@ busybox rm init busybox mount -t proc proc /proc busybox mount -t sysfs sysfs /sys +while ! busybox test -d /sys/devices/platform/s3c-sdhci.0/mmc_host/mmc0/mmc0:0001 ; do + echo "Waiting for internal mmc..." + busybox sleep 1 +done + /lvm/sbin/lvm vgscan --mknodes --ignorelockingfailure /lvm/sbin/lvm vgchange -aly --ignorelockingfailure diff --git a/usr/galaxysmtd_initramfs_files/init b/usr/galaxysmtd_initramfs_files/init index 5968226..25299df 100755 --- a/usr/galaxysmtd_initramfs_files/init +++ b/usr/galaxysmtd_initramfs_files/init @@ -9,6 +9,11 @@ busybox rm init busybox mount -t proc proc /proc busybox mount -t sysfs sysfs /sys +while ! busybox test -d /sys/devices/platform/s3c-sdhci.0/mmc_host/mmc0/mmc0:0001 ; do + echo "Waiting for internal mmc..." + busybox sleep 1 +done + /lvm/sbin/lvm vgscan --mknodes --ignorelockingfailure /lvm/sbin/lvm vgchange -aly --ignorelockingfailure |