1 Reply Latest reply on Mar 9, 2014 1:20 PM by AlexT_Intel

    Run sketches on Galileo board with a Linux Standard Base (LSB) image.

    SimonPlanes

      Hi,

      I’m currently using the Linux Standard Base (LSB) image on this website (http://ccc.ntu.edu.tw/index.php/en/news/40) on my Galileo I’m able to use ssh, ping my board and it boots on the image without problem.

      I would like to run sketches on this LSB image. The arduino IDE doesn't recognize my board, this is normal.

      What I tried is to use the persistents sketches, but it didn't work. Indeed, I compile my sketches.ino (it blinks a led) in order to have the file.elf (thanks to https://communities.intel.com/message/223568 ). After that I create a folder “sketch” at / on my Galileo board and send through scp my sketch.elf in this folder. I push the reset button… nothing and it’s the same when I restart the board.

      Is someone has an idea how to do it? Or if it's possible at least?

      Thanks for your help.

        • 1. Re: Run sketches on Galileo board with a Linux Standard Base (LSB) image.
          AlexT_Intel

          I haven't dug too much into that, but I think the LSB image simply doesn't have the necessary environment built. That includes the clloader program (which receives and runs sketches. It also responds to sketch reset button presses, so that's  why it doesn't work for you now.

           

          Generally, you can run the sketch manually. You just need to redirect the stdin and stdout + pass two command-line parameters, where Serial and Serial1 objects are mapped. There was a topic on this forum where we've discussed that, just search for it.

           

          Alternatively you can try building the clloader for eglibc-based image and see if that builds at all, then include it into the image. But that would require preparing teh full Yocto build environment per the BSP Build Guide, which may be time-consuming. If you go that way - try running "bitbake galileo-target" and see what happens.