diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2012-08-15 20:24:09 +0700 |
---|---|---|
committer | jt1134 <jt1134@gmail.com> | 2012-08-16 22:04:32 -0500 |
commit | 0c3f5d384b092e6d9874faed0c1122c95e6ca32b (patch) | |
tree | 72f2d9af587103b4d86fa2adf54fab765d985e95 /usr | |
parent | a0b426fbf00d6fcc7d031db98f777c2e61668ff2 (diff) | |
download | kernel_samsung_aries-0c3f5d384b092e6d9874faed0c1122c95e6ca32b.zip kernel_samsung_aries-0c3f5d384b092e6d9874faed0c1122c95e6ca32b.tar.gz kernel_samsung_aries-0c3f5d384b092e6d9874faed0c1122c95e6ca32b.tar.bz2 |
Use OneNAND for /data
Writing on MoviNAND is very slow and so we use it on /system and use
the space of /system for /data instead.
Need corresponding modification on device tree
Patch Set 2:
fascinatemtd has a spare partition on MoviNAND, ~190MB
use it for cache and remove cache from OneNAND
Change-Id: Ife77bcda275970044a5abd448a6e853807d2a85d
Diffstat (limited to 'usr')
-rw-r--r-- | usr/fascinatemtd_initramfs.list | 3 | ||||
-rwxr-xr-x | usr/fascinatemtd_initramfs_files/erase_image | bin | 59848 -> 0 bytes | |||
-rwxr-xr-x | usr/fascinatemtd_initramfs_files/init | 12 | ||||
-rwxr-xr-x | usr/fascinatemtd_initramfs_files/make_ext4fs | bin | 0 -> 133720 bytes | |||
-rw-r--r-- | usr/galaxysmtd_initramfs.list | 1 | ||||
-rwxr-xr-x | usr/galaxysmtd_initramfs_files/init | 2 |
6 files changed, 8 insertions, 10 deletions
diff --git a/usr/fascinatemtd_initramfs.list b/usr/fascinatemtd_initramfs.list index 0eae442..67baef5 100644 --- a/usr/fascinatemtd_initramfs.list +++ b/usr/fascinatemtd_initramfs.list @@ -7,6 +7,7 @@ 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/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 @@ -43,7 +44,7 @@ dir /data 755 0 0 dir /sdcard 755 0 0 file /stage1/busybox source/usr/fascinatemtd_initramfs_files/busybox 755 0 0 file /stage1/init source/usr/fascinatemtd_initramfs_files/init 755 0 0 -file /stage1/erase_image source/usr/fascinatemtd_initramfs_files/erase_image 755 0 0 +file /stage1/make_ext4fs source/usr/fascinatemtd_initramfs_files/make_ext4fs 755 0 0 file /stage1/ramdisk.img ../../ramdisk.img 700 0 0 file /stage1/ramdisk-recovery.img ../../ramdisk-recovery.img 700 0 0 dir /sys 755 0 0 diff --git a/usr/fascinatemtd_initramfs_files/erase_image b/usr/fascinatemtd_initramfs_files/erase_image Binary files differdeleted file mode 100755 index 9c08402..0000000 --- a/usr/fascinatemtd_initramfs_files/erase_image +++ /dev/null diff --git a/usr/fascinatemtd_initramfs_files/init b/usr/fascinatemtd_initramfs_files/init index d2b99c8..134c398 100755 --- a/usr/fascinatemtd_initramfs_files/init +++ b/usr/fascinatemtd_initramfs_files/init @@ -9,18 +9,15 @@ busybox rm init busybox mount -t proc proc /proc busybox mount -t sysfs sysfs /sys -busybox mount -t yaffs2 /dev/block/mtdblock2 /system -busybox mount -t yaffs2 /dev/block/mtdblock3 /cache -busybox mount -t ext4 /dev/block/mmcblk0p1 /data +busybox mount -t ext4 /dev/block/mmcblk0p1 /system +busybox mount -t ext4 /dev/block/mmcblk0p2 /cache image=/stage1/ramdisk.img if busybox test -e /cache/.startrecovery || \ - busybox test -e /data/.startrecovery || \ busybox grep -q bootmode=2 /proc/cmdline ; then # recovery boot busybox rm -fr /cache/.startrecovery - busybox rm -fr /data/.startrecovery image=/stage1/ramdisk-recovery.img # disable lpm @@ -28,8 +25,8 @@ if busybox test -e /cache/.startrecovery || \ elif ! busybox test -e /system/build.prop ; then # emergency boot busybox umount /cache - erase_image cache - busybox mount -t yaffs2 /dev/block/mtdblock3 /cache + make_ext4fs -b 4096 -g 32768 -i 8192 -I 256 -a /cache /dev/block/mmcblk0p2 + busybox mount -t ext4 /dev/block/mmcblk0p2 /cache busybox mkdir /cache/recovery busybox mount -t vfat /dev/block/mmcblk1p1 /sdcard @@ -47,7 +44,6 @@ elif ! busybox test -e /system/build.prop ; then fi busybox umount /cache -busybox umount /data busybox umount /system busybox umount /sdcard busybox rmdir /sdcard diff --git a/usr/fascinatemtd_initramfs_files/make_ext4fs b/usr/fascinatemtd_initramfs_files/make_ext4fs Binary files differnew file mode 100755 index 0000000..a32f4fa --- /dev/null +++ b/usr/fascinatemtd_initramfs_files/make_ext4fs diff --git a/usr/galaxysmtd_initramfs.list b/usr/galaxysmtd_initramfs.list index c594dd0..75ba570 100644 --- a/usr/galaxysmtd_initramfs.list +++ b/usr/galaxysmtd_initramfs.list @@ -7,6 +7,7 @@ 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 diff --git a/usr/galaxysmtd_initramfs_files/init b/usr/galaxysmtd_initramfs_files/init index 8e4d0cb..840e77e 100755 --- a/usr/galaxysmtd_initramfs_files/init +++ b/usr/galaxysmtd_initramfs_files/init @@ -9,7 +9,7 @@ busybox rm init busybox mount -t proc proc /proc busybox mount -t sysfs sysfs /sys -busybox mount -t yaffs2 /dev/block/mtdblock2 /system +busybox mount -t ext4 /dev/block/mmcblk0p2 /system busybox mount -t yaffs2 /dev/block/mtdblock3 /cache image=/stage1/ramdisk.img |