public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-boot timeout with KSZ8021 phy
Date: Thu, 11 Jul 2013 21:55:23 +0200	[thread overview]
Message-ID: <201307112155.23286.marex@denx.de> (raw)
In-Reply-To: <CAAAP30E6HNAT2aEk=pvoKjNSMyLnNoF59B8_eJOLcudSk8q0yw@mail.gmail.com>

Dear Alexandre Pereira da Silva,

> Hi,
> 
> I am trying to make my ethernet work with u-boot on a custom IMX28 board.
> 
> This board uses the micrel KSZ8021 phy.
> 
> The network works fine on linux but won't work properly on u-boot.
> 
> Here is the output:
> => dhcp
> BOOTP broadcast 1
> DHCP client bound to address 192.168.1.103
> Using FEC device
> TFTP from server 192.168.1.54; our IP address is 192.168.1.103
> Filename 'uImage'.
> Load address: 0x42000000
> Loading: T T T T
> 
> I am using the apx4devkit board configuration

Seems unmaintained :-(

> as a base for my port,
> but adapted the phy setting to the KSZ8021 needed value. If that phy
> configuration value is wrong, it doesn't even get an IP address from
> DHCP.
> 
> Marek's patch about cache didn't help much in my case.

Try "dcache off" on command line, do you have any luck then ?

Also try copying the network section from M28EVK, as M28EVK uses KSZ8021 PHYs. I 
also noticed the M28EVK resets the PHYs, so maybe you need to handle that ? On 
M28EVK this is handled in board/denx/m28evk/m28evk.c

Moreover, check if your CLKCTRL ENET settings are correct, that's also handled 
in the same function as the PHY reset on M28EVK I think (or at least in the same 
section).

Best regards,
Marek Vasut

  reply	other threads:[~2013-07-11 19:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-11 19:13 [U-Boot] U-boot timeout with KSZ8021 phy Alexandre Pereira da Silva
2013-07-11 19:55 ` Marek Vasut [this message]
2013-07-11 20:13   ` Alexandre Pereira da Silva
2013-07-11 20:36     ` Marek Vasut
2013-07-12  3:53       ` Alexandre Pereira da Silva
2013-07-12  4:06         ` Marek Vasut
2013-07-12  4:37           ` Alexandre Pereira da Silva
2013-07-12  4:40             ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201307112155.23286.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox