ETH1 link up problem after power cycle

      ETH1 link up problem after power cycle

      Hi,

      we are using the picocoma9x module with 2 Ethernet Ports.
      Ethernet0 is on and working by default.
      Ethernet1 was activated via device tree by enabling the flag:

      Source Code

      1. CONFIG_PICOCOMA9X_ETH_B

      our
      ethernet config is:

      Source Code

      1. allow-hotplug eth1
      2. auto eth1
      3. iface eth1 inet static
      4. address 10.1.17.5
      5. netmask 255.255.255.0


      it happens very often, reproduceable after an power cycle that the eth1 won't come up:

      Source Code

      1. udevd[149]: starting version 3.1.5
      2. fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)
      3. IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
      4. fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
      5. IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      6. # cd /etc/init.d/
      7. # ./S40network restart
      8. Stopping network...ifdown: interface eth1 not configured
      9. Starting network...
      10. RTNETLINK answers: File exists
      11. RTNETLINK answers: No such device
      12. # ifconfig eth1 down
      13. # ifconfig eth1 up
      14. ifconfig: SIOCSIFFLAGS: No such device


      after a reboot everything is fine.

      any idea?

      thanks fda!