/var/opt/m4/m4last.fw permission problem

Discussion in 'UDOO NEO' started by nophead, Nov 5, 2015.

  1. nophead

    nophead UDOOer

    Joined:
    Aug 18, 2015
    Messages:
    87
    Likes Received:
    14
    When I try to download the blink sketch using the Arduino IDE on the desktop I get an error:

    cp: cannot create regular file 'var/opt/m4/m4last.fw' : Permission denied.

    This is because the file is owned by root and only has read permission for everybody else. Should I just delete it?

    Why am I seeing this problem? I did load the blink sketch via the web interface. Does that perhaps run as root?
     
    niv likes this.
  2. nophead

    nophead UDOOer

    Joined:
    Aug 18, 2015
    Messages:
    87
    Likes Received:
    14
    Yes deleting the file works. It gets recreated owned by udooer and then both the web interface demo and the IDE work. I think if you use the web demo first it will cause this bug.
     
    niv and Richard McCausland like this.
  3. nophead

    nophead UDOOer

    Joined:
    Aug 18, 2015
    Messages:
    87
    Likes Received:
    14
    BTW, why on earth does the blink sketch use 43K when it is running on an M4?
     
  4. mdoan7

    mdoan7 New Member

    Joined:
    Nov 4, 2015
    Messages:
    11
    Likes Received:
    0
    You'll find this problem every time you switch users and try to upload new firmware.
     
  5. niv

    niv New Member

    Joined:
    Nov 20, 2015
    Messages:
    2
    Likes Received:
    0
    Thank you!
     

Share This Page