I am using Eclipse on Windows to compile C++ programs for Gen 1 Galileo board. I compiled a sample program successfully. But when I want to upload the program to the Galileo and debug
it remotely I get this error:
"Error during file upload.
Failed to connect sshd on 169.254.7.234:22"
My Galileo is connected to my PC LAN port and the 'Host address' I used in Eclipse represents the IP address of my Galileo (169.254.7.234).
Connecting the Galileo Board to your Windows System
1. Place the prepared micro-SD card in the micro-SD card slot on the Galileo board.
2. Connect the correct serial cable (DB9 for Gen1, FTDI for Gen2) to the appropriate port on the Galileo board. Connect the other end to a USB port on the Windows system.
3. Connect the Ethernet cable to the Galileo board and the other point to your LAN. This may be your router.
a. Note: the Galileo can also be connected directly to your Windows system and will use an automatic IP address to communicate with it.
4. Connect the power cable to the Galileo board and plug the other end into an electrical socket with the same configuration and voltage as the plug.
a. Important note: make sure you use a power cable appropriate to your board. The power cable for the Galileo Gen2 is similar to Gen1, however it provides 12V instead of 5V, and can damage the Gen1.
Discovering Galileo’s IPv4 Address
Using a terminal emulator (for example, Putty), open a serial connection with the Galileo board:
1- Find which serial port your Windows system recognized as connected to the Galileo. Click Start -> Devices and Printers and you should see a USB-Serial entry.
2- Open your terminal emulator and set the following configurations:
a. 115200 Bit/s, 8 Bit, 1 Stop and No parity.
3- Open the connection. If you don’t see anything, press Enter on your keyboard.
4- Login with the root superuser. The password is empty.
5- Using the command `ip a`, identify the IP address assigned to the Galileo board. It should be listed as inet, inside the second listed entry (inet). Write down this address; you will need it later.
6- Please note that the board and the desktop should preferably be in the same network, to avoid any issues with firewalls and proxies.
Setting up Eclipse
1. Download the file dev kit-ide-win.zip from: http://iotdk.intel.com/sdk/1.1/iotdk-ide-win-final.zip
NOTE: each image has a corresponding md5sum, stored in a file with the same name but with the .md5sum suffix. This md5sum is used to check if the file has been downloaded without any errors. On Windows, you can use the md5com tool to check the md5sum of the downloaded file and compare it with the contents of the .md5sum file. Download and follow the instructions for this tool on http://www.etree.org/md5com.html .
2. Using 7zip, extract the zip file. This should take a while.
3. After finishing, go to the created directory dev kit-ide-win and double click on the file devkit-launcher.bat to launch the SDK IDE Eclipse for application development. This will open Eclipse with all the necessary environment settings.
3- To connect to the Galileo board, click the Remote System Explorer tab, on the top right corner of the Eclipse screen.
4- Select Galileo on the top left side.
5- A menu of settings opens in the lower left side. Replace the entry on “Host name” by the IP address that you wrote down (see “Discovering Galileo IP Address” section). You will need to do this only once.