Hi,
I'm working on a custom made A20 board. I'm able to boot it and everything
seems fine, but I can't get the ethernet to work.
I see the following during boot:
<4>emac_init fetch emac using configuration failed
...
<6>sunxi_emac sunxi_emac.0: eth0: link down
<6>ADDRCONF(NETDEV_UP): eth0: link is not ready
...
When I try:
> ifdown eth0
> ifup eth0
>>> ADDRCONF(NETDEV_UP): eth0: link is not ready
And nothing happens.
Here's my ifconfig output:
eth0 Link encap:Ethernet HWaddr 02:13:04:03:23:20
inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::13:4ff:fe03:2320/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:238 (238.0 B)
Interrupt:117 Base address:0xc000
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:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1240 (1.2 KiB) TX bytes:1240 (1.2 KiB)
And here's the relevant part from the fex file:
[emac_para]
emac_used = 1
emac_rxd3 = port:PA00<2><default><default><default>
emac_rxd2 = port:PA01<2><default><default><default>
emac_rxd1 = port:PA02<2><default><default><default>
emac_rxd0 = port:PA03<2><default><default><default>
emac_txd3 = port:PA04<2><default><default><default>
emac_txd2 = port:PA05<2><default><default><default>
emac_txd1 = port:PA06<2><default><default><default>
emac_txd0 = port:PA07<2><default><default><default>
emac_rxclk = port:PA08<2><default><default><default>
emac_rxerr = port:PA09<2><default><default><default>
emac_rxdV = port:PA10<2><default><default><default>
emac_mdc = port:PA11<2><default><default><default>
emac_mdio = port:PA12<2><default><default><default>
emac_txen = port:PA13<2><default><default><default>
emac_txclk = port:PA14<2><default><default><default>
emac_crs = port:PA15<2><default><default><default>
emac_col = port:PA16<2><default><default><default>
emac_reset = port:PA17<1><default><default><default>
Then I decided to give the gmac a try, changed the above with this stuff
<http://www.cubieforums.com/index.php/topic,2676.0/prev_next,prev.html#new>:
[gmac_para]
gmac_used = 1
gmac_rxd3 = port:PA00<5><default><default><default>
gmac_rxd2 = port:PA01<5><default><default><default>
gmac_rxd1 = port:PA02<5><default><default><default>
gmac_rxd0 = port:PA03<5><default><default><default>
gmac_txd3 = port:PA04<5><default><default><default>
gmac_txd2 = port:PA05<5><default><default><default>
gmac_txd1 = port:PA06<5><default><default><default>
gmac_txd0 = port:PA07<5><default><default><default>
gmac_rxclk = port:PA08<5><default><default><default>
gmac_rxerr = port:PA09<5><default><default><default>
gmac_rxdV = port:PA10<5><default><default><default>
gmac_mdc = port:PA11<5><default><default><default>
gmac_mdio = port:PA12<5><default><default><default>
gmac_txen = port:PA13<5><default><default><default>
gmac_txclk = port:PA14<5><default><default><default>
gmac_crs = port:PA15<5><default><default><default>
gmac_col = port:PA16<5><default><default><default>
gmac_reset = port:PA17<1><default><default><default>
Now, I can see the gmac driver is loading, but when I do a ifup/down, I
still get:
> ifdown eth0
> ifup eth0
<6>sunxi_gmac: probed
<6>eth0: PHY ID 00008201 at 1 IRQ 0 (sunxi_gmac-0:01) active
<6>ADDRCONF(NETDEV_UP): eth0: link is not ready
I'm not able to figure out the problem here.
Any help would be appreciated.
Thanks and regards.
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.