Check if you have /dev/video0 node present in your rootfs

On Thu, 2009-02-19 at 15:55 +0900, kirthika varadarajan wrote:
> Hi,
>  After including the resizer driver i am getting the following error
>  Encodedecode demo started.
>  Encodedecode Error: Cannot open /dev/video0 (No such file or
> directory)
>  
> ncompressing
> Linux.............................................................
> Linux version 2.6.10_mvl401-davinci_evm  (gcc ve
> rsion 3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)) #10 Thu Feb
> 19 14:42:
> 03 KST 2009
> CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
> CPU0: D VIVT write-back cache
> CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
> CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
> Machine: DaVinci EVM
> Memory policy: ECC disabled, Data cache writeback
> Built 1 zonelists
> Kernel command line: console=ttyS0,115200n8 noinitrd rw
> ip=192.168.1.9:192.168.1
> .4:192.168.1.1:255.255.255.0:::off root=/dev/nfs
> nfsroot=192.168.1.18:/home/kirt
> hika/workdir/filesys,nolock mem=120M
> video=dm64xxfb:output=ntsc:format=composite
> :vid0=720*...@0,0:vid1=720*...@0,0:osd0=720*...@0,0:osd1=720*...@0,0
> PID hash table entries: 512 (order: 9, 8192 bytes)
> Console: colour dummy device 80x30
> Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
> Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Memory: 120MB = 120MB total
> Memory: 118656KB available (2354K code, 490K data, 140K init)
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> CPU: Testing write buffer coherency: ok
> spawn_desched_task(00000000)
> desched cpu_callback 3/00000000
> ksoftirqd started up.
> desched cpu_callback 2/00000000
> desched thread 0 started up.
> NET: Registered protocol family 16
> Registering platform device 'nor_davinci.0'. Parent at platform
> Registering platform device 'nand_davinci.0'. Parent at platform
> Registering platform device 'musb_hdrc'. Parent at platform
> DaVinci I2C DEBUG: 14:39:37 Feb 19 2009
> Registering platform device 'i2c'. Parent at platform
> usbcore: registered new driver usbfs
> usbcore: registered new driver hub
> JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
> yaffs Feb 19 2009 14:39:09 Installing.
> Registering platform device 'davincifb.0'. Parent at platform
> DAVINCI VPBE use default values(parameters)...
> Console: switching to colour frame buffer device 90x30
> Registering platform device 'davinci_resizer.2'. Parent at platform
> Registering platform device 'davinci_previewer.2'. Parent at platform
> Registering platform device 'davinci_pwm0.0'. Parent at platform
> Registering platform device 'davinci_pwm1.1'. Parent at platform
> Registering platform device 'davinci_pwm2.2'. Parent at platform
> Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing
> disabled
> Registering platform device 'serial8250'. Parent at platform
> ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
> io scheduler noop registered
> io scheduler anticipatory registered
> RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
> loop: loaded (max 8 devices)
> Registering platform device 'ti_davinci_emac'. Parent at platform
> TI DaVinci EMAC: MAC address is 00:0e:99:02:29:00
> TI DaVinci EMAC Linux version updated 4.0
> TI DaVinci EMAC: Installed 1 instances.
> netconsole: not configured, aborting
> i2c /dev entries driver
> Linux video capture interface: v1.00
> Registering platform device 'vpfe.1'. Parent at platform
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> DaVinci I2C WARNING: i2c: NACK detected
> DaVinci I2C WARNING: i2c: RAR detected
> Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
> ide: Assuming 50MHz system bus speed for PIO modes; override with
> idebus=xx
> hda: TOSHIBA MK4026GAX RoHS, ATA DISK drive
> elevator: using anticipatory as default io scheduler
> ide0 at 0xe10661f0-0xe10661f7,0xe10663f6 on irq 22
> hda: max request size: 128KiB
> hda: 78140160 sectors (40007 MB), CHS=65535/16/63
>  hda: unknown partition table
>     ide0: BM-DMA at 0xe1066000-0xe1066007, BIOS settings: hda:pio,
> hdb:pio
> No NAND device found!!!
> Chip Select is not set for NAND
> nand_davinci: probe of nand_davinci.0 failed with error -6
> mice: PS/2 mouse device common for all mice
> musb_hdrc: version 2.2a/db-0.4.8 [pio] [host] [debug=0]
> musb_hdrc: USB Host mode controller at c8060000 using PIO, IRQ 12
> musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
> hub 1-0:1.0: USB hub found
> hub 1-0:1.0: 1 port detected
> Registering platform device 'davinci-audio.0'. Parent at platform
> NET: Registered protocol family 2
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 8192 bind 16384)
> NET: Registered protocol family 1
> NET: Registered protocol family 17
> IP-Config: Complete:
>       device=eth0, addr=192.168.1.9, mask=255.255.255.0,
> gw=192.168.1.1,
>      host=192.168.1.9, domain=, nis-domain=(none),
>      bootserver=192.168.1.4, rootserver=192.168.1.18, rootpath=
> Looking up port of RPC 100003/2 on 192.168.1.18
> Looking up port of RPC 100005/1 on 192.168.1.18
> VFS: Mounted root (nfs filesystem).
> Freeing init memory: 140K
> INIT: version 2.85 booting
> Mounting a tmpfs over /dev...done.
> Creating initial device nodes...done.
> Activating swap...done.
> Remounting root filesystem...done.
> Calculating module dependencies
> WARNING: Couldn't open
> directory /lib/modules/2.6.10_mvl401-davinci_evm: No such
>  file or directory
> FATAL: Could not
> open /lib/modules/2.6.10_mvl401-davinci_evm/modules.dep.temp fo
> r writing: No such file or directory
> Loading modules:
> Starting checking all file systems: fsck
> fsck 1.35 (28-Feb-2004)
> Starting mounting local filesystems: mount nothing was mounted
> Cleaning: /etc/network/ifstate.
> Setting up IP spoofing protection: rp_filter.
> Disable TCP/IP Explicit Congestion Notification: done.
> Starting network interfaces: done.
> Starting hotplug subsystem:
>    pci
>    pci      [success]
>    usb
>    usb      [success]
>    isapnp
>    isapnp   [success]
>    ide
>    ide      [success]
>    input
>    input    [success]
>    scsi
>    scsi     [success]
> done.
> Starting portmap daemon: portmap.
> Cleaning: /tmp /var/lock /var/run done.
> Setting pseudo-terminal access permissions...done.
> Updating /etc/motd...done.
> INIT: Entering runlevel: 3
> Starting system log daemon: syslogd klogd.
> Starting NFS common utilities: statd lockd.
> Starting internet superserver: inetd.
> Starting MontaVista target tools daemon: mvltdmvltd version 2.1
> MontaVista Softw
> are,Inc.
> .
> MontaVista(R) Linux(R) Professional Edition 4.0 (0501140)
> 
> 192.168.1.9 login: root
> Last login: Thu Jan  1 20:02:48 2004 on console
> Linux 192.168.1.9 2.6.10_mvl401-davinci_evm #10 Thu Feb 19 14:42:03
> KST 2009 arm
> v5tejl GNU/Linux
> 
> Welcome to MontaVista(R) Linux(R) Professional Edition 4.0 (0501140).
> 
> [email protected]:/opt/dvevm# ./loadmodules.sh
> cmemk: module license '(c) Texas Instruments' taints kernel.
> cmem initialized 4 pools between 0x87800000 and 0x88000000
> dsplinkk: no version for "struct_module" found: kernel tainted.
>  DDR_START 0x8fa00000 DDR_SIZE 0x400000
> [email protected]:/opt/dvevm# ./encodedecode_ccd
> Encodedecode demo started.
> Encodedecode Error: Cannot open /dev/video0 (No such file or
> directory)
> 
>  
> 
> Even i did 
> mknod /dev/video0 c 81 0
> Even then i get 
>  
> Encodedecode Error: Cannot open /dev/video0 (No such device)
> 
> I kernel configuration:
>  
> I included Multimedia Devices ->
>                              (*) Video For linux             
>                                            Video For linux
>                                                           (*)Davinci
> Video Capture
> 
> (*)SELECT TVP5146
>  
>      I have CCD camera connected to Video In of dm6446
>  
>                                                 
> Suggest me to resolve
>  
> On 2/19/09, Jadav, Brijesh R <[email protected]> wrote: 
>         Hi,
>         
>          
>         
>         You can check whether resizer is included in the kernel by
>         printing /proc/devices. There should be one entry for resizer.
>         If it is available, you just have to create /dev entry for
>         resizer. If it is not, kernel does not have resizer driver.
>         Re-build the kernel with the resizer support.
>         
>          
>         
>         Thanks,
>         
>         Brijesh Jadav
>         
>          
>         
>         
>                                        
>         ______________________________________________________________
>         From: [email protected]
>         [mailto:[email protected]] On 
> Behalf Of Venkatachala Upadhya
>         Sent: Thursday, February 19, 2009 10:35 AM
>         To: 'kirthika varadarajan'; davinci-linux-open-source
>         Subject: RE: Reg decodeencode demo in Dm6446
>         
>         
>          
>         
>         Hi,
>         
>          
>         
>         I guess re sizer is a kernel module. It might not have been
>         built into the kernel. You may have to load the kernel module.
>         
>          
>         
>         
>         With best regards,
>         
>         Venkatachala Upadhya| Extn: 65395|
>         -- 
>         
>          
>         
>         
>          
>         
>                                        
>         ______________________________________________________________
>         From: [email protected]
>         [mailto:[email protected]] On 
> Behalf Of kirthika varadarajan
>         Sent: 19 February, 2009 10:21 AM
>         To: davinci-linux-open-source
>         Subject: Reg decodeencode demo in Dm6446
>         
>         When i run the decode encode demo compiled by me in DM6446 i
>         am getting the following error
>         
>         
>          
>         
>         
>         Encodedecode demo started.
>         Rszcopy Error: Failed to open /dev/davinci_resizer
>         Encodedecode Error: Failed to create resize copy job
>         Capturing 720x480 video (cropped to 720x480)
>         Smooth Error: Failed to open /dev/davinci_resizer
>         Encodedecode Error: Failed to create smoother
>         
>         
>          
>         
>         
>         I did't modify anything in the decode encode demo.
>         
>         
>          
>         
>         
>          
>         
>         
>         Suggest me to resolve this.
>         
>         
>          
>         
>                                        
>         ______________________________________________________________
>         http://www.mindtree.com/email/disclaimer.html
>         
>         
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to