• This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22894

    iDoug
    Participant

    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


    1 root root 4096 May 7 15:42 new_device

    What am I missing?

    #26825

    Ray
    Keymaster

    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

    #26826

    iDoug
    Participant

    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.

    #26827

    Ray
    Keymaster
    #26828

    iDoug
    Participant

    Um… It says it is a BeagleBone Black. Can’t imagine it makes much of a difference, as long as it works.

    #26829

    Ray
    Keymaster

    Oops, sorry, my fault, didn’t notice this is under the OSBo section 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.