Hello,
I have managed to connect RGMII1 to the network in U-Boot but not in Linux. Also, changes to the interfaces file in /etc/network directory disappear after reboot.
These are my steps:
Configuration previously saved in U-Boot:
ipaddr=192.168.1.180
netmask=255.255.255.0
serverip=192.168.1.40
gatewayip=192.168.1.1
ethaddr=00:04:9f:06:9c:f8
eth1addr=00:04:9f:06:9c:f9
eth2addr=00:04:9f:06:9c:f4
eth3addr=00:04:9f:06:9c:f5
eth4addr=00:04:9f:06:9c:f7
eth5addr=00:04:9f:06:9c:f6
ethact=FM1@DTSEC3
ethprime=FM1@DTSEC3
Ping from U-boot to my computer:
=> ping 192.168.1.40
Using FM1@DTSEC3 device
host 192.168.1.40 is alive
In linux just after reset:
root@TinyDistro:/etc/network# cat interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
root@TinyDistro:/etc/network#
Interfaces file modified:
root@TinyDistro:/etc/network# cat interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.180
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
root@TinyDistro:/etc/network#
Initialize networking:
root@TinyDistro:/etc/network# /etc/init.d/networking stop; /etc/init.d/networking start
Deconfiguring network interfaces... done.
Configuring network interfaces... done.
root@TinyDistro:/etc/network#
root@TinyDistro:/etc/network# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
After shutdown and reset:
root@TinyDistro:/etc/network# cat interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
root@TinyDistro:/etc/network#
According to this file, eth0 is correct, isn´t it?
Best regards,