I noticed that some of the sys paths in init.rc don't appear to match
those in the andy-tracking kernel, as published at:
http://www.mail-archive.com/[email protected]/msg06444.html
In particular the GPS, GSM, BT and accelerometer paths don't match the
values in the email above.
Attached is a patch that changes the paths to match Andy's email.
Jim
diff --git a/init.rc b/init.rc
index 54c1c9e..0a141c6 100644
--- a/init.rc
+++ b/init.rc
@@ -82,10 +82,10 @@ loglevel 3
chmod 0770 /cache/lost+found
# Turn on GSM
- write /sys/bus/platform/devices/neo1973-pm-gsm.0/power_on 1
+ write /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-gsm.0/power_on 1
# Turn on GPS
- write /sys/bus/platform/devices/neo1973-pm-gps.0/pwron 1
+ write /sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.7/neo1973-pm-gps.0/pwron 1
# Use LEDs with a timer trigger
write /sys/class/leds/gta02-aux:red/trigger timer
@@ -93,11 +93,11 @@ loglevel 3
write /sys/class/leds/gta02-power:blue/trigger timer
# GSM sometimes gets stuck, so hit it twice
- write /sys/bus/platform/devices/neo1973-pm-gsm.0/power_on 1
+ write /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-gsm.0/power_on 1
# Set scaling of accelerometers
- write /sys/devices/platform/spi_s3c24xx_gpio.1/spi0.0/full_scale 2.3
- write /sys/devices/platform/spi_s3c24xx_gpio.1/spi0.1/full_scale 2.3
+ write /sys/class/i2c-adapter/i2c-0/0-0073/lis302dl.1/full_scale 2.3
+ write /sys/class/i2c-adapter/i2c-0/0-0073/lis302dl.2/full_scale 2.3
on boot
# basic network init
@@ -171,10 +171,10 @@ on boot
# Open up access to GPS interface
chmod 666 /dev/s3c2410_serial1
- chmod 666 /sys/bus/platform/devices/neo1973-pm-gps.0/pwron
+ chmod 666 /sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.7/neo1973-pm-gps.0/pwron
# Open up access to bluetooth interface
- chmod 666 /sys/bus/platform/devices/neo1973-pm-bt.0/power_on
+ chmod 666 /sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.6/neo1973-pm-bt.0/power_on
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,