建议先在tf卡中刷入完整版Linux,然后再进行ipconfig的操作,估计SPI里的超级阉割版没有这些系统级的东西吧!

How to – Use Galileo Linux with only an Ethernet cable directly connected between laptop and Galileo…

  1. Attach the Ethernet cable directly from the Galileo to your Laptop.
  2. Create a new sketch. In the setup function –
    1. Start the telnet server on Galileo (system(“telnetd -l /bin/sh”);)
    2. Give Galileo eth0 an IP address in the Link Local Address range 169.254.x.x (system(“ifconfig eth0 169.254.1.1 netmask 255.255.0.0 up”);)
  3. Link Local Automatic addressing will assign your Windows or Mac an IP address, usually taking no longer than a minute. http://en.wikipedia.org/wiki/Link-local_address .
  4. Use putty or any Telnet client to connect to Galileo using the IP address you assigned to Galileo eth0.

1st.png

How to – Use Galileo Linux using an Ethernet cable and a home network Router(DHCP server)

  1. Attach Galileo to your router(DHCP server) using an Ethernet cable.
  2. Create a new sketch –
    1. In setup function – Start the telnet server on Galileo (system(“telnetd -l /bin/sh”);)
    2. In Loop – Call ifconfig and redirect the output to ttyGS0 (system(“ifconfig eth0 > /dev/ttyGS0”);)  so you can view Galileo’s IP address on the serial Monitor. We call this in the loop function because the serial monitor closes on sketch upload
  3. Use putty or any Telnet client to connect to Galileo using the IP address returned on the Serial Monitor from ifconfig.

2nd.png

原文链接 https://communities.intel.com/message/208564

分类: Intel GalileoIoT

0 条评论

发表评论