2010-02-08 16:39:04     video palette (v4l)

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

2010-02-08 16:39:04     video palette (v4l)

cristiana tenti (UNITED STATES)

Message: 85775   

 

Hello everybody,

 

 

 

I try to crosscompile a software based on v4l (video for linux) module. But when my software runs it fails because it cannot support any video palette.

 

Can someone help me to understand which kind of problem it is.

 

I checked on my distribution and in the folders of my blackfin and I have the package for v4l....

 

 

 

Any suggestions is really welcome!

 

 

 

thank you!!

TranslateQuoteReplyEditDelete

 

 

2010-02-08 16:49:42     video palette (v4l)

Michael Hennerich (GERMANY)

Message: 85776    Please provide more details - such as:

What software you are trying to run?

Command lines, application messages preferably with all debug options turned on?

 

What platform are you using - and the names of the v4l target capture drives?

Provide kernel startup messages, etc!

QuoteReplyEditDelete

 

 

2010-02-08 17:02:51     Re: video palette (v4l)

cristiana tenti (UNITED STATES)

Message: 85779   

 

I'm really sorry!

 

 

 

so, my platform is ADSP-BF 526 with EX-board and the webcam connected to that is a "pixo" webcam (cap.driver: "zc3xx").

 

Kernel version is 2.6.32.

 

The software is Motion 3.2.11.1, it is an auto-conf software with configure file and makefile to compile it.

 

when I run the output file on bfin this is what happen:

 

root:/mnt/hd0/bin> ./bfin_motion

[0] Processing thread 0 - config file /mnt/hd0/etc/motion.conf

[1] Thread 1 started

[1] cap.driver: "zc3xx"

[1] cap.card: "PC Camera"

[1] cap.bus_info: "usb-musb_hdrc.0-1"

[1] cap.capabilities=0x05000001

[1] - VIDEO_CAPTURE

[1] - READWRITE

[1] - STREAMING

[1] Supported palettes:

[1] Unable to find a compatible palette format.

[1] MAP_FAILED: No such device

[1] Could not fetch initial image from camera

[1] Motion continues using width and height from config file(s)

[1] Retrying until successful connection with camera

 

 

and then there are also other problems about memory (but maybe because there are some mallocs and when the software retry to restart the memory goes in overflow ??? ):

 

[1] Data access CPLB miss

<5> - Used by the MMU to signal a CPLB miss on a data access.

Deferred Exception context

CURRENT PROCESS:

COMM=bfin_motion PID=333 CPU=0

TEXT = 0x02b00000-0x02b26c38        DATA = 0x02d40c38-0x02d6969c

BSS = 0x02d6969c-0x02c40000  USER-STACK = 0x02c5fe90

 

return address: [0x02ba448a]; contents of:

0x02ba4460:  321f  e801  0000  05b4  e2ff  fdb4  e801  0000

0x02ba4470:  05b4  0010  05f5  3228  3039  3032  e800  0003

0x02ba4480:  e3ff  ffae  3208  932f  b06e [e588] 0041  b0a8

0x02ba4490:  afca  bcea  0c42  1805  09d5  1803  6000  b0e8

 

ADSP-BF526-0.0 200(MHz CCLK) 80(MHz SCLK) (mpu off)

Linux version 2.6.32.7-ADI-2010R1-pre-svn8276 (denis@amarone) (gcc version 4.3.4

(ADI-trunk/svn-3771) ) #190 Mon Feb 8 10:55:30 PST 2010

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00000026  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x26

  physical IVG3 asserted : <0xffa006bc> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x02bc0000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x02ba4484> [ /lib/libpthread.so.0 + 0x4484 ]

PC  : <0x02ba448a> [ /lib/libpthread.so.0 + 0x448a ]

DCPLB_FAULT_ADDR: <0xe4ba2e96> /* kernel dynamic memory */

ICPLB_FAULT_ADDR: <0x02ba448a> [ /lib/libpthread.so.0 + 0x448a ]

PROCESSOR STATE:

R0 : e4ba2e55    R1 : e4ba2e55    R2 : 02d1c597    R3 : 02d1d69c

R4 : 00000000    R5 : 02bbb7ec    R6 : 02bb475c    R7 : 027a48a0

P0 : 02bb4a20    P1 : e4ba2e55    P2 : 029b800c    P3 : 029b1448

P4 : 02bb5168    P5 : 02d1c5e4    FP : 02d1c5c4    SP : 02bbff24

LB0: 028dd8fd    LT0: 028dd8fc    LC0: 00000000

LB1: 028dba9f    LT1: 028dba9e    LC1: 00000000

B0 : 02d43168    L0 : 00000000    M0 : 00000039    I0 : 00000000

B1 : 000000e1    L1 : 00000000    M1 : 00000001    I1 : 00000001

B2 : 7ffff000    L2 : 00000000    M2 : 00001802    I2 : 02d69288

B3 : 00000000    L3 : 00000000    M3 : 0000005b    I3 : 02d42a84

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 02d1c5b8  ASTAT: 02002022

 

Hardware Trace:

   0 Target : <0x00004bdc> { _trap_c + 0x0 }

     Source : <0xffa00650> { _exception_to_level5 + 0xa4 } CALL pcrel

   1 Target : <0xffa005ac> { _exception_to_level5 + 0x0 }

     Source : <0xffa00460> { _bfin_return_from_exception + 0x18 } RTX

   2 Target : <0xffa00448> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00504> { _ex_trap_c + 0x74 } JUMP.S

   3 Target : <0xffa00374> { _ex_dcplb_miss + 0x0 }

     Source : <0xffa00716> { _trap + 0x5a } JUMP (P4)

   4 Target : <0xffa006bc> { _trap + 0x0 }

     Source : <0x02ba4488> [ /lib/libpthread.so.0 + 0x4488 ] 0xb06e

   5 Target : <0x02ba4484> [ /lib/libpthread.so.0 + 0x4484 ]

     Source : <0x02ba4428> [ /lib/libpthread.so.0 + 0x4428 ] RTS

   6 Target : <0x02ba4424> [ /lib/libpthread.so.0 + 0x4424 ]

     Source : <0x02ba8054> [ /lib/libpthread.so.0 + 0x8054 ] RTS

   7 Target : <0x02ba8040> [ /lib/libpthread.so.0 + 0x8040 ]

     Source : <0x02ba804c> [ /lib/libpthread.so.0 + 0x804c ] IF CC JUMP

   8 Target : <0x02ba8041> [ /lib/libpthread.so.0 + 0x8041 ]

     Source : <0x02ba8046> [ /lib/libpthread.so.0 + 0x8046 ] IF CC JUMP

   9 Target : <0x02ba8042> [ /lib/libpthread.so.0 + 0x8042 ]

     Source : <0xffa00bf8> { __common_int_entry + 0xcc } RTI

  10 Target : <0xffa00b96> { __common_int_entry + 0x6a }

     Source : <0xffa008a0> { _system_call + 0xbc } RTS

  11 Target : <0xffa0089c> { _system_call + 0xb8 }

     Source : <0xffa0088c> { _system_call + 0xa8 } IF !CC JUMP

  12 Target : <0xffa00882> { _system_call + 0x9e }

     Source : <0xffa00872> { _system_call + 0x8e } IF !CC JUMP

  13 Target : <0xffa00852> { _system_call + 0x6e }

     Source : <0xffa00a36> { _schedule_and_signal_from_int + 0x32 } IF CC JUMP

  14 Target : <0xffa00a04> { _schedule_and_signal_from_int + 0x0 }

     Source : <0xffa009de> { _return_from_int + 0x56 } RTI

  15 Target : <0xffa00988> { _return_from_int + 0x0 }

     Source : <0xffa00b92> { __common_int_entry + 0x66 } CALL pcrel

Userspace Stack

Stack info:

SP: [0x02d1c5b8] <0x02d1c5b8> [ /lib/libm.so.0 + 0xc5b8 ]

Memory from 0x02d1c5b0 to 02d1d000

02d1c5b0: 02d1c5c4 <02ba4484>[3030aa0d] 30063039  e801300f  02d1c5f4 <028d7a72>

02bb5168

02d1c5d0: 02bb475c  02d1c5e4  0004e800  14100c00  321f304b  027a48a0  02bb475c

3010b0f1

02d1c5f0: fbffe121  02d1c664 <028d6cba> 02bb4a1f  02d1d69c  02d43168  02bb8004

02d1c69d

02d1c610: e3ff3042  2010a9b7  0c014da1  e1411407  6000c08f  f000e101  321f2007

fc01e120

02d1c630: e3ff5001  e801a9bb  05380000  00000010  32080578  c6823038  32118009

e1213019

02d1c650: 4ea8fc01  60995008  0004e800  09083202  0c801418  02d1e69c <02b03f7a>

02bb4a1f

02d1c670: 02d1d6a4  02d1c69c  02d43168  02bb8004  02d1c69d  02d1f6d8  00001000

20166000

02d1c690: 02bbb7ec  01011007  02bba6f4  00000000  00000000  00000000  00000000

00000000

02d1c6b0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c6d0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c6f0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c710: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c730: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c750: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c770: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c790: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c7b0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c7d0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c7f0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c810: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c830: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c850: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c870: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c890: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c8b0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c8d0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c8f0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c910: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c930: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c950: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c970: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c990: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c9b0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c9d0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1c9f0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ca10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ca30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ca50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ca70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ca90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cab0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cad0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1caf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cb10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cb30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cb50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cb70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cb90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cbb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cbd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cbf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cc10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cc30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cc50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cc70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cc90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ccb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ccd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ccf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cd10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cd30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cd50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cd70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cd90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cdb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cdd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cdf0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ce10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ce30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ce50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ce70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ce90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ceb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1ced0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cef0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cf10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cf30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cf50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cf70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cf90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cfb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cfd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

02d1cff0: 00000000  00000000  00000000  00000000

Return addresses in stack:

    address : <0x02ba4484> [ /lib/libpthread.so.0 + 0x4484 ]

    address : <0x028d7a72> [ /lib/libc.so.0 + 0x17a72 ]

    address : <0x028d6cba> [ /lib/libc.so.0 + 0x16cba ]

    address : <0x02b03f7a> [ /mnt/hd0/bin/bfin_motion + 0x3f7a ]

 

 

Motion should use v4l2.

 

thanks for any help!!!

Attachments

    Outcomes