1 Reply Latest reply on Dec 23, 2014 8:04 AM by JPMontero_Intel

    Starting Intel Galileo from Windows and accessing linux through putty

    waggy

      Intel Galileo all programs are working fine on windows 7 but as soon as i start the linux programs on win7 i am not getting outputs on my tera terminal

       

      In this link

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

      sparkfun.com

      Galileo Getting Started Guide

      i did everything correctly , connected the audio jack it is showing properly, programmed the code for linux

       

       

      void setup()  {   system("cp /etc/inittab /etc/inittab.bak");  // Back up inittab  // Replace all "S:2345" with "S0:2345"'s (switching serial ports):  system("sed -i 's/S:2345/S0:2345/g' /etc/inittab");   // Replace all "ttyS1" with "ttyGS0"'s (switching serial ports):  system("sed -i 's/ttyS1/ttyGS0/g' /etc/inittab");   // Replace all "grst" with "#grst"'s to comment that line out:  system("sed -i 's/grst/#grst/g' /etc/inittab");   // Replace all "clld" with "#clld"'s to comment that line out:  system("sed -i 's/clld/#clld/g' /etc/inittab");   system("kill -SIGHUP 1"); }void loop()  {  }

       

      uploaded this prog

      then opened tera terminal,choose the galileo com port  , set the baud rate as 115200 , then presses enter,and got the window displaying

       

      Poky 9.0.2 (Yocto Project 1.4 Reference Distro) 1.4.2 clanton /dev/ttyGS0

       

      clanton login:

      Poky 9.0.2 (Yocto Project 1.4 Reference Distro) 1.4.2 clanton /dev/ttyGS0

       

      clanton login: root

      root@clanton:~# pwd

       

       

       

       

      BUT AFTER I PRESS pwd or ls or any other command after root the display does not give any output

      m breaking my head from last 3 days n nites but getting stuck at same point

      even i tried using the LAN ethernet connection but same problem comes

      after the root login not command gives any output

       

      even i tried with memory card installed linux image as well as without memory card

      i have updated firmware and all

      what could be the possible problem ?

        • 1. Re: Starting Intel Galileo from Windows and accessing linux through putty
          JPMontero_Intel

          Hi waggy,

           

          I’ve seen problems with that sketch it usually hangs. I’d suggest you to try another method to get into the serial console. There are 3 ways to connect with it:

           

          1. Through serial console cable. Check this document on more information on these cables https://communities.intel.com/docs/DOC-23043 . This method has the advantage that shows you the booting process that could be helpful get into recovery mode or to manually update the firmware.
          2. Through wireless card (using ssh and telnet)
          3. Through Ethernet (using ssh and telnet)

           

          I’d recommend you to use a serial console cable but if you can’t get one you can use any of the other 2 methods.  In order to use a wireless card you would have to boot from the SD card image (you can get it from here https://communities.intel.com/docs/DOC-22226 ), as well if you want to use ssh. For ssh and for telnet if the process is not running you need to initialize them you can do this over the Arduino IDE with the following commands:

           

          system(“telnetd –l /bin/sh”);
          system(“/usr/sbin/sshd”);

           

          Then set up the internet connection and check in the router the IP address assigned to the Galileo board. Use this IP address to get into ssh or telnet. I hope you find this helpful.

           

          Regards,
          JPMontero_Intel

          1 of 1 people found this helpful