I can't get ethernet to work in u-boot on my (custom) board. I get link, and the cpsw driver appears to go thru the motion of sending packets, but nothing happend behind that, the TX_EN pin on the PHY stays low, and there's zero debugging ability in that driver...
I already notices that one of the 'magic' value to setup the ethernet is to write 0x4 in RMII_REFCLK_SRC, corresponding to the audio PLL *AND* the SATA 50Mhz clock (that I don't have on my board) -- but disabling the SATA clock source didn't help...
I don't use a 'second stage' u-boot, I rolled ethernet (and removes a lot of bit of) into the first stage...
One thing I notices is that the TI8168 uses a totally different board support bootloader, and in particular, uses the (much simpler) davinci_emac driver for ethernet, and NOT the cpsw one... The DM814X datasheet EMAC chapter is /very/ similar to what that driver is trying to do..
Does anyone has an idea on how to debug the cpsw driver, OR, replace it with the davinci one?
I have to say, the more I dig into that stuff, the more amazed I am at the status of the code for these parts.