OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Beagle (OSBo) › Install issues
In the section DS1307 RTC on the Wiki, the following is not working for me:
sudo echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
The error message is:
-bash: /sys/class/i2c-adapter/i2c-1/new_device: Permission denied
The file is listed as: –w
What am I missing?
Looks like a permission issue. You can try to switch to root:
sudo su
and run the command again, this time without sudo:
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
Tried sudo su and received an error message of Invalid Argument. So with my new found access, I tried changing the command to:
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
Changing the i2c-1 to i2c-0 and that worked.
OK, looks like you have Raspberry Pi version 1:
https://learn.adafruit.com/using-the-bmp085-with-raspberry-pi/configuring-the-pi-for-i2c
Um… It says it is a BeagleBone Black. Can’t imagine it makes much of a difference, as long as it works.
Oops, sorry, my fault, didn’t notice this is under the OSBo section 🙂
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Beagle (OSBo) › Install issues