[U-Boot-Users] Query Regarding Ethernet LoopBack Test for EP8260 Board

Vikrant_Basotra Vikrant_Basotra at Satyam.com
Wed Feb 2 19:27:22 CET 2005


Dear all,
We are customizing U-boot for the embedded planet ep8260 reference board.
I am working on customizing Ethernet in Uboot.
The ep8260 reference board has the LXT971 Fast Ethernet chip.
After customizing the code for Ethernet i tried doing an external Loop back
test.
Changes i made in the function
u-boot-1.1.1/cpu/mpc8260/ether_fcc.c/eth_loopback_test(void)->

1.I changed the FCC to FCC3:
  #define FCC_START_LOOP 2
  #define FCC_END_LOOP 2
  
2.I added a few extra printf for debugging purpose.

After connecting my board to the HyperTerminal and giving the command "elbt"
 i see the following messages:
****************************************************************************
***                         
Net:   FCC3 ETHERNET                    
BEDBUG:ready            
=> elbt       
FCC Ethernet External loop back test                                   
Initialize FCC channels: 2inside transmit: values are aa         inside
transmit

: Value are bb   inside transmit: value are cc   inside transmit: value are
dd

done    
Starting test... (Ctrl-C to Finish)                                   
ecp->state=Runningecp->state=closingHELLO EVERYONE..Just before Closed
Inside Clo

sedTest Finished in 2364ms (plus 1000ms close wait period)!


received da          
received data is   ff                     
received data is   ff                     
received data is   ff                     
Channel 2: 4 rcvd (1 pps, 4 rxerrs), 4 sent (1 pps, 0 txerrs)


        First 4 rx errs: 0c80 0c80 0c80 0c80

Receive Error Counts:                     
                                  Channel 0  Channel 1  Channel 2

Not Last in Frame                  32701792          0          0

Not First in Frame                 33180376         25          0

Address Miss                             25          0          0

Broadcast Address                  32702316   32965304

Multicast Address                         0   32965328          0

Frame Length Violation                   11          1          0

Non-Octet Alignment                       0          0          0

Short Frame                               0        113          0

CRC Error                                 1    7103092          0

Overrun                                   0          0          0

Collision                                 0          0          0

Bad Src Address                           0          0

Bad Frame Type                            0          0          0

Bad Frame Length                          0          0          0

Data Compare Errors                33308296          0          0


Transmit Error Counts:                      
                                  Channel 0  Channel 1  Channel 2

Defer Indication                   32701792          0          0

Heartbeat                          33180376         25          0

Late Collision                           25          0          0

Late Collision                           25          0          0

Retry Count                               0   32965328          0
Underrun                                 11          1          0
Carrier Sense Lost                        0          0          0

RMON(-like) Counters:
                                  Channel 0  Channel 1  Channel 2
CRC Errors                         33171496          0          0
Alignment Errors                          0          0          0
Discarded Frames                   32702316          0          0
Octets                                    0          2       4096
Collisions                                2          0          0
Broadcast Frames                   32702064          0          4
Multicast Frames                   32702032          0          0
Undersize Frames                   32965064          0          0
Fragments                          32702316          2          0
Oversize Frames                    33321116          0          0
Jabbers                                   0         25          0
64 Octet Frames                    32702016          0          0
65-127 Octet Frames                33191720          0          0
128-255 Octet Frames                      0          0          0
256-511 Octet Frames                      2          0          0
512-1023 Octet Frames              32702064          2          0
1024-1518 Octet Frames             32702032         25          4 
=>
****************************************************************************
*********************
The value I have given for patbytes is : patbytes[ELBT_NTXBD] = {0xaa, 0xbb,
0xcc, 0xdd };
But when i see the received bytes on the HyperTerminal by giving a printf
for the received bytes 
after the printf which says "Test Finished" I get the following result in
the received data:
 
received da          
received data is   ff                     
received data is   ff                     
received data is   ff                     
Channel 2: 4 rcvd (1 pps, 4 rxerrs), 4 sent (1 pps, 0 txerrs) 

Can anyone please tell me how i can remove the 4 rxerrs and get the same
data that i have transmitted.

Thanks & Regards,
Vikrant Basotra.  
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************




More information about the U-Boot mailing list