Eric BENARD schreef: > Sander Vermin a écrit : >> I did a new build with: >> >> macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 1<<5); >> >> in stead of: >> >> macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00); >> >> But still no PHY detected :-( >> > You need to check your schematic, and the PHY datasheet in order to > know what could be the address of your PHY (set by pull up/down > resistors on several pins of the PHY at reset of the PHY). > > Or you can try a loop on the PHY address and see if it answers at any > address ... > > Eric It works!!
The detection of the PHY works, the base address was 0x01 instead of 0x00. Wen I try to enable RII mode (CONFIG_CMD_MII) I get all kinds of errors about variable not being found: macb.c: In function 'miiphy_read': macb.c:528: error: 'macb' undeclared (first use in this function) macb.c:528: error: (Each undeclared identifier is reported only once macb.c:528: error: for each function it appears in.) macb.c:528: error: 'MACB_EMACB_NCR' undeclared (first use in this function) macb.c:539: error: 'MACB_EMACB_MAN' undeclared (first use in this function) macb.c:542: error: 'MACB_EMACB_NSR' undeclared (first use in this function) macb.c: In function 'miiphy_write': macb.c:566: error: 'macb' undeclared (first use in this function) macb.c:566: error: 'MACB_EMACB_NCR' undeclared (first use in this function) macb.c:578: error: 'MACB_EMACB_MAN' undeclared (first use in this function) macb.c:581: error: 'MACB_EMACB_NSR' undeclared (first use in this function) make[1]: *** [macb.o] Error 1 Looking at the code I see that macb should be a pointer to "struct macb_device *macb" how should this code work? I don't see any functions point to the miiphy_read an write functions. Sander ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users