aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorDorian Snyder <dastin1015@gmail.com>2014-06-22 14:49:55 -0700
committerDorian Snyder <dastin1015@gmail.com>2014-06-26 22:48:17 -0700
commit5e965964839a798f89463fdd8b467a1ced07bd64 (patch)
tree96c3765c30ad3e378d8243e8d1c900e78e048623 /usr
parent8a5d38ca20b050503938ec60073ecd964ead39b3 (diff)
downloadkernel_samsung_smdk4412-5e965964839a798f89463fdd8b467a1ced07bd64.zip
kernel_samsung_smdk4412-5e965964839a798f89463fdd8b467a1ced07bd64.tar.gz
kernel_samsung_smdk4412-5e965964839a798f89463fdd8b467a1ced07bd64.tar.bz2
d710: build stage2 initramfs into kernel
Change-Id: I2c3f9dee52cd1241eb576a73893f8d8cf55bbe76
Diffstat (limited to 'usr')
-rw-r--r--usr/d710_initramfs.list9
-rwxr-xr-xusr/d710_initramfs_files/busyboxbin478916 -> 0 bytes
-rwxr-xr-xusr/d710_initramfs_files/init31
-rwxr-xr-xusr/d710_initramfs_files/read_boot_headersbin54676 -> 0 bytes
4 files changed, 4 insertions, 36 deletions
diff --git a/usr/d710_initramfs.list b/usr/d710_initramfs.list
index fa40906..ae2c16f 100644
--- a/usr/d710_initramfs.list
+++ b/usr/d710_initramfs.list
@@ -19,11 +19,10 @@ 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
+file /stage1/busybox source/usr/galaxys2_initramfs_files/busybox 755 0 0
+file /stage1/init source/usr/galaxys2_initramfs_files/init 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
+file /stage1/boot.cpio ../../ramdisk.cpio 644 0 0
+file /stage1/recovery.cpio ../../ramdisk-recovery.cpio 644 0 0
diff --git a/usr/d710_initramfs_files/busybox b/usr/d710_initramfs_files/busybox
deleted file mode 100755
index 9496f7a..0000000
--- a/usr/d710_initramfs_files/busybox
+++ /dev/null
Binary files differ
diff --git a/usr/d710_initramfs_files/init b/usr/d710_initramfs_files/init
deleted file mode 100755
index 7035361..0000000
--- a/usr/d710_initramfs_files/init
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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
deleted file mode 100755
index 3147d45..0000000
--- a/usr/d710_initramfs_files/read_boot_headers
+++ /dev/null
Binary files differ