This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR setting seem's to be not needed


I think that what he means is the PHY address in the MII. It has
nothing to do with the IP Address. Micrel's PHY can be located in an
address between 1..7 as the documentation says, but usually the
address 0, when using the MII interface in the EMAC, is a broadcast to
all devices connected to the MII. The MII code should be in the source
file of the ethernet driver you are using. If your board has only one
PHY you can use the 0. But if you have a prototype where you have
several ones, you should start in address 1 polling which device id
matches the one you are looking for.

Cheers

On Thu, Oct 23, w2008 at 3:38 PM, Robert Brusa <bob.brusa@gmail.com> wrote:
> On Thu, 23 Oct 2008 03:53:58 +0200, Oliver Munz @ SNR <oli@snr.ch> wrote:
>
>> In the AT91-Ethernet-Driver is the parameter
>> CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR. It should hold the MDC/MDIO-addres of the
>> Ethernet-PHY. But no matter wich value i write, the lwIP sees my PHY every
>> time. Furtermore the lwIP says, he find my PHY on the addr 0, while the
>> datasheet of the PHY say's one can config the address between 1..7.
>>
>> Now my quistions:
>> 1. Is addr 0 a kind of broadcast and works with any PHY no matter how its
>> configured?
>> 2. Is it wrong, that if i set CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR to 7, the
>> lwIP-initialisation says look at addr 0 (see printout)?
>>
>> AT91_ETH: Initialising @ fffdc000
>> AT91_ETH: Installing Interrupts on IRQ 16
>> AT91_ETH - Warning! ESA unknown
>> AT91_ETH: 12:34:56:78:9a:bc
>> PHY: Micrel KSZ8041 at addr 0
>> ksz8041_stat(): phy_addr: 0
>> ... waiting for auto-negotiation
>>
> Hi Oli
> 0 is indeed special. (I assume you mean a hostid of zero as e. g. in
> 192.168.1.0) I cite from Comer (2000,1995, 4th ed.)
> "...an IP-adress with hostid portion equal to 0 is used to refere to the
> network itself."
>
> and on the next page:
> "...any address with the hostid consisting of all 1s is used for directed
> broadcast" (to the cor. network)
>
> When debugging network traffic get wireshark from http://www.wireshark.org
>
> Regards Roe
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]