From 5e965964839a798f89463fdd8b467a1ced07bd64 Mon Sep 17 00:00:00 2001 From: Dorian Snyder Date: Sun, 22 Jun 2014 14:49:55 -0700 Subject: d710: build stage2 initramfs into kernel Change-Id: I2c3f9dee52cd1241eb576a73893f8d8cf55bbe76 --- usr/d710_initramfs.list | 9 ++++----- usr/d710_initramfs_files/busybox | Bin 478916 -> 0 bytes usr/d710_initramfs_files/init | 31 ----------------------------- usr/d710_initramfs_files/read_boot_headers | Bin 54676 -> 0 bytes 4 files changed, 4 insertions(+), 36 deletions(-) delete mode 100755 usr/d710_initramfs_files/busybox delete mode 100755 usr/d710_initramfs_files/init delete mode 100755 usr/d710_initramfs_files/read_boot_headers (limited to 'usr') 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 Binary files a/usr/d710_initramfs_files/busybox and /dev/null 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 Binary files a/usr/d710_initramfs_files/read_boot_headers and /dev/null differ -- cgit v1.1