Skip to content

Commit

Permalink
Activate zram
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarx2k committed Apr 4, 2015
1 parent c18040f commit e3dd320
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ BOARD_FLASH_BLOCK_SIZE := 131072

# TWRP Recovery
BOARD_HAS_NO_SELECT_BUTTON := true
TARGET_RECOVERY_FSTAB := device/lge/w7/recovery.fstab
TARGET_RECOVERY_FSTAB := device/lge/w7/rootdir/fstab.w7
RECOVERY_FSTAB_VERSION := 2
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
DEVICE_RESOLUTION := 540x960
Expand Down
3 changes: 2 additions & 1 deletion rootdir/fstab.w7
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
/dev/block/platform/msm_sdcc.1/by-name/sns /sns ext4 nosuid,nodev,barrier=1,data=ordered wait,check
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
/dev/block/zram0 /none swap defaults zramsize=268435456
5 changes: 5 additions & 0 deletions rootdir/init.w7.rc
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,13 @@ on fs
mkdir /dev/bus 0755 root root
mkdir /dev/bus/usb 0755 root root

# mount fs
mount_all fstab.w7

# activate zram
swapon_all fstab.qcom
write /proc/sys/vm/page-cluster 0

# Keeping following partitions outside fstab file. As user may not have
# these partition flashed on the device. Failure to mount any partition in fstab file
# results in failure to launch late-start class.
Expand Down

0 comments on commit e3dd320

Please sign in to comment.