AnsweredAssumed Answered

mcapi uClinux+CCES BF561

Question asked by Denisis on May 30, 2013
Latest reply on Aug 5, 2013 by Denisis

Hi, All

I have compiled the example "ADSP-BF561_EZKIT-Rel1.0.0\BF561_EZ-Kit_Lite\Blackfin\Examples\mcapi\BF561_MCAPI_msg\BF561_MCAPI_msg_CoreB" and select settings as shown http://docs.blackfin.uclinux.org/doku.php?id=test_mcapi. But the example cces_msg1 not work.

U-Boot 2012.07-rc2 (ADI-2012R2) (May 30 2013 - 21:18:35)

 

 

CPU:   ADSP bf561-0.5 (Detected Rev: 0.5) (parallel flash boot)

Board: rf-bf561

       Support:

       E-mail:

Clock: VCO: 530.842 MHz, Core: 530.842 MHz, System: 132.710 MHz

RAM:   32 MiB

Flash: 8 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   dm9000

Hit any key to stop autoboot:  0

rf-bf561_u-boot> tftp -g -r BF561_MCAPI_msg_CoreB.dxe 182.173.170.1

tftpboot - boot image via network using TFTP protocol

 

 

Usage:

tftpboot [loadAddress] [[hostIPaddr:]bootfilename]

rf-bf561_u-boot> run ramboot

dm9000 i/o: 0x24000000, id: 0x90000a46

DM9000: running in 32 bit mode

MAC: 00:20:ed:01:02:03

operating at 100M full duplex mode

Using dm9000 device

TFTP from server 182.173.170.1; our IP address is 182.173.170.100

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #########################

done

Bytes transferred = 3222154 (312a8a hex)

## Error: "addip" not defined

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf561-any-3.5.0-ADI-2012R1-pre

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3222090 Bytes = 3.1 MiB

   Load Address: 00001000

   Entry Point:  001c6f04

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001c6f04

Linux version 3.5.0-ADI-2012R1-pre (developer@developer-VB) (gcc version 4.3.5 (ADI-2012R2-RC2) ) #2 Fri May                                                                                                                                  31 02:24:25 FET 2013

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 24MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x001371b0

  rodata    = 0x001371b0-0x00195cd4

  bss       = 0x00196000-0x001a6770

  data      = 0x001a6780-0x001c0000

    stack   = 0x001be000-0x001c0000

  init      = 0x001c0000-0x003f0000

  available = 0x003f0000-0x01700000

  DMA Zone  = 0x01700000-0x01800000

Hardware Trace active and enabled

Boot Mode: 2

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

Compiled for ADSP-BF561 Rev any, running on 0.5

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

Processor Speed: 530 MHz core clock and 132 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

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

  L2 SRAM        : uncacheable in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=14745600 earlyprintk=serial,uart0,115200 console=ttyBF0                                                                                                                                 ,115200 mem=24M max_mem=32M icc_l2_mem=0x8000

PID hash table entries: 128 (order: -3, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 19192k/24576k RAM, (2240k init code, 1240k kernel code, 548k data, 1024k dma, 332k reserve                                                                                                                                 d)

NR_IRQS:153

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1043.45 BogoMIPS (lpj=521728)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

devtmpfs: initialized

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: 16 KB (3 KB free)

Blackfin L2 SRAM: 128 KB (96 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: master is unqueued, this is deprecated

spi spi0.1: Warning: SPI CPHA not set: Slave Select not under software control!

See Documentation/blackfin/bfin-spi-notes.txt

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

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

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 37

io scheduler noop registered (default)

Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled

serial8250.0: ttyS0 at MMIO 0x21000000 (irq = 81) is a 16550A

bfin-uart: Blackfin serial driver

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

brd: module loaded

physmap platform flash device: 00800000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000020 Chip ID 0x0022fd

Amd/Fujitsu Extended Query Table at 0x0040

  Amd/Fujitsu Extended Query version 1.3.

number of CFI chips: 1

Creating 4 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000050000 : "u-boot env(nor)"

0x000000050000-0x000000350000 : "linux kernel(nor)"

0x000000350000-0x000000800000 : "file system(nor)"

dm9000 Ethernet Driver, V1.31

eth0: dm9000e at 24000000,24000004 IRQ 94 MAC: 00:20:ed:01:02:03 (chip)

bfin_wdt: initialized: timeout=20 sec (nowayout=0)

icc icc.0: initialized

TCP: cubic registered

NET: Registered protocol family 17

dma_alloc_init: dma_page @ 0x00e38000 - 256 pages at 0x01700000

Freeing unused kernel memory: 2240k freed

 

 

 

 

BusyBox v1.20.2 (2013-05-31 02:10:50 FET) hush - the humble shell

 

 

root:/> tftp -g -r BF561_MCAPI_msg_CoreB.dxe 182.173.170.1

tftp: sendto: Network is unreachable

root:/> ifconfig eth0 182.173.170.100

dm9000 dm9000.0: eth0: link down

root:/> dm9000 dm9000.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

 

 

root:/>

root:/> tftp -g -r BF561_MCAPI_msg_CoreB.dxe 182.173.170.1

root:/> icc_l

icc_latency       icc_latency_test  icc_loader

root:/> icc_l

icc_latency       icc_latency_test  icc_loader

root:/> icc_loader -l BF561_MCAPI_msg_CoreB.dxe

writing to 0xff600000, 0x3fa0    bytes: OK

writing to 0xff500d00, 0x22c0    bytes: OK

writing to 0xff503a94, 0xe4      bytes: OK

writing to 0xff500000, 0x588     bytes: OK

writing to 0xff500588, 0x8       bytes: OK

writing to 0xff500590, 0x770     bytes: OK

writing to 0xff502fc0, 0xad4     bytes: OK

writing to 0xfeb12000, 0x1a      bytes: OK

writing to 0xfeb1202c, 0x392c    bytes: OK

writing to 0xfeb15958, 0x194e    bytes: OK

writing to 0xfeb02210, 0x400     bytes: OK

writing to 0xfeb1201c, 0x10      bytes: OK

root:/> cces_msg1

MCAPI_DEBUG:mcapi_trans_initialize 865

MCAPI_DEBUG:mcapi_trans_initialize_ 825

MCAPI_DEBUG:mcapi_trans_initialize_ 853 db addr 00e80000 size 2c34c

MCAPI_DEBUG:mcapi_trans_initialize_ 857

MCAPI_DEBUG: node index 0 ep index 1

node=0, port=101

ep1 65

MCAPI_DEBUG: node index 0 ep index 2

node=0, port=2

ep4 2

MCAPI_DEBUG: mcapi_trans_get_endpoint_internal node_num=1, port_num=0

node=1, port=0

ep2 10000

MCAPI_DEBUG: mcapi_trans_get_endpoint_internal node_num=1, port_num=1

node=1, port=1

ep3 10001

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:mcapi_trans_valid_endpoint endpoint=0x65 (database indices: n=0,e=101) rc=1

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:domain 0 node 1 endpoint 0

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:index 1, se 101, sn 0

MCAPI_DEBUG:index 1, re 0, rn 1

endpoint=101 has sent: [1]

DSP data before

1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f50515253                                                                                                                                 5455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7fffffff80ffffff81ffff                                                                                                                                 ff82ffffff83ffffff84ffffff85ffffff86ffffff87ffffff88ffffff89ffffff8affffff8bffffff8cffffff8dffffff8effffff8f                                                                                                                                 ffffff90ffffff91ffffff92ffffff93ffffff94ffffff95ffffff96ffffff97ffffff98ffffff99ffffff9affffff9bffffff9cffff                                                                                                                                 ff9dMCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:mcapi_trans_valid_endpoint endpoint=0x65 (database indices: n=0,e=101) rc=1

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:domain 0 node 1 endpoint 1

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:index 1, se 101, sn 0

MCAPI_DEBUG:index 1, re 1, rn 1

endpoint=101 has sent: [1]

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:mcapi_trans_valid_endpoint endpoint=0x65 (database indices: n=0,e=101) rc=1

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:domain 0 node 1 endpoint 0

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:index 1, se 101, sn 0

MCAPI_DEBUG:index 1, re 0, rn 1

endpoint=101 has sent: [4]

MCAPI_DEBUG:domain 0 node 0 endpoint 2

MCAPI_DEBUG:index 0 2

MCAPI_DEBUG:index 101 2

MCAPI_DEBUG:index 2 2

MCAPI_DEBUG:mcapi_trans_valid_endpoint endpoint=0x2 (database indices: n=0,e=2) rc=1

MCAPI_DEBUG:domain 0 node 0 endpoint 2

MCAPI_DEBUG:index 0 2

MCAPI_DEBUG:index 101 2

MCAPI_DEBUG:index 2 2

session_idx 2

 

 

Please help.

Outcomes