5 Commits

Author SHA1 Message Date
Kelvin Zhang
03c030cd04 Revert "Skip loading kernel modules for 16K mode"
This reverts commit 959ba11426888cc5dfd054c04151fa69573c9eb5.

Reason for revert: aosp/3050544 breaks this CL

Change-Id: I9dcbcd3b8d6fb8f1e9c468cbca3ea7264bda264d
2024-04-25 00:49:19 +00:00
Kelvin Zhang
959ba11426 Skip loading kernel modules for 16K mode
For boot options, 16K kernel modules are all stored under vendor_boot.
So we can skip loading modules from vendor_dlkm/system_dlkm
if device is in 16K mode and boot option is enabled.

Bug: 293313353
Change-Id: I46c440a7ce67dfbd0cce83dadbd908dff144c583
2024-04-22 16:23:46 -07:00
Zheng Pan
b2a04f23d6 Support conditional insmod
Conditional insmod config file format

condinsmod|system_property_name|module1|module2

if getprop system_property_name == true;
    load module1
else
    load module2

Bug: 325647677
Change-Id: I0f2dd92caaefd707a626b9f80923aeab495d31a2
2024-03-12 18:21:05 -07:00
Robin Peng
dbf355ee8b insmod: Add support to load kernel modules from /system/lib/modules
Bug: 267429528
Change-Id: I15a375cf1adeab12b969b2e3185ea6f55317d886
Signed-off-by: Robin Peng <robinpeng@google.com>
2023-03-16 01:31:03 +00:00
Adam Shih
f15086f3d9 move insmod script to gs-common
Bug: 243763292
Test: boot to home
Change-Id: I43b281a5b1c77d1388bac356b6b2bf267dbe099c
2022-09-05 12:32:54 +08:00