FAQ: [#6343] dsa test fail as it fails to ping eth2 port(2010)

Document created by Aaronwu Employee on Sep 11, 2013
Version 1Show Document
  • View in full screen mode

[#6343] dsa test fail as it fails to ping eth2 port

Submitted By: Vivi Li

Open Date

2010-11-17 05:55:37     Close Date

2010-11-26 01:44:44

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

2010R1

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF518     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

2010r1-rc4

App binary format:

N/A     

Summary: dsa test fail as it fails to ping eth2 port

Details:

 

DSA test fail in bf518-ezbrd. It fails to ping eth2 port.

 

--

Linux version 2.6.34.7-ADI-2010R1-svn9486 (test@uboot34-bf537stamp) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #10 Mon Nov 15 17:27:00

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0010b5e8

  rodata    = 0x0010b5e8-0x001607bc

  bss       = 0x00161000-0x001715c0

  data      = 0x001715c0-0x00182000

    stack   = 0x00180000-0x00182000

  init      = 0x00182000-0x00575000

  available = 0x00575000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Blackfin support (C) 2004-2010 Analog Devices, Inc.

Compiled for ADSP-BF518 Rev 0.0

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 80 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16002

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 58356k/65536k RAM, (4044k init code, 1065k kernel code, 475k data, 1024k dma, 572k reserved)

Hierarchical RCU implementation.

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

bfin-rtc: invalid date; resetting

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 794.62 BogoMIPS (lpj=1589248)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 32 KB (26 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc03400, dma channel@5

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

msgmni has been set to 113

io scheduler noop registered (default)

bfin-otp: initialized

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

Distributed Switch Architecture driver version 0.1

eth0[0]: detected a KSZ8893M switch

dsa slave smi: probed

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:00:01 UTC (1)

dma_alloc_init: dma_page @ 0x02585000 - 256 pages at 0x03f00000

IP-Config: Gateway not on directly connected network.

Freeing unused kernel memory: 4044k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.16.2 (2010-11-15 17:08:32 CST) hush - the humble shell

 

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr EE:D2:CB:87:95:95

          inet addr:10.100.4.50  Bcast:10.100.4.255  Mask:255.255.255.0

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:3 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:192 (192.0 B)  TX bytes:0 (0.0 B)

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

root:/> ifconfig eth0 0.0.0.0 up

root:/> ifconfig eth1 192.168.1.2 up

root:/> ifconfig eth2 10.100.4.50 up

root:/> eth2: link up, 10 Mb/s, full duplex

 

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr EE:D2:CB:87:95:95

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:3 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:192 (192.0 B)  TX bytes:0 (0.0 B)

 

eth1      Link encap:Ethernet  HWaddr EE:D2:CB:87:95:95

          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

eth2      Link encap:Ethernet  HWaddr EE:D2:CB:87:95:95

          inet addr:10.100.4.50  Bcast:10.255.255.255  Mask:255.0.0.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:3 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:138 (138.0 B)  TX bytes:0 (0.0 B)

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

root:/> route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.1.0     *               255.255.255.0   U     0      0        0 eth1

10.0.0.0        *               255.0.0.0       U     0      0        0 eth2

root:/>

--

 

ping from host PC:

--

ping -c 15 10.100.4.50

PING 10.100.4.50 (10.100.4.50) 56(84) bytes of data.

From 10.100.4.174: icmp_seq=1 Destination Host Unreachable

From 10.100.4.174 icmp_seq=1 Destination Host Unreachable

From 10.100.4.174 icmp_seq=2 Destination Host Unreachable

From 10.100.4.174 icmp_seq=3 Destination Host Unreachable

From 10.100.4.174 icmp_seq=5 Destination Host Unreachable

From 10.100.4.174 icmp_seq=6 Destination Host Unreachable

From 10.100.4.174 icmp_seq=7 Destination Host Unreachable

From 10.100.4.174 icmp_seq=9 Destination Host Unreachable

From 10.100.4.174 icmp_seq=10 Destination Host Unreachable

From 10.100.4.174 icmp_seq=11 Destination Host Unreachable

From 10.100.4.174 icmp_seq=13 Destination Host Unreachable

From 10.100.4.174 icmp_seq=14 Destination Host Unreachable

From 10.100.4.174 icmp_seq=15 Destination Host Unreachable

 

--- 10.100.4.50 ping statistics ---

15 packets transmitted, 0 received, +13 errors, 100% packet loss, time 14024ms

, pipe 3

--

 

Follow-ups

 

--- Mike Frysinger                                           2010-11-17 05:59:44

wonder if this is because i havent added the VLAN resources to the bf518 boards

file yet and the lack of VLAN filtering broke things

 

--- Sonic Zhang                                              2010-11-23 05:00:36

Fixed.

 

On bf518-ezbrd with DSA Ethernet switch enabled, on chip MAC is

connecting to phy at address 3. If allowing the netdevice framework to

probe both 3 phys of the switch when registering MAC phy, phy at address

1 is checked for link active status other than phy at address 3. If

connecting a cable to port 2 and leave port 1 open, link status in phy

2 and 3 are online, while that in phy 1 is offline. So, the phy layer

sets wrong offline status to net device on port 3. In this case, no data

can be transfered via ethernet port 2.

 

--- Vivi Li                                                  2010-11-26 01:44:44

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linux.dsa    application/octet-stream    33782    Vivi Li

config.config.dsa    application/octet-stream    48418    Vivi Li

Outcomes