Commit graph

26 commits

Author SHA1 Message Date
pix106
176ed77e92 sdm660-common: rootdir: rollback time options for cache and persist partitions
This partially reverts commit 6f9fe01554.

From 43128a7896
2023-08-22 08:44:53 +02:00
Immanuel Raj
c3a7a64be5 sdm660-common: Use garbage collector
Good with F2FS

Based on 6a82382659

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
pix106
6f9fe01554 sdm660-common: rootdir: clean fstab time options
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-05-09 06:36:23 +02:00
pix106
318fc92825 Revert "sdm660-common: fstab: Drop 'quota' Flag"
This reverts commit daf11032ed.
2023-02-10 06:57:55 +01:00
Immanuel Raj
b37e47c9d1 sdm660-common: Add fsverity flag to userdata
After many comments and logs and research this was found to be missing and causing error

Ref https://forum.xda-developers.com/t/rom-12-xiaomi-mi-a2-pixelexperience-aosp-25-07-2022.4406351/post-87199577

Meanwhile adding this line in the fstab fixes this stuff

Ref https://android-review.googlesource.com/c/device/google/cuttlefish/+/1458807

first Api level>=30 doesnt need that flag but sadly we are 27 so yeah lets add it

Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-01-12 07:50:37 +01:00
jro1979oliver
f13ea08789 sdm660-common: Disable zram writeback
Causes memory leaks after sometime

Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-19 07:17:51 +01:00
Georg Veichtlbauer
47fefaefe3 sdm660-common: Remove max ZRAM compression streams setting
Kernels >4.7 will create a comp stream for each online CPU
and ignore /sys/block/max_compression_streams. This has been
backported to many 4.4 kernels as well.

Any device running a kernel with the upstream commit can safely remove
the parameter.

Upstream commit: 43209ea2d17aae1540d4e28274e36404f72702f2

Change-Id: Ibb29b54a31f0fb5bd941d7709d15d571dd77ebf5
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-19 07:17:51 +01:00
pix106
d08f2d8e01 sdm660-common: fstab_A: add f2fs entry for /data 2022-11-07 08:15:11 +01:00
Roberto Sartori
daf11032ed sdm660-common: fstab: Drop 'quota' Flag
Not supported on Android 13.
Upgrade from previous releases is working.

Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Change-Id: I6654673964d4a9ede9f503242a8097fcc1678c3b
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-11-07 08:15:11 +01:00
TheStrechh
70c44c3d3f sdm660-common: rootdir: add recovery label
* KeyError: '/recovery'

Signed-off-by: OmarAlCoptan <omarcoptan9@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-07-04 07:40:35 +02:00
Wei Wang
d4dfc9b401 sdm660-common: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: clarencelol <clarencekuiek@icloud.com>

[clarencelol]: I'm not sure why it got removed before, it is not deprecated yet as Google still using it
Reference: https://android.googlesource.com/device/google/redbull/+/refs/tags/android-s-beta-4/fstab.hardware

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Ratoriku
e9c9caeaa3 sdm660-common: Update fstab flags from CAF
* Fixed screen lock issue when using fbe

Co-authored-by: Edwin Moquete <edwinmmoquete@gmail.com>
Signed-off-by: Ratoriku <a1063021545@gmail.com>
Signed-off-by: raiyanbinmohsin <raiyanbinmohsinshishir@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
pix106
c2603d6ca4
sdm660-common: Force FDE encryption for A-target/lavender
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-06-15 17:32:47 +06:00
Edwin Moquete
1268269fab
sdm660-common: Update fstab for k4.14/k4.19
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-06-07 09:20:53 +06:00
luk1337
fd31bb1a3c
sdm660-common: rootdir: Remove unsupported flags from fstab_A
* Fixes :
W [libfs_mgr]Warning: unknown flag: resize
W [libfs_mgr]Warning: unknown flag: crashcheck

Change-Id: I1ba5abb0850bed55ee4e1c496954272a1a7ccf14
2021-05-18 05:04:04 +06:00
Nick C
0d5cde00b2
sdm660-common: rootdir: zRAM tuning 2021-05-15 06:03:01 +06:00
Ivan Vecera
5d95e4db79
sdm660-common: rootdir: do not use absolute value for ZRAM size
Redmi Note 7 has variants with 3GB as well as for 4GB RAM.
So use 50% for ZRAM size instead of current 3GB for both.
Parameter 'max_comp_streams' is obsolete and should not be set.
Kernel currently uses always num of online CPUs.

Change-Id: Ib0157c7b4ba686a9597fd33d268dace4e0171da7
2021-05-15 06:03:01 +06:00
OdSazib
9fd4659d67
sdm660-common: Add back zRam block in fstab 2021-02-16 17:08:16 +06:00
OdSazib
d08d2d3b8e
sdm660-common: Format fstab with FBE encryption 2021-01-27 21:11:22 +06:00
pix106
4396258ea5
sdm660-common: add /misc to fstab_A.qcom
Fixes "failed to find /misc partition" when trying to reboot to recovery on lavender
2020-12-30 22:06:56 +06:00
OdSazib
d40220f154
sdm660-common: Enable block-based 2GB zRAM for EAS
* Guard the post boot script for HMP only

Partially reverts commit fd809eba57.
Signed-off-by: OdSazib <odsazib@gmail.com>.
2020-12-22 20:57:05 +06:00
Max Weffers
fd809eba57
sdm660-common: setup ZRAM in post boot
This reverts commit 24e254a55f3ba32be838c7d1ab36bf65d4362fbe.

Change-Id: I90f690a4b833d94c235fccf56b8d679eb25591d2
2020-08-12 02:11:32 +06:00
Stylogey
f2fcbe2d73
sdm660-common: format fstabs
Change-Id: I867c2eb7d3f752c70bb9bb05da53048657c43da0
2020-08-12 02:02:39 +06:00
Dušan Uverić
fee506cf0b
sdm660-common: fstab: setup 1GB ZRAM
Change-Id: Ia137f4a7e7819f507e2fc004231dea2c985f2404
2020-08-12 02:02:38 +06:00
idabgsram
7e0da6d532
sdm660-common: Switch to Filebased-metadata encryption
Change-Id: I0fd387c6be606e9658fa4badeaf9ac75f7987af0
2020-08-12 02:02:36 +06:00
Rama Bondan Prakoso
153cfbd83f sdm660-common: Add support for lavender (Redmi Note 7/7S)
* add A-only SAR fstab
* hax manifest keymaster version

Signed-off-by: Rama Bondan Prakoso <ramanarubp@gmail.com>
2019-10-31 17:39:23 +00:00