From 2f0339adefe0f1eb5fc7422a7808e515a07c46dd Mon Sep 17 00:00:00 2001 From: Pawit Pornkitprasan Date: Sat, 21 Jul 2012 10:16:44 +0700 Subject: aries: adjust ramdisk for built in stage2 also remove duplicate ramdisks for ease of maintenance Change-Id: Ie101d47db1120a059ea03e1a52b5da0c2151df93 --- usr/captivatemtd_initramfs.list | 45 ----------------- usr/captivatemtd_initramfs_files/bml_over_mtd | Bin 68036 -> 0 bytes usr/captivatemtd_initramfs_files/busybox | Bin 478916 -> 0 bytes usr/captivatemtd_initramfs_files/erase_image | Bin 59848 -> 0 bytes usr/captivatemtd_initramfs_files/init | 70 -------------------------- usr/fascinatemtd_initramfs.list | 3 +- usr/fascinatemtd_initramfs_files/bml_over_mtd | Bin 68036 -> 0 bytes usr/fascinatemtd_initramfs_files/init | 28 ++++------- usr/galaxysbmtd_initramfs.list | 45 ----------------- usr/galaxysbmtd_initramfs_files/bml_over_mtd | Bin 68036 -> 0 bytes usr/galaxysbmtd_initramfs_files/busybox | Bin 478916 -> 0 bytes usr/galaxysbmtd_initramfs_files/erase_image | Bin 59848 -> 0 bytes usr/galaxysbmtd_initramfs_files/init | 70 -------------------------- usr/galaxysmtd_initramfs.list | 3 +- usr/galaxysmtd_initramfs_files/bml_over_mtd | Bin 68036 -> 0 bytes usr/galaxysmtd_initramfs_files/init | 27 ++++------ usr/vibrantmtd_initramfs.list | 45 ----------------- usr/vibrantmtd_initramfs_files/bml_over_mtd | Bin 68036 -> 0 bytes usr/vibrantmtd_initramfs_files/busybox | Bin 478916 -> 0 bytes usr/vibrantmtd_initramfs_files/erase_image | Bin 59848 -> 0 bytes usr/vibrantmtd_initramfs_files/init | 70 -------------------------- 21 files changed, 24 insertions(+), 382 deletions(-) delete mode 100644 usr/captivatemtd_initramfs.list delete mode 100755 usr/captivatemtd_initramfs_files/bml_over_mtd delete mode 100755 usr/captivatemtd_initramfs_files/busybox delete mode 100755 usr/captivatemtd_initramfs_files/erase_image delete mode 100755 usr/captivatemtd_initramfs_files/init delete mode 100755 usr/fascinatemtd_initramfs_files/bml_over_mtd delete mode 100644 usr/galaxysbmtd_initramfs.list delete mode 100755 usr/galaxysbmtd_initramfs_files/bml_over_mtd delete mode 100755 usr/galaxysbmtd_initramfs_files/busybox delete mode 100755 usr/galaxysbmtd_initramfs_files/erase_image delete mode 100755 usr/galaxysbmtd_initramfs_files/init delete mode 100755 usr/galaxysmtd_initramfs_files/bml_over_mtd delete mode 100644 usr/vibrantmtd_initramfs.list delete mode 100755 usr/vibrantmtd_initramfs_files/bml_over_mtd delete mode 100755 usr/vibrantmtd_initramfs_files/busybox delete mode 100755 usr/vibrantmtd_initramfs_files/erase_image delete mode 100755 usr/vibrantmtd_initramfs_files/init (limited to 'usr') diff --git a/usr/captivatemtd_initramfs.list b/usr/captivatemtd_initramfs.list deleted file mode 100644 index a64a73c..0000000 --- a/usr/captivatemtd_initramfs.list +++ /dev/null @@ -1,45 +0,0 @@ - -##################### -# . -# Last modified: 1303434626.6776324710 - -dir /dev 755 0 0 -dir /dev/block 755 0 0 -nod /dev/block/mmcblk0 644 0 0 b 179 0 -nod /dev/block/mmcblk0p1 644 0 0 b 179 1 -nod /dev/block/mtdblock0 644 0 0 b 31 0 -nod /dev/block/mtdblock4 644 0 0 b 31 4 -nod /dev/block/mtdblock6 644 0 0 b 31 6 -nod /dev/block/mtdblock2 644 0 0 b 31 2 -nod /dev/block/mtdblock3 644 0 0 b 31 3 -nod /dev/block/mtdblock5 644 1001 1001 b 31 5 -nod /dev/block/mtdblock7 644 0 0 b 31 7 -nod /dev/block/mtdblock1 644 0 0 b 31 1 -dir /dev/mtd 755 0 0 -nod /dev/mtd/mtd4 644 0 0 c 90 8 -nod /dev/mtd/mtd0 644 0 0 c 90 0 -nod /dev/mtd/mtd0ro 644 0 0 c 90 1 -nod /dev/mtd/mtd3 644 0 0 c 90 6 -nod /dev/mtd/mtd7 644 0 0 c 90 14 -nod /dev/mtd/mtd1 644 0 0 c 90 2 -nod /dev/mtd/mtd3ro 644 0 0 c 90 7 -nod /dev/mtd/mtd5ro 644 1001 1001 c 90 11 -nod /dev/mtd/mtd1ro 644 0 0 c 90 3 -nod /dev/mtd/mtd5 644 0 0 c 90 10 -nod /dev/mtd/mtd6ro 644 0 0 c 90 13 -nod /dev/mtd/mtd6 644 0 0 c 90 12 -nod /dev/mtd/mtd7ro 644 0 0 c 90 15 -nod /dev/mtd/mtd2 644 0 0 c 90 4 -nod /dev/mtd/mtd4ro 644 0 0 c 90 9 -nod /dev/mtd/mtd2ro 644 0 0 c 90 5 -slink /init /stage1/init 777 0 0 -dir /proc 755 0 0 -dir /stage1 755 0 0 -dir /system 755 0 0 -dir /cache 755 0 0 -dir /sdcard 755 0 0 -file /stage1/busybox source/usr/captivatemtd_initramfs_files/busybox 755 0 0 -file /stage1/init source/usr/captivatemtd_initramfs_files/init 755 0 0 -file /stage1/bml_over_mtd source/usr/captivatemtd_initramfs_files/bml_over_mtd 755 0 0 -file /stage1/erase_image source/usr/captivatemtd_initramfs_files/erase_image 755 0 0 -dir /sys 755 0 0 diff --git a/usr/captivatemtd_initramfs_files/bml_over_mtd b/usr/captivatemtd_initramfs_files/bml_over_mtd deleted file mode 100755 index 1adaf99..0000000 Binary files a/usr/captivatemtd_initramfs_files/bml_over_mtd and /dev/null differ diff --git a/usr/captivatemtd_initramfs_files/busybox b/usr/captivatemtd_initramfs_files/busybox deleted file mode 100755 index 9496f7a..0000000 Binary files a/usr/captivatemtd_initramfs_files/busybox and /dev/null differ diff --git a/usr/captivatemtd_initramfs_files/erase_image b/usr/captivatemtd_initramfs_files/erase_image deleted file mode 100755 index 9c08402..0000000 Binary files a/usr/captivatemtd_initramfs_files/erase_image and /dev/null differ diff --git a/usr/captivatemtd_initramfs_files/init b/usr/captivatemtd_initramfs_files/init deleted file mode 100755 index 5d0a655..0000000 --- a/usr/captivatemtd_initramfs_files/init +++ /dev/null @@ -1,70 +0,0 @@ -#!/stage1/busybox sh -export _PATH="$PATH" -export PATH=/stage1 - -busybox cd / -busybox date >>boot.txt -exec >>boot.txt 2>&1 -busybox rm init -busybox mount -t proc proc /proc -busybox mount -t sysfs sysfs /sys - -bml_over_mtd dump boot 72 reservoir 2004 /stage1/boot.bin - -eval $(busybox grep -m 1 -A 1 BOOT_IMAGE_OFFSETS /stage1/boot.bin | busybox tail -n 1) - -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 - # recovery boot - busybox rm -fr /cache/.startrecovery - load_offset=$recovery_offset - load_len=$recovery_len - - # disable lpm - 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 - - busybox mount -t vfat /dev/block/mmcblk0p1 /sdcard - - UPDATE=$(busybox cat /sdcard/cyanogenmod.cfg) - - if busybox test -e $UPDATE ; then - busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand - fi - - load_offset=$recovery_offset - load_len=$recovery_len - - # disable lpm - busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting -fi - -busybox umount /cache -busybox umount /system -busybox umount /sdcard -busybox rmdir /sdcard - -busybox dd bs=512 if=/stage1/boot.bin skip=$load_offset count=$load_len | busybox zcat | busybox cpio -i - -if busybox grep -q 1 /sys/class/power_supply/battery/charging_mode_booting ; then - # low power mode - busybox cp lpm.rc init.rc - busybox rm init.aries.rc -fi - -busybox umount /sys -busybox umount /proc -busybox date >>boot.txt -busybox rm -fr /stage1 /dev/* -export PATH="${_PATH}" -exec /init diff --git a/usr/fascinatemtd_initramfs.list b/usr/fascinatemtd_initramfs.list index 0abe320..0eae442 100644 --- a/usr/fascinatemtd_initramfs.list +++ b/usr/fascinatemtd_initramfs.list @@ -43,6 +43,7 @@ dir /data 755 0 0 dir /sdcard 755 0 0 file /stage1/busybox source/usr/fascinatemtd_initramfs_files/busybox 755 0 0 file /stage1/init source/usr/fascinatemtd_initramfs_files/init 755 0 0 -file /stage1/bml_over_mtd source/usr/fascinatemtd_initramfs_files/bml_over_mtd 755 0 0 file /stage1/erase_image source/usr/fascinatemtd_initramfs_files/erase_image 755 0 0 +file /stage1/ramdisk.img ../../ramdisk.img 700 0 0 +file /stage1/ramdisk-recovery.img ../../ramdisk-recovery.img 700 0 0 dir /sys 755 0 0 diff --git a/usr/fascinatemtd_initramfs_files/bml_over_mtd b/usr/fascinatemtd_initramfs_files/bml_over_mtd deleted file mode 100755 index 1adaf99..0000000 Binary files a/usr/fascinatemtd_initramfs_files/bml_over_mtd and /dev/null differ diff --git a/usr/fascinatemtd_initramfs_files/init b/usr/fascinatemtd_initramfs_files/init index ae94eab..b7f40e4 100755 --- a/usr/fascinatemtd_initramfs_files/init +++ b/usr/fascinatemtd_initramfs_files/init @@ -9,32 +9,25 @@ busybox rm init busybox mount -t proc proc /proc busybox mount -t sysfs sysfs /sys -bml_over_mtd dump boot 72 reservoir 2004 /stage1/boot.bin - -eval $(busybox grep -m 1 -A 1 BOOT_IMAGE_OFFSETS /stage1/boot.bin | busybox tail -n 1) - -load_offset=$boot_offset -load_len=$boot_len - busybox mount -t yaffs2 /dev/block/mtdblock2 /system busybox mount -t yaffs2 /dev/block/mtdblock3 /cache +image=/stage1/ramdisk.img + if busybox test -e /cache/.startrecovery || \ busybox grep -q bootmode=2 /proc/cmdline ; then # recovery boot busybox rm -fr /cache/.startrecovery - - load_offset=$recovery_offset - load_len=$recovery_len + image=/stage1/ramdisk-recovery.img # disable lpm 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 + busybox umount /cache + erase_image cache + busybox mount -t yaffs2 /dev/block/mtdblock3 /cache + busybox mkdir /cache/recovery busybox mount -t vfat /dev/block/mmcblk1p1 /sdcard @@ -42,10 +35,9 @@ elif ! busybox test -e /system/build.prop ; then if busybox test -e $UPDATE ; then busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand - fi + fi - load_offset=$recovery_offset - load_len=$recovery_len + image=/stage1/ramdisk-recovery.img # disable lpm busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting @@ -56,7 +48,7 @@ busybox umount /system busybox umount /sdcard busybox rmdir /sdcard -busybox dd bs=512 if=/stage1/boot.bin skip=$load_offset count=$load_len | busybox zcat | busybox cpio -i +busybox zcat $image | busybox cpio -i if busybox grep -q 1 /sys/class/power_supply/battery/charging_mode_booting ; then # low power mode diff --git a/usr/galaxysbmtd_initramfs.list b/usr/galaxysbmtd_initramfs.list deleted file mode 100644 index 40e86e3..0000000 --- a/usr/galaxysbmtd_initramfs.list +++ /dev/null @@ -1,45 +0,0 @@ - -##################### -# . -# Last modified: 1303434626.6776324710 - -dir /dev 755 0 0 -dir /dev/block 755 0 0 -nod /dev/block/mmcblk0 644 0 0 b 179 0 -nod /dev/block/mmcblk0p1 644 0 0 b 179 1 -nod /dev/block/mtdblock0 644 0 0 b 31 0 -nod /dev/block/mtdblock4 644 0 0 b 31 4 -nod /dev/block/mtdblock6 644 0 0 b 31 6 -nod /dev/block/mtdblock2 644 0 0 b 31 2 -nod /dev/block/mtdblock3 644 0 0 b 31 3 -nod /dev/block/mtdblock5 644 1001 1001 b 31 5 -nod /dev/block/mtdblock7 644 0 0 b 31 7 -nod /dev/block/mtdblock1 644 0 0 b 31 1 -dir /dev/mtd 755 0 0 -nod /dev/mtd/mtd4 644 0 0 c 90 8 -nod /dev/mtd/mtd0 644 0 0 c 90 0 -nod /dev/mtd/mtd0ro 644 0 0 c 90 1 -nod /dev/mtd/mtd3 644 0 0 c 90 6 -nod /dev/mtd/mtd7 644 0 0 c 90 14 -nod /dev/mtd/mtd1 644 0 0 c 90 2 -nod /dev/mtd/mtd3ro 644 0 0 c 90 7 -nod /dev/mtd/mtd5ro 644 1001 1001 c 90 11 -nod /dev/mtd/mtd1ro 644 0 0 c 90 3 -nod /dev/mtd/mtd5 644 0 0 c 90 10 -nod /dev/mtd/mtd6ro 644 0 0 c 90 13 -nod /dev/mtd/mtd6 644 0 0 c 90 12 -nod /dev/mtd/mtd7ro 644 0 0 c 90 15 -nod /dev/mtd/mtd2 644 0 0 c 90 4 -nod /dev/mtd/mtd4ro 644 0 0 c 90 9 -nod /dev/mtd/mtd2ro 644 0 0 c 90 5 -slink /init /stage1/init 777 0 0 -dir /proc 755 0 0 -dir /stage1 755 0 0 -dir /system 755 0 0 -dir /cache 755 0 0 -dir /sdcard 755 0 0 -file /stage1/busybox source/usr/galaxysbmtd_initramfs_files/busybox 755 0 0 -file /stage1/init source/usr/galaxysbmtd_initramfs_files/init 755 0 0 -file /stage1/bml_over_mtd source/usr/galaxysbmtd_initramfs_files/bml_over_mtd 755 0 0 -file /stage1/erase_image source/usr/galaxysbmtd_initramfs_files/erase_image 755 0 0 -dir /sys 755 0 0 diff --git a/usr/galaxysbmtd_initramfs_files/bml_over_mtd b/usr/galaxysbmtd_initramfs_files/bml_over_mtd deleted file mode 100755 index 1adaf99..0000000 Binary files a/usr/galaxysbmtd_initramfs_files/bml_over_mtd and /dev/null differ diff --git a/usr/galaxysbmtd_initramfs_files/busybox b/usr/galaxysbmtd_initramfs_files/busybox deleted file mode 100755 index 9496f7a..0000000 Binary files a/usr/galaxysbmtd_initramfs_files/busybox and /dev/null differ diff --git a/usr/galaxysbmtd_initramfs_files/erase_image b/usr/galaxysbmtd_initramfs_files/erase_image deleted file mode 100755 index 9c08402..0000000 Binary files a/usr/galaxysbmtd_initramfs_files/erase_image and /dev/null differ diff --git a/usr/galaxysbmtd_initramfs_files/init b/usr/galaxysbmtd_initramfs_files/init deleted file mode 100755 index 5d0a655..0000000 --- a/usr/galaxysbmtd_initramfs_files/init +++ /dev/null @@ -1,70 +0,0 @@ -#!/stage1/busybox sh -export _PATH="$PATH" -export PATH=/stage1 - -busybox cd / -busybox date >>boot.txt -exec >>boot.txt 2>&1 -busybox rm init -busybox mount -t proc proc /proc -busybox mount -t sysfs sysfs /sys - -bml_over_mtd dump boot 72 reservoir 2004 /stage1/boot.bin - -eval $(busybox grep -m 1 -A 1 BOOT_IMAGE_OFFSETS /stage1/boot.bin | busybox tail -n 1) - -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 - # recovery boot - busybox rm -fr /cache/.startrecovery - load_offset=$recovery_offset - load_len=$recovery_len - - # disable lpm - 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 - - busybox mount -t vfat /dev/block/mmcblk0p1 /sdcard - - UPDATE=$(busybox cat /sdcard/cyanogenmod.cfg) - - if busybox test -e $UPDATE ; then - busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand - fi - - load_offset=$recovery_offset - load_len=$recovery_len - - # disable lpm - busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting -fi - -busybox umount /cache -busybox umount /system -busybox umount /sdcard -busybox rmdir /sdcard - -busybox dd bs=512 if=/stage1/boot.bin skip=$load_offset count=$load_len | busybox zcat | busybox cpio -i - -if busybox grep -q 1 /sys/class/power_supply/battery/charging_mode_booting ; then - # low power mode - busybox cp lpm.rc init.rc - busybox rm init.aries.rc -fi - -busybox umount /sys -busybox umount /proc -busybox date >>boot.txt -busybox rm -fr /stage1 /dev/* -export PATH="${_PATH}" -exec /init diff --git a/usr/galaxysmtd_initramfs.list b/usr/galaxysmtd_initramfs.list index 7bc1df0..c594dd0 100644 --- a/usr/galaxysmtd_initramfs.list +++ b/usr/galaxysmtd_initramfs.list @@ -40,6 +40,7 @@ dir /cache 755 0 0 dir /sdcard 755 0 0 file /stage1/busybox source/usr/galaxysmtd_initramfs_files/busybox 755 0 0 file /stage1/init source/usr/galaxysmtd_initramfs_files/init 755 0 0 -file /stage1/bml_over_mtd source/usr/galaxysmtd_initramfs_files/bml_over_mtd 755 0 0 file /stage1/erase_image source/usr/galaxysmtd_initramfs_files/erase_image 755 0 0 +file /stage1/ramdisk.img ../../ramdisk.img 700 0 0 +file /stage1/ramdisk-recovery.img ../../ramdisk-recovery.img 700 0 0 dir /sys 755 0 0 diff --git a/usr/galaxysmtd_initramfs_files/bml_over_mtd b/usr/galaxysmtd_initramfs_files/bml_over_mtd deleted file mode 100755 index 1adaf99..0000000 Binary files a/usr/galaxysmtd_initramfs_files/bml_over_mtd and /dev/null differ diff --git a/usr/galaxysmtd_initramfs_files/init b/usr/galaxysmtd_initramfs_files/init index 5d0a655..8e4d0cb 100755 --- a/usr/galaxysmtd_initramfs_files/init +++ b/usr/galaxysmtd_initramfs_files/init @@ -9,30 +9,24 @@ busybox rm init busybox mount -t proc proc /proc busybox mount -t sysfs sysfs /sys -bml_over_mtd dump boot 72 reservoir 2004 /stage1/boot.bin - -eval $(busybox grep -m 1 -A 1 BOOT_IMAGE_OFFSETS /stage1/boot.bin | busybox tail -n 1) - -load_offset=$boot_offset -load_len=$boot_len - busybox mount -t yaffs2 /dev/block/mtdblock2 /system busybox mount -t yaffs2 /dev/block/mtdblock3 /cache +image=/stage1/ramdisk.img + if busybox test -e /cache/.startrecovery || busybox grep -q bootmode=2 /proc/cmdline ; then # recovery boot busybox rm -fr /cache/.startrecovery - load_offset=$recovery_offset - load_len=$recovery_len + image=/stage1/ramdisk-recovery.img # disable lpm 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 + busybox umount /cache + erase_image cache + busybox mount -t yaffs2 /dev/block/mtdblock3 /cache + busybox mkdir /cache/recovery busybox mount -t vfat /dev/block/mmcblk0p1 /sdcard @@ -40,10 +34,9 @@ elif ! busybox test -e /system/build.prop ; then if busybox test -e $UPDATE ; then busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand - fi + fi - load_offset=$recovery_offset - load_len=$recovery_len + image=/stage1/ramdisk-recovery.img # disable lpm busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting @@ -54,7 +47,7 @@ busybox umount /system busybox umount /sdcard busybox rmdir /sdcard -busybox dd bs=512 if=/stage1/boot.bin skip=$load_offset count=$load_len | busybox zcat | busybox cpio -i +busybox zcat $image | busybox cpio -i if busybox grep -q 1 /sys/class/power_supply/battery/charging_mode_booting ; then # low power mode diff --git a/usr/vibrantmtd_initramfs.list b/usr/vibrantmtd_initramfs.list deleted file mode 100644 index d396402..0000000 --- a/usr/vibrantmtd_initramfs.list +++ /dev/null @@ -1,45 +0,0 @@ - -##################### -# . -# Last modified: 1303434626.6776324710 - -dir /dev 755 0 0 -dir /dev/block 755 0 0 -nod /dev/block/mmcblk0 644 0 0 b 179 0 -nod /dev/block/mmcblk0p1 644 0 0 b 179 1 -nod /dev/block/mtdblock0 644 0 0 b 31 0 -nod /dev/block/mtdblock4 644 0 0 b 31 4 -nod /dev/block/mtdblock6 644 0 0 b 31 6 -nod /dev/block/mtdblock2 644 0 0 b 31 2 -nod /dev/block/mtdblock3 644 0 0 b 31 3 -nod /dev/block/mtdblock5 644 1001 1001 b 31 5 -nod /dev/block/mtdblock7 644 0 0 b 31 7 -nod /dev/block/mtdblock1 644 0 0 b 31 1 -dir /dev/mtd 755 0 0 -nod /dev/mtd/mtd4 644 0 0 c 90 8 -nod /dev/mtd/mtd0 644 0 0 c 90 0 -nod /dev/mtd/mtd0ro 644 0 0 c 90 1 -nod /dev/mtd/mtd3 644 0 0 c 90 6 -nod /dev/mtd/mtd7 644 0 0 c 90 14 -nod /dev/mtd/mtd1 644 0 0 c 90 2 -nod /dev/mtd/mtd3ro 644 0 0 c 90 7 -nod /dev/mtd/mtd5ro 644 1001 1001 c 90 11 -nod /dev/mtd/mtd1ro 644 0 0 c 90 3 -nod /dev/mtd/mtd5 644 0 0 c 90 10 -nod /dev/mtd/mtd6ro 644 0 0 c 90 13 -nod /dev/mtd/mtd6 644 0 0 c 90 12 -nod /dev/mtd/mtd7ro 644 0 0 c 90 15 -nod /dev/mtd/mtd2 644 0 0 c 90 4 -nod /dev/mtd/mtd4ro 644 0 0 c 90 9 -nod /dev/mtd/mtd2ro 644 0 0 c 90 5 -slink /init /stage1/init 777 0 0 -dir /proc 755 0 0 -dir /stage1 755 0 0 -dir /system 755 0 0 -dir /cache 755 0 0 -dir /sdcard 755 0 0 -file /stage1/busybox source/usr/vibrantmtd_initramfs_files/busybox 755 0 0 -file /stage1/init source/usr/vibrantmtd_initramfs_files/init 755 0 0 -file /stage1/bml_over_mtd source/usr/vibrantmtd_initramfs_files/bml_over_mtd 755 0 0 -file /stage1/erase_image source/usr/vibrantmtd_initramfs_files/erase_image 755 0 0 -dir /sys 755 0 0 diff --git a/usr/vibrantmtd_initramfs_files/bml_over_mtd b/usr/vibrantmtd_initramfs_files/bml_over_mtd deleted file mode 100755 index 1adaf99..0000000 Binary files a/usr/vibrantmtd_initramfs_files/bml_over_mtd and /dev/null differ diff --git a/usr/vibrantmtd_initramfs_files/busybox b/usr/vibrantmtd_initramfs_files/busybox deleted file mode 100755 index 9496f7a..0000000 Binary files a/usr/vibrantmtd_initramfs_files/busybox and /dev/null differ diff --git a/usr/vibrantmtd_initramfs_files/erase_image b/usr/vibrantmtd_initramfs_files/erase_image deleted file mode 100755 index 9c08402..0000000 Binary files a/usr/vibrantmtd_initramfs_files/erase_image and /dev/null differ diff --git a/usr/vibrantmtd_initramfs_files/init b/usr/vibrantmtd_initramfs_files/init deleted file mode 100755 index 5d0a655..0000000 --- a/usr/vibrantmtd_initramfs_files/init +++ /dev/null @@ -1,70 +0,0 @@ -#!/stage1/busybox sh -export _PATH="$PATH" -export PATH=/stage1 - -busybox cd / -busybox date >>boot.txt -exec >>boot.txt 2>&1 -busybox rm init -busybox mount -t proc proc /proc -busybox mount -t sysfs sysfs /sys - -bml_over_mtd dump boot 72 reservoir 2004 /stage1/boot.bin - -eval $(busybox grep -m 1 -A 1 BOOT_IMAGE_OFFSETS /stage1/boot.bin | busybox tail -n 1) - -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 - # recovery boot - busybox rm -fr /cache/.startrecovery - load_offset=$recovery_offset - load_len=$recovery_len - - # disable lpm - 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 - - busybox mount -t vfat /dev/block/mmcblk0p1 /sdcard - - UPDATE=$(busybox cat /sdcard/cyanogenmod.cfg) - - if busybox test -e $UPDATE ; then - busybox echo "install_zip(\"`echo $UPDATE`\");" > /cache/recovery/extendedcommand - fi - - load_offset=$recovery_offset - load_len=$recovery_len - - # disable lpm - busybox echo 0 > /sys/class/power_supply/battery/charging_mode_booting -fi - -busybox umount /cache -busybox umount /system -busybox umount /sdcard -busybox rmdir /sdcard - -busybox dd bs=512 if=/stage1/boot.bin skip=$load_offset count=$load_len | busybox zcat | busybox cpio -i - -if busybox grep -q 1 /sys/class/power_supply/battery/charging_mode_booting ; then - # low power mode - busybox cp lpm.rc init.rc - busybox rm init.aries.rc -fi - -busybox umount /sys -busybox umount /proc -busybox date >>boot.txt -busybox rm -fr /stage1 /dev/* -export PATH="${_PATH}" -exec /init -- cgit v1.1