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

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



EDIT:

Retried to plug on router @ 100Mbps, It seems to work but I still have the same packet loss as 10Mbps

log:

-------------------------------------------------------------------------------------------------
# ping 192.168.1.255 PING 192.168.1.255 (192.168.1.255): 56 data bytes 64 bytes from 192.168.1.254: icmp_seq=0 ttl=64 time=11.8 ms
64 bytes from 192.168.1.65: icmp_seq=0 ttl=64 time=15.9 ms (DUP!)
64 bytes from 192.168.1.65: icmp_seq=1 ttl=64 time=5.6 ms
64 bytes from 192.168.1.65: icmp_seq=2 ttl=64 time=5.5 ms
64 bytes from 192.168.1.65: icmp_seq=3 ttl=64 time=5.6 ms
64 bytes from 192.168.1.65: icmp_seq=4 ttl=64 time=5.5 ms
64 bytes from 192.168.1.254: icmp_seq=5 ttl=64 time=6.4 ms
64 bytes from 192.168.1.65: icmp_seq=5 ttl=64 time=10.7 ms (DUP!)
64 bytes from 192.168.1.65: icmp_seq=6 ttl=64 time=6.4 ms
64 bytes from 192.168.1.65: icmp_seq=7 ttl=64 time=6.3 ms
64 bytes from 192.168.1.65: icmp_seq=8 ttl=64 time=6.4 ms
64 bytes from 192.168.1.254: icmp_seq=9 ttl=64 time=6.4 ms
wrong data byte #14 should be 0xe but was 0xc
14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b
2c 2d 2c 2d 2c 2d 32 33
       34 35 34 35 0 0 0 0 0 0 0 0 0 0 0 0
64 bytes from 192.168.1.65: icmp_seq=9 ttl=64 time=37.3 ms (DUP!)
64 bytes from 192.168.1.65: icmp_seq=10 ttl=64 time=6.4 ms
64 bytes from 192.168.1.65: icmp_seq=11 ttl=64 time=5.6 ms

--- 192.168.1.255 ping statistics ---
12 packets transmitted, 12 packets received, +3 duplicates, 0% packet loss
round-trip min/avg/max = 5.5/9.4/37.3 ms
-------------------------------------------------------------------------------------------------

192.168.1.65 is the dev-board
192.168.1.254 is the router

Matthieu Simon a écrit :
First try was to plug the Dev board on our Wifi router, but we cannot select speed and duplex on it so 100Mbps ... it's automatical I don't know why when the network adaptater (or router) is in auto-select mode it chooses 100Mbps.

Lance Ware a écrit :
Have you tried using a hub in order to make sure that its just not the cross over cable. I have found that when i have problems with cross over cables especially in host and target network configurations that using a switch or hub fixes most problems. Lance

    ----- Original Message -----
    *From:* Qichen Huang <mailto:huangqichen@xxxxxxxx>
    *To:* microblaze-uclinux@xxxxxxxxxxxxxx
    <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
    *Sent:* Tuesday, May 16, 2006 9:32 AM
    *Subject:* [microblaze-uclinux] Problem with Ethernet: I can't ping

    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...).


    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/


___________________________
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/