diff options
author | Dorian Snyder <dastin1015@gmail.com> | 2013-06-12 02:24:45 -0700 |
---|---|---|
committer | Dorian Snyder <dastin1015@gmail.com> | 2013-06-20 00:06:04 -0700 |
commit | 4b2308ce699b9c599dd6e6acf57ac11f483381d9 (patch) | |
tree | 4c31179b06d094887b1c8ca70264cf8f184a5981 /usr | |
parent | 855d6a6c1f7c54ef073caac3f6c5f9b1ed72eb4d (diff) | |
download | kernel_samsung_smdk4412-4b2308ce699b9c599dd6e6acf57ac11f483381d9.zip kernel_samsung_smdk4412-4b2308ce699b9c599dd6e6acf57ac11f483381d9.tar.gz kernel_samsung_smdk4412-4b2308ce699b9c599dd6e6acf57ac11f483381d9.tar.bz2 |
d710: initial support for the Epic 4G Touch (SPH-D710)
Change-Id: Iafbd9fb45253b02d539ac0ba114f57b3bf9eeed4
Diffstat (limited to 'usr')
-rw-r--r-- | usr/d710_initramfs.list | 29 | ||||
-rwxr-xr-x | usr/d710_initramfs_files/busybox | bin | 0 -> 478916 bytes | |||
-rwxr-xr-x | usr/d710_initramfs_files/init | 31 | ||||
-rwxr-xr-x | usr/d710_initramfs_files/read_boot_headers | bin | 0 -> 54676 bytes |
4 files changed, 60 insertions, 0 deletions
diff --git a/usr/d710_initramfs.list b/usr/d710_initramfs.list new file mode 100644 index 0000000..fa40906 --- /dev/null +++ b/usr/d710_initramfs.list @@ -0,0 +1,29 @@ +dir /cache 755 0 0 +dir /dev 755 0 0 +dir /dev/block 755 0 0 +nod /dev/block/mmcblk0 600 0 0 b 179 0 +nod /dev/block/mmcblk0p1 600 0 0 b 179 1 +nod /dev/block/mmcblk0p2 600 0 0 b 179 2 +nod /dev/block/mmcblk0p3 600 0 0 b 179 3 +nod /dev/block/mmcblk0p4 600 0 0 b 179 4 +nod /dev/block/mmcblk0p5 600 0 0 b 179 5 +nod /dev/block/mmcblk0p6 600 0 0 b 179 6 +nod /dev/block/mmcblk0p7 600 0 0 b 179 7 +nod /dev/block/mmcblk0p8 600 0 0 b 179 8 +nod /dev/block/mmcblk0p9 600 0 0 b 179 9 +nod /dev/block/mmcblk0p10 600 0 0 b 179 10 +nod /dev/block/mmcblk0p11 600 0 0 b 179 11 +nod /dev/block/mmcblk0p12 600 0 0 b 179 12 +nod /dev/block/cyasblkdevblk0 600 0 0 b 253 0 +nod /dev/block/cyasblkdevblk0p1 600 0 0 b 253 1 +slink /init /stage1/init 777 0 0 +dir /proc 755 0 0 +dir /stage1 755 0 0 +file /stage1/busybox source/usr/d710_initramfs_files/busybox 755 0 0 +file /stage1/init source/usr/d710_initramfs_files/init 755 0 0 +file /stage1/read_boot_headers source/usr/d710_initramfs_files/read_boot_headers 755 0 0 +dir /sys 755 0 0 +dir /mnt 755 0 0 +dir /mnt/.lfs 755 0 0 +dir /lib 755 0 0 +dir /lib/modules 755 0 0 diff --git a/usr/d710_initramfs_files/busybox b/usr/d710_initramfs_files/busybox Binary files differnew file mode 100755 index 0000000..9496f7a --- /dev/null +++ b/usr/d710_initramfs_files/busybox diff --git a/usr/d710_initramfs_files/init b/usr/d710_initramfs_files/init new file mode 100755 index 0000000..7035361 --- /dev/null +++ b/usr/d710_initramfs_files/init @@ -0,0 +1,31 @@ +#!/stage1/busybox sh +export _PATH="$PATH" +export PATH=/stage1 +BOOT_IMAGE=/dev/block/mmcblk0p5 + +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 + +eval $(read_boot_headers ${BOOT_IMAGE}) + +load_offset=$boot_offset +load_len=$boot_len + +if busybox grep -q bootmode=2 /proc/cmdline ; then + # recovery boot + load_offset=$recovery_offset + load_len=$recovery_len +fi + +busybox dd bs=512 if=${BOOT_IMAGE} skip=$load_offset count=$load_len | busybox zcat | busybox cpio -i + +busybox umount /sys +busybox umount /proc +busybox date >>boot.txt +busybox rm -fr /stage1 /dev/* +export PATH="${_PATH}" +exec /init diff --git a/usr/d710_initramfs_files/read_boot_headers b/usr/d710_initramfs_files/read_boot_headers Binary files differnew file mode 100755 index 0000000..3147d45 --- /dev/null +++ b/usr/d710_initramfs_files/read_boot_headers |