aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-12-24 09:34:37 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2011-12-24 09:35:11 +0700
commitfdc19983538bec90010fa7f344a7417ff4731ba8 (patch)
tree8a84a1edd1c026b71fec4756caf27cbbb9e827d5 /usr
parentb55e9ac4df4d240b39eda4cd9c0198453dd59061 (diff)
downloadkernel_samsung_aries-fdc19983538bec90010fa7f344a7417ff4731ba8.zip
kernel_samsung_aries-fdc19983538bec90010fa7f344a7417ff4731ba8.tar.gz
kernel_samsung_aries-fdc19983538bec90010fa7f344a7417ff4731ba8.tar.bz2
Added support for aries
Reverts "S5PC11X : FIMC apply v4l2 standard for asynchronous dequeue/queue" 5f4b037e6ebb18d65a3ac896032eb559d7fe2baf
Diffstat (limited to 'usr')
-rw-r--r--usr/captivatemtd_initramfs.list45
-rwxr-xr-xusr/captivatemtd_initramfs_files/bml_over_mtdbin0 -> 68036 bytes
-rwxr-xr-xusr/captivatemtd_initramfs_files/busyboxbin0 -> 478916 bytes
-rwxr-xr-xusr/captivatemtd_initramfs_files/erase_imagebin0 -> 59848 bytes
-rwxr-xr-xusr/captivatemtd_initramfs_files/init70
-rw-r--r--usr/fascinatemtd_initramfs.list48
-rwxr-xr-xusr/fascinatemtd_initramfs_files/bml_over_mtdbin0 -> 68036 bytes
-rwxr-xr-xusr/fascinatemtd_initramfs_files/busyboxbin0 -> 478916 bytes
-rwxr-xr-xusr/fascinatemtd_initramfs_files/erase_imagebin0 -> 59848 bytes
-rwxr-xr-xusr/fascinatemtd_initramfs_files/init72
-rw-r--r--usr/galaxysbmtd_initramfs.list45
-rwxr-xr-xusr/galaxysbmtd_initramfs_files/bml_over_mtdbin0 -> 68036 bytes
-rwxr-xr-xusr/galaxysbmtd_initramfs_files/busyboxbin0 -> 478916 bytes
-rwxr-xr-xusr/galaxysbmtd_initramfs_files/erase_imagebin0 -> 59848 bytes
-rwxr-xr-xusr/galaxysbmtd_initramfs_files/init70
-rw-r--r--usr/galaxysmtd_initramfs.list45
-rwxr-xr-xusr/galaxysmtd_initramfs_files/bml_over_mtdbin0 -> 68036 bytes
-rwxr-xr-xusr/galaxysmtd_initramfs_files/busyboxbin0 -> 478916 bytes
-rwxr-xr-xusr/galaxysmtd_initramfs_files/erase_imagebin0 -> 59848 bytes
-rwxr-xr-xusr/galaxysmtd_initramfs_files/init70
-rw-r--r--usr/vibrantmtd_initramfs.list45
-rwxr-xr-xusr/vibrantmtd_initramfs_files/bml_over_mtdbin0 -> 68036 bytes
-rwxr-xr-xusr/vibrantmtd_initramfs_files/busyboxbin0 -> 478916 bytes
-rwxr-xr-xusr/vibrantmtd_initramfs_files/erase_imagebin0 -> 59848 bytes
-rwxr-xr-xusr/vibrantmtd_initramfs_files/init70
25 files changed, 580 insertions, 0 deletions
diff --git a/usr/captivatemtd_initramfs.list b/usr/captivatemtd_initramfs.list
new file mode 100644
index 0000000..984208a
--- /dev/null
+++ b/usr/captivatemtd_initramfs.list
@@ -0,0 +1,45 @@
+
+#####################
+# .
+# 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 usr/captivatemtd_initramfs_files/busybox 755 0 0
+file /stage1/init usr/captivatemtd_initramfs_files/init 755 0 0
+file /stage1/bml_over_mtd usr/captivatemtd_initramfs_files/bml_over_mtd 755 0 0
+file /stage1/erase_image 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
new file mode 100755
index 0000000..1adaf99
--- /dev/null
+++ b/usr/captivatemtd_initramfs_files/bml_over_mtd
Binary files differ
diff --git a/usr/captivatemtd_initramfs_files/busybox b/usr/captivatemtd_initramfs_files/busybox
new file mode 100755
index 0000000..9496f7a
--- /dev/null
+++ b/usr/captivatemtd_initramfs_files/busybox
Binary files differ
diff --git a/usr/captivatemtd_initramfs_files/erase_image b/usr/captivatemtd_initramfs_files/erase_image
new file mode 100755
index 0000000..9c08402
--- /dev/null
+++ b/usr/captivatemtd_initramfs_files/erase_image
Binary files differ
diff --git a/usr/captivatemtd_initramfs_files/init b/usr/captivatemtd_initramfs_files/init
new file mode 100755
index 0000000..5d0a655
--- /dev/null
+++ b/usr/captivatemtd_initramfs_files/init
@@ -0,0 +1,70 @@
+#!/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
new file mode 100644
index 0000000..5888d28
--- /dev/null
+++ b/usr/fascinatemtd_initramfs.list
@@ -0,0 +1,48 @@
+
+#####################
+# .
+# 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/mmcblk1 644 0 0 b 179 8
+nod /dev/block/mmcblk1p1 644 0 0 b 179 9
+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 /data 755 0 0
+dir /sdcard 755 0 0
+file /stage1/busybox usr/fascinatemtd_initramfs_files/busybox 755 0 0
+file /stage1/init usr/fascinatemtd_initramfs_files/init 755 0 0
+file /stage1/bml_over_mtd usr/fascinatemtd_initramfs_files/bml_over_mtd 755 0 0
+file /stage1/erase_image usr/fascinatemtd_initramfs_files/erase_image 755 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
new file mode 100755
index 0000000..1adaf99
--- /dev/null
+++ b/usr/fascinatemtd_initramfs_files/bml_over_mtd
Binary files differ
diff --git a/usr/fascinatemtd_initramfs_files/busybox b/usr/fascinatemtd_initramfs_files/busybox
new file mode 100755
index 0000000..9496f7a
--- /dev/null
+++ b/usr/fascinatemtd_initramfs_files/busybox
Binary files differ
diff --git a/usr/fascinatemtd_initramfs_files/erase_image b/usr/fascinatemtd_initramfs_files/erase_image
new file mode 100755
index 0000000..9c08402
--- /dev/null
+++ b/usr/fascinatemtd_initramfs_files/erase_image
Binary files differ
diff --git a/usr/fascinatemtd_initramfs_files/init b/usr/fascinatemtd_initramfs_files/init
new file mode 100755
index 0000000..ae94eab
--- /dev/null
+++ b/usr/fascinatemtd_initramfs_files/init
@@ -0,0 +1,72 @@
+#!/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/mmcblk1p1 /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/galaxysbmtd_initramfs.list b/usr/galaxysbmtd_initramfs.list
new file mode 100644
index 0000000..9745650
--- /dev/null
+++ b/usr/galaxysbmtd_initramfs.list
@@ -0,0 +1,45 @@
+
+#####################
+# .
+# 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 usr/galaxysbmtd_initramfs_files/busybox 755 0 0
+file /stage1/init usr/galaxysbmtd_initramfs_files/init 755 0 0
+file /stage1/bml_over_mtd usr/galaxysbmtd_initramfs_files/bml_over_mtd 755 0 0
+file /stage1/erase_image 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
new file mode 100755
index 0000000..1adaf99
--- /dev/null
+++ b/usr/galaxysbmtd_initramfs_files/bml_over_mtd
Binary files differ
diff --git a/usr/galaxysbmtd_initramfs_files/busybox b/usr/galaxysbmtd_initramfs_files/busybox
new file mode 100755
index 0000000..9496f7a
--- /dev/null
+++ b/usr/galaxysbmtd_initramfs_files/busybox
Binary files differ
diff --git a/usr/galaxysbmtd_initramfs_files/erase_image b/usr/galaxysbmtd_initramfs_files/erase_image
new file mode 100755
index 0000000..9c08402
--- /dev/null
+++ b/usr/galaxysbmtd_initramfs_files/erase_image
Binary files differ
diff --git a/usr/galaxysbmtd_initramfs_files/init b/usr/galaxysbmtd_initramfs_files/init
new file mode 100755
index 0000000..5d0a655
--- /dev/null
+++ b/usr/galaxysbmtd_initramfs_files/init
@@ -0,0 +1,70 @@
+#!/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
new file mode 100644
index 0000000..f5bbb5b
--- /dev/null
+++ b/usr/galaxysmtd_initramfs.list
@@ -0,0 +1,45 @@
+
+#####################
+# .
+# 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 usr/galaxysmtd_initramfs_files/busybox 755 0 0
+file /stage1/init usr/galaxysmtd_initramfs_files/init 755 0 0
+file /stage1/bml_over_mtd usr/galaxysmtd_initramfs_files/bml_over_mtd 755 0 0
+file /stage1/erase_image usr/galaxysmtd_initramfs_files/erase_image 755 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
new file mode 100755
index 0000000..1adaf99
--- /dev/null
+++ b/usr/galaxysmtd_initramfs_files/bml_over_mtd
Binary files differ
diff --git a/usr/galaxysmtd_initramfs_files/busybox b/usr/galaxysmtd_initramfs_files/busybox
new file mode 100755
index 0000000..9496f7a
--- /dev/null
+++ b/usr/galaxysmtd_initramfs_files/busybox
Binary files differ
diff --git a/usr/galaxysmtd_initramfs_files/erase_image b/usr/galaxysmtd_initramfs_files/erase_image
new file mode 100755
index 0000000..9c08402
--- /dev/null
+++ b/usr/galaxysmtd_initramfs_files/erase_image
Binary files differ
diff --git a/usr/galaxysmtd_initramfs_files/init b/usr/galaxysmtd_initramfs_files/init
new file mode 100755
index 0000000..5d0a655
--- /dev/null
+++ b/usr/galaxysmtd_initramfs_files/init
@@ -0,0 +1,70 @@
+#!/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/vibrantmtd_initramfs.list b/usr/vibrantmtd_initramfs.list
new file mode 100644
index 0000000..97e3d22
--- /dev/null
+++ b/usr/vibrantmtd_initramfs.list
@@ -0,0 +1,45 @@
+
+#####################
+# .
+# 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 usr/vibrantmtd_initramfs_files/busybox 755 0 0
+file /stage1/init usr/vibrantmtd_initramfs_files/init 755 0 0
+file /stage1/bml_over_mtd usr/vibrantmtd_initramfs_files/bml_over_mtd 755 0 0
+file /stage1/erase_image 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
new file mode 100755
index 0000000..1adaf99
--- /dev/null
+++ b/usr/vibrantmtd_initramfs_files/bml_over_mtd
Binary files differ
diff --git a/usr/vibrantmtd_initramfs_files/busybox b/usr/vibrantmtd_initramfs_files/busybox
new file mode 100755
index 0000000..9496f7a
--- /dev/null
+++ b/usr/vibrantmtd_initramfs_files/busybox
Binary files differ
diff --git a/usr/vibrantmtd_initramfs_files/erase_image b/usr/vibrantmtd_initramfs_files/erase_image
new file mode 100755
index 0000000..9c08402
--- /dev/null
+++ b/usr/vibrantmtd_initramfs_files/erase_image
Binary files differ
diff --git a/usr/vibrantmtd_initramfs_files/init b/usr/vibrantmtd_initramfs_files/init
new file mode 100755
index 0000000..5d0a655
--- /dev/null
+++ b/usr/vibrantmtd_initramfs_files/init
@@ -0,0 +1,70 @@
+#!/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