Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to implement Ericsson F5521gw minicard in RIL

Signed-off-by: Vishal Kumar <vish@buglabs.net>
  • Loading branch information...
commit 4b687d774fff00efc9bcf12a8822ac8898139136 1 parent 6f44f3b
Vishal Kumar bugvish authored
Showing with 59 additions and 1 deletion.
  1. +5 −0 init/devices.c
  2. +54 −1 rootdir/init.rc
5 init/devices.c
View
@@ -159,6 +159,11 @@ static struct perms_ devperms[] = {
{ "/dev/ts0710mux", 0640, AID_RADIO, AID_RADIO, 1 },
{ "/dev/ppp", 0660, AID_RADIO, AID_VPN, 0 },
{ "/dev/tun", 0640, AID_VPN, AID_VPN, 0 },
+ { "/dev/ttyACM0", 0660, AID_RADIO, AID_RADIO, 1 },
+ { "/dev/ttyACM2", 0660, AID_SYSTEM, AID_SYSTEM, 1 },
+ { "/dev/ttyACM1", 0660, AID_RADIO, AID_RADIO, 1 },
+ { "/dev/cdc-wdm0", 0660, AID_SYSTEM, AID_SYSTEM, 1 },
+ { "/dev/cdc-wdm1", 0660, AID_SYSTEM, AID_SYSTEM, 1 },
{ NULL, 0, 0, 0, 0 },
};
55 rootdir/init.rc
View
@@ -256,8 +256,58 @@ on boot
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
+# Increase tcp receive buffer sizes
+ write /sys/kernel/ipv4/tcp_rmem_min 409600
+ write /sys/kernel/ipv4/tcp_rmem_def 10000000
+ write /sys/kernel/ipv4/tcp_rmem_max 10000000
+
+# Enable USB auto suspend for MBM devices
+#on device-added-/sys.... Does not work yet
+ write /sys/bus/usb/devices/1-1/power/autosuspend 2
+ write /sys/bus/usb/devices/1-1/power/control auto
+ write /sys/bus/usb/devices/1-1/power/wakeup enabled
+ write /sys/bus/usb/devices/2-1/power/autosuspend 2
+ write /sys/bus/usb/devices/2-1/power/control auto
+ write /sys/bus/usb/devices/2-1/power/wakeup enabled
+ symlink /dev/bus/usb/002/049 /dev/cdc-wdm0
+ symlink /dev/bus/usb/002/050 /dev/cdc-wdm1
+ chown system system /dev/cdc-wdm0
+ chmod 0666 /dev/cdc-wdm0
+ chown system system /dev/cdc-wdm1
+ chmod 0666 /dev/cdc-wdm1
+
+# set the device for controlling the gps
+setprop mbm.gps.config.gps_ctrl /dev/bus/usb/002/049
+# set the device for nmea data
+setprop mbm.gps.config.gps_nmea /dev/ttyACM2
+# set the desired mode
+# the available options are
+# MEGPS
+# SUPL
+# STANDALONE
+setprop mbm.gps.config.gps_pref_mode SUPL
+
+# the following settings are only used for SUPL
+# enable network initiated requests
+setprop mbm.gps.config.supl.enable_ni yes
+# allow connecting to supl servers without certificates
+setprop mbm.gps.config.supl.allow_uncert yes
+
+# APN to be used for SUPL
+#setprop mbm.gps.config.supl.apn.name data.tre.se
+# set if the apn requires a username
+#setprop mbm.gps.config.supl.apn.username (unknown)
+# set if the apn requires a password
+#setprop mbm.gps.config.supl.apn.password (unknown)
+#set if the apn requires a authentication type(not implemented)
+#setprop mbm.gps.config.supl.apn.authtype (unknown)
+
+# The mbm.conf is not used
+# import /system/etc/mbm.conf
+
class_start default
+
## Daemon processes to be run by init.
##
service console /system/bin/sh
@@ -292,12 +342,15 @@ service netd /system/bin/netd
service debuggerd /system/bin/debuggerd
-service ril-daemon /system/bin/rild
+service ril-daemon /system/bin/rild -l /system/lib/libmbm-ril.so -- -d /dev/ttyACM1 -i rmnet0
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio
+service mbmd /system/bin/mbmd /dev/ttyACM0 5521
+ user root
+
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
socket zygote stream 666
onrestart write /sys/android_power/request_state wake
Please sign in to comment.
Something went wrong with that request. Please try again.