2008-10-22 08:23:03     video capture test

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

2008-10-22 08:23:03     video capture test

li changhong (CHINA)

Message: 64037   


hi every one:


          I have compiled the 2008r1.5,and now I am test the video capture,but it halt when capture.who can give me some idea?


the following is the text what I capture from window terminal:



bfin-wdt: Unexpected close, not stopping watchdog!

Restarting system.-Boot 1.1.6-svn (ADI-2007R1) (Nov  3 2007 - 18:20:19)



Board: ADI BF561 EZ-Kit Lite board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 600 MHz, Core: 600 MHz, System: 120 MHz



In:    serial

Out:   serial

Err:   serial

Net:    ERROR: Can't find SMC91111 at address 2c010300

Hit any key to stop autoboot:  5     4     3     0

ezkit> bootm 0x20030000

## Booting image at 20030000 ...

   Image Name:   Linux-

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3595409 Bytes =  3.4 MB

   Load Address: 00001000

   Entry Point:  0015a000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 15a000

Linux version (root@ (gcc version 4.1.2 (ADI svn)) #303 Wed Oct 22 19:14:53 EDT 2008

Hardware Trace Active and Enabled

Warning: limiting memory to 56MB due to hardware anomaly 05000263

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

Compiled for ADSP-BF561 Rev 0.3

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

Processor Speed: 600 MHz core clock and 120 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x000fae50

  rodata    = 0x000fb000-0x001463e8

  data      = 0x00147000-0x0015a000

    stack   = 0x00148000-0x0014a000

  init      = 0x0015a000-0x006d1000

  bss       = 0x006d1000-0x006e0db0

  available = 0x006e0db0-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

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

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

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

Memory available: 49720k/65536k RAM, (5596k init code, 999k kernel code, 444k data, 1024k dma, 7756k reserved)

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin Instruction SRAM: 16 KB (8 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezkit_init(): registering device resources

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

BF561 Core B driver v0.1 initialized.

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

drivers/video/bfin_ad7179fb_main.c: 714 (Reset_ADV7179)

bfin_ad7179_fb: initializing:

fb0: BFIN 7179 frame buffer device

fb memory address : 0x00800000

drivers/video/bfin_ad7179fb_main.c: 271 (bfin_framebuffer_init) (800000)(c00000)

Releasing 79 Fb

drivers/video/bfin_ad7179fb_main.c: 430 (bfin_disable_dma)

simple-gpio: now handling 48 GPIOs: 0 - 47

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

Serial: Blackfin serial driver

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

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

Linux video capture interface: v2.00

driver for ADV7183B get_camops

ADV7183B: i2c driver ready

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@16

i2c /dev entries driver

adv7179.c * : starting probe for adapter i2c-gpio0 (0x0)

driver for ADV7183B get_camops

ADV7183B: detecting client on address 0x40

driver for ADV7183B init

ADV7183B: V4L driver Blackfin CMOS Camera now ready

i2c-gpio i2c-gpio.0: using pins 1 (SDA) and 0 (SCL)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Freeing unused kernel memory: 5596k freed

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


        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.4.1 (2008-10-22 19:13:19 EDT) Built-in shell (msh)

Enter 'help' for a list of built-in commands.


root:/> cd      cat /dev/video0 >li

: couldn't allocate bottom buffer - kernel start address too low

cat: /dev/video0: Cannot allocate memory











2008-10-22 09:41:23     Re: video capture test

Mike Frysinger (UNITED STATES)

Message: 64043   


it already tells you the problem:

: couldn't allocate bottom buffer - kernel start address too low




2008-10-22 11:02:38     Re: video capture test

li changhong (CHINA)

Message: 64048   


Hi Mike:


         thank you for reply me!


        But,how much the address I should set, I try the address 0x1000000,but it halt when load uclinux!




2008-10-22 12:52:03     Re: video capture test

Mike Frysinger (UNITED STATES)

Message: 64053   


it doesnt need 16megs.  it only needs like one or two.





2008-10-22 20:53:08     Re: video capture test

li changhong (CHINA)

Message: 64077   


Soorry ,I still  dont  know   what you mean,can you   tell me the address?




2008-10-23 01:42:09     Re: video capture test

Mike Frysinger (UNITED STATES)

Message: 64085   


just put in 1meg hex





2008-10-23 04:42:33     Re: video capture test

li changhong (CHINA)

Message: 64111   


Hi Mike:


        thank you reply me !  I set the address is 0x100000,but  it can run but will crash after seviral second!


        if you have test the driver bfin_ad7179_i2c which is in the forum upload by user, I download from the forum,but  it's I2C not work,can not find the 0x54 address,perhaps ,I should set some parameter in the config,but I dont know what should be set( I have choose the I2C and gpio I2C),the ADV7183 I2C  can work correct,why 7179 I2C can not ?


       can you give me some advise !










2008-10-23 05:15:39     Re: video capture test

Mike Frysinger (UNITED STATES)

Message: 64112   


we dont test any drivers posted by other users in the forum ... we only test the drivers that are in svn