First off - Hello to everyone
I am using linux for 1 year now but i am stuck here.
I have a sam9g45-based development-board and tried to build the most recent kernel for it, using buildroot. I managed to do that but can't get the network running. I am not sure wether its a configuration- or a driver-issue. Maybe i can get help here.
So here all the infos i have.
1 ) I know the hardware is set up correctly cause the network is working in u-boot.
2) dmesg shows the network-device is found
Code:
libphy: MACB_mii_bus: probed
macb macb eth0: Cadence MACB at 0xfffbc000 irq 41 (00:1f:e5:00:32:cc)
macb macb eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=macb-ffffffff:00, irq=149)
3) I added the following lines to /etc/network/interfaces
Code:
iface eth0 inet static
address 192.168.2.111
netmask 255.255.255.0
gateway 192.168.2.1
4) I bring the interface up using 'ifup eth0' and dmesg shows.
Code:
macb macb eth0: link up (10/Half)
5) But I can't ping.
Code:
# ping 192.168.2.113
PING 192.168.2.113 (192.168.2.113) 56(84) bytes of data.
From 192.168.2.111 icmp_seq=1 Destination Host Unreachable
From 192.168.2.111 icmp_seq=2 Destination Host Unreachable
6) lshw shows this
Code:
# lshw
*-network
description: Ethernet interface
physical id: 1
logical name: eth0
serial: 00:1f:e5:00:32:cc
size: 10Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=macb duplex=half ip=192.168.2.111 link=yes multicast=yes port=MII speed=10Mbit/s
7) ethtool eth0 shows
Code:
# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Link detected: yes
8) ifconfig eth0 shows
Code:
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1F:E5:00:32:CC
inet addr:192.168.2.111 Bcast:0.0.0.0 Mask:255.255.255.0
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)
Interrupt:41 Base address:0xc000