[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] NuHo S3_1500) Ethernet working at 10 Mbps w/ 50 MHz system clock. Can surf too.
Glad it worked out. Sounds like it applied about as expected.
Definitely consider my "patch" a "proof-of-concept" and not "the real
thing."
It'd be easy enough to add a config option such as
CONFIG_ENET_FORCE10MBPS. Or even a command-line utility that would
invoke a (modified?) Ethernet driver and force a re-negotiation. Or
maybe there already is such a utility that I'm just not aware of.
Steve
--- David Banas <dbanas@nuhorizons.com> wrote:
> Steve,
>
> That worked! Thanks for the patch.
>
> FYI to all monitoring this thread:
>
> 1) Steve's patch didn't apply "nicely" to the current version of
> "adapter.c"; I had to apply it by hand.
>
> 2) For my board (NuHo Spartan3-1500), I only used the first and last
> of the
> 4 hunks. More specifically, I did NOT have to force the PHY address;
> it was
> correctly detected as "0x01".
>
> 3) The PHY on this board doesn't seem to work with a "cross-over"
> cable
> connected between itself and a PC, despite its claim of being
> polarity-agnostic. I've got a "standard" Ethernet cable connected
> between it
> and my PC now, and the link seems to be robust.
>
> 4) "Surfing" is working!
>
> David Banas
> Field Applications Engineer
> Nu Horizons Electronics Corp.
> 2070 Ringwood Avenue
> San Jose, CA 95131
> (408)434-0800 - office
> (415)846-5837 - cell
> http://www.nuhorizons.com
>
> > -----Original Message-----
> > From: owner-microblaze-uclinux@itee.uq.edu.au
> [mailto:owner-microblaze-
> > uclinux@itee.uq.edu.au] On Behalf Of Steve Sanders
> > Sent: Thursday, March 31, 2005 8:14 PM
> > To: microblaze-uclinux@itee.uq.edu.au
> > Subject: RE: [microblaze-uclinux] Ethernet update for David Banas'
> > NuHorizons board project
> >
> > OK, the attachment _is_ actually attached this time....
> >
> > --- Steve Sanders <akasanders@yahoo.com> wrote:
> >
> > > Sure, see attached.
> > >
> > > It's truly hack, though, so standard disclaimers apply.
> > >
> > > You'll likely need to have a datasheet w/Ethernet PHY register
> > > descriptions handy, but they are standardized registers. And I
> do
> > > use
> > > the Linux-approved #defines to identify the registers to
> read/write,
> > > so
> > > it shouldn't be too bad.
> > >
> > > MII_ADVERTISE: set bits 5, 6; clear 7, 8, 9.
> > > MII_BMSR: set 3, 12; clear 13, 14, 15
> > > MII_BMCR: set 9, 12
> > >
> > > Bascially tells the PHY that it is only capable of 10Mbps and
> then
> > > forces a re-negotation to occur. I should probably wait for the
> > > negotation to complete before proceeding, but ... that would be a
> > > very
> > > un-hacky thing to do.
> > >
> > > Steve
> > >
> > > --- David Banas <dbanas@nuhorizons.com> wrote:
> > >
> > > > Steve,
> > > >
> > > > Could you post your hack, please?
> > > >
> > > > Thanks,
> > > >
> > > > David Banas
> > > > Field Applications Engineer
> > > > Nu Horizons Electronics Corp.
> > > > 2070 Ringwood Avenue
> > > > San Jose, CA 95131
> > > > (408)434-0800 - office
> > > > (415)846-5837 - cell
> > > > http://www.nuhorizons.com
> > > >
> > > > > -----Original Message-----
> > > > > From: owner-microblaze-uclinux@itee.uq.edu.au
> > > > [mailto:owner-microblaze-
> > > > > uclinux@itee.uq.edu.au] On Behalf Of Steve Sanders
> > > > > Sent: Thursday, March 24, 2005 9:25 AM
> > > > > To: microblaze-uclinux@itee.uq.edu.au
> > > > > Subject: Re: [microblaze-uclinux] Ethernet update for David
> > > Banas'
> > > > > NuHorizons board project
> > > > >
> > > > > FYI - I'm working on a board that's using a 44MHz system
> clock
> > > and
> > > > > Ethernet is working at 10Mbps. To get it working ... I
> hacked up
> > > > the
> > > > > Ethernet driver to force 10Mbps-only mode and then triggered
> a
> > > > > re-negotiation with its link partner. Worked OK after that.
> > > > >
> > > > > Also had some problems with it auto-detecting the PHY address
> > > > properly.
> > > > > Sometimes would detect the PHY at 0x1, 0x2, or 0x3.
> Hard-coded
> > > > the
> > > > > address with the appropriate value for my board (0x3)
> > > > >
> > > > > Steve
> > > > >
> >
> >
>
________________________________________________________________________
> > This email has been scanned for all viruses by the MessageLabs
> Email
> > Security System. For more information on a proactive email security
> > service working around the clock, around the globe, visit
> > http://www.messagelabs.com
> >
>
________________________________________________________________________
>
>
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page :
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/