Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
device_xiaomi_sm8350-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid-Devices
device_xiaomi_sm8350-common
Commits
525d7106
Commit
525d7106
authored
3 years ago
by
Cosmin Tanislav
Browse files
Options
Downloads
Patches
Plain Diff
sm8350-common: remove module loading from 5.4 gki directory
parent
30ddf5a8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rootdir/bin/vendor_modprobe.sh
+0
-19
0 additions, 19 deletions
rootdir/bin/vendor_modprobe.sh
rootdir/etc/init.target.rc
+0
-2
0 additions, 2 deletions
rootdir/etc/init.target.rc
with
0 additions
and
21 deletions
rootdir/bin/vendor_modprobe.sh
+
0
−
19
View file @
525d7106
...
...
@@ -5,30 +5,11 @@
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#=============================================================================
#default to /vendor/lib/modules
MODULES_PATH
=
"/vendor/lib/modules/"
GKI_MOD_PATH
=
"/vendor/lib/modules/5.4-gki"
MODPROBE
=
"/vendor/bin/modprobe"
MODULES
=
`
${
MODPROBE
}
-d
${
MODULES_PATH
}
-l
`
# Find the first non-blacklisted module and try
# inserting it. If insertion fails the module is not
# compatible with the current kernel. Change the modules
# directory to gki.
for
MODULE
in
${
MODULES
}
;
do
cat
${
MODULES_PATH
}
/modules.blocklist |
grep
$MODULE
if
[
$?
-ne
0
]
;
then
break
fi
done
${
MODPROBE
}
-a
-b
-d
${
MODULES_PATH
}
${
MODULE
}
if
[
$?
-ne
0
]
;
then
MODULES_PATH
=
$GKI_MOD_PATH
MODULES
=
`
${
MODPROBE
}
-d
${
MODULES_PATH
}
-l
`
fi
# Iterate over module list and modprobe them in background.
for
MODULE
in
${
MODULES
}
;
do
if
[
${
MODULE
}
==
"qca_cld3_wlan"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
rootdir/etc/init.target.rc
+
0
−
2
View file @
525d7106
...
...
@@ -34,7 +34,6 @@ import /vendor/etc/init/hw/init.batterysecret.rc
on early-init
exec u:r:vendor_modprobe:s0 -- /vendor/bin/vendor_modprobe.sh
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules q6_pdr_dlkm q6_notifier_dlkm snd_event_dlkm apr_dlkm adsp_loader_dlkm q6_dlkm native_dlkm pinctrl_wcd_dlkm pinctrl_lpi_dlkm swr_dlkm platform_dlkm hdmi_dlkm stub_dlkm wcd_core_dlkm wsa883x_dlkm bolero_cdc_dlkm wsa_macro_dlkm va_macro_dlkm rx_macro_dlkm tx_macro_dlkm bt_fm_slim wcd938x_dlkm wcd938x_slave_dlkm swr_dmic_dlkm swr_haptics_dlkm machine_dlkm radio-i2c-rtc6226-qca mmc_core mmc_block sdhci sdhci-pltfm sdhci-msm cdsprm tfa98xx_dlkm
wait /sys/devices/soc0/soc_id
on init
...
...
@@ -72,7 +71,6 @@ on init
on early-fs
start vold
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/ cnss2
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki cnss2
on fs
start hwservicemanager
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment