blob: 49000373fb436f0a5d22f8a287f4129e960fbf1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#
# Copyright 2018 Joonas Kylmälä
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import init.midas.rc
on early-boot
#########
# Modem #
#########
# HSIC bus reset (required for modem boot)
chown radio radio /sys/devices/platform/soc/12580000.ehci/ehci_power
# Modem power management GPIOs between the SOC and the modem
chown radio radio /sys/devices/platform/xmm6262/hostwake
chown radio radio /sys/devices/platform/xmm6262/link_active
chown radio radio /sys/devices/platform/xmm6262/modem_power
chown radio radio /sys/devices/platform/xmm6262/pda_active
chown radio radio /sys/devices/platform/xmm6262/slavewake
# Modem firmware (RADIO Android partition)
chown radio radio /dev/block/mmcblk2p7
# Modem devices nodes
chown radio radio /dev/umts_csd
chown radio radio /dev/umts_ipc
chown radio radio /dev/umts_loopback
chown radio radio /dev/umts_rfs
chown radio radio /dev/umts_router
on post-fs-data
stop ril-daemon
# RIL: Enable TelephonyManager to access /proc/cmdline
# This is probably needed to access the IMEI
chmod 777 /proc/cmdline
# Hack to make the WiFi driver probe again: we don't
# use modules for the WiFi and so the driver can't find
# its firmware if one is present. To workaround that we
# force the driver probe again for now. Unfortunately
# this code is device specific. An upstream solution
# or some device independent code would be better.
write /sys/bus/sdio/drivers_probe mmc1:0001:2
|