FAQ: [#6914] When DSA is enabled, can't push file from host to bf518f-ezbrd through ftp/rcp(2011)

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

[#6914] When DSA is enabled, can't push file from host to bf518f-ezbrd through ftp/rcp

Submitted By: Vivi Li

Open Date

2011-11-30 04:08:38     Close Date

2011-12-09 04:25:18

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

2011R1

Found In Release:

2011R1     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.:

gcc4.3-2011R1-RC2

App binary format:

N/A     

Summary: When DSA is enabled, can't push file from host to bf518f-ezbrd through ftp/rcp

Details:

 

When DSA is enabled, can't push file from host to bf518f-ezbrd through ftp/rcp.

 

--

Linux version 3.0.8-ADI-2011R1-svn10231 (test@linux73-bf537-wt-adxl) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #81 Tue Nov 29 18:13:03 CST 2011

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-0x0012d260

  rodata    = 0x0012d260-0x0018b084

  bss       = 0x0018c000-0x0019bc74

  data      = 0x0019bc74-0x001ae000

    stack   = 0x001ac000-0x001ae000

  init      = 0x001ae000-0x0073a000

  available = 0x0073a000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 1

Reset caused by Software reset

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: 156 MHz core clock and 78 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 ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf518f-ezbrd:eth0:off

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: 56504k/65536k RAM, (5680k init code, 1200k kernel code, 516k data, 1024k dma, 612k reserved)

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 309.50 BogoMIPS (lpj=619008)

pid_max: default: 32768 minimum: 301

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 (25 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@ffc00500, dma channel@7

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@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

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 110

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

bfin-otp: initialized

brd: module loaded

bfin_mii_bus: probed

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

bfin_mac bfin_mac.0: eth0: 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)

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

TCP cubic registered

NET: Registered protocol family 17

Distributed Switch Architecture driver version 0.1

eth0[0]: detected a KSZ8893M switch

mmc0: host does not support reading read-only switch. assuming write-enable.

dsa slave smi: probed

mmc0: new SD card at address e624

rtc-bfin rtc-bfin: setting system clock to 2030-08-22 06:54:45 UTC (1913612085)

mmcblk0: mmc0:e624 SD01G 968 MiB

mmcblk0: p1

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf518f-ezbrd, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 5680k 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.18.4 (2011-11-29 17:46:03 CST) hush - the humble shell

 

root:/> version

kernel:    Linux release 3.0.8-ADI-2011R1-svn10231, build #81 Tue Nov 29 18:13:03 CST 2011

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC2)

user-dist: release svn-10530, build #27 Tue Nov 29 18:12:30 CST 2011

root:/> successful boot attempt

************** STEP 3: Start testing.

 

spawn /bin/sh

su

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/dsa> su

Password:

linux-vivi:/home/test/work/cruise/checkouts/uclinux-dist/testsuites/dsa # ifconfig eth0 0.0.0.0 up

root:/>

root:/>

Plug wire to eth1 on target

 

Trying 100/FULL

ifconfig eth1 10.100.4.50 up

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

PHY: 0:03 - Link is Up - 100/Full

 

root:/> Unplug wire connected to eth2

 

ifconfig eth2 192.168.1.2 down

root:/>

linux-vivi:/home/test/work/cruise/checkouts/uclinux-dist/testsuites/dsa # ping -c 10 10.100.4.50

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

64 bytes from 10.100.4.50: icmp_seq=1 ttl=64 time=2.86 ms

64 bytes from 10.100.4.50: icmp_seq=2 ttl=64 time=0.345 ms

64 bytes from 10.100.4.50: icmp_seq=3 ttl=64 time=0.310 ms

64 bytes from 10.100.4.50: icmp_seq=4 ttl=64 time=0.334 ms

64 bytes from 10.100.4.50: icmp_seq=5 ttl=64 time=0.313 ms

64 bytes from 10.100.4.50: icmp_seq=6 ttl=64 time=0.260 ms

64 bytes from 10.100.4.50: icmp_seq=7 ttl=64 time=0.301 ms

64 bytes from 10.100.4.50: icmp_seq=8 ttl=64 time=0.317 ms

64 bytes from 10.100.4.50: icmp_seq=9 ttl=64 time=0.302 ms

64 bytes from 10.100.4.50: icmp_seq=10 ttl=64 time=0.317 ms

 

--- 10.100.4.50 ping statistics ---

10 packets transmitted, 10 received, 0% packet loss, time 9005ms

rtt min/avg/max/mdev = 0.260/0.566/2.863/0.766 ms

linux-vivi:/home/test/work/cruise/checkouts/uclinux-dist/testsuites/dsa #

Case 2 ...PASS

 

Case 2 ...PASS

ping -c 10 192.168.1.2

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

From 192.168.1.1: icmp_seq=1 Destination Host Unreachable

From 192.168.1.1 icmp_seq=1 Destination Host Unreachable

From 192.168.1.1 icmp_seq=2 Destination Host Unreachable

From 192.168.1.1 icmp_seq=3 Destination Host Unreachable

From 192.168.1.1 icmp_seq=5 Destination Host Unreachable

From 192.168.1.1 icmp_seq=6 Destination Host Unreachable

From 192.168.1.1 icmp_seq=7 Destination Host Unreachable

From 192.168.1.1 icmp_seq=8 Destination Host Unreachable

From 192.168.1.1 icmp_seq=9 Destination Host Unreachable

From 192.168.1.1 icmp_seq=10 Destination Host Unreachable

 

--- 192.168.1.2 ping statistics ---

10 packets transmitted, 0 received, +10 errors, 100% packet loss, time 9022ms

, pipe 3

linux-vivi:/home/test/work/cruise/checkouts/uclinux-dist/testsuites/dsa #

Case 3 ...PASS

 

Case 3 ...PASS

traceroute 10.100.4.50

traceroute to 10.100.4.50 (10.100.4.50), 30 hops max, 40 byte packets

1  10.100.4.50 (10.100.4.50)  0.411 ms   0.262 ms   0.298 ms

linux-vivi:/home/test/work/cruise/checkouts/uclinux-dist/testsuites/dsa #

Case 4 ...PASS

 

Case 4 ...PASS

traceroute 192.168.1.2

traceroute to 192.168.1.2 (192.168.1.2), 30 hops max, 40 byte packets

1  * * *

2  * * *

3  * * *

4  * * *

5  * * *

6  jmarana-d01.ad.analog.com (192.168.1.1)(H!)  2883.980 ms (H!)  2875.987 ms (H!)  2867.992 ms

linux-vivi:/home/test/work/cruise/checkouts/uclinux-dist/testsuites/dsa #

Case 5 ...PASS

 

Case 5 ...PASS

cd /home/test/work/cruise/checkouts/uclinux-dist/testsu ites/stress

linux-vivi:/home/test/work/cruise/checkouts/uclinux-dist/testsuites/stress # ftp 10.100.4.50

Connected to 10.100.4.50.

220 localhost.localdomain FTP server (GNU inetutils 1.4.1) ready.

Name (10.100.4.50:root): root

331 Password required for root.

Password:

230-                            _____________________________________

230-         a8888b.           / Welcome to the uClinux distribution \

230-        d888888b.         /       _     _                         \

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

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

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

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

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

230-      dP   .    Y8b.       \   For embedded processors including   |

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

230-    d8"         'Y88b        \___________________________________/

230-   :8P    '      :888

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

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

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

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

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

230-

230- Have a lot of fun...

230 User root logged in.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> put ftp_load

local: ftp_load remote: ftp_load

500 'EPSV': command not understood.

227 Entering Passive Mode (10,100,4,50,237,247)

150 Opening BINARY mode data connection for 'ftp_load'.

100% |**************************************************************************************| 10978     145.40 MB/s    00:00 ETA

 

421 Service not available, remote server timed out. Connection closed

10978 bytes sent in 01:00 (0.17 KB/s)

ftp>

--

 

rcp has similar problem with ftp. I can get file from target board to host PC, but can't push file from host to target.

--

test@linux-vivi:dsa> rcp root@10.100.4.50:/bin/busybox .

test@linux-vivi:dsa> ls

a  build_dsa_kernel.exp  busybox  dsa_test.exp  dsa_test_log

test@linux-vivi:dsa>

test@linux-vivi:dsa> rcp dsa_test_log root@10.100.4.50:

(it hangs here and we need to use ctrl+C to terminate)

^C

test@linux-vivi:dsa>

--

 

Follow-ups

 

--- steven miao                                              2011-12-07 01:43:29

network performance drop a lot since 2.6.34

 

linux-2.6.34.4

[  6] local 10.99.24.101 port 5001 connected with 10.99.24.68 port 40478

[ ID] Interval       Transfer     Bandwidth

[  6]  0.0-10.0 sec  80.8 MBytes  67.7 Mbits/sec

 

linux-2.6.35.7

Server listening on TCP port 5001

TCP window size: 85.3 KByte (default)

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

[  6] local 10.99.24.101 port 5001 connected with 10.99.24.68 port 41463

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

[ ID] Interval       Transfer     Bandwidth

[  6]  0.0-10.1 sec  41.3 MBytes  34.5 Mbits/sec

 

linux-2.6.36

Server listening on TCP port 5001

TCP window size: 85.3 KByte (default)

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

[  6] local 10.99.24.101 port 5001 connected with 10.99.24.68 port 33883

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

bfin_mac: rx: receive error - packet dropped

[ ID] Interval       Transfer     Bandwidth

[  6]  0.0- 9.8 sec  41.1 MBytes  35.1 Mbits/sec

 

from 2.6.36 it is too slow

 

--- steven miao                                              2011-12-07 04:54:59

add vlan mask in bf518 board file

 

--- Vivi Li                                                  2011-12-09 04:43:53

OK, close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

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

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

Outcomes