I got my expander pi for the RTC and tank level ADC. I'm trying to follow the directions to get the ADC working, but I'm stuck. https://groups.google.com/forum/#!searchin/victron-dev-venus/expander$20pi%7Csort:date/victron-dev-venus/V-JKXfBxXbA/-4kUe5qVFgAJ
https://gist.github.com/aaronsb/3a8de2bfc6081ecda268a353125bae14
I followed this:
#copy dtb to /u-boot/overlays I DID THIS FROM THE DOWNLOADED FILE
#excerpt from post:
#I had to convert the mcp3008-overlay.dtb to a dts file, change all references to 3008 to 3208, and convert it back to a dtb file, to get it to give me 12-bits (4095).
#(I've enclosed the dtb file if anyone needs it). The line in config.txt should read "dtoverlay=mcp3208:spi0-0-present" I DID THIS
#https://groups.google.com/d/msg/victron-dev-venus/mejgJbMjU34/WglmnUPQAwAJ
opkg install kernel-module-mcp320x I DID THIS
chmod 755 /opt/victronenergy/dbus-adc/start-adc.sh I get chmod: /opt/victronenergy/dbus-adc/start-adc.sh: No such file or directory
chmod 755 /opt/victronenergy/dbus-adc/dbus-adc I get chmod: /opt/victronenergy/dbus-adc/start-adc.sh: No such file or directory
chmod 755 /opt/victronenergy/dbus-adc/service/run I get chmod: /opt/victronenergy/dbus-adc/start-adc.sh: No such file or directory
chmod 755 /opt/victronenergy/dbus-adc/log/runI get chmod: /opt/victronenergy/dbus-adc/start-adc.sh: No such file or directory
touch /var/log/dbus-adc I DID THIS
ln -s /opt/victronenergy/dbus-adc/service /service/dbus-adc I get -sh: chmod:: command not found
Since I couldn't get that working, I thought I would get the RTC to work, but couldn't get that either. I followed this:
###### RTC Clock for DS1307 ######
#install kernel module package.
opkg install kernel-module-rtc-ds1307 I DID THIS
#create /data/rc.local I DID THIS
#add this line to it to run on startup.
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device I DID THIS
hwclock -s I DID THIS
#end lines
#for reference
#hwclock -w
#write the system time to rtc
When I try this, I get: hwclock: can't open '/dev/misc/rtc': No such file or directory
#hwclock -r
#reads it back from the rtc
When I try this, I get: hwclock: can't open '/dev/misc/rtc': No such file or directory
#hwclock -s writes rtc back to system time
When I try this, I get: hwclock: can't open '/dev/misc/rtc': No such file or directory
Any help would be appreciated.