LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   libraw1394 changes between FC6 and FC7 (https://www.linuxquestions.org/questions/fedora-35/libraw1394-changes-between-fc6-and-fc7-565910/)

ChillyWillie 07-01-2007 07:55 PM

libraw1394 changes between FC6 and FC7
 
This post was made on the linux1394.org mailing list, but if this is a known problem then some of you may already know a solution.

I have a custom firewire driver written in C that uses the libraw1394
library. I have no problems compiling/running on Fedora Core 6, but when I
installed FC7 I found out they have upgraded the 1394 stack. I used to be
able to just load the raw1394, ohci1394, and ieee1394 kernel modules and the
software worked just fine. With the new kernel modules fw_ohci, fw_core,
and fw_sbp2 my program fails on initialization when calling the function
raw1394_new_handle_on_port(0).

The API to the firewire stack has not changed, right? I can still compile
the source code with the <include/raw1394.h> header included. The same
problem happens at execution. Do I need to fix a symbolic link somewhere in
FC7 or do I need to rewrite my driver if I want to use the latest stack?

Thanks!

-Jason

uname -r:
2.6.21-1.3228.fc7

rpm -qa | grep 1394:
libraw1394-1.2.1-9.fc7
libraw1394-devel-1.2.1-9.fc7

lspci:
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller

dmesg (after connecting to FW device):
fw_core: phy config: card 0, new root=ffc1, gap count=5
fw_core: created new fw device fw1 (0 config rom retries)

macemoneta 07-02-2007 08:31 PM

The ieee1394 stack in the Fedora kernel has issues. You should add yourself to the cc list on these two bugs: 243081 and 240771.

ChillyWillie 07-02-2007 09:10 PM

Resolved: libraw1394 changes between FC6 and FC7 Reply to Thread
 
Turns out it's a permissions issue. Running my program as root worked fine. I just entered
Code:

chmod 666 /dev/fw0
and I was able to use it as a non-privileged user.

From glancing at the bug reports, it sounds like this is the cause of dvgrab breaking for most users.

Thanks!


All times are GMT -5. The time now is 09:58 PM.