| import /init.st-ericssonsnowballplatform.usb.rc |
| |
| on init |
| # mount debugfs |
| mount debugfs /sys/kernel/debug /sys/kernel/debug |
| |
| # power management |
| # Enable off mode by default |
| #write /sys/kernel/debug/pm_debug/enable_off_mode 1 |
| |
| # Enable Smart Reflex in debugfs |
| write /sys/kernel/debug/pm_debug/smartreflex/sr_core/autocomp 1 |
| write /sys/kernel/debug/pm_debug/smartreflex/sr_iva/autocomp 1 |
| write /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/autocomp 1 |
| |
| on boot |
| # create dhcpcd dir |
| mkdir /data/misc/dhcp 0770 dhcp dhcp |
| chmod 0770 /data/misc/dhcp |
| |
| # switch CPUfreq from performance to hotplug |
| #write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor hotplug |
| #write /sys/devices/system/cpu/cpufreq/hotplug/down_threshold 30 |
| |
| #Give system ownership and permission to boost clock for specified timeout |
| #Note boost_timeout cannot be changed from application because of dynamic sysfs creation. It will have default value of 3 sec. |
| chown system system /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq |
| chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq |
| |
| # Boost the CPU for 60 sec for boot optimization |
| #write /sys/devices/system/cpu/cpufreq/hotplug/boost_timeout 60000000 |
| #write /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq 1 |
| |
| # Sensors |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0068/range |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0068/datarate |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0068/powermode |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-001e/mode |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-001e/range |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-001e/rate |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0019/range |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0019/mode |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/range |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/mode |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/rate |
| chown system system /sys/devices/platform/nmk-i2c.2/i2c-2/2-0018/sleep_wake |
| |
| # Revert the boost_timeout to the default value of 3 sec. Note this won't affect the prev boost |
| # request for boot time reduction |
| # write /sys/devices/system/cpu/cpufreq/hotplug/boost_timeout 3000000 |
| |
| chown system system /sys/class/graphics/fb0/overlays |
| chown system system /sys/class/graphics/fb0/fit_to_screen |
| chown system system /sys/class/graphics/fb1/overlays |
| |
| insmod /system/modules/mac80211.ko |
| insmod /system/modules/cw1200_core.ko |
| setprop wifi.interface wlan0 |
| |
| # Start the usb enumeration process from userspace |
| write /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device 1 |
| |
| service hciattach /system/bin/hciattach -a 23 -n -s 115200 /dev/ttyAMA0 cg2900 115200 flow |
| class main |
| user root |
| |
| service wpa_supplicant /system/bin/wpa_supplicant -iwlan0 -dd -Dwext |
| socket wpa_wlan0 dgram 660 wifi wifi |
| disabled |
| oneshot |
| |
| service dhcpcd_wlan0 /system/bin/dhcpcd -dABKL |
| disabled |
| oneshot |
| |
| service iprenew_wlan0 /system/bin/dhcpcd -n |
| disabled |
| oneshot |
| |
| service faketsd /system/bin/faketsd |
| user bluetooth |
| group bluetooth |
| oneshot |
| |
| #userspace service for GPS |
| service lbsd /system/bin/lbsd |
| class main |
| user root |
| group radio |