[U-Boot] Uboot PING with MII AT91SAM9g20EK

Abhishek Ashtekar Abhishek.Ashtekar at ubitronix.com
Wed Dec 22 11:30:02 CET 2010


Hello,



Am a new member and this is my first post.



With Version: Uboot -2010.09



I am currently using the AT91SAM9G20EK board and want to use networking interface for tftp, tftpboot etc with the MII Interface.

As the first test, I tried 'ping' command to connected PC and also to the board itself.

PING fails. So I put some extra printf's, to check the behaviour

Also read the EMAC registers ..... seem to be OK.



I have enabled in /include/configs/at91sam9260ek.h



#define CONFIG_MII       1

#define CONFIG_CMD_MII



and also #undef CONFIG_RMII



Is there some patch that needs to be applied or more modifications / additions ?



Thanks a lot.



Regards,

Abhi



PS: Pasted the Output Log

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



U-Boot>

DRAM:  64 MiB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:

        in eth_initialize function

        calling miiphy_init



        in board_eth_init function



        in macb_eth_initialize function



         in eth_register function



        In the miiphy_register function



        miiphy_register: the unique device name is 'macb0'

miiphy_register: allocated memory for 'macb0'

miiphy_register: added 'macb0', read=0x23f20e04, write=0x23f20dc8

macb0

Hit any key to stop autoboot:  0



U-Boot> ping 10.1.21.28



macb0: Autonegotiation complete

AT91PHY read REG(1)=786d

AT91PHY read REG(4)=1e1

AT91PHY read REG(5)=45e1

macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)



        Reading EMAC Registers

EMAC Network Control Register: 0x0000000c

EMAC Network Configuration Register: 0x00000c03

EMAC Network Status Register: 0x00000006

EMAC Transmit Status Register: 0x00000000

EMAC Receive Queue Pointer Register: 0x23e813d8

EMAC Transmit Queue Pointer Register: 0x23e814e0

EMAC Receive Status Register: 0x00000000

EMAC Interrupt Enable Register: 0x00000000

EMAC Phy Maintenance Register: 0x601645e1

EMAC Pause Time Register: 0x00000000

EMAC Pause Frames Received Register: 0x00000000

EMAC Specific Addr1 Bottom Register: 0xf80d8302

EMAC Specific Addr1 Top Register: 0x000071aa

EMAC Specific Addr2 Bottom Register: 0x00000000

EMAC Specific Addr2 Top Register: 0x00000000

EMAC Specific Addr3 Bottom Register: 0x00000000

EMAC Specific Addr3 Top Register: 0x00000000

EMAC Specific Addr4 Bottom Register: 0x00000000

EMAC Specific Addr4 Top Register: 0x00000000

EMAC Type ID Checking Register : 0x00000000

EMAC User Input/Output Register : 0x00000002

Using macb0 device



        Calling PingSend



sending ARP for 1c15010a



        ARP broadcast 1



        ARP broadcast 2



            Ping TimeOut Occured



        Error: NETLOOP_FAIL case occured



ping failed; host 10.1.21.28 is not alive



U-Boot> mii info

AT91PHY read REG(3)=b8a0

PHY_PHYIDR2 @ 0x0 = 0xb8a0

AT91PHY read REG(2)=181

PHY_PHYIDR[1,2] @ 0x0 = 0x0181b8a0

AT91PHY read REG(0)=3100

AT91PHY read REG(5)=45e1

AT91PHY read REG(0)=3100

AT91PHY read REG(5)=45e1

PHY 0x00: OUI = 0x606E, Model = 0x0A, Rev = 0x00, 100baseT, FDX

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

PHY ID register 2 read failed

U-Boot>



--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------















More information about the U-Boot mailing list