From 095d54ab30e01118ade95afc35a05d88a9e3b378 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Wed, 5 Jul 2023 04:09:05 -0400 Subject: [PATCH] GS290: Enable ZRAM support Change-Id: I7ea6c88a607f3fbaa789c0426dfb0184eb93d4bb Signed-off-by: Jackeagle --- rootdir/etc/fstab.mt6763 | 1 + rootdir/etc/init.mt6763.rc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/rootdir/etc/fstab.mt6763 b/rootdir/etc/fstab.mt6763 index f0179ef..b21ca67 100644 --- a/rootdir/etc/fstab.mt6763 +++ b/rootdir/etc/fstab.mt6763 @@ -26,3 +26,4 @@ /devices/platform/externdevice* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata /devices/platform/mt_usb* auto vfat defaults voldmanaged=usbotg:auto +/dev/block/zram0 none swap defaults zramsize=55% diff --git a/rootdir/etc/init.mt6763.rc b/rootdir/etc/init.mt6763.rc index 8467343..adc9066 100644 --- a/rootdir/etc/init.mt6763.rc +++ b/rootdir/etc/init.mt6763.rc @@ -105,6 +105,10 @@ on fs write /sys/kernel/debug/tracing/trace_marker "E" write /proc/bootprof "INIT:Mount_END" + swapon_all /vendor/etc/fstab.mt6763 + # It might be overwritten by AGO setting if needed + write /proc/sys/vm/swappiness 100 + on late-fs # Wait for keymaster HALs (TEE and StrongBox) exec_start wait_for_strongbox -- GitLab