init: add v2p-aarch64 rc files
Change-Id: I9393c22469c7e38c9b4d1a534140ffe874c845b9
Signed-off-by: Zach Pfeffer <zach.pfeffer@linaro.org>
diff --git a/device.mk b/device.mk
index cccc6e2..bebbc7a 100644
--- a/device.mk
+++ b/device.mk
@@ -6,6 +6,8 @@
PRODUCT_COPY_FILES += \
device/linaro/vexpress/init.arm-versatileexpress.rc:root/init.arm-versatileexpress.rc \
device/linaro/vexpress/ueventd.arm-versatileexpress.rc:root/ueventd.arm-versatileexpress.rc \
+ device/linaro/vexpress/init.v2p-aarch64.rc:root/init.v2p-aarch64.rc \
+ device/linaro/vexpress/ueventd.v2p-aarch64.rc:root/ueventd.v2p-aarch64.rc \
device/linaro/vexpress/init.vexpress.sh:system/etc/init.vexpress.sh \
device/linaro/vexpress/initlogo.rle:root/initlogo.rle
diff --git a/init.v2p-aarch64.rc b/init.v2p-aarch64.rc
new file mode 100644
index 0000000..6174423
--- /dev/null
+++ b/init.v2p-aarch64.rc
@@ -0,0 +1,47 @@
+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
+
+on boot
+ # create dhcpcd dir
+ mkdir /data/misc/dhcp 0770 dhcp dhcp
+ chmod 0770 /data/misc/dhcp
+
+ # For TC2, set A15s to performance and A7s to ondemand
+ # (Other CoreTiles don't have cpu_freq so this doesn't affect them.)
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
+ write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ondemand
+
+ # change permissions for alsa nodes
+ chmod 0777 /dev/snd/pcmC0D0c
+ chmod 0777 /dev/snd/pcmC0D0p
+ chmod 0777 /dev/snd/controlC0
+ chmod 0777 /dev/snd/timer
+
+ #change permissions for alsa nodes for audio modem
+ chmod 0777 /dev/snd/pcmC0D5c
+ chmod 0777 /dev/snd/pcmC0D5p
+
+ #change permissions for alsa nodes for HDMI
+ chmod 777 /dev/snd/pcmC0D7p
+
+ 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
+
+service faketsd /system/bin/faketsd
+ class main
+ user bluetooth
+ group bluetooth
+ oneshot
+
+# hack to start networking early during boot, this will enable use of
+# ADB and gator without further manual intervention
+service netcfghack /system/bin/netcfg eth0 dhcp
+ class main
+ user root
+ oneshot
diff --git a/ueventd.v2p-aarch64.rc b/ueventd.v2p-aarch64.rc
new file mode 100644
index 0000000..ddd45f9
--- /dev/null
+++ b/ueventd.v2p-aarch64.rc
@@ -0,0 +1 @@
+/dev/video* 0666 root root