Activate Ethernet port for the LIME2 running Android

Started by PW, March 15, 2016, 01:01:05 AM

Previous topic - Next topic

PW

Running Android on a LIME2 I seem to have eth0 up but I can't ping any address.

I have recompiled the kernel to include Ethernet support by updating the .config with the following additions:
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_SUNXI=y
CONFIG_SUNXI_EMAC=y
CONFIG_PHYLIB=y

With this build doing an "adb shell net cfg" give me the following:
ip6tnl0  DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
tunl0    DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
gre0     DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
eth0     UP                               192.168.8.182/24  0x00001043 d2:2f:31:de:6d:a6
sit0     DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
lo       UP                                   127.0.0.1/8   0x00000049 00:00:00:00:00:00


However, I am not able ping the LIME2 and it is not able to see the internet:
>adb shell ping 8.8.8.8
PING 8.8.8.8 ( 8.8.8.8 ) 56(84) bytes of data.
^[[AFrom 192.168.8.182 icmp_seq=1 Destination Host Unreachable
From 192.168.8.182 icmp_seq=2 Destination Host Unreachable
From 192.168.8.182 icmp_seq=3 Destination Host Unreachable
From 192.168.8.182 icmp_seq=4 Destination Host Unreachable


Am I missing some other configuration? I don't see anything in the fex file that seems to be related.

Thanks in advance,
PW

PW

Update (got it working sort of):

Along with my .config changes I mentioned before I changed the CONFIG_SUNXI_EMAC=y to CONFIG_SUNXI_GMAC=y and then I cloned the [emac_para] section in the sys_config.fex file to look like whats below (note the mux value changes) which seems to work, however, now my mac address of the device is 00:00:00:00:00:00.

I am now able to ping the LIME2 and I can see the internet from it, but now I need to solve the mac address issue.

[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>