2 Replies Latest reply on Apr 18, 2015 8:06 PM by vmrod25

    Relocate script error on upload

    stantheman286

      Hey guys,

       

      Just getting started with my Galileo, trying to get the Blink project to work.  My board has been updated with the latest firmware and I can see the board and serial port.  When I go to verify or build, I get the following error in my console:

       

      File "/home/matt/arduino-1.5.3/hardware/tools/relocate_sdk.py", line 98

          print "ERROR: could not relocate %s, interp size = %i and %i is needed." % (elf_file_name, p_memsz, len(new_dl_path) + 1)

      Setting it up...SDK could not be set up. Relocate script failed. Abort!

                                                                                 ^

      SyntaxError: invalid syntax

       

      I'm going to keep digging around, but I thought I'd ask here too.  I'm using Arch Linux x64.

       

      Thanks!

      Matt

        • 1. Re: Relocate script error on upload
          stantheman286

          Jumped the gun on that one, I changed my Google search and found the answer right away:

           

          https://bbs.archlinux.org/viewtopic.php?pid=1337875

           

          Looks like switching my link from Python v3 to v2 fixed the problem.

           

          Hope this helps other Arch folks :-)

           

          Thanks!

          Matt

          • 2. Re: Relocate script error on upload
            vmrod25

            HI

             

            I still have the same problem :

             

            Arduino: 1.6.0 (Linux), Board: "Intel® Galileo Gen2"

             

            /home/vladimir/Downloads/arduino-1.6.0+Intel/hardware/tools/i586/install_script.sh

            find: invalid mode ‘+111’

            Setting it up.../tmp/tmp.oM8869T9aO/relocate_sdk.sh /home/vladimir/Downloads/arduino-1.6.0+Intel/hardware/tools/i586/relocate_sdk.sh

            SDK could not be set up. Relocate script failed. Abort!

            Error compiling.

             

            I can not even verify my code:

             

            Yes I do change the python:

             

            [vladimir@localhost arduino-1.5.3]$ which python

            /usr/local/bin/python

             

            [vladimir@localhost arduino-1.5.3]$ ls -la /usr/local/bin/python

            lrwxrwxrwx. 1 root root 16 abr 18 20:52 /usr/local/bin/python -> /usr/bin/python2

             

            And I do change the hardware/tools/relocate_sdk.py

             

            #!/usr/bin/env python2

             

            I have an intel galileo gen 2 and the same happend with 1.6+ Intel

             

            All the help is more than welcome