1 Reply Latest reply on Jan 3, 2015 11:31 PM by rgb

    Saving sketches on Galileo Gen 1

    jagodo

      I am new to Galileo but I've made projects with Arduino, like a digital rev counter for a kit car. What is puzzling me is how to get the Galileo to retain my sketch through a reboot or power cycle. The IDE I am using is Arduino 1.5.3 - Intel 1.0.4 with a Galileo 1st gen board. I updated the firmware as directed in the Getting Started info. I can run sketches fine but I lose them from the Galileo when I power down. I have an SD card and can read or write with the examples. I can't seem to find any information or explanation of the software structure on the Galileo, everything seems to just tell me about all of the hardware features. I would be very grateful if someone could point me to the right document.

        • 1. Re: Saving sketches on Galileo Gen 1
          rgb

          Hi Jagodo

          If your Galileo isn't saving the sketches, then the most likely cause is that it is not booting from the SD card.

          You can connect to your Galileo using one of the methods discussed in

          Connecting to Galileo via Linux Console

          then run

          # df -h

          Filesystem      Size  Used Avail Use% Mounted on

          /dev/loop0      2.0G  476M  1.5G  25% /

          none            116M  4.0K  116M   1% /dev

          /dev/mmcblk0p1  7.5G  2.2G  5.4G  29% /media/realroot

          tmpfs           117M  248K  117M   1% /var/volatile

          tmpfs           117M     0  117M   0% /media/ram

          If your SD card is being used to boot the system, you should see a line, like the above, for /dev/mmcblk0p1 that is several Gigabytes in size

          To set up your SD card, make sure you follow the instructions in Getting Started  or Sparkfun has a good tutorial at

          https://learn.sparkfun.com/tutorials/galileo-getting-started-guide

          You need to make sure your SD card is formatted for fat32 and copy the files you downloaded to the root of it.

          See the tutorial at Sparkfun if you don't know how to do this.

          I would suggest instead of using the standard image you use one created by AlexT so you will have access to a repository and can use opkg to install new programs.

          http://alextgalileo.altervista.org/blog/updated-galileo-devtools-image/

           

          Please read carefully warnings. The Galileo is much more powerful and fragile than the Arduino.

          If you connect the usb cable before power or shut down power with it attached, you can destroy the board.

           

          If all you want to do is run Arduino sketches, you should just use an Arduino UNO. If you want to build projects that can make use of the processing power of the Galileo, you should use a programming language.

           

          There is a discussion on how to set up Python and wiring Python, Wiring_x86, I2C LCD, Grove RGB LCD

          If you want to use node.js, you can install the XDK Iot image - and install the programming environment

          https://software.intel.com/en-us/iot

           

          Welcome to the Galileo Community and good luck with your making

          rgb

          1 of 1 people found this helpful