Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nnikp
Beginner
1,245 Views

Ethernet connection for Galileo Gen 2 when SD is attached

Jump to solution

Hello guys,

I' ve recently acquired an Intel Galileo Gen 2 and I am trying to set an ethernet connection between it and my pc. While I can do this when I use the native linux system I cannot do it when SD card is in the galileo.

I am using a sketch like this

void setup() {

system("telnetd -l /bin/sh");

system("ifconfig eth0 169.254.1.1 netmask 255.255.0.0 up");

pinMode(13, OUTPUT);

digitalWrite(13,HIGH);

}

}}

The led works in both cases: with the SD card and without it. However I cannot ping to 169.254.1.1 when I use the SD, while I can connect via telnet when I don't use it.

I've used https://software.intel.com/en-us/get-started-galileo-linux-step1 this tutorial for the SD and I have upgraded the firmware. I am understanding something wrong? Is there an alternative way to set the IP for galileo, without using the ttl 2 usb cable (which I don't have)?

Tags (1)
0 Kudos

Accepted Solutions
FTinetti
Honored Contributor I
33 Views

Hi NP-c,

Firmware yocto and SD yocto Ethernet interface are different... take a look at

Summarizing, add the following lines before your ifconfig line

system("ifconfig enp0s20f6 down ");

system("ip link set enp0s20f6 name eth0");

HTH,

Fernando.

View solution in original post

2 Replies
FTinetti
Honored Contributor I
34 Views

Hi NP-c,

Firmware yocto and SD yocto Ethernet interface are different... take a look at

Summarizing, add the following lines before your ifconfig line

system("ifconfig enp0s20f6 down ");

system("ip link set enp0s20f6 name eth0");

HTH,

Fernando.

View solution in original post

nnikp
Beginner
33 Views

thanks Fernando!