Commit graph

48 commits

Author SHA1 Message Date
Zhao Wei Liew
a2147a976e land: Reduce WPA and P2P debugging
Change-Id: I8bfc377497a9d244cbcd973221cfc4c81ecd1cf1
2017-02-12 13:15:25 +08:00
Zhao Wei Liew
8aceaa92ed land: Get rid of the fm_dl service
Use the TARGET_QCOM_NO_FM_FIRMWARE flag instead to skip everything.

Change-Id: Ib6c7d24af12aadec196df6c245cd8ec686eae154
2017-02-12 07:26:25 +08:00
Zhao Wei Liew
05a90f857f land: Run wcnss_service only once
Change-Id: If221bd85cbfb3b98ccc54dfe058cbf9d84b0e17f
2017-01-03 10:58:05 +08:00
Pavankumar Kondeti
92505e3728 land: don't load core_ctl module
core_ctl is now statically built with in the kernel. No need to
load it.

Change-Id: I7635d6f136ac2c791af8c49989f2db768385d6c3
2017-01-02 21:55:15 +08:00
Zhao Wei Liew
dfad696d54 land: Reformat fstab for neatness
No functional change.

Change-Id: Ibd04b9764c16fe2830d097748235648f15c6ee7d
2017-01-02 19:29:02 +08:00
Zhao Wei Liew
195915442a land: Run fsck on /cache and /persist
These are writeable partitions, so we should fsck them.

Change-Id: If575e4aa665ae4007211731d86f1687dc22640b8
2017-01-02 19:25:39 +08:00
Zhao Wei Liew
43522be692 land: Disable atime on /data and /cache
Simple RO operations will touch the atime value, triggering writes.
This is bad for performance and flash lifetime.

Change-Id: I80626c8b60fbafe16cc833975cea22684343c6d0
2017-01-02 19:22:42 +08:00
Zhao Wei Liew
28693e9528 land: Remove barrier=1 EXT4 mount option
This is the default.

Change-Id: Ic7f2dc20882a61b2513d8516e84a3ad74653c934
2017-01-02 19:20:41 +08:00
Zhao Wei Liew
62db76181e land: Enable F2FS support
Change-Id: I4a1b3eb2e18be583a4089c70943572ec19dc86a1
2017-01-02 19:14:26 +08:00
Zhao Wei Liew
49dfd1f02d land: Switch to BFQ after boot
LineageOS has several UX improvements making use of BFQ's
cgroups interface. Switch to BFQ once boot is complete
to take advantage of these improvements.

Change-Id: I63299e8d2c27b207af3427ac184a2a4ff4da25f5
2017-01-02 16:49:31 +08:00
Zhao Wei Liew
2f8822331b land: Set subsystem restart to related
Xiaomi used to do this in the kernel, but it is broken in the
OSS kernel due to missing definitions.

Remove the broken kernel code and do it in userspace instead.

Change-Id: I5822cc209d969f3ada898d1bfbdace9bfdfce177
2017-01-02 14:08:06 +08:00
padarshr
140482ddf9 Add 'misc' entry in fstab.qcom
This change is to add misc partition entry in
fstab.qcom. This is used by uncrypt module to
write into this partition, which is then read by
recovery mode to perform appropriate action.

Change-Id: I5bdd335812085cb3d27c81d0e4325f5cd2160669
2017-01-01 13:02:53 +08:00
Zhao Wei Liew
cddbe38091 land: Remove fstab 'check' warning
This is obsolete as we already make use of 'check'.

Change-Id: I6685cd80722b60b295d40a9f2d057c344550d42b
2017-01-01 10:07:01 +08:00
Zhao Wei Liew
e8c7238977 land: Stop mounting /oem
We don't need this in CM.

Change-Id: I05bb818423a033f0b61938c7f9c4be3cb67447ee
2016-12-28 19:19:36 +08:00
Zhao Wei Liew
b500fdf6da land: Update FP sensor ramdisk config
MIUI version: miui_HM3SGlobal_6.12.15_9ae6840ff8_6.0

Change-Id: Ia8eefdfe95db735d2019c5f7bab905b00623616d
2016-12-23 09:59:28 +08:00
Franco Rapetti
c753cb1b98 land: Allow system access to the IR blaster nodes
This fixes the IR blaster.

Change-Id: Iccd76cde5d0286b5c2cf9ddeb131f9a22205f427
2016-12-07 18:28:45 +08:00
Zhao Wei Liew
995de1847f land: rootdir: Clean out init - part 2
Change-Id: I3819d3964f7e482fd8d0455a363399d4fc6bd83a
2016-11-11 16:18:06 +08:00
Zhao Wei Liew
a29e7c7eb5 land: Clean out bluetooth scripts
Change-Id: I4cd132cf99664e085053a6d2a660e03a3ee0fdda
2016-11-11 16:17:48 +08:00
Zhao Wei Liew
ae19300740 land: Properly set up low power modes on charger
We don't need all of the other stuff. Just disable all cores
and enable LPM.

Change-Id: I4721f9a5aa57d0523f37f7352ade8b9a2919b0d9
2016-11-11 06:59:46 +08:00
Zhao Wei Liew
f0906fbf4c land: Set up low power modes on recovery
Change-Id: I3f79b5277936e4d3f0b5c0b134ea4211ab3cf920
2016-11-11 06:57:07 +08:00
Zhao Wei Liew
1db73983eb land: Set up low power modes earlier
The device can get quite warm
while booting, especially duirng dexopt.

Change-Id: I0d843838b1e81fdf125ac8af65892b31124ae58d
2016-11-11 06:51:47 +08:00
Zhao Wei Liew
52b350fd29 land: Remove broken zRAM config
Will revisit.
Most likely MIUI's 'memory optimizations' do this
instead of using the traditional init scripts.

Change-Id: Ie168d05fa3f9fd1f5d2d995559a0bcc5cb2745d5
2016-11-10 13:41:04 +08:00
Zhao Wei Liew
5d030db5a8 land: Allow system to write to LED blink files
Change-Id: I74c69b9790097f8a49b7f4db888755df09b031f3
2016-11-09 09:23:47 +08:00
Zhao Wei Liew
c98b80097b land: Clean up init - part 1.5
* Remove duplicate perfd definition
 * Remove invalid options

Change-Id: I7ec3a5a921f18fc280d181f199a5c587fe269096
2016-11-07 11:54:57 +08:00
Zhao Wei Liew
7da45d1c38 land: fstab: Remove non-existent flag 'resize'
Change-Id: Id74edbcd6015da50e262ba5138d516594be9103a
2016-11-07 11:54:57 +08:00
Zhao Wei Liew
f8fba85af1 land: Get rid of qti.ims.sh dependency
Change-Id: Icadb27a4e8db723c56f1cc67f6fcc7af750b138f
2016-11-07 11:54:57 +08:00
Zhao Wei Liew
411294e83f land: Check reboot reason when setting alarm_boot prop
Originally in early_boot.sh

Change-Id: If2ce845a28d363a2336f61cf3debac659f953172
2016-11-07 11:54:57 +08:00
Zhao Wei Liew
36a430bf60 land: Slightly clean up init scripts
* Merge init.target.rc into init.qcom.rc
 * Re-organise init triggers based on actual init sequence
 * Clean up a little bit of whitespace
 * Remove services for daemons not even present in stock

Change-Id: I6682040cfbc2aabe3886bd64f4277cc99172a7bf
2016-11-07 11:54:57 +08:00
Zhao Wei Liew
653524eee9 land: Simplify init.qcom.sh
Change-Id: I11e862abfb222e514afe042047924dc737592f85
2016-11-06 18:32:57 +08:00
Zhao Wei Liew
43bb34fc21 land: Move cpuset config to power script
Change-Id: I9debac486fd9e15aa526538e84c1fbf7037897e6
2016-11-06 18:32:57 +08:00
Zhao Wei Liew
a1ec7ac7db land: Remove redundant preload
This is correctly handled by a board flag instead.

Change-Id: I0842a4a05965928a822717bd145c96ca496d98df
2016-11-06 18:32:57 +08:00
Zhao Wei Liew
e3700b5f8b land: Clean up some setprops
* Move them to product/
 * Remove obsolete ones

Change-Id: Id0159c636f515e53a0779d9bde2923c4d3492e88
2016-11-03 18:29:13 +08:00
Zhao Wei Liew
8ccdb7d6be land: Remove dependency on QCOM post-boot shell script
Refactor all the relevant stuff to init.qcom.power.rc

Change-Id: I6a4a60a8da01e392885ce302300ab0a25d8b30ad
2016-11-03 14:52:10 +08:00
Zhao Wei Liew
515c28fb0d land: Format /data and /cache on boot if unformatted
Change-Id: I06a8cd48aa55f23e99d50dfebf97a9ae1c752632
2016-11-02 20:55:31 +08:00
Zhao Wei Liew
f1d6c83d5d land: fstab: Remove discard mount option
Android has periodical TRIM.

Change-Id: Ib48cf718cb50f3c200f426975246872fbb559436
2016-11-02 20:24:56 +08:00
Zhao Wei Liew
ebb875566f land: Mount partitions in fstab
Change-Id: Idb393988181e4cd4be840a4079b16ba45e6809c6
2016-11-01 18:05:25 +08:00
Zhao Wei Liew
84a127fdcb land: Stop mounting /cust
This is only for MIUI customisations.

Change-Id: I610b3a05ddd8eb15043d8337da5dec25b04f9c2e
2016-11-01 17:38:36 +08:00
Zhao Wei Liew
b5797934fc land: Add FM support
Change-Id: I5242695322946da1a526650cbb39de46cbacf677
2016-11-01 14:26:53 +08:00
Zhao Wei Liew
148b670d9a land: Enable zRAM
Change-Id: I6edebe7668195de8bcb52cf7fe8fc807e083b247
2016-11-01 14:13:59 +08:00
Zhao Wei Liew
2ecbcc8276 land: Start sensors and set relevant perms
Change-Id: I379465f7a0bb1a8b5539861672c87d6dbcb2ffe5
2016-10-31 22:46:04 +08:00
Zhao Wei Liew
da5ee5a596 land: Set missing display perms and property
Change-Id: I7d710f0b5a70e776304c0d104fd0b5ce6d375fc0
2016-10-31 22:39:12 +08:00
Zhao Wei Liew
32f30a62b0 land: Start relevant services on class main
Change-Id: I7e287b17f44a49244d3c2a8f4f98f03a0157e068
2016-10-31 22:27:04 +08:00
Zhao Wei Liew
63b61111e2 land: rootdir: Refactor post-boot power configuration
This makes it such that we can be more versatile in applying
our power configuration (recovery, different init triggers, etc.)

This will not be included in init.qcom.rc until this is verified.

Change-Id: I3a721ee8f31129f80662c752c370e951a4f80c38
2016-10-31 08:51:53 +08:00
Zhao Wei Liew
b227feb407 land: fstab: Disable dm-verity on /system
We need to boot.

Change-Id: Icd24cf989dec0f9473380be9be71d68deb314c36
2016-10-30 23:08:23 +08:00
Zhao Wei Liew
b30637abe7 land: Mount /boot and /recovery in fstab
Needed by the build system.

Change-Id: I27ee18a799f3bac490f7e0763affa69fc75c1a39
2016-10-30 23:07:31 +08:00
Zhao Wei Liew
dc1dc77497 land: rootdir: Build the init scripts
Change-Id: I564643fa4e91d1299783d60a844bdf9c7d27b60f
2016-10-30 19:11:10 +08:00
Zhao Wei Liew
4de3706b0f land: Add initial product makefiles and dependencies
Change-Id: If94ab716eb95da7cf3c5f58b1265fcf630edc5e5
2016-10-30 17:19:05 +08:00
Zhao Wei Liew
76dc8844c2 land: Add initial board makefiles and misc dependencies
Change-Id: Ia80204fbcdcbd2076299f92f797fa5a4f40e545c
2016-10-30 17:19:05 +08:00