aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-12-27 11:07:07 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-12-27 13:32:34 +0100
commit441f5c669dae86514ac83fc8b411c1454690fec4 (patch)
tree565da1ee4420ef0272a6e377c577e71d6080b70c /usr
parentc838a7f05be38adf6f5270069934918a5a342e91 (diff)
downloadkernel_samsung_aries-441f5c669dae86514ac83fc8b411c1454690fec4.zip
kernel_samsung_aries-441f5c669dae86514ac83fc8b411c1454690fec4.tar.gz
kernel_samsung_aries-441f5c669dae86514ac83fc8b411c1454690fec4.tar.bz2
Standalone recovery kernel build for galaxysmtdreplicant-4.2-0002replicant-4.2-0001
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'usr')
-rw-r--r--usr/galaxysmtd_recovery_initramfs.list52
-rwxr-xr-xusr/galaxysmtd_recovery_initramfs_files/init37
2 files changed, 89 insertions, 0 deletions
diff --git a/usr/galaxysmtd_recovery_initramfs.list b/usr/galaxysmtd_recovery_initramfs.list
new file mode 100644
index 0000000..b3a75b7
--- /dev/null
+++ b/usr/galaxysmtd_recovery_initramfs.list
@@ -0,0 +1,52 @@
+
+#####################
+# .
+# 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/mmcblk0p2 644 0 0 b 179 2
+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
+nod /dev/urandom 644 0 0 c 1 9
+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
+dir /lvm 755 0 0
+dir /lvm/etc 755 0 0
+dir /lvm/sbin 755 0 0
+file /lvm/etc/lvm.conf source/usr/galaxysmtd_initramfs_files/lvm.conf 755 0 0
+file /lvm/sbin/lvm source/usr/galaxysmtd_initramfs_files/lvm 755 0 0
+file /stage1/busybox ../../utilities/busybox 755 0 0
+file /stage1/init source/usr/galaxysmtd_recovery_initramfs_files/init 755 0 0
+file /stage1/erase_image ../../utilities/erase_image 755 0 0
+file /stage1/ramdisk-recovery.img ../../ramdisk-recovery.img 700 0 0
+dir /sys 755 0 0
diff --git a/usr/galaxysmtd_recovery_initramfs_files/init b/usr/galaxysmtd_recovery_initramfs_files/init
new file mode 100755
index 0000000..d6626ef
--- /dev/null
+++ b/usr/galaxysmtd_recovery_initramfs_files/init
@@ -0,0 +1,37 @@
+#!/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
+
+while ! busybox test -d /sys/dev/block/179:0 ; do
+ echo "Waiting for internal mmc..."
+ busybox sleep 1
+done
+
+/lvm/sbin/lvm vgscan --mknodes --ignorelockingfailure
+/lvm/sbin/lvm vgchange -aly --ignorelockingfailure
+
+busybox mount -t ext4 /dev/lvpool/system /system
+busybox mount -t yaffs2 /dev/block/mtdblock3 /cache
+
+image=/stage1/ramdisk-recovery.img
+
+busybox umount /cache
+busybox umount /system
+busybox umount /sdcard
+busybox rmdir /sdcard
+
+busybox zcat $image | busybox cpio -i
+
+busybox umount /sys
+busybox umount /proc
+busybox date >>boot.txt
+busybox rm -fr /stage1 /dev/*
+export PATH="${_PATH}"
+exec /init