[Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hello everybody, Some years ago, I have successfully set up a Miro DC30 card on a HP Compaq dc5750 with Fedora 7 x86_64 and used it to digitize some of my old tapes. A couple of months ago, however, I upgraded the system to Fedora 12 x86_64 and when I tried to run lavrec this morning, it came up with the following error: $ lavrec -d 1 -i P -f a -q 80 -a 0 -v -g 768x576 k12T15002-%02d.avi **ERROR: [lavrec] Error opening video-device (/dev/video): No such file or directory **ERROR: [lavrec] Something went wrong while setting up the card To my knowledge, the system detects the card OK: $ dmesg | grep -i zoran Zoran MJPEG board driver version 0.10.0 MJPEG[0]: Zoran ZR36057 (rev 1), irq: 20, memory: 0xd910 $ lspci [...] 01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress 200] 01:05.1 Display controller: ATI Technologies Inc Radeon Xpress Series (RS482) 07:04.0 Multimedia video controller: Zoran Corporation ZR36057PQC Video cutting chipset (rev 01) 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 21:00.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b Link Layer Controller (rev 01) 3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI Express (rev 02) $ lsmod | grep zr zr3606769695 0 v4l2_common15354 1 zr36067 videodev 33864 2 zr36067,v4l2_common videocodec 5768 1 zr36067 i2c_algo_bit5005 2 zr36067,radeon i2c_core 26876 8 zr36067,v4l2_common,videodev,i2c_piix4,radeon,drm_kms_helper,drm,i2c_algo_bit With Fedora 7, I used to have to add the lines "options zr36067 card=3; alias char-major-81-0 zr36067" to /etc/modprobe.conf. Now, /etc/modprobe.conf seems to be fragmented to /etc/modprobe.d subdirectories. Nevertheless, since the card seems to be recognized OK, I am not sure if I should mess with it. What am I missing? Thanks in advance for your help. All the best, Primož -- Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Univerza v Ljubljani Lipičeva 2, SI-1000 Ljubljana, Slovenija.primoz.peter...@mf.uni-lj.si Tel +386-1-5437612, fax +386-1-4315127, http://biofiz.mf.uni-lj.si/~peterlin/ F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F 0B 59 AF 0D 79 56 19 0F -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
It's me once again. When I load the kernel module manually with the "card=3" argument, i.e., # modprobe zr36067 card=3 debug=2 I get the following lines added to the logfile: $ dmesg [...] Zoran MJPEG board driver version 0.10.0 MJPEG[0]: Zoran ZR36057 (rev 1), irq: 20, memory: 0xd910 IRQ 20/DC30[0]: IRQF_DISABLED is not guaranteed on shared IRQs DC30[0]: Initializing i2c bus... vpx3220 4-0047: vpx3220a found @ 0x8e (DC30[0]) adv7175 4-002a: chip found @ 0x54 (DC30[0]) DC30[0]: Initializing videocodec bus... DC30[0]: zr36057_init - initializing card[0], zr=88001b79 DC30[0]: zoran_open(v4l_id, pid=[3772]), users(-)=1 DC30[0]: enable_jpg(IDLE) DC30[0]: zoran_close(v4l_id, pid=[3772]), users(+)=0 DC30[0]: enable_jpg(IDLE) DC30[0]: enable_jpg(IDLE) DC30[0]: interrupts received: GIRQ1:2 GIRQ0:2 queue_state=0/0/0/0 DC30[0]: zoran_open(hald-probe-vide, pid=[3775]), users(-)=1 DC30[0]: enable_jpg(IDLE) DC30[0]: zoran_close(hald-probe-vide, pid=[3775]), users(+)=0 DC30[0]: enable_jpg(IDLE) DC30[0]: interrupts received: queue_state=0/0/0/0: no interrupts detected. DC30[0]: interrupts received: queue_state=0/0/0/0: no interrupts detected. DC30[0]: procfs entry /proc/zoran0 allocated. data=88001b79 It looks OK to me, and it also produces the /dev/video0 device. However, when I run lavrec, it still doesn't work: $ lavrec -d 2 -i P -a 0 test.avi **ERROR: [lavrec] Error getting video parameters: Invalid argument **ERROR: [lavrec] Something went wrong while setting up the card TIA, Primož 2010/5/17 Primoz PETERLIN : > Hello everybody, > > Some years ago, I have successfully set up a Miro DC30 card on a HP > Compaq dc5750 with Fedora 7 x86_64 and used it to digitize some of my > old tapes. A couple of months ago, however, I upgraded the system to > Fedora 12 x86_64 and when I tried to run lavrec this morning, it came > up with the following error: > > $ lavrec -d 1 -i P -f a -q 80 -a 0 -v -g 768x576 k12T15002-%02d.avi > **ERROR: [lavrec] Error opening video-device (/dev/video): No such > file or directory > **ERROR: [lavrec] Something went wrong while setting up the card > > To my knowledge, the system detects the card OK: > > $ dmesg | grep -i zoran > Zoran MJPEG board driver version 0.10.0 > MJPEG[0]: Zoran ZR36057 (rev 1), irq: 20, memory: 0xd910 > > $ lspci > [...] > 01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon > Xpress 200] > 01:05.1 Display controller: ATI Technologies Inc Radeon Xpress Series (RS482) > 07:04.0 Multimedia video controller: Zoran Corporation ZR36057PQC > Video cutting chipset (rev 01) > 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI > Express-to-PCI Bridge (rev 03) > 21:00.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b > Link Layer Controller (rev 01) > 3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 > Gigabit Ethernet PCI Express (rev 02) > > $ lsmod | grep zr > zr36067 69695 0 > v4l2_common 15354 1 zr36067 > videodev 33864 2 zr36067,v4l2_common > videocodec 5768 1 zr36067 > i2c_algo_bit 5005 2 zr36067,radeon > i2c_core 26876 8 > zr36067,v4l2_common,videodev,i2c_piix4,radeon,drm_kms_helper,drm,i2c_algo_bit > > With Fedora 7, I used to have to add the lines "options zr36067 > card=3; alias char-major-81-0 zr36067" to /etc/modprobe.conf. Now, > /etc/modprobe.conf seems to be fragmented to /etc/modprobe.d > subdirectories. Nevertheless, since the card seems to be recognized > OK, I am not sure if I should mess with it. > > What am I missing? > > Thanks in advance for your help. > > All the best, > Primož > > -- > Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Univerza v Ljubljani > Lipičeva 2, SI-1000 Ljubljana, Slovenija. primoz.peter...@mf.uni-lj.si > Tel +386-1-5437612, fax +386-1-4315127, http://biofiz.mf.uni-lj.si/~peterlin/ > F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F 0B 59 AF 0D 79 56 19 0F > -- Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Univerza v Ljubljani Lipičeva 2, SI-1000 Ljubljana, Slovenija.primoz.peter...@mf.uni-lj.si Tel +386-1-5437612, fax +386-1-4315127, http://biofiz.mf.uni-lj.si/~peterlin/ F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F 0B 59 AF 0D 79 56 19 0F -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Perhaps this tells something to an expert. Each time when I run lavrec ($ lavrec -a 0 test.avi), the following lines are written to /var/log/messages: DC30[0]: zoran_open(lavrec, pid=[4696]), users(-)=1 DC30[0]: enable_jpg(IDLE) DC30[0]: zoran_close(lavrec, pid=[4696]), users(+)=0 DC30[0]: enable_jpg(IDLE) DC30[0]: interrupts received: queue_state=0/0/0/0: no interrupts detected. What am I doing wrong? TIA, Primož 2010/5/17 Primoz PETERLIN : > It's me once again. > > When I load the kernel module manually with the "card=3" argument, i.e., > > # modprobe zr36067 card=3 debug=2 > > I get the following lines added to the logfile: > > $ dmesg > [...] > Zoran MJPEG board driver version 0.10.0 > MJPEG[0]: Zoran ZR36057 (rev 1), irq: 20, memory: 0xd910 > IRQ 20/DC30[0]: IRQF_DISABLED is not guaranteed on shared IRQs > DC30[0]: Initializing i2c bus... > vpx3220 4-0047: vpx3220a found @ 0x8e (DC30[0]) > adv7175 4-002a: chip found @ 0x54 (DC30[0]) > DC30[0]: Initializing videocodec bus... > DC30[0]: zr36057_init - initializing card[0], zr=88001b79 > DC30[0]: zoran_open(v4l_id, pid=[3772]), users(-)=1 > DC30[0]: enable_jpg(IDLE) > DC30[0]: zoran_close(v4l_id, pid=[3772]), users(+)=0 > DC30[0]: enable_jpg(IDLE) > DC30[0]: enable_jpg(IDLE) > DC30[0]: interrupts received: GIRQ1:2 GIRQ0:2 queue_state=0/0/0/0 > DC30[0]: zoran_open(hald-probe-vide, pid=[3775]), users(-)=1 > DC30[0]: enable_jpg(IDLE) > DC30[0]: zoran_close(hald-probe-vide, pid=[3775]), users(+)=0 > DC30[0]: enable_jpg(IDLE) > DC30[0]: interrupts received: queue_state=0/0/0/0: no interrupts detected. > DC30[0]: interrupts received: queue_state=0/0/0/0: no interrupts detected. > DC30[0]: procfs entry /proc/zoran0 allocated. data=88001b79 > > It looks OK to me, and it also produces the /dev/video0 device. > However, when I run lavrec, it still doesn't work: > > $ lavrec -d 2 -i P -a 0 test.avi > **ERROR: [lavrec] Error getting video parameters: Invalid argument > **ERROR: [lavrec] Something went wrong while setting up the card > > TIA, Primož > > 2010/5/17 Primoz PETERLIN : >> Hello everybody, >> >> Some years ago, I have successfully set up a Miro DC30 card on a HP >> Compaq dc5750 with Fedora 7 x86_64 and used it to digitize some of my >> old tapes. A couple of months ago, however, I upgraded the system to >> Fedora 12 x86_64 and when I tried to run lavrec this morning, it came >> up with the following error: >> >> $ lavrec -d 1 -i P -f a -q 80 -a 0 -v -g 768x576 k12T15002-%02d.avi >> **ERROR: [lavrec] Error opening video-device (/dev/video): No such >> file or directory >> **ERROR: [lavrec] Something went wrong while setting up the card >> >> To my knowledge, the system detects the card OK: >> >> $ dmesg | grep -i zoran >> Zoran MJPEG board driver version 0.10.0 >> MJPEG[0]: Zoran ZR36057 (rev 1), irq: 20, memory: 0xd910 >> >> $ lspci >> [...] >> 01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon >> Xpress 200] >> 01:05.1 Display controller: ATI Technologies Inc Radeon Xpress Series (RS482) >> 07:04.0 Multimedia video controller: Zoran Corporation ZR36057PQC >> Video cutting chipset (rev 01) >> 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI >> Express-to-PCI Bridge (rev 03) >> 21:00.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b >> Link Layer Controller (rev 01) >> 3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 >> Gigabit Ethernet PCI Express (rev 02) >> >> $ lsmod | grep zr >> zr36067 69695 0 >> v4l2_common 15354 1 zr36067 >> videodev 33864 2 zr36067,v4l2_common >> videocodec 5768 1 zr36067 >> i2c_algo_bit 5005 2 zr36067,radeon >> i2c_core 26876 8 >> zr36067,v4l2_common,videodev,i2c_piix4,radeon,drm_kms_helper,drm,i2c_algo_bit >> >> With Fedora 7, I used to have to add the lines "options zr36067 >> card=3; alias char-major-81-0 zr36067" to /etc/modprobe.conf. Now, >> /etc/modprobe.conf seems to be fragmented to /etc/modprobe.d >> subdirectories. Nevertheless, since the card seems to be recognized >> OK, I am not sure if I should mess with it. >> >> What am I missing? >> >> Thanks in advance for your help. >> >> All the best, >> Primož >> >> -- >> Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Univerza v >> Ljubljani >> Lipičeva 2, SI-1000 Ljubljana, Slovenija. primoz.peter...@mf.uni-lj.si >> Tel +386-1-5437612, fax +386-1-4315127, >> http://biofiz.mf.uni-lj.si/~peterlin/ >> F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F 0B 59 AF 0D 79 56 19 >> 0F >> > > > > -- > Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Univerza v Ljubljani > Lipičeva 2, SI-1000 Ljubljana, Slovenija. primoz.peter...@mf.uni-lj.si > Tel +386-1-5437612, fax +386-1-4315127, http://biofiz.mf.uni-lj.si/~peterlin/ > F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F 0B 59 AF 0D 79 56 19 0F > -- Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Uni
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hallo > Some years ago, I have successfully set up a Miro DC30 card on a HP > Compaq dc5750 with Fedora 7 x86_64 and used it to digitize some of my > old tapes. A couple of months ago, however, I upgraded the system to > Fedora 12 x86_64 and when I tried to run lavrec this morning, it came > up with the following error: Are you sure that your system was running a 64Bit Kernel ? I don't know of any person that uses zoran card with a 64 bit kernel (64 Bit machines and 32bit Kernel work as far as I remember) I'd really like to hear of a success story (or how you call it). That a zoran card works on a 64 bit machine with a 64bit kernel. I know that video playback works with xawtv works on a 64 bit kernel. But I was not able to make the zoarn card (DC30 and buz) to record anything. > $ lavrec -d 1 -i P -f a -q 80 -a 0 -v -g 768x576 k12T15002-%02d.avi > **ERROR: [lavrec] Error opening video-device (/dev/video): No such > file or directory > **ERROR: [lavrec] Something went wrong while setting up the card > > To my knowledge, the system detects the card OK: > > $ dmesg | grep -i zoran > Zoran MJPEG board driver version 0.10.0 > MJPEG[0]: Zoran ZR36057 (rev 1), irq: 20, memory: 0xd910 > > $ lspci > [...] > 01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon > Xpress 200] > 01:05.1 Display controller: ATI Technologies Inc Radeon Xpress Series (RS482) > 07:04.0 Multimedia video controller: Zoran Corporation ZR36057PQC > Video cutting chipset (rev 01) > 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI > Express-to-PCI Bridge (rev 03) > 21:00.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b > Link Layer Controller (rev 01) > 3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 > Gigabit Ethernet PCI Express (rev 02) > With Fedora 7, I used to have to add the lines "options zr36067 > card=3; alias char-major-81-0 zr36067" to /etc/modprobe.conf. Now, > /etc/modprobe.conf seems to be fragmented to /etc/modprobe.d > subdirectories. Nevertheless, since the card seems to be recognized > OK, I am not sure if I should mess with it. > What am I missing? I'm not sure. About the other two mails you sent to the list. I fear that someone needs to take a look a the kernel driver to fix the problem. I guess that it shouldn't be a to big problem. One think I can try is installing on my machine a 32bit OS and check if recording work. That we would know at least if it is a 32 <-> 64 bit kernel problem. But for that I would need to find some (extra) time. auf hoffentlich bald, Berni the Chaos of Woodquarter Email: shadowl...@utanet.at www: http://www.lysator.liu.se/~gz/bernhard -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hi, 2010/5/17 Bernhard Praschinger : >> **ERROR: [lavrec] Error opening video-device (/dev/video): No such >> file or directory Does the device actually exist? What is the output of "ls /dev/video"? If it doesn't, make it, usually by symlinking it to /dev/video0. Ronald -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hello, 2010/5/17 Bernhard Praschinger : > Hallo > >> Some years ago, I have successfully set up a Miro DC30 card on a HP >> Compaq dc5750 with Fedora 7 x86_64 and used it to digitize some of my >> old tapes. A couple of months ago, however, I upgraded the system to >> Fedora 12 x86_64 and when I tried to run lavrec this morning, it came >> up with the following error: > > Are you sure that your system was running a 64Bit Kernel ? > I don't know of any person that uses zoran card with a 64 bit kernel (64 Bit > machines and 32bit Kernel work as far as I remember) Oh, it was a 64-bit system for sure. While I don't remember ever taking much advantage of this fact, I distinctly remember that I never managed to get a Flash plugin working. ;) > I'd really like to hear of a success story (or how you call it). That a > zoran card works on a 64 bit machine with a 64bit kernel. I benefited from not realizing it might be a problem at all. If I would have known in advance that the experts doubt if it works at all, I would probably have never undertaken the endeavour. But now that it is done already, yes, I can confirm that I have successfully used a Miro Video DC30 card for digitizing video. [...] >> What am I missing? > I'm not sure. > About the other two mails you sent to the list. > I fear that someone needs to take a look a the kernel driver to fix the > problem. I guess that it shouldn't be a to big problem. I see. Thank you, Primož -- Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Univerza v Ljubljani Lipičeva 2, SI-1000 Ljubljana, Slovenija.primoz.peter...@mf.uni-lj.si Tel +386-1-5437612, fax +386-1-4315127, http://biofiz.mf.uni-lj.si/~peterlin/ F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F 0B 59 AF 0D 79 56 19 0F -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hello, 2010/5/17 Ronald S. Bultje : > Hi, > > 2010/5/17 Bernhard Praschinger : >>> **ERROR: [lavrec] Error opening video-device (/dev/video): No such >>> file or directory > > Does the device actually exist? What is the output of "ls /dev/video"? > If it doesn't, make it, usually by symlinking it to /dev/video0. I have since advanced somewhat. Since I have manually loaded the kernel module with the "card=3" option, I get the following error: $ lavrec -d 2 -i P -a 0 test.avi **ERROR: [lavrec] Error getting video parameters: Invalid argument **ERROR: [lavrec] Something went wrong while setting up the card Creating a symlink doesn't help any, nor does setting LAV_VIDEO_DEV=/dev/video0 before calling lavrec. Thank you, Primož -- Primož Peterlin, Inštitut za biofiziko, Med. fakulteta, Univerza v Ljubljani Lipičeva 2, SI-1000 Ljubljana, Slovenija.primoz.peter...@mf.uni-lj.si Tel +386-1-5437612, fax +386-1-4315127, http://biofiz.mf.uni-lj.si/~peterlin/ F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F 0B 59 AF 0D 79 56 19 0F -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hi, 2010/5/17 Primoz PETERLIN : > $ lavrec -d 2 -i P -a 0 test.avi > **ERROR: [lavrec] Error getting video parameters: Invalid argument > **ERROR: [lavrec] Something went wrong while setting up the card So this means it can now find the card, that's good news. The kernelspace-userspace interface is somewhat limited in information it can give back about what exactly is invalid about the settings. Luckily, the kernel driver tends to tell you itself (dmesg). That would tell you what is wrong exactly, you can adapt that and then try again. Ronald -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hi, Bernhard Praschinger wrote: > I'd really like to hear of a success story (or how you call it). That a > zoran card works on a 64 bit machine with a 64bit kernel. I have a DC10+ running with a 64-bit Linux 2.6.26 on Intel Core2 Machine. But I had to do some modifications to the driver because the Zoran card can only adress the lower 32-bit of RAM with its DMA engine so the buffers for data transfer need to be allocated in that area. I did post the necessary changes for some older Kernel versions two years ago on the developer list, but I didn't receive much feedback iirc. > I know that video playback works with xawtv works on a 64 bit kernel. > But I was not able to make the zoarn card (DC30 and buz) to record > anything. Unfortunately I don't have access to a DC30 or buz, but I guess the driver code for these cards needs similar changes to work on 64-bit. > One think I can try is installing on my machine a 32bit OS and check if > recording work. That we would know at least if it is a 32 <-> 64 bit > kernel problem. But for that I would need to find some (extra) time. Probably this isn't necessary. I think it should be enough to limit the amount of memory the kernel uses to the lower 2 or 3 GB of RAM so that the DMA area stays within the 32-bit address space. I guess it should suffice to pass mem=2G as a kernel parameter on the bootloader to make the card work with an unmodified driver on 64 bits. Regards, Klaus. -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hello, 2010/5/17 Klaus Stengel : > Bernhard Praschinger wrote: >> I'd really like to hear of a success story (or how you call it). That a >> zoran card works on a 64 bit machine with a 64bit kernel. > > I have a DC10+ running with a 64-bit Linux 2.6.26 on Intel Core2 > Machine. But I had to do some modifications to the driver because the > Zoran card can only adress the lower 32-bit of RAM with its DMA engine > so the buffers for data transfer need to be allocated in that area. I > did post the necessary changes for some older Kernel versions two years > ago on the developer list, but I didn't receive much feedback iirc. Now that's interesting. Could it be that it worked for me because I didn't have more than 4 GB of memory? (Yes, I know, you may ask why would one bother at all with a 64-bit system in that case). All the best, Primož -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] [lavrec] Error opening video-device (/dev/video): No such file or directory
Hi, Am Montag, den 17.05.2010, 22:14 +0200 schrieb Primoz PETERLIN: > 2010/5/17 Klaus Stengel : > > Bernhard Praschinger wrote: > >> I'd really like to hear of a success story (or how you call it). That a > >> zoran card works on a 64 bit machine with a 64bit kernel. > > > > I have a DC10+ running with a 64-bit Linux 2.6.26 on Intel Core2 > > Machine. But I had to do some modifications to the driver because the > > Zoran card can only adress the lower 32-bit of RAM with its DMA engine > > so the buffers for data transfer need to be allocated in that area. I > > did post the necessary changes for some older Kernel versions two years > > ago on the developer list, but I didn't receive much feedback iirc. > > Now that's interesting. Could it be that it worked for me because I > didn't have more than 4 GB of memory? (Yes, I know, you may ask why > would one bother at all with a 64-bit system in that case). Well, it's certainly related. The more memory you have, the bigger are the odds that the buffers will be allocated outside the 4 GB that can be addressed with 32 bits. But even if you don't have more than 4 GB of RAM, most Mainboards start to map parts of the available memory into the bigger address space much earlier. You can check this if you run the command: cat /proc/iomem | grep 'System RAM' The output should look something like this: -0009ebff : System RAM 0010-bd4a0fff : System RAM bd4a7000-bd5b6fff : System RAM bd60f000-bd6c5fff : System RAM bd9ff000-bd9f : System RAM 1-13bff : System RAM If there are (hex-)numbers which have more than 8 digits, you definitely have some memory areas that require 64-bits to be accessed. For the machine from the example above, everything above 3033 MB (=bd9f hex) was remapped beyond the 4 GB limit. It might be possible that your machine already does this sort of remapping and if parts of the data buffers happen to be allocated in one of those remapped areas, the driver will fail. That's also the reason why passing mem=4G as kernel parameter most certainly won't help, but limiting the used memory to 2 GB should be safe for most boards. Regards, Klaus. -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users