I do have problems with that sketch as well. I’d suggest you to use other methods to connect to the Linux console. This are a few ways you can connect to the console:
- Console serial cables https://communities.intel.com/docs/DOC-23043. This method gives you Access to the booting process as well, so it can be really helpful.
- Through Ethernet connection (SSH or Telnet)
- Through WiFi (SSH or Telnet)
If you are planning to use SSH you need to boot from the SD image, also for both methods (SSH and telnet) you need to initialize the corresponding program, you can do this by using this commands in the setup() of your Arduino sketch:
system(“telnetd -l /bin/sh”);
Then set up the internet connection and then you can check for the IP address in the router by looking for the MAC address of the board. Use this IP address in your SSH or telnet client like PuTTY. I hope you find this useful, let me know if you need more help.
once you do have the IP address (you can get it via an easy Arduino sketch - see other posts on that) you have other options as well:
- since you are using PuTTY: ssh via PuTTY
- terminal within Eclipse (see e.g. my blog Intel® IoT Devkit - remote access through IDE | Intel® Developer Zone)
- terminal within e.g. "Wyliodrin" (see wyliodrin.com)
This is great. I finally got Telnet to work. This additional line has to be added at the beginning of setup().
Thanks for the help!