Creating and booting the Debian Linux SD card image on the Galileo

Here are the steps to follow to install and run the Debian image on your Galileo:

  1. The first thing you'll need is a Debian Linux image that supports LAN and DHCP. The site at https://communities.intel.com/message/231688 has a version, there are others. If you go to this site, you can download this file.
  2. If you are using Windows on your computer, this file will now exist in your Downloads directory. Unzip this file and you should end up with a galileo.img file.
  3. Now you need a program that will write this file to a micro SD card. If you are using Windows, download the program Win32DiskImager from http://sourceforge.net/projects/win32diskimager/. Install this program on your PC. If you are using Linux, you can use the dd command to write to the card.
  4. If you are using a PC, run Win32DiskImager. Insert your microSD card into your PC. You might need a microSD to USB adapter for this. Now, specify the file and the card in Win32DiskImager, like this:
    Creating and booting the Debian Linux SD card image on the Galileo

    Be careful in selecting the device, you can corrupt a drive if you choose the wrong one. If you are using Linux, use the command sudo dd if=galileo.img of=sdX where the sdX is the location of the card you want to write to.

  5. Now take the card and insert it into the Galileo's microSD slot.
  6. To monitor your system, you will want to connect a terminal cable between the Galileo and your host computer. If you are using the Galileo Gen2 board, the cable you will want will have a USB connector on one end and a FDTI 6 pin connector on the other. These are available at most online electronics stores:
    Creating and booting the Debian Linux SD card image on the Galileo

    If you are using the Galileo Gen1 board, this is a 3.5 mm to USB cable.

  7. You'll now want to boot the unit using the microSD card and Debian by applying power, but first also connect the LAN cable and serial cable. For the Galileo Gen2, the serial cable connects right next to the LAN connector; there is a 6 pin FTDI connector for the cable.
  8. You'll need a terminal emulator window to communicate with the Galileo. One popular, free version is called Putty. For more information on Putty and how to download, see http://www.chiark.greenend.org.uk/~sgtatham/putty/. However, any terminal emulator program will do.
  9. Open a terminal window and select the serial port of your USB to FTDI connector (or USB-to-3.5 mm connector, if you have a GEN 1 board) and a baud rate of 115200. Every time the Galileo boots, it will look for an image on the SD card and boot that image if it is present. If it is not present, it will boot the Poky version that is in the internal memory. The terminal emulator will allow you to select which operating system you want to run.
  10. Power on the unit. You should see this boot up screen:
    Creating and booting the Debian Linux SD card image on the Galileo
  11. Select the last selection on this list. The unit will now boot from the Debian Linux distribution on the card. Type the username and password, for this distribution it is user and user. The unit will now provide a terminal connection from your host computer where you can type commands.
  12. You will need to edit a file to get access to the LAN connection. The file is /etc/networks/config. Edit this file using either vi, or nano (both are editors that come with this Linux release.) Make sure the file looks like this:
    Creating and booting the Debian Linux SD card image on the Galileo
  13. Reboot your system.
  14. Run the command sudo ifconfig. and you should be able to see the IP address of your Galileo.
  15. This image is quite small. When you write the image to your card, the system will now see your SD card as quite small as well, even if you have a much larger card with more memory available. You can follow the instructions at http://sourceforge.net/p/galileodebian/wiki/How%20to%20expand%20the%20root%20filesystem%20to%20use%20the%20entire%20SD%20card/ to expand your card to its full size.

Now your system is up and running and connected to the Internet. This particular distribution also has python available, which you will use later. You will want to run the command sudo apt-get update to update the links for any installs you want to do in the future. You will also want to run the command sudo apt-get upgrade to update your system to the latest.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.53.26