cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
270 stars 49 forks source link

ADDRCONF(NETDEV_UP): eth0: link is not ready #187

Open gtucm opened 10 years ago

gtucm commented 10 years ago

Hi,

i have a cubieboard 1 with the sd-card image: Cubian-base-r5-arm-a10 from (http://cubian.org/downloads/)

Every time i boot, i see the message: ADDRCONF(NETDEV_UP): eth0: link is not ready

Linux Cubian 3.4.43+ #14 PPEMPT ... armv71 GNU/Linux

The networkadapter and thus the internet is not working.

What can i do? Which information are needed?

cubieplayer commented 10 years ago

What's the output of ifconfig?

WallaceIT commented 10 years ago

same issue for me, after the latest cubian-update. Here is my ifconfig output:

eth0      Link encap:Ethernet  HWaddr c0:b0:df:c0:26:33  
          UP BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:55 Base address:0xb000 

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:16436  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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
cubieplayer commented 10 years ago

What about ifdown eth0 then ifup eth0?

gtucm commented 10 years ago

Hi,

I'm sorry. I have neglected the cubieboard-project since I have not found a solution.

Debian GNU/Linux 7 Cubian tty1 Linux Cubian 3.4.75-sund41 #36 PREEMPT Sat Feb 8 03:55:37 CST 2014 armv71

Here is my ifconfig output:

eth0      Link encap:Ethernet  HWaddr c0:b0:a4:d1:6f:21  
          UP BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:55 Base address:0xb000 

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:16436  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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Output ifdown eth0

Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp

Listening on LPF/eth0/c0:b0:a4:d1:6f:21
Sending on LPF/eth0/c0:b0:a4:d1:6f:21  
Sending on Socket/fallback
grep: /etc/resolv.conf: No such file or directory

Output ifup eth0

Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp

Listening on LPF/eth0/c0:b0:a4:d1:6f:21
Sending on LPF/eth0/c0:b0:a4:d1:6f:21  
Sending on Socket/fallback
DHCPDISCOVER on eht0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eht0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
grep: /etc/resolv.conf: No such file or directory

Can anyone help me? Do you have any idea? Is this Cubieboard defective?

michalliu commented 10 years ago

Are you sure your router is enabled DHCP services? or you can try static ip.

sholsapp commented 9 years ago

I have the same issue/similar issue for a second interface that I'm trying to wire up. I don't have any issues with eth0, so I know the router is working.

danfos commented 9 years ago

For reference: My network interface goes regularly (intended) up and down and this is what I see in /var/log/messages:

Nov 30 13:02:55 cubie kernel: [654074.519926] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
Nov 30 13:02:55 cubie kernel: [654074.534857] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Nov 30 13:03:11 cubie kernel: [654090.527103] sunxi_emac sunxi_emac.0: eth0: link down
Nov 30 13:03:27 cubie kernel: [654106.529919] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
Nov 30 13:03:33 cubie kernel: [654112.537083] sunxi_emac sunxi_emac.0: eth0: link down
Nov 30 13:03:35 cubie kernel: [654114.539907] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
Dec  1 00:21:19 cubie kernel: [694778.715584] sunxi_emac sunxi_emac.0: eth0: link down
Dec  1 00:21:34 cubie kernel: [694793.325672] sunxi_emac sunxi_emac.0: eth0: link down
Dec  1 00:21:34 cubie kernel: [694793.338331] ADDRCONF(NETDEV_UP): eth0: link is not ready
Dec  1 07:25:20 cubie kernel: [720219.355652] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
Dec  1 07:25:20 cubie kernel: [720219.370922] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Dec  1 07:25:36 cubie kernel: [720235.362784] sunxi_emac sunxi_emac.0: eth0: link down
Dec  1 07:25:52 cubie kernel: [720251.365619] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
Dec  1 07:26:00 cubie kernel: [720259.372818] sunxi_emac sunxi_emac.0: eth0: link down
Dec  1 07:26:02 cubie kernel: [720261.375684] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1