Skip to content
Permalink
Browse files

Add home_automation system package to initrc

Also adjust initrc in order to:
 - Set the OTG port to adb mode by default.
 - Make the pwm3 led port world writable (heartbeat board leds)
 - Make /dev/ttymxc3 (serial for the dimmer board) writable by inet group.
  • Loading branch information
primiano committed Jan 18, 2015
1 parent 30ea19f commit 2fc17b6f55d8964a11497ef1111ca286ba8a50b4
Showing with 20 additions and 2 deletions.
  1. +1 −0 imx6/etc/ueventd.freescale.rc
  2. +2 −1 imx6/udoo.mk
  3. +17 −1 udoo/init.rc
@@ -1,4 +1,5 @@
/dev/pmem_gpu 0660 system graphics
/dev/ttymxc3 0660 root inet
/dev/ttymxc4 0660 bluetooth bluetooth
/dev/snd/* 0660 system audio
/dev/ttyUSB* 0640 radio radio
@@ -51,4 +51,5 @@ PRODUCT_PACKAGES += \
iwconfig \
iwlist \
setotg \
lsusb
lsusb \
home_automation
@@ -140,14 +140,25 @@ on boot
chown system system /sys/devices/virtual/gpio/gpio203/value
chmod 0666 /sys/devices/virtual/gpio/gpio203/direction
chown system system /sys/devices/virtual/gpio/gpio203/direction

write /sys/class/gpio/gpio203/direction "out"
write /sys/class/gpio/gpio203/value 0
write /sys/class/gpio/gpio128/direction "out"
write /sys/class/gpio/gpio128/value 0

chmod 0666 /sys/module/usbtouchscreen/parameters/calibration
chown system system /sys/module/usbtouchscreen/parameters/calibration
exec /system/bin/cat /data/data/com.udoo.touchscreencalibration/files/pointercal > /sys/module/usbtouchscreen/parameters/calibration

# mount the debugfs
mount debugfs none /sys/kernel/debug/

# Home automation daemon (svc runs as another user. chown data to root to be read-only from www daemon)
mkdir /data/home_automation 0775 shell shell
chown root /data/home_automation
chmod 0775 /data/home_automation
# Make the board backlight world writable.
chmod 0666 /sys/class/leds/pwm3/brightness

service p2p_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dwext -c/data/misc/wifi/wpa_supplicant.conf
user root
@@ -178,6 +189,11 @@ service iprenew_wlan0 /system/bin/dhcpcd -n
class late_start
disabled
oneshot

service home_automation /system/bin/home_automation /dev/ttymxc3 /data/home_automation
class late_start
user home_aut
group inet

on fs
# mount ext4 partitions

0 comments on commit 2fc17b6

Please sign in to comment.
You can’t perform that action at this time.