import init.am335xevm.usb.rc on early-init mount debugfs debugfs /sys/kernel/debug on init #Matrix Comsec Added for rotating screen setprop ro.sf.hwrotation 90 #Matrix Comsec Added for navigation bar access setprop lcd.landscape true # See storage config details at http://source.android.com/tech/storage/ mkdir /mnt/shell/emulated 0700 shell shell mkdir /storage/emulated 0555 root root export EXTERNAL_STORAGE /storage/emulated/legacy export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_TARGET /storage/emulated # Support legacy paths symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /storage/sdcard0 symlink /mnt/shell/emulated/0 /storage/emulated/legacy # sdcard 4th partition - contains media samples export SECONDARY_STORAGE /storage/sdcard1 mkdir /storage/sdcard1 0000 system system # create directory for mounting usb drives mkdir /storage/usb1 0666 system system symlink /storage/usb1 /usbdrive symlink /storage/usb1 /mnt/usb1 on post-fs-data mkdir /data/misc/dhcp 0770 dhcp dhcp chown dhcp dhcp /data/misc/dhcp mkdir /data/misc/camera 0770 media media # we will remap this as /storage/sdcard0 with the sdcard fuse tool mkdir /data/media 0770 media_rw media_rw chown media_rw media_rw /data/media # Set indication (checked by vold) that we have finished this action setprop vold.post_fs_data_done 1 on boot # Default Read Ahead value for sdcards write /sys/block/mmcblk0/queue/read_ahead_kb 2048 # PWM-Backlight for display brightness on LCD7 Cape chmod 0666 /sys/class/backlight/pwm-backlight/brightness # PWM-Backlight for display brightness on LCD3 Cape chmod 0666 /sys/class/backlight/tps65217-bl/brightness # wi-fi mkdir /data/misc/wifi/sockets 0770 wifi wifi mkdir /data/misc/dhcp 0770 dhcp dhcp insmod /system/lib/modules/compat.ko insmod /system/lib/modules/cfg80211.ko insmod /system/lib/modules/mac80211.ko insmod /system/lib/modules/wlcore.ko insmod /system/lib/modules/wlcore_sdio.ko #insmod /system/lib/modules/wl18xx.ko on fs mount_all /fstab.am335xevm # This board does not have battery, force battery-level to 100% setprop hw.nobattery true # Set Camera permission chmod 0666 /dev/video0 chown root root /dev/video0 #Matrix Comsec ...Enabling USB Port by GPIO #Please refer Linux Vega Controller for more info. service pvr /system/bin/sgx/rc.pvr start class core oneshot service dhcpcd_eth0 /system/bin/dhcpcd -ABKL -f/system/etc/dhcpcd/dhcpcd.conf class main disabled oneshot service iprenew_eth0 /system/bin/dhcpcd -n class main disabled oneshot # virtual sdcard daemon running as media_rw (1023) service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023 class late_start # VNC Server service service androidvncserver /system/bin/androidvncserver disabled oneshot service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyUSB2 class main socket rild stream 660 root radio socket rild-debug stream 660 radio system user root group radio cache inet misc audio sdcard_r sdcard_rw vpn net_admin #Download usb_modeswitch ARM complied binrary from # http://www.draisberghof.de/usb_modeswitch/#download # and place it in "/system/bin" folder of your filesystem with "usb_modeswitch" name. service usb_modeswitch /system/bin/usb_modeswitch -I -W -c /etc/usbmodeswitch.conf class main disabled oneshot #service wpa_supplicant /system/bin/wpa_supplicant ‐iwlan0 -d ‐Dnl80211 ‐c/data/misc/wifi/wpa_supplicant.conf # class main # socket wpa_wlan0 dgram 660 wifi wifi # disabled # oneshot service wpa_supplicant /system/bin/wpa_supplicant -dd -Dnl80211 -iwlan0 -c /system/etc/wifi/wpa_supplicant.conf socket wpa_wlan0 dgram 660 wifi wifi group system wifi inet disabled oneshot #service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL # class main # disabled # oneshot service dhcpcd_wlan0 /system/bin/dhcpcd wlan0 group system dhcp disabled oneshot service iprenew_wlan0 /system/bin/dhcpcd -n class main disabled oneshot