We are running android-6(marshmallow) on a custom board based on iMX6dl-sabresd. The dhcpcd run when the interface comes up on boot, and acquires a lease if dhcp server is present.
If it fails to get a dhcp address, the dhcpcd is being killed by init after sometime. It never runs again unless the ethernet cable is replugged(ifup event)
If we manually start the dhcpcd by running 'dhcpcd eth0', it acquires an ip address, but it fails to resolve DNS requests and also the acquired ip address is not reflected in android.
How can we configure the android to request for a lease, even if dhcp server comes up at a later stage ?
Thank you for writing.
It looks like, that you are not setting a MAC address on the U-boot image. You can set a fake MAC address through ethaddr environment if the MAC address is not fused.
U-Boot > setenv ethaddr 00:01:02:03:04:05
U-Boot > save
Furthermore, If you want, you can use our android image for the sabresd. With this image is for sure that the Ethernet will work.