diff options
author | Raghavendra Rao Ananta <rananta@codeaurora.org> | 2019-10-28 11:32:43 -0700 |
---|---|---|
committer | Raghavendra Rao Ananta <rananta@codeaurora.org> | 2019-12-11 18:58:26 -0800 |
commit | 81b4d0aece93b3dc1dc44b4ec74db7d08fa7caeb (patch) | |
tree | b2b9b764d87b0ebddabecc9fb211f5582e32bcca | |
parent | 233f708e8330add542a893d6a857885f746a4d91 (diff) |
Add script to auto-load modules on Android bootup
Add vendor_modprobe.sh to auto-load modules during Android init.
The script would try to load all the modules under /vendor/lib/modules,
except for the ones mentioned in modules.blacklist file.
Change-Id: I62acef2e71c0b98e1f649bc197225f9ff742a6e0
-rw-r--r-- | vendor_modules/modules.blacklist.lahaina | 54 | ||||
-rwxr-xr-x | vendor_modules/vendor_modprobe.sh | 13 |
2 files changed, 67 insertions, 0 deletions
diff --git a/vendor_modules/modules.blacklist.lahaina b/vendor_modules/modules.blacklist.lahaina new file mode 100644 index 0000000..e9a8e6c --- /dev/null +++ b/vendor_modules/modules.blacklist.lahaina @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only */ +# +# Copyright (c) 2019, The Linux Foundation. All rights reserved. +# + +blacklist mmc_core +blacklist mmc_block +blacklist sdhci-pltfm +blacklist sdhci +blacklist 8250_of +blacklist dummy_hcd +blacklist llcc_perfmon +blacklist tda18250 +blacklist tda9887 +blacklist tuner-simple +blacklist mt2266 +blacklist tea5767 +blacklist xc5000 +blacklist mt2131 +blacklist qt1010 +blacklist tuner-types +blacklist tua9001 +blacklist m88rs6000t +blacklist tda18218 +blacklist mxl5007t +blacklist fc2580 +blacklist r820t +blacklist mc44s803 +blacklist fc0012 +blacklist si2157 +blacklist tda827x +blacklist tuner-xc2028 +blacklist mt2060 +blacklist qm1d1b0004 +blacklist qm1d1c0042 +blacklist tda18212 +blacklist fc0013 +blacklist msi001 +blacklist fc0011 +blacklist tda8290 +blacklist max2165 +blacklist xc4000 +blacklist it913x +blacklist mt20xx +blacklist mxl301rf +blacklist mt2063 +blacklist e4000 +blacklist tea5761 +blacklist tda18271 +blacklist mxl5005s +blacklist radio-i2c-rtc6226-qca +blacklist dummy-cpufreq +blacklist dummy_hcd +blacklist kheaders diff --git a/vendor_modules/vendor_modprobe.sh b/vendor_modules/vendor_modprobe.sh new file mode 100755 index 0000000..eeb23f1 --- /dev/null +++ b/vendor_modules/vendor_modprobe.sh @@ -0,0 +1,13 @@ +#!/vendor/bin/sh + +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (c) 2019, The Linux Foundation. All rights reserved. +# + +MODULES_PATH="/vendor/lib/modules" +MODPROBE="/vendor/bin/modprobe" + +MODULES=`${MODPROBE} -d ${MODULES_PATH} -l` + +${MODPROBE} -a -b -d ${MODULES_PATH} ${MODULES} > /dev/null 2>&1 |