From: Stelian Pop <stelian@popies.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Uboot (AT91 tree) macb in MII mode
Date: Mon, 14 Apr 2008 11:08:59 +0200 [thread overview]
Message-ID: <1208164139.6399.23.camel@galileo> (raw)
In-Reply-To: <4803115D.5050603@vermin.nl>
Le lundi 14 avril 2008 ? 10:10 +0200, Sander Vermin a ?crit :
> Hi All,
>
> I have been struggling the last week to get the macb Ethernet driver in
> MII mode.
>
> [in short]
> I have communication over the MDIO interface, my activity led blinks but
> no ehternet.
>
> [the long story]
> I have a custom board build out of the schematics of the AT91SAM9260EK
> board. On my boar I did not use the DM9161 but the KS8721chip. On the
> ATMEL board the PHY works in RMII mode, on my board I used MII mode like
> this board from OLIMEX [1].
Do you have a working Linux kernel with a working network interface ?
The Linux and U-Boot macb driver and PIO configuration is very close,
and if you manage to make it work under Linux you'll probably have
little trouble finding out the problem.
> Olimex was kind enough to make Uboot nandflash build working with there
> board, And deliver sources I cant compile, due to an error: Hardware
> float vs software float. But I want a dataflash version because I am
> using a BGA chip with nandflash bug.
I don't see what NAND has to do with ethernet here.
> In my current setup I use the latest git of the AT91 tree with the
> following defines:
> #define CONFIG_MACB 1
> #define CONFIG_MII 1
> #undef CONFIG_RMII
> #define CONFIG_NET_MULTI 1
> #define CONFIG_NET_RETRY_COUNT 5000
> #define CONFIG_RESET_PHY_R 1
>
> With this config I have the MDIO interface working, when I try to ping
> or TFTP I only get time outs / host not alive errors.
Does the board send anything at all ? Try sniffing the net wire (using
tcpdump for example).
Also, what cross chain are you using ? I have seen strange network
errors when using recent compilers which after investigation were -Os
optimisation errors. (using the latest CodeSourcery toolchain for
example).
> Is there someone out there how has the MII mode working?
If I'm correct, Olimex has. So closer inspection of their code may
reveal some information.
Stelian.
--
Stelian Pop <stelian@popies.net>
next prev parent reply other threads:[~2008-04-14 9:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-14 8:10 [U-Boot-Users] Uboot (AT91 tree) macb in MII mode Sander Vermin
2008-04-14 9:08 ` Stelian Pop [this message]
2008-04-14 9:19 ` Sander Vermin
2008-04-14 9:41 ` Stelian Pop
2008-04-14 9:52 ` Sander Vermin
2008-04-14 11:28 ` Stelian Pop
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=1208164139.6399.23.camel@galileo \
--to=stelian@popies.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.