[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Problem with Ethernet: I can't ping



Hello,

for the boot message, have a look here : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2006/05/msg00044.html

But I have the same problem as you with Ethernet on Spartan3e StarterKit.

I can ping my computer (which is plugged to the Eva-Board with a crossover cable) only if I set my network adaptator (on PC) to work on 10baseT HalfDuplex network. If I let my network adaptater by default, the link is at 100Mbps, which can't be possible since the OPB_Clk frequency is 50MHz on this Eva-Board (in the documentation of opb_ethernet it said that to have 100Mbps, OPB_Clk must be at least 65MHz).

Ok, I can ping using a 10Mbps link, but I still have a lot of packet loss (around 80%-90%). I launched a network analyzer on my computer and I can see that all sent packets (ARP and ICMP ones) from Microblaze are received et answered but microblaze doesn't receive the reply, or just sometimes.

Any suggestions ?

Is there a way to force uClinux to work with a 10baseT network ?

---------------------------------------------------------------------------------------------------------
# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=128 time=3.9 ms
64 bytes from 192.168.0.1: icmp_seq=8 ttl=128 time=1014.9 ms
64 bytes from 192.168.0.1: icmp_seq=9 ttl=128 time=18.9 ms

--- 192.168.0.1 ping statistics ---
15 packets transmitted, 3 packets received, 80% packet loss
round-trip min/avg/max = 3.9/345.9/1014.9 ms
---------------------------------------------------------------------------------------------------------

Qichen Huang a écrit :
Hi everyone,

I've followed the instructions from John Williams and Jason Wu, and
finally got uClinux-kernel booted on my Spartan-3E-Starter-Kit
( http://www.xilinx.com/xlnx/xebiz/designResources/ip_product_details.j... <http://www.xilinx.com/xlnx/xebiz/designResources/ip_product_details.jsp?key=HW-SPAR3E-SK-US>).

However, there's no boot message on the terminal, I got just a login
prompt when the kernel started:
uclinux-auto login:

Anyway, the kernel still works.
Then I tried to test the networking and followed the instructions.

There's no problem to ping itself. But I can't ping my PC, which is
connected to the Eva-Board using crossover cable. There's even no ARP
packets received.
It seems that the RX- and TX-pins are not connected to the FPGA. Did I
miss something?

Any help is appreciated.

Qichen

PS:
The auto-config.in <http://auto-config.in> is generated by EDK Libgen (8.1 sp2) and directly
copied to
uClinux-dist/linux-2.4.x/arch/microblaze/platform/uclinux-auto/

The eth0 settings are as follows:
# ifconfig eth0
eth0     Link encap:Ethernet  HWaddr 00:00:C0:A3:E5:44
inet addr:192.168.1.4 <http://192.168.1.4> Bcast:192.168.1.255 <http://192.168.1.255>
Mask: 255.255.255.0 <http://255.255.255.0>
           UP BROADCAST RUNNING MTU:1500  Metric:1
           RX packeckts:0 errors:0 dropped:0 overruns:0 frame:0
           TX packeckts:54 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
                         Interrupt:2

The section of opb_ethernet in the system.mhs is as follows:

BEGIN opb_ethernet
 PARAMETER INSTANCE = Ethernet_MAC
 PARAMETER HW_VER = 1.04.a
 PARAMETER C_DMA_PRESENT = 1
 PARAMETER C_IPIF_RDFIFO_DEPTH = 32768
 PARAMETER C_IPIF_WRFIFO_DEPTH = 32768
 PARAMETER C_OPB_CLK_PERIOD_PS = 20000
 PARAMETER C_BASEADDR = 0x40c00000
 PARAMETER C_HIGHADDR = 0x40c0ffff
 BUS_INTERFACE SOPB = mb_opb
 PORT OPB_Clk = sys_clk_s
 PORT PHY_tx_clk = fpga_0_Ethernet_MAC_PHY_tx_clk
 PORT PHY_rx_clk = fpga_0_Ethernet_MAC_PHY_rx_clk
 PORT PHY_crs = fpga_0_Ethernet_MAC_PHY_crs
 PORT PHY_dv = fpga_0_Ethernet_MAC_PHY_dv
 PORT PHY_rx_data = fpga_0_Ethernet_MAC_PHY_rx_data
 PORT PHY_col = fpga_0_Ethernet_MAC_PHY_col
 PORT PHY_rx_er = fpga_0_Ethernet_MAC_PHY_rx_er
 PORT PHY_tx_en = fpga_0_Ethernet_MAC_PHY_tx_en
 PORT PHY_tx_data = fpga_0_Ethernet_MAC_PHY_tx_data
 PORT PHY_Mii_clk = fpga_0_Ethernet_MAC_PHY_Mii_clk
 PORT PHY_Mii_data = fpga_0_Ethernet_MAC_PHY_Mii_data
 PORT IP2INTC_Irpt = Ethernet_MAC_IP2INTC_Irpt
END
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/