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


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


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