libdc1394 error: Failed to initialize libdc1394‏

Asked by hxu

Hello,
I tried to use a firewire camera on my desktop but failed.

Here is what I use:
*Debian lenny 2.6.26-1-686
*libraw1394-2.0.5
*libdc1394-2.1.2

Here are the results when I use the following commands.
@ lsmod |grep video1394
video1394 13372 0
ohci1394 24944 1 video1394
ieee1394 75800 3 raw1394,video1394,ohci1394

 @ls -al /dev/raw1394
crw-rw-rw- 1 root root 171, 0 2009-12-28 14:44 /dev/raw1394

@ ls -al /dev/video1394
total 0
drw-rw-rw- 2 root root 60 2010-01-12 10:52 .
drwxr-xr-x 16 root root 4260 2010-01-12 09:35 ..
crw-rw-rw- 1 root root 171, 16 2009-12-28 14:44 0

The libraw1394 works well. The PCI card can be recognized when run the testlibraw under libraw1394/tools.
current generation number: 1
1 card found

card 0, name: ohci1394
2 nodes on bus, local ID is 1, IRM is 1

  - doing transactions with custom tag handler
    read from node 0... completed with value 0xb3862304
    read from node 1... completed with value 0xb8230404

  - using standard tag handler and synchronous calls
    read from node 0... completed with value 0xb3862304
    read from node 1... completed with value 0xb8230404

  - testing FCP monitoring on local node
    got fcp command from node 1 of 8 bytes: 01 23 45 67 89 ab cd ef
    got fcp response from node 1 of 8 bytes: 01 23 45 67 89 ab cd ef

  - topology map: 2 nodes, 2 self ids, generation 4
    0x807fc696
    0x817fcc5c

  - testing config rom
    get_config_rom returned 0, romsize 64, rom_version 6
    here are the first 10 quadlets:
    0xb8230404
    0x34393331
    0x33b264e0
    0x009db000
    0x00d5fa8e
    0x2bd80300
    0x9db00003
    0x02000081
    0xc083000c
    0x2a2c0600
    update_config_rom returned 0

  - cycle timer: 8 seconds, 3003 cycles, 2026 sub-cycles
    local time: 1263337921316063 us = Tue Jan 12 18:12:01 2010

  - posting 0xdeadbeef as an echo request
    polling for leftover messages
    raw1394_loop_iterate() returned 0xdeadbeef

But when I run dc1394_reset_bus under libdc1394/examples, error message shows
"libdc1394 error: Failed to initialize libdc1394".

Does anyone have any idea about how to fix this problem? Thanks a lot.

Question information

Language:
English Edit question
Status:
Needs information
For:
libdc1394 Edit question
Assignee:
DC1394 Package Mainteners' team Edit question
Last query:
Last reply:
Whiteboard:
Will check if the reset bus uses correctly the libraw...
Revision history for this message
Damien (takahara) said :
#1

What is the brand/model of your camera? Maybe it is not IIDC compatible...

Revision history for this message
Peter Antoniac (pan1nx) said :
#2

I wonder if that reset bus uses the juju or legacy call. There was a discussion back couple of months on the same topic...

Revision history for this message
hxu (xuhuij) said :
#3

The camera I used is Point Gray Flea2.

Revision history for this message
Peter Antoniac (pan1nx) said :
#4

That error can only come from control.c and it is coming from dc1394_new call. It has nothing to do with reset bus. The only way that it could fail is via the legacy calls (basically, it doesn't load even the platform structure). Can you also export DC1394_DEBUG=1 and give us the output.

Can you help with this problem?

Provide an answer of your own, or ask hxu for more information if necessary.

To post a message you must log in.