aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-01-07 11:52:53 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2012-01-07 11:52:53 +0700
commit10fd786bd425a310b63eb6be4bb8ccf9f7c92f39 (patch)
tree45f8c02ad73c07ac8781d01c50595bcf0cc20a1e /usr
parentcfc1e3fd257bffbf6d8ce7865a7b9b2817eed617 (diff)
downloadkernel_samsung_aries-10fd786bd425a310b63eb6be4bb8ccf9f7c92f39.zip
kernel_samsung_aries-10fd786bd425a310b63eb6be4bb8ccf9f7c92f39.tar.gz
kernel_samsung_aries-10fd786bd425a310b63eb6be4bb8ccf9f7c92f39.tar.bz2
aries: Add bootmode injection support
Allows reboot recovery to work without /cache/.startrecovery hack - Renames s3c_usb_set_serial to aries_inject_cmdline
Diffstat (limited to 'usr')
-rwxr-xr-xusr/captivatemtd_initramfs_files/init8
-rwxr-xr-xusr/fascinatemtd_initramfs_files/init9
-rwxr-xr-xusr/galaxysbmtd_initramfs_files/init8
-rwxr-xr-xusr/galaxysmtd_initramfs_files/init8
-rwxr-xr-xusr/vibrantmtd_initramfs_files/init8
5 files changed, 15 insertions, 26 deletions
diff --git a/usr/captivatemtd_initramfs_files/init b/usr/captivatemtd_initramfs_files/init
index 5d0a655..feb03f6 100755
--- a/usr/captivatemtd_initramfs_files/init
+++ b/usr/captivatemtd_initramfs_files/init
@@ -17,11 +17,9 @@ load_offset=$boot_offset
load_len=$boot_len
busybox mount -t yaffs2 /dev/block/mtdblock2 /system
-busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
-if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmdline ; then
+if busybox grep -q bootmode=2 /proc/cmdline ; then
# recovery boot
- busybox rm -fr /cache/.startrecovery
load_offset=$recovery_offset
load_len=$recovery_len
@@ -29,7 +27,6 @@ if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmd
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
elif ! busybox test -e /system/build.prop ; then
# emergency boot
- busybox umount /cache
erase_image cache
busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
busybox mkdir /cache/recovery
@@ -42,6 +39,8 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand
fi
+ busybox umount /cache
+
load_offset=$recovery_offset
load_len=$recovery_len
@@ -49,7 +48,6 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
fi
-busybox umount /cache
busybox umount /system
busybox umount /sdcard
busybox rmdir /sdcard
diff --git a/usr/fascinatemtd_initramfs_files/init b/usr/fascinatemtd_initramfs_files/init
index ae94eab..4d35c3e 100755
--- a/usr/fascinatemtd_initramfs_files/init
+++ b/usr/fascinatemtd_initramfs_files/init
@@ -17,12 +17,9 @@ load_offset=$boot_offset
load_len=$boot_len
busybox mount -t yaffs2 /dev/block/mtdblock2 /system
-busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
-if busybox test -e /cache/.startrecovery || \
- busybox grep -q bootmode=2 /proc/cmdline ; then
+if busybox grep -q bootmode=2 /proc/cmdline ; then
# recovery boot
- busybox rm -fr /cache/.startrecovery
load_offset=$recovery_offset
load_len=$recovery_len
@@ -31,7 +28,6 @@ if busybox test -e /cache/.startrecovery || \
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
elif ! busybox test -e /system/build.prop ; then
# emergency boot
- busybox umount /cache
erase_image cache
busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
busybox mkdir /cache/recovery
@@ -44,6 +40,8 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand
fi
+ busybox umount /cache
+
load_offset=$recovery_offset
load_len=$recovery_len
@@ -51,7 +49,6 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
fi
-busybox umount /cache
busybox umount /system
busybox umount /sdcard
busybox rmdir /sdcard
diff --git a/usr/galaxysbmtd_initramfs_files/init b/usr/galaxysbmtd_initramfs_files/init
index 5d0a655..feb03f6 100755
--- a/usr/galaxysbmtd_initramfs_files/init
+++ b/usr/galaxysbmtd_initramfs_files/init
@@ -17,11 +17,9 @@ load_offset=$boot_offset
load_len=$boot_len
busybox mount -t yaffs2 /dev/block/mtdblock2 /system
-busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
-if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmdline ; then
+if busybox grep -q bootmode=2 /proc/cmdline ; then
# recovery boot
- busybox rm -fr /cache/.startrecovery
load_offset=$recovery_offset
load_len=$recovery_len
@@ -29,7 +27,6 @@ if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmd
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
elif ! busybox test -e /system/build.prop ; then
# emergency boot
- busybox umount /cache
erase_image cache
busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
busybox mkdir /cache/recovery
@@ -42,6 +39,8 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand
fi
+ busybox umount /cache
+
load_offset=$recovery_offset
load_len=$recovery_len
@@ -49,7 +48,6 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
fi
-busybox umount /cache
busybox umount /system
busybox umount /sdcard
busybox rmdir /sdcard
diff --git a/usr/galaxysmtd_initramfs_files/init b/usr/galaxysmtd_initramfs_files/init
index 5d0a655..feb03f6 100755
--- a/usr/galaxysmtd_initramfs_files/init
+++ b/usr/galaxysmtd_initramfs_files/init
@@ -17,11 +17,9 @@ load_offset=$boot_offset
load_len=$boot_len
busybox mount -t yaffs2 /dev/block/mtdblock2 /system
-busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
-if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmdline ; then
+if busybox grep -q bootmode=2 /proc/cmdline ; then
# recovery boot
- busybox rm -fr /cache/.startrecovery
load_offset=$recovery_offset
load_len=$recovery_len
@@ -29,7 +27,6 @@ if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmd
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
elif ! busybox test -e /system/build.prop ; then
# emergency boot
- busybox umount /cache
erase_image cache
busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
busybox mkdir /cache/recovery
@@ -42,6 +39,8 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand
fi
+ busybox umount /cache
+
load_offset=$recovery_offset
load_len=$recovery_len
@@ -49,7 +48,6 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
fi
-busybox umount /cache
busybox umount /system
busybox umount /sdcard
busybox rmdir /sdcard
diff --git a/usr/vibrantmtd_initramfs_files/init b/usr/vibrantmtd_initramfs_files/init
index 5d0a655..feb03f6 100755
--- a/usr/vibrantmtd_initramfs_files/init
+++ b/usr/vibrantmtd_initramfs_files/init
@@ -17,11 +17,9 @@ load_offset=$boot_offset
load_len=$boot_len
busybox mount -t yaffs2 /dev/block/mtdblock2 /system
-busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
-if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmdline ; then
+if busybox grep -q bootmode=2 /proc/cmdline ; then
# recovery boot
- busybox rm -fr /cache/.startrecovery
load_offset=$recovery_offset
load_len=$recovery_len
@@ -29,7 +27,6 @@ if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmd
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
elif ! busybox test -e /system/build.prop ; then
# emergency boot
- busybox umount /cache
erase_image cache
busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
busybox mkdir /cache/recovery
@@ -42,6 +39,8 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand
fi
+ busybox umount /cache
+
load_offset=$recovery_offset
load_len=$recovery_len
@@ -49,7 +48,6 @@ elif ! busybox test -e /system/build.prop ; then
busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting
fi
-busybox umount /cache
busybox umount /system
busybox umount /sdcard
busybox rmdir /sdcard