This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cant insert ti81xxvin

Other Parts Discussed in Thread: PMP, TVP5150, TVP7002

I am working on dm8168 processor, with ti-ezsdk_dm816x-evm_5_05_02_00 package and linux-2.6.37-psp04.04.00.01.

Now i am pursuing the camera testing. But i am getting a error

ti81xxvin ti81xxvin: Error registering v4l2 subdevice

like this when i try to insert ti81xxvin.

These are my boot log and commands i gave in console...


U-Boot 2010.06-svn220 (Sep 16 2013 - 12:32:05)

DRAM:  1 GiB
Using default environment

Hit any key to stop autoboot:  0
mmc1 is available
reading u-boot.bin

176048 bytes read
## Starting application at 0x80800000 ...


U-Boot 2010.06-svn220 (Sep 16 2013 - 12:34:09)

TI8168-GP rev 2.0

ARM clk: 987MHz
DDR clk: 796MHz

I2C:   ready
DRAM:  1 GiB
NAND:  HW ECC BCH8 Selected
128 MiB
*** Warning - bad CRC or NAND, using default environment

Hit any key to stop autoboot:  3 2 1 0
mmc1 is available
reading boot.scr

300 bytes read
Running bootscript from MMC/SD to set the ENV...
## Executing script at 80900000
reading uImage

2570792 bytes read
## Booting kernel from Legacy Image at 80009000 ...
   Image Name:   Linux-2.6.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2570728 Bytes = 2.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37 (root@ajnac-OptiPlex-330) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #60 Wed Sep 18 12:01:42 IST 2013
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8168evm
vram size = 52428800 at 0x0
reserved size = 52428800 at 0x0
FB: Reserving 52428800 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8168 2.0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 52224
Kernel command line: console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd notifyk.vpssm3_sva=0xA0000000
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 206MB = 206MB total
Memory: 203156k/203156k available, 58988k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .init : 0xc0008000 - 0xc003c000   ( 208 kB)
      .text : 0xc003c000 - 0xc04dc000   (4736 kB)
      .data : 0xc04dc000 - 0xc0525300   ( 293 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:407
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
GPMC revision 6.0
Trying to install interrupt handler for IRQ400
Trying to install interrupt handler for IRQ401
Trying to install interrupt handler for IRQ402
Trying to install interrupt handler for IRQ403
Trying to install interrupt handler for IRQ404
Trying to install interrupt handler for IRQ405
Trying to install interrupt handler for IRQ406
Trying to install type control for IRQ407
Trying to set irq flags for IRQ407
OMAP clockevent source: GPTIMER1 at 27000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
omap_voltage_early_init: voltage driver support not added
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
omap_voltage_add_dev: VDD specified does not exist!
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
omap_mux_init: Add partition: #1: core, flags: 0
_omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
_omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
NOR: Can't request GPMC CS
registered ti816x_gpio_vr device
registered ti816x_sr device
pm_dbg_init: only OMAP3 supported
registered ti81xx_vpss device
registered ti81xx_vidout device
registered ti81xx on-chip HDMI device
registered ti81xx_fb device
registered ti81xx_vin device
ti81xx_pcie: Invoking PCI BIOS...
ti81xx_pcie: Setting up Host Controller...
ti81xx_pcie: Register base mapped @0xd0820000
ti81xx_pcie: Starting PCI scan...
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers disabled
PCI: bus2: Fast back to back transfers disabled
PCI: bus3: Fast back to back transfers enabled
PCI: bus4: Fast back to back transfers enabled
PCI: bus5: Fast back to back transfers disabled
pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
pci 0000:01:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
pci 0000:02:03.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
pci 0000:02:01.0: PCI bridge to [bus 03-03]
pci 0000:02:01.0:   bridge window [io  disabled]
pci 0000:02:01.0:   bridge window [mem disabled]
pci 0000:02:01.0:   bridge window [mem pref disabled]
pci 0000:02:02.0: PCI bridge to [bus 04-04]
pci 0000:02:02.0:   bridge window [io  disabled]
pci 0000:02:02.0:   bridge window [mem disabled]
pci 0000:02:02.0:   bridge window [mem pref disabled]
pci 0000:05:00.0: BAR 0: assigned [mem 0x20000000-0x2000ffff 64bit]
pci 0000:05:00.0: BAR 0: set to [mem 0x20000000-0x2000ffff 64bit] (PCI address [0x20000000-0x2000ffff])
pci 0000:05:00.0: BAR 2: assigned [mem 0x20010000-0x20011fff 64bit]
pci 0000:05:00.0: BAR 2: set to [mem 0x20010000-0x20011fff 64bit] (PCI address [0x20010000-0x20011fff])
pci 0000:02:03.0: PCI bridge to [bus 05-05]
pci 0000:02:03.0:   bridge window [io  disabled]
pci 0000:02:03.0:   bridge window [mem 0x20000000-0x200fffff]
pci 0000:02:03.0:   bridge window [mem pref disabled]
pci 0000:01:00.0: PCI bridge to [bus 02-05]
pci 0000:01:00.0:   bridge window [io  disabled]
pci 0000:01:00.0:   bridge window [mem 0x20000000-0x200fffff]
pci 0000:01:00.0:   bridge window [mem pref disabled]
pci 0000:00:00.0: PCI bridge to [bus 01-05]
pci 0000:00:00.0:   bridge window [io  disabled]
pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
pci 0000:00:00.0:   bridge window [mem pref disabled]
PCI: enabling device 0000:00:00.0 (0140 -> 0143)
PCI: enabling device 0000:01:00.0 (0140 -> 0143)
PCI: enabling device 0000:02:01.0 (0140 -> 0143)
PCI: enabling device 0000:02:02.0 (0140 -> 0143)
PCI: enabling device 0000:02:03.0 (0140 -> 0143)
bio: create slab <bio-0> at 0
regulator: VFB: 800 <--> 1025 mV at 1010 mV
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
USBSS revision 4ea20809
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource gp timer
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
MUSB controller-0 revision 4ea20800
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
usb usb1: SerialNumber: musb-hdrc.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.0: USB Host mode controller at d081e000 using DMA, IRQ 18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
MUSB controller-1 revision 4ea20800
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
usb usb2: SerialNumber: musb-hdrc.1
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb-hdrc musb-hdrc.1: USB Host mode controller at d0826800 using DMA, IRQ 19
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
PMU: registered new PMU device of type 0
omap-iommu omap-iommu.0: ducati registered
omap-iommu omap-iommu.1: sys registered
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 396
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled
brd: module loaded
loop: module loaded
ahci ahci.0: forcing PORTS_IMPL to 0x3
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
omap2-nand driver initializing
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )
Creating 5 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000260000 : "U-Boot"
0x000000260000-0x000000280000 : "U-Boot Env"
0x000000280000-0x0000006c0000 : "Kernel"
0x0000006c0000-0x00000cee0000 : "File System"
mtd: partition "File System" extends beyond the end of device "omap2-nand.0" -- size truncated to 0x7940000
0x000008000000-0x000008000000 : "Reserved"
mtd: partition "Reserved" is out of reach -- disabled
davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
davinci_mdio davinci_mdio.0: detected phy mask fffffff7
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v1.0.0)
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
usb 1-1: new high speed USB device using musb-hdrc and address 2
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xa0000000
usbcore: registered new interface driver snd-usb-audio
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
ALSA device list:
  #0: TI81XX EVM
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
Power Management for TI81XX.
smartreflex smartreflex: Driver initialized
DaVinci EMAC: No platform data
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
ata2: SATA link down (SStatus 0 SControl 300)
mmc0: new high speed SDHC card at address aaaa
ata1: SATA link down (SStatus 0 SControl 300)
Waiting for root device /dev/mmcblk0p2...
mmcblk0: mmc0:aaaa SU04G 3.69 GiB
usb 1-1: New USB device found, idVendor=0424, idProduct=2514
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
hub 1-1:1.0: USB hub found
 mmcblk0: p1 p2
hub 1-1:1.0: 4 ports detected
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted
Freeing init memory: 208K
INIT: version 2.86 booting
Please wait: booting...
Error opening /dev/fb0: No such file or directory
Starting udev
udevd (72): /proc/72/oom_adj is deprecated, please use /proc/72/oom_score_adj instead.
Remounting root file system...
Caching udev devnodes
NET: Registered protocol family 10
ALSA: Restoring mixer settings...
Configuring network interfaces... No state is present for card EVM
Found hardware: "" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card EVM
net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, id=282f014)
ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.13.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
done.
Setting up IP spoofing protection: rp_filter.
Wed Dec 26 15:58:00 UTC 2012
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
Starting Matrix GUI application.

 _____                    _____           _         _   
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
              |___|                    |___|            

Arago Project http://arago-project.org dm816x-evm ttyO2

Arago 2011.09 dm816x-evm ttyO2

dm816x-evm login: root
root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
SysLink version : 2.20.02.20
SysLink module created on Date:Dec 26 2012 Time:11:03:34
root@dm816x-evm:~# ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3
Attached to slave procId 2.
Loading procId 2.
Loaded file ti816x_hdvpss.xem3 on slave procId 2.
Started slave procId 2.
root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/v
pss.ko i2c_mode=1
VPSS_FVID2: M3 firmware version 0x1000144 is newer,driver may not work properly.
root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xx
fb/ti81xxfb.ko vram=0:40M,1:1M,2:1M
root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xx
hdmi/ti81xxhdmi.ko
HDMI W1 rev 2.0
HDMI CEC Spec version 1.2
I2C No Ack

root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
ti81xxvo.ko
root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/tvp5150
.ko
root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
ti81xxvin.ko
ti81xxvin ti81xxvin: Error registering v4l2 subdevice
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# echo 0 > /sys/devices/platform/vpss/graphics0/enabled
VPSS_GRPX : please open fb0 node first.
root@dm816x-evm:~# ./saLoopBack
failed to open capture device
Error in opening capture device for channel 0
root@dm816x-evm:~#

Please help me in clearing this error.

Thanks and Regards

Ajna

  • Hello,

    Could you try to load load-hd-v4l2-firmware.sh.

    cd /usr/share/ti/ti-media-controller-utils/

    /etc/init.d/matrix-gui-e stop
    /etc/init.d/pvr-init stop
    ./load-hd-firmware.sh stop

    ./load-hd-v4l2-firmware.sh start



    Also:

    Load V4L2 capture and dependent modules

    • Load Syslink Module

    $ insmod syslink.ko
    
    • Load VPSS M3 Firmware

    $ ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3 
    
    • Load VPSS Module

     $ insmod vpss.ko 
    
    • Load TVP7002 kernel module

    $ insmod tvp7002.ko
    
    • Load V4L2 Capture Module

    $ insmod ti81xxvin.ko
    

    Note: Some of the above modules are common between V4L2 capture, V4L2 display and FBDEV modules. These modules need to be loaded only once. tvp7002.ko must be loaded before ti81xxvin.ko.

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guide

    Let me know the result.

    Best Regards,

    Margarita

  • Dear Margarita,

    Thank you for your reply.

    I have loaded all the V4L2 capture and dependent modules.

    Then on;y i tried with loading ti81xxvin.ko module..

    Also i tried with

    cd /usr/share/ti/ti-media-controller-utils/

    /etc/init.d/matrix-gui-e stop
    /etc/init.d/pvr-init stop
    ./load-hd-firmware.sh stop

    Once i gave this ./load-hd-firmware.sh stop the console itself is hanging up...

    here is log

    U-Boot 2010.06-svn220 (Sep 16 2013 - 12:32:05)

    DRAM:  1 GiB
    Using default environment

    Hit any key to stop autoboot:  0
    mmc1 is available
    reading u-boot.bin

    176048 bytes read
    ## Starting application at 0x80800000 ...


    U-Boot 2010.06-svn220 (Sep 16 2013 - 12:34:09)

    TI8168-GP rev 2.0

    ARM clk: 987MHz
    DDR clk: 796MHz

    I2C:   ready
    DRAM:  1 GiB
    NAND:  HW ECC BCH8 Selected
    128 MiB
    *** Warning - bad CRC or NAND, using default environment

    Hit any key to stop autoboot:  0
    mmc1 is available
    reading boot.scr

    300 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading uImage

    2570792 bytes read
    ## Booting kernel from Legacy Image at 80009000 ...
       Image Name:   Linux-2.6.37
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2570728 Bytes = 2.5 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37 (root@ajnac-OptiPlex-330) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #60 Wed Sep 3
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    vram size = 52428800 at 0x0
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8168 2.0
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 52224
    Kernel command line: console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816x0
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 206MB = 206MB total
    Memory: 203156k/203156k available, 58988k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
        lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .init : 0xc0008000 - 0xc003c000   ( 208 kB)
          .text : 0xc003c000 - 0xc04dc000   (4736 kB)
          .data : 0xc04dc000 - 0xc0525300   ( 293 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:407
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ400
    Trying to install interrupt handler for IRQ401
    Trying to install interrupt handler for IRQ402
    Trying to install interrupt handler for IRQ403
    Trying to install interrupt handler for IRQ404
    Trying to install interrupt handler for IRQ405
    Trying to install interrupt handler for IRQ406
    Trying to install type control for IRQ407
    Trying to set irq flags for IRQ407
    OMAP clockevent source: GPTIMER1 at 27000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    omap_voltage_early_init: voltage driver support not added
    regulator: core version 0.5
    regulator: dummy:
    NET: Registered protocol family 16
    omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    omap_voltage_add_dev: VDD specified does not exist!
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 0
    _omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
    _omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
    NOR: Can't request GPMC CS
    registered ti816x_gpio_vr device
    registered ti816x_sr device
    pm_dbg_init: only OMAP3 supported
    registered ti81xx_vpss device
    registered ti81xx_vidout device
    registered ti81xx on-chip HDMI device
    registered ti81xx_fb device
    registered ti81xx_vin device
    ti81xx_pcie: Invoking PCI BIOS...
    ti81xx_pcie: Setting up Host Controller...
    ti81xx_pcie: Register base mapped @0xd0820000
    ti81xx_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers disabled
    PCI: bus1: Fast back to back transfers disabled
    PCI: bus2: Fast back to back transfers disabled
    PCI: bus3: Fast back to back transfers enabled
    PCI: bus4: Fast back to back transfers enabled
    PCI: bus5: Fast back to back transfers disabled
    pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:01:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:02:03.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:02:01.0: PCI bridge to [bus 03-03]
    pci 0000:02:01.0:   bridge window [io  disabled]
    pci 0000:02:01.0:   bridge window [mem disabled]
    pci 0000:02:01.0:   bridge window [mem pref disabled]
    pci 0000:02:02.0: PCI bridge to [bus 04-04]
    pci 0000:02:02.0:   bridge window [io  disabled]
    pci 0000:02:02.0:   bridge window [mem disabled]
    pci 0000:02:02.0:   bridge window [mem pref disabled]
    pci 0000:05:00.0: BAR 0: assigned [mem 0x20000000-0x2000ffff 64bit]
    pci 0000:05:00.0: BAR 0: set to [mem 0x20000000-0x2000ffff 64bit] (PCI address [0x20000000-0x2000ffff])
    pci 0000:05:00.0: BAR 2: assigned [mem 0x20010000-0x20011fff 64bit]
    pci 0000:05:00.0: BAR 2: set to [mem 0x20010000-0x20011fff 64bit] (PCI address [0x20010000-0x20011fff])
    pci 0000:02:03.0: PCI bridge to [bus 05-05]
    pci 0000:02:03.0:   bridge window [io  disabled]
    pci 0000:02:03.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:02:03.0:   bridge window [mem pref disabled]
    pci 0000:01:00.0: PCI bridge to [bus 02-05]
    pci 0000:01:00.0:   bridge window [io  disabled]
    pci 0000:01:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:01:00.0:   bridge window [mem pref disabled]
    pci 0000:00:00.0: PCI bridge to [bus 01-05]
    pci 0000:00:00.0:   bridge window [io  disabled]
    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0:   bridge window [mem pref disabled]
    PCI: enabling device 0000:00:00.0 (0140 -> 0143)
    PCI: enabling device 0000:01:00.0 (0140 -> 0143)
    PCI: enabling device 0000:02:01.0 (0140 -> 0143)
    PCI: enabling device 0000:02:02.0 (0140 -> 0143)
    PCI: enabling device 0000:02:03.0 (0140 -> 0143)
    bio: create slab <bio-0> at 0
    regulator: VFB: 800 <--> 1025 mV at 1010 mV
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    USBSS revision 4ea20809
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, host, debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    MUSB controller-0 revision 4ea20800
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: MUSB HDRC host driver
    usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb1: SerialNumber: musb-hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.0: USB Host mode controller at d081e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb2: SerialNumber: musb-hdrc.1
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.1: USB Host mode controller at d0826800 using DMA, IRQ 19
    NET: Registered protocol family 2
    IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    NetWinder Floating Point Emulator V0.97 (double precision)
    PMU: registered new PMU device of type 0
    omap-iommu omap-iommu.0: ducati registered
    omap-iommu omap-iommu.1: sys registered
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
    msgmni has been set to 396
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    console [ttyO2] enabled
    brd: module loaded
    loop: module loaded
    ahci ahci.0: forcing PORTS_IMPL to 0x3
    ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
    ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci_platform
    scsi1 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
    ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000260000 : "U-Boot"
    0x000000260000-0x000000280000 : "U-Boot Env"
    0x000000280000-0x0000006c0000 : "Kernel"
    0x0000006c0000-0x00000cee0000 : "File System"
    mtd: partition "File System" extends beyond the end of device "omap2-nand.0" -- size truncated to 0x7940000
    0x000008000000-0x000008000000 : "Reserved"
    mtd: partition "Reserved" is out of reach -- disabled
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    davinci_mdio davinci_mdio.0: detected phy mask fffffff7
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mice: PS/2 mouse device common for all mice
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    usb 1-1: new high speed USB device using musb-hdrc and address 2
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xa0000000
    usbcore: registered new interface driver snd-usb-audio
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    ALSA device list:
      #0: TI81XX EVM
    TCP cubic registered
    NET: Registered protocol family 17
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_voltage_late_init: Voltage driver support not added
    Power Management for TI81XX.
    smartreflex smartreflex: Driver initialized
    DaVinci EMAC: No platform data
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    ata2: SATA link down (SStatus 0 SControl 300)
    mmc0: new high speed SDHC card at address aaaa
    ata1: SATA link down (SStatus 0 SControl 300)
    Waiting for root device /dev/mmcblk0p2...
    mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    usb 1-1: New USB device found, idVendor=0424, idProduct=2514
    usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    hub 1-1:1.0: USB hub found
     mmcblk0: p1 p2
    hub 1-1:1.0: 4 ports detected
    EXT3-fs: barriers not enabled
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted
    Freeing init memory: 208K
    INIT: version 2.86 booting
    Please wait: booting...
    Error opening /dev/fb0: No such file or directory
    Starting udev
    udevd (72): /proc/72/oom_adj is deprecated, please use /proc/72/oom_score_adj instead.
    Remounting root file system...
    Caching udev devnodes
    NET: Registered protocol family 10
    ALSA: Restoring mixer settings...
    Configuring network interfaces... No state is present for card EVM
    Found hardware: "" "" "" "" ""
    Hardware is initialized using a generic method
    No state is present for card EVM
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, id=282f014)
    ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.13.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Setting up IP spoofing protection: rp_filter.
    Wed Dec 26 15:58:00 UTC 2012
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting Matrix GUI application.

     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org dm816x-evm ttyO2

    Arago 2011.09 dm816x-evm ttyO2

    dm816x-evm login: root
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
    SysLink version : 2.20.02.20
    SysLink module created on Date:Dec 26 2012 Time:11:03:34
    root@dm816x-evm:~# ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3
    Attached to slave procId 2.
    Loading procId 2.
    Loaded file ti816x_hdvpss.xem3 on slave procId 2.
    Started slave procId 2.
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/v
    pss.ko i2c_mode=1
    VPSS_FVID2: M3 firmware version 0x1000144 is newer,driver may not work properly.
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/tvp5150
    .ko
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xx
    fb/ti81xxfb.ko vram=0:40M,1:1M,2:1M
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    ti81xxvo.ko
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    ti81xxvin.ko
    ti81xxvin ti81xxvin: Error registering v4l2 subdevice
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~# Could you try to load load-hd-v4l2-firmware.sh
    -sh: Could: not found
    root@dm816x-evm:~# cd /usr/share/ti/ti-media-controller-utils/
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# /etc/init.d/matrix-gui-
    e stop
    Stopping Matrix GUI application.
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# /etc/init.d/pvr-init1  
    stop
    Stopping PVR
    ERROR: Module bufferclass_ti does not exist in /proc/modules
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# ./load-hd-firmware.sh s
    top
    Unloading HDVICP2 Firmware
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1:Unable to handle kernel NULL pointer dereference at virtual address 00000010
     Video-M3, 2: Vppgd = c94ec000
    ss-M3
    <Locatio[00000010] *pgd=894c2031n of Firmware> f, *pte=00000000irmware binary f, *ppte=00000000ile
    <start|sto
    p>           to Internal error: Oops: 17 [#1]
    last sysfs file: /sys/devices/virtual/video4linux/video4/index
    Modules linked in: ti81xxvin ti81xxvo ti81xxfb tvp5150 vpss syslink ipv6
    CPU: 0    Not tainted  (2.6.37 #60)
    PC is at DLOAD_query_symbol+0x1c/0x90 [syslink]
    LR is at ElfLoader_getSymbolAddress+0xb4/0x114 [syslink]
    pc : [<bf05cfe0>]    lr : [<bf059c34>]    psr: a0000013
    sp : cb48fd10  ip : cb48fd48  fp : cb48fd44
    r10: bf0e13bd  r9 : 00000000  r8 : cb48fe40
    r7 : 00000000  r6 : bf0e13bd  r5 : d4a82000  r4 : d4a88000
    r3 : cb48fe40  r2 : bf0e13bd  r1 : 00000000  r0 : 00000000
    Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    Control: 10c5387d  Table: 894ec019  DAC: 00000015
    Process firmware_loader (pid: 1351, stack limit = 0xcb48e2e8)
    Stack: (0xcb48fd10 to 0xcb490000)
    fd00:                                     00000001 cb48fe40 c052391c d4a88000
    fd20: d4a82000 bf0e13bd 00000000 cb48fe40 00000001 00000000 cb48fd7c cb48fd48
    fd40: bf059c34 bf05cfd0 00000000 bf0e13bd cb48fe40 cb48fd60 c00bff98 d4a82000
    fd60: cb48fe40 bf0e13bd 00000000 00000000 cb48fdac cb48fd80 bf04b54c bf059b8c
    fd80: 00000000 bf0e13bd cb48fe40 bf073460 d0b3f000 d4a94000 bf0e13bd cb48fe40
    fda0: cb48fde4 cb48fdb0 bf04ea50 bf04b488 00000000 bf0e13bd cb48fe40 cb48fdc8
    fdc0: babe0002 bf147b20 00000000 bf147d18 be97aadc 00000038 cb48fe74 cb48fde8
    fde0: bf06289c bf04e8ac 00000000 be97aaa0 00000000 cb48fe00 c00bfd88 c00bfc3c
    fe00: 00000000 60000013 00000000 bf147d18 bf148530 00000000 be97aaa0 d0ac3fff
    fe20: cb48fe4c cb48fe30 c006b3e0 c006b34c 00000000 bf073514 d0ac7000 d0ac7000
    fe40: cb48fe74 cb48fe50 bf07dcd4 babe0002 00000001 00000000 bf147d18 be97aadc
    fe60: be97aadc 00000000 cb48fe9c cb48fe78 bf0978a0 bf062810 babe0002 00000000
    fe80: c014f497 c942a280 00000000 00000005 cb48fef4 cb48fea0 bf0d1cac bf0977e4
    fea0: c014f497 be97aadc cb48fec4 cb48feb8 c008b380 00600001 babe0002 00000000
    fec0: 00097260 00099650 d4a94000 00000000 c942a280 00000005 00000005 be97aadc
    fee0: cb48e000 00000000 cb48ff04 cb48fef8 c00d5358 bf0d1bbc cb48ff74 cb48ff08
    ff00: c00d5a68 c00d533c 400cf000 ccbaa380 00000000 00000000 fffffffd 00000000
    ff20: cb48ff54 cb48ff30 c03a324c c00421c4 cc86201c c94a7080 00000017 cc829600
    ff40: cb48e000 00000000 00000001 00000000 be97aadc c014f497 00000005 c942a280
    ff60: cb48e000 00000000 cb48ffa4 cb48ff78 c00d5b00 c00d5574 cb48ffac 00000001
    ff80: c039f9d4 00046ee8 00000000 00008e20 00000036 c0046fa8 00000000 cb48ffa8
    ffa0: c0046e00 c00d5ab4 00046ee8 00000000 00000005 c014f497 be97aadc 00000005
    ffc0: 00046ee8 00000000 00008e20 00000036 00000000 00000000 40036000 be97aabc
    ffe0: 00000000 be97aaa0 0002f294 401fcaec 20000010 00000005 e24b1068 e1a0e00f
    Backtrace:
    [<bf05cfc4>] (DLOAD_query_symbol+0x0/0x90 [syslink]) from [<bf059c34>] (ElfLoader_getSymbolAddress+0xb4/0x114 [)
    [<bf059b80>] (ElfLoader_getSymbolAddress+0x0/0x114 [syslink]) from [<bf04b54c>] (Loader_getSymbolAddress+0xd0/0)
     r8:00000000 r7:00000000 r6:bf0e13bd r5:cb48fe40 r4:d4a82000
    [<bf04b47c>] (Loader_getSymbolAddress+0x0/0x160 [syslink]) from [<bf04ea50>] (ProcMgr_getSymbolAddress+0x1b0/0x)
     r7:cb48fe40 r6:bf0e13bd r5:d4a94000 r4:d0b3f000
    [<bf04e8a0>] (ProcMgr_getSymbolAddress+0x0/0x280 [syslink]) from [<bf06289c>] (Platform_stopCallback+0x98/0x510)
    [<bf062804>] (Platform_stopCallback+0x0/0x510 [syslink]) from [<bf0978a0>] (Ipc_control+0xc8/0x14c [syslink])
    [<bf0977d8>] (Ipc_control+0x0/0x14c [syslink]) from [<bf0d1cac>] (IpcDrv_drvioctl+0xfc/0x60c [syslink])
     r7:00000005 r6:00000000 r5:c942a280 r4:c014f497
    [<bf0d1bb0>] (IpcDrv_drvioctl+0x0/0x60c [syslink]) from [<c00d5358>] (vfs_ioctl+0x28/0x44)
    [<c00d5330>] (vfs_ioctl+0x0/0x44) from [<c00d5a68>] (do_vfs_ioctl+0x500/0x540)
    [<c00d5568>] (do_vfs_ioctl+0x0/0x540) from [<c00d5b00>] (sys_ioctl+0x58/0x7c)
    [<c00d5aa8>] (sys_ioctl+0x0/0x7c) from [<c0046e00>] (ret_fast_syscall+0x0/0x30)
     r8:c0046fa8 r7:00000036 r6:00008e20 r5:00000000 r4:00046ee8
    Code: e24dd00c e50b3030 e1a09001 e1a0a002 (e5906010)
    start/stop the f---[ end trace ee20b2f87d1ac309 ]---
    irmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1

    Why i am getting this problem? Decoder i am using is tvp5150. Please let me know what i have to do..

    Thanks and regards

    Ajna

  • Hello,

    You are using EZSDK right?
    If yes please go to the /usr/share/ti/ti-media-controller-utils.

    Edit the load-hd-v4l2-firmware.sh with your external decoder module(tvp).

    Then

     /etc/init.d/matrix-gui-e stop

    /usr/share/ti/ti-media-controller-utils# /etc/init.d/pvr-init1  stop

    ./load-hd-firmware.sh stop

    ./load-hd-v4l2-firmware.sh start

    or just check the last script to see how the binaries and the modules are loading.

    Best Regards,

    Margarita


  • Hi,

    Actaully my problem was with source code. While changing from tvp7002 to tvp5150 some parts i have missed.

    Now it is proper ... But still the capture device is not capable of doing capture.. I am getting failed message when I am trying to run the saLoopBack application...

    Here is the log...

    U-Boot 2010.06-svn220 (Sep 16 2013 - 12:34:09)

    TI8168-GP rev 2.0

    ARM clk: 987MHz
    DDR clk: 796MHz

    I2C:   ready
    DRAM:  1 GiB
    NAND:  HW ECC BCH8 Selected
    128 MiB
    *** Warning - bad CRC or NAND, using default environment

    Hit any key to stop autoboot:  0
    mmc1 is available
    reading boot.scr

    300 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading uImage

    2570744 bytes read
    ## Booting kernel from Legacy Image at 80009000 ...
       Image Name:   Linux-2.6.37
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2570680 Bytes = 2.5 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37 (root@ajnac-OptiPlex-330) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #61 Wed Sep 3
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    vram size = 52428800 at 0x0
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8168 2.0
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 52224
    Kernel command line: console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816x0
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 206MB = 206MB total
    Memory: 203156k/203156k available, 58988k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
        lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .init : 0xc0008000 - 0xc003c000   ( 208 kB)
          .text : 0xc003c000 - 0xc04dc000   (4736 kB)
          .data : 0xc04dc000 - 0xc0525300   ( 293 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:407
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ400
    Trying to install interrupt handler for IRQ401
    Trying to install interrupt handler for IRQ402
    Trying to install interrupt handler for IRQ403
    Trying to install interrupt handler for IRQ404
    Trying to install interrupt handler for IRQ405
    Trying to install interrupt handler for IRQ406
    Trying to install type control for IRQ407
    Trying to set irq flags for IRQ407
    OMAP clockevent source: GPTIMER1 at 27000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    omap_voltage_early_init: voltage driver support not added
    regulator: core version 0.5
    regulator: dummy:
    NET: Registered protocol family 16
    omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    omap_voltage_add_dev: VDD specified does not exist!
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 0
    _omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
    _omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
    NOR: Can't request GPMC CS
    registered ti816x_gpio_vr device
    registered ti816x_sr device
    pm_dbg_init: only OMAP3 supported
    registered ti81xx_vpss device
    registered ti81xx_vidout device
    registered ti81xx on-chip HDMI device
    registered ti81xx_fb device
    registered ti81xx_vin device
    ti81xx_pcie: Invoking PCI BIOS...
    ti81xx_pcie: Setting up Host Controller...
    ti81xx_pcie: Register base mapped @0xd0820000
    ti81xx_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers disabled
    PCI: bus1: Fast back to back transfers disabled
    PCI: bus2: Fast back to back transfers disabled
    PCI: bus3: Fast back to back transfers enabled
    PCI: bus4: Fast back to back transfers enabled
    PCI: bus5: Fast back to back transfers disabled
    pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:01:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:02:03.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:02:01.0: PCI bridge to [bus 03-03]
    pci 0000:02:01.0:   bridge window [io  disabled]
    pci 0000:02:01.0:   bridge window [mem disabled]
    pci 0000:02:01.0:   bridge window [mem pref disabled]
    pci 0000:02:02.0: PCI bridge to [bus 04-04]
    pci 0000:02:02.0:   bridge window [io  disabled]
    pci 0000:02:02.0:   bridge window [mem disabled]
    pci 0000:02:02.0:   bridge window [mem pref disabled]
    pci 0000:05:00.0: BAR 0: assigned [mem 0x20000000-0x2000ffff 64bit]
    pci 0000:05:00.0: BAR 0: set to [mem 0x20000000-0x2000ffff 64bit] (PCI address [0x20000000-0x2000ffff])
    pci 0000:05:00.0: BAR 2: assigned [mem 0x20010000-0x20011fff 64bit]
    pci 0000:05:00.0: BAR 2: set to [mem 0x20010000-0x20011fff 64bit] (PCI address [0x20010000-0x20011fff])
    pci 0000:02:03.0: PCI bridge to [bus 05-05]
    pci 0000:02:03.0:   bridge window [io  disabled]
    pci 0000:02:03.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:02:03.0:   bridge window [mem pref disabled]
    pci 0000:01:00.0: PCI bridge to [bus 02-05]
    pci 0000:01:00.0:   bridge window [io  disabled]
    pci 0000:01:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:01:00.0:   bridge window [mem pref disabled]
    pci 0000:00:00.0: PCI bridge to [bus 01-05]
    pci 0000:00:00.0:   bridge window [io  disabled]
    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0:   bridge window [mem pref disabled]
    PCI: enabling device 0000:00:00.0 (0140 -> 0143)
    PCI: enabling device 0000:01:00.0 (0140 -> 0143)
    PCI: enabling device 0000:02:01.0 (0140 -> 0143)
    PCI: enabling device 0000:02:02.0 (0140 -> 0143)
    PCI: enabling device 0000:02:03.0 (0140 -> 0143)
    bio: create slab <bio-0> at 0
    regulator: VFB: 800 <--> 1025 mV at 1010 mV
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    USBSS revision 4ea20809
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, host, debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    MUSB controller-0 revision 4ea20800
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: MUSB HDRC host driver
    usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb1: SerialNumber: musb-hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.0: USB Host mode controller at d081e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb2: SerialNumber: musb-hdrc.1
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.1: USB Host mode controller at d0826800 using DMA, IRQ 19
    NET: Registered protocol family 2
    IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    NetWinder Floating Point Emulator V0.97 (double precision)
    PMU: registered new PMU device of type 0
    omap-iommu omap-iommu.0: ducati registered
    omap-iommu omap-iommu.1: sys registered
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
    msgmni has been set to 396
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    console [ttyO2] enabled
    brd: module loaded
    loop: module loaded
    ahci ahci.0: forcing PORTS_IMPL to 0x3
    ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
    ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci_platform
    scsi1 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
    ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000260000 : "U-Boot"
    0x000000260000-0x000000280000 : "U-Boot Env"
    0x000000280000-0x0000006c0000 : "Kernel"
    0x0000006c0000-0x00000cee0000 : "File System"
    mtd: partition "File System" extends beyond the end of device "omap2-nand.0" -- size truncated to 0x7940000
    0x000008000000-0x000008000000 : "Reserved"
    mtd: partition "Reserved" is out of reach -- disabled
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    davinci_mdio davinci_mdio.0: detected phy mask fffffff7
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mice: PS/2 mouse device common for all mice
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    usb 1-1: new high speed USB device using musb-hdrc and address 2
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xa0000000
    usbcore: registered new interface driver snd-usb-audio
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    ALSA device list:
      #0: TI81XX EVM
    TCP cubic registered
    NET: Registered protocol family 17
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_voltage_late_init: Voltage driver support not added
    Power Management for TI81XX.
    smartreflex smartreflex: Driver initialized
    DaVinci EMAC: No platform data
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    ata2: SATA link down (SStatus 0 SControl 300)
    mmc0: new high speed SDHC card at address aaaa
    ata1: SATA link down (SStatus 0 SControl 300)
    Waiting for root device /dev/mmcblk0p2...
    mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    usb 1-1: New USB device found, idVendor=0424, idProduct=2514
    usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    hub 1-1:1.0: USB hub found
     mmcblk0: p1 p2
    hub 1-1:1.0: 4 ports detected
    EXT3-fs: barriers not enabled
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted
    Freeing init memory: 208K
    INIT: version 2.86 booting
    Please wait: booting...
    Error opening /dev/fb0: No such file or directory
    Starting udev
    udevd (72): /proc/72/oom_adj is deprecated, please use /proc/72/oom_score_adj instead.
    Remounting root file system...
    Caching udev devnodes
    NET: Registered protocol family 10
    ALSA: Restoring mixer settings...
    Configuring network interfaces... No state is present for card EVM
    Found hardware: "" "" "" "" ""
    Hardware is initialized using a generic method
    No state is present for card EVM
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, id=282f014)
    ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.13.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Setting up IP spoofing protection: rp_filter.
    Wed Dec 26 15:58:00 UTC 2012
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting Matrix GUI application.

     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org dm816x-evm ttyO2

    Arago 2011.09 dm816x-evm ttyO2

    dm816x-evm login: root
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
    ivers/video/ti81xx/vpss/vpss.ko i2c_mode=1
    insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko vram=0:40M,1:1M,2:1M
    insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxhdmi/ti81xxhdmi.ko
    insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/ti81xxvo.ko
    insmod /lib/modules/2.6.37/kernel/drivers/media/video/tvp5150.ko
    insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/ti81xxvin.koSysLink version : 2.20.02.20
    SysLink module created on Date:Dec 26 2012 Time:11:03:34
    root@dm816x-evm:~# ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3
    Attached to slave procId 2.
    Loading procId 2.
    Loaded file ti816x_hdvpss.xem3 on slave procId 2.
    Started slave procId 2.
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/v
    pss.ko i2c_mode=1
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    VPSS_FVID2: M3 firmware version 0x1000144 is newer,driver may not work properly.
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xx
    fb/ti81xxfb.ko vram=0:40M,1:1M,2:1M
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xx
    hdmi/ti81xxhdmi.ko
    HDMI W1 rev 2.0
    HDMI CEC Spec version 1.2
    I2C No Ack

    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    ti81xxvo.ko
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/tvp5150
    .ko
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    ti81xxvin.ko
    tvp5150 2-005d: chip found @ 0xba (OMAP I2C adapter)
    ti81xxvin ti81xxvin: registered sub device tvp5150
    ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~# echo 0 > /sys/devices/platform/vpss/graphics0/enabled
    VPSS_GRPX : please open fb0 node first.
    root@dm816x-evm:~# ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of doing capture
    Querying DV Preset failed
    root@dm816x-evm:~#

    Expecting your attension...

    Thanks and Regards

    Ajna

  • Hello,

    AJNA ABUBACKER said:
    Querying DV Preset failed

     Setting/querying of DV preset fails means that it is not able to detect the input resolution.

    BR

    Margarita

  • Hello,

    AJNA ABUBACKER said:
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/v
    pss.ko i2c_mode=1
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0

    You also have fail when you are loading the vpss module, please follow the steps described in the video capture driver user guide or make the change for the tvp in the load_hd_v4l2_firmware.sh.

    BR
    Margarita

  • Dear Margarita,

    What I can do to avoid that "Querying DV Preset failed error"...?

    Thanks and Regards Ajna

  • Hello,

    Check this thread it will give you some answers.

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/154472.aspx

    Best Regards,

    Margarita

  • Dear Margarita,

     Even though it is showing that vpss loading is failed, my hdmi and all is working proper...

    So we can leave that error no...?

    I made the change for the tvp in the load_hd_v4l2_firmware.sh. But still the console is hanged up with the ./load_hd_v4l2_firmware.sh itself....

    Please help me...

    Thanks and Regards

    Ajna

  • Hello,

    Most of the cases it means wrong bootargs, Could you post your bootargs please?

    You could check here also:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/151889.aspx

    Best Regards,

    Margarita

  • My bootargs is as follows

    setenv bootargs 'console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd notifyk.vpssm3_sva=0xA0000000'
    fatload mmc 1 0x80009000 uImage
    bootm 0x80009000

    Also I have commented the below lines in etc/init.d/load-hd-firmware.sh

    case "$1" in
    start)
    #echo "Loading HDVICP2 Firmware"
    #prcm_config_app s
    #modprobe syslink
    #until [[ -e /dev/syslinkipc_ProcMgr && -e /dev/syslinkipc_ClientNotifyMgr ]]
    #do
    #sleep 0.5
    #done
    # firmware_loader $HDVICP2_ID /usr/share/ti/ti-media-controller-utils/dm816x_hdvicp.xem3 start
    #echo "Loading HDVPSS Firmware"
    # firmware_loader $HDVPSS_ID /usr/share/ti/ti-media-controller-utils/dm816x_hdvpss.xem3 start
    #modprobe vpss sbufaddr=0xBFB00000 mode=hdmi:1080p-60,dvo2:1080p-60,hdcomp:1080p-
    60 i2c_mode=1
    #modprobe ti81xxfb vram=0:24M,1:16M,2:6M
    #fbset -depth 32 -rgba 8/16,8/8,8/0,0/0
    #modprobe ti81xxhdmi
    #echo "Unloading HDVICP2 Firmware"
    # firmware_loader $HDVICP2_ID /usr/share/ti/ti-media-controller-utils/dm816x_hdvicp.xem3 stop
    # echo "Unloading HDVPSS Firmware"
    # rmmod ti81xxfb
    # rmmod ti81xxhdmi
    # rmmod vpss
    # firmware_loader $HDVPSS_ID /usr/share/ti/ti-media-controller-utils/dm816x_hdvpss.xem3 stop
    # rmmod syslink

    Otherwise i will get
    notify_shm_drv_sendevent failed! status = 0xfffffff0

    notify_send_event failed! status = 0xfffffff0

    for a long time and atlast it will shows error inserting .ko files....

    Waiting for yuor Reply...

    Thanks and Regards

    Ajna

  • Hello,

    In the /usr/share/ti/ti-media-controller-utils folder there is a load-hd-v4l2-firmware.sh script load it just change add with your tvp module.

    Check here for information how to load v4l2 firmware:

    /ti-ezsdk_dm814x-evm_5_05_02_00/docs

    /home/users/mgashova/ti-ezsdk_dm814x-evm_5_05_02_00/docs

    Chapter: How to change from OMX to V4L2 firmware for capture/display

    AJNA ABUBACKER said:
    notifyk.vpssm3_sva=0xA0000000'

    Also could you try with notifyk.vpssm3_sva=0xBF900000

    Reference : http://processors.wiki.ti.com/index.php/TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guide

    Read This First

    BR

    Margarita

  • Dear Margarita,

    Same document TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guide is there in the path ti-ezsdk_dm816x-evm_5_05_02_00/board-support/docs/TI81XX_Video_Capture_Driver_User_Guide.pdf.... but in that it is written that

    Bootargs parameter is required to use notify driver in kernel. This address is valid for DM816X/AM389X
    platforms.
    $ notifyk.vpssm3_sva=0xA0000000

    i am using DM8168 only.... So whether i need to change the bootarg..?

    Anyway i tried with notifyk.vpssm3_sva=0xBF900000 in my bootarg....

    Result is console hanging.... Here is the boot log.....


    U-Boot 2010.06 (Aug 12 2013 - 18:21:48)

    DRAM:  1 GiB
    Using default environment

    Hit any key to stop autoboot:  0
    mmc1 is available
    reading u-boot.bin

    176040 bytes read
    ## Starting application at 0x80800000 ...


    U-Boot 2010.06 (Aug 12 2013 - 18:43:16)

    TI8168-GP rev 2.0

    ARM clk: 987MHz
    DDR clk: 796MHz

    I2C:   ready
    DRAM:  1 GiB
    NAND:  HW ECC BCH8 Selected
    128 MiB
    *** Warning - bad CRC or NAND, using default environment

    Hit any key to stop autoboot:  0
    mmc1 is available
    reading boot.scr

    300 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading uImage

    2571104 bytes read
    ## Booting kernel from Legacy Image at 80009000 ...
       Image Name:   Linux-2.6.37
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2571040 Bytes = 2.5 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37 (root@ajnac-OptiPlex-330) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #62 Wed Sep 3
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    vram size = 52428800 at 0x0
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8168 2.0
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 52224
    Kernel command line: console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816x0
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 206MB = 206MB total
    Memory: 203156k/203156k available, 58988k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
        lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .init : 0xc0008000 - 0xc003c000   ( 208 kB)
          .text : 0xc003c000 - 0xc04dc000   (4736 kB)
          .data : 0xc04dc000 - 0xc0525300   ( 293 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:407
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ400
    Trying to install interrupt handler for IRQ401
    Trying to install interrupt handler for IRQ402
    Trying to install interrupt handler for IRQ403
    Trying to install interrupt handler for IRQ404
    Trying to install interrupt handler for IRQ405
    Trying to install interrupt handler for IRQ406
    Trying to install type control for IRQ407
    Trying to set irq flags for IRQ407
    OMAP clockevent source: GPTIMER1 at 27000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    omap_voltage_early_init: voltage driver support not added
    regulator: core version 0.5
    regulator: dummy:
    NET: Registered protocol family 16
    omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    omap_voltage_add_dev: VDD specified does not exist!
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 0
    _omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
    _omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
    NOR: Can't request GPMC CS
    registered ti816x_gpio_vr device
    registered ti816x_sr device
    pm_dbg_init: only OMAP3 supported
    registered ti81xx_vpss device
    registered ti81xx_vidout device
    registered ti81xx on-chip HDMI device
    registered ti81xx_fb device
    registered ti81xx_vin device
    ti81xx_pcie: Invoking PCI BIOS...
    ti81xx_pcie: Setting up Host Controller...
    ti81xx_pcie: Register base mapped @0xd0820000
    ti81xx_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers disabled
    PCI: bus1: Fast back to back transfers disabled
    PCI: bus2: Fast back to back transfers disabled
    PCI: bus3: Fast back to back transfers enabled
    PCI: bus4: Fast back to back transfers enabled
    PCI: bus5: Fast back to back transfers disabled
    pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:01:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:02:03.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    pci 0000:02:01.0: PCI bridge to [bus 03-03]
    pci 0000:02:01.0:   bridge window [io  disabled]
    pci 0000:02:01.0:   bridge window [mem disabled]
    pci 0000:02:01.0:   bridge window [mem pref disabled]
    pci 0000:02:02.0: PCI bridge to [bus 04-04]
    pci 0000:02:02.0:   bridge window [io  disabled]
    pci 0000:02:02.0:   bridge window [mem disabled]
    pci 0000:02:02.0:   bridge window [mem pref disabled]
    pci 0000:05:00.0: BAR 0: assigned [mem 0x20000000-0x2000ffff 64bit]
    pci 0000:05:00.0: BAR 0: set to [mem 0x20000000-0x2000ffff 64bit] (PCI address [0x20000000-0x2000ffff])
    pci 0000:05:00.0: BAR 2: assigned [mem 0x20010000-0x20011fff 64bit]
    pci 0000:05:00.0: BAR 2: set to [mem 0x20010000-0x20011fff 64bit] (PCI address [0x20010000-0x20011fff])
    pci 0000:02:03.0: PCI bridge to [bus 05-05]
    pci 0000:02:03.0:   bridge window [io  disabled]
    pci 0000:02:03.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:02:03.0:   bridge window [mem pref disabled]
    pci 0000:01:00.0: PCI bridge to [bus 02-05]
    pci 0000:01:00.0:   bridge window [io  disabled]
    pci 0000:01:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:01:00.0:   bridge window [mem pref disabled]
    pci 0000:00:00.0: PCI bridge to [bus 01-05]
    pci 0000:00:00.0:   bridge window [io  disabled]
    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    pci 0000:00:00.0:   bridge window [mem pref disabled]
    PCI: enabling device 0000:00:00.0 (0140 -> 0143)
    PCI: enabling device 0000:01:00.0 (0140 -> 0143)
    PCI: enabling device 0000:02:01.0 (0140 -> 0143)
    PCI: enabling device 0000:02:02.0 (0140 -> 0143)
    PCI: enabling device 0000:02:03.0 (0140 -> 0143)
    bio: create slab <bio-0> at 0
    regulator: VFB: 800 <--> 1025 mV at 1010 mV
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    USBSS revision 4ea20809
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, host, debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    MUSB controller-0 revision 4ea20800
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: MUSB HDRC host driver
    usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb1: SerialNumber: musb-hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.0: USB Host mode controller at d081e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb2: SerialNumber: musb-hdrc.1
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.1: USB Host mode controller at d0826800 using DMA, IRQ 19
    NET: Registered protocol family 2
    IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    NetWinder Floating Point Emulator V0.97 (double precision)
    PMU: registered new PMU device of type 0
    omap-iommu omap-iommu.0: ducati registered
    omap-iommu omap-iommu.1: sys registered
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
    msgmni has been set to 396
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    console [ttyO2] enabled
    brd: module loaded
    loop: module loaded
    ahci ahci.0: forcing PORTS_IMPL to 0x3
    ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
    ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci_platform
    scsi1 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
    ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000260000 : "U-Boot"
    0x000000260000-0x000000280000 : "U-Boot Env"
    0x000000280000-0x0000006c0000 : "Kernel"
    0x0000006c0000-0x00000cee0000 : "File System"
    mtd: partition "File System" extends beyond the end of device "omap2-nand.0" -- size truncated to 0x7940000
    0x000008000000-0x000008000000 : "Reserved"
    mtd: partition "Reserved" is out of reach -- disabled
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    davinci_mdio davinci_mdio.0: detected phy mask fffffff7
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mice: PS/2 mouse device common for all mice
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    usb 1-1: new high speed USB device using musb-hdrc and address 2
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xbf900000
    usbcore: registered new interface driver snd-usb-audio
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    ALSA device list:
      #0: TI81XX EVM
    TCP cubic registered
    NET: Registered protocol family 17
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_voltage_late_init: Voltage driver support not added
    Power Management for TI81XX.
    smartreflex smartreflex: Driver initialized
    DaVinci EMAC: No platform data
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    ata2: SATA link down (SStatus 0 SControl 300)
    mmc0: new high speed SDHC card at address aaaa
    ata1: SATA link down (SStatus 0 SControl 300)
    Waiting for root device /dev/mmcblk0p2...
    mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    usb 1-1: New USB device found, idVendor=0424, idProduct=2514
    usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    hub 1-1:1.0: USB hub found
     mmcblk0: p1 p2
    hub 1-1:1.0: 4 ports detected
    EXT3-fs: barriers not enabled
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted
    Freeing init memory: 208K
    INIT: version 2.86 booting
    Please wait: booting...
    Error opening /dev/fb0: No such file or directory
    Starting udev
    udevd (74): /proc/74/oom_adj is deprecated, please use /proc/74/oom_score_adj instead.
    Remounting root file system...
    Caching udev devnodes
    NET: Registered protocol family 10
    ALSA: Restoring mixer settings...
    Configuring network interfaces... No state is present for card EVM
    Found hardware: "" "" "" "" ""
    Hardware is initialized using a generic method
    No state is present for card EVM
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, id=282f014)
    ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.13.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Setting up IP spoofing protection: rp_filter.
    Wed Dec 26 15:58:00 UTC 2012
    INIT: Entering runlevel: 5
    Loading HDVICP2 Firmware
    DM816X prcm_config_app version: 2.0.0.1
    Doing PRCM settings...
            PRCM for IVHD0 is in Progress, Please wait.....  
                            BW Phy Addr : 0x48180600 Data : 0x00000002
                            AW Phy Addr : 0x48180600 Data : 0x00000002
                            Phy Addr : 0x48180c04 Data : 0x00000037
                            BW Phy Addr : 0x48180620 Data : 0x00070000
                            AW Phy Addr : 0x48180620 Data : 0x00070002
                            BW Phy Addr : 0x48180624 Data : 0x00030000
                            AW Phy Addr : 0x48180624 Data : 0x00010002
                            Phy Addr : 0x48180600 Data : 0x00000102
                            BW Phy Addr : 0x48180c10 Data : 0x00000007
                            AW Phy Addr : 0x48180c10 Data : 0x00000003
                            Phy Addr : 0x48180c14 Data : 0x00000004
                            BW Phy Addr : 0x58088000 Data : 0x1a205092
                            AW Phy Addr : 0x58088000 Data : 0xeafffffe
                            BW Phy Addr : 0x58098000 Data : 0x291c1325
                            AW Phy Addr : 0x58098000 Data : 0xeafffffe
                            BW Phy Addr : 0x48180c10 Data : 0x00000003
                            AW Phy Addr : 0x48180c10 Data : 0x00000000
                            Phy Addr : 0x48180c14 Data : 0x00000007
            PRCM for IVHD0 is Done Successfully  
            PRCM for IVHD1 is in Progress, Please wait.....  
                            BW Phy Addr : 0x48180700 Data : 0x00000002
                            AW Phy Addr : 0x48180700 Data : 0x00000002
                            Phy Addr : 0x48180d04 Data : 0x00000037
                            BW Phy Addr : 0x48180720 Data : 0x00070000
                            AW Phy Addr : 0x48180720 Data : 0x00050002
                            BW Phy Addr : 0x48180724 Data : 0x00030000
                            AW Phy Addr : 0x48180724 Data : 0x00010002
                            Phy Addr : 0x48180700 Data : 0x00000102
                            BW Phy Addr : 0x48180d10 Data : 0x00000007
                            AW Phy Addr : 0x48180d10 Data : 0x00000003
                            Phy Addr : 0x48180d14 Data : 0x00000004
                            BW Phy Addr : 0x5a088000 Data : 0xe6a75553
                            AW Phy Addr : 0x5a088000 Data : 0xeafffffe
                            BW Phy Addr : 0x5a098000 Data : 0xbe1880b0
                            AW Phy Addr : 0x5a098000 Data : 0xeafffffe
                            BW Phy Addr : 0x48180d10 Data : 0x00000003
                            AW Phy Addr : 0x48180d10 Data : 0x00000000
                            Phy Addr : 0x48180d14 Data : 0x00000007
            PRCM for IVHD1 is Done Successfully  
            PRCM for IVHD2 is in Progress, Please wait.....  
                            BW Phy Addr : 0x48180800 Data : 0x00000002
                            AW Phy Addr : 0x48180800 Data : 0x00000002
                            Phy Addr : 0x48180e04 Data : 0x00000037
                            BW Phy Addr : 0x48180820 Data : 0x00070000
                            AW Phy Addr : 0x48180820 Data : 0x00050002
                            BW Phy Addr : 0x48180824 Data : 0x00030000
                            AW Phy Addr : 0x48180824 Data : 0x00010002
                            Phy Addr : 0x48180800 Data : 0x00000102
                            BW Phy Addr : 0x48180e10 Data : 0x00000007
                            AW Phy Addr : 0x48180e10 Data : 0x00000003
                            Phy Addr : 0x48180e14 Data : 0x00000004
                            BW Phy Addr : 0x53088000 Data : 0x32a1efcc
                            AW Phy Addr : 0x53088000 Data : 0xeafffffe
                            BW Phy Addr : 0x53098000 Data : 0x83bb2d13
                            AW Phy Addr : 0x53098000 Data : 0xeafffffe
                            BW Phy Addr : 0x48180e10 Data : 0x00000003
                            AW Phy Addr : 0x48180e10 Data : 0x00000000
                            Phy Addr : 0x48180e14 Data : 0x00000007
            PRCM for IVHD2 is Done Successfully  
    PRCM Initialization completed
    SysLink version : 2.20.02.20
    SysLink module created on Date:Dec 26 2012 Time:11:03:34
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 1 start Successful
    Loading HDVPSS Firmware
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 2 start Successful
    VPSS_FVID2: M3 firmware version 0x1000145 is newer,driver may not work properly.
    open /dev/fb0: No such file or directory
    HDMI W1 rev 2.0
    HDMI CEC Spec version 1.2
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting PVR
    omaplfb: OMAPLFBInitFBDev: Device 0: Unknown FB format
    Starting Matrix GUI application.

     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org dm816x-evm ttyO2

    Arago 2011.09 dm816x-evm ttyO2

    dm816x-evm login: root
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
    insmod: error inserting '/lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko': -1 File exists
    root@dm816x-evm:~# ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3
    Attached to slave procId 2.
    Loading procId 2.
    Loaded file ti816x_hdvpss.xem3 on slave procId 2.
    Started slave procId 2.
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/v
    pss.ko i2c_mode=1
    insmod: error inserting '/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/vpss.ko': -1 File exists
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xx
    fb/ti81xxfb.ko vram=0:40M,1:1M,2:1M
    insmod: error inserting '/lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko': -1 File exists
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xx
    hdmi/ti81xxhdmi.ko
    insmod: error inserting '/lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxhdmi/ti81xxhdmi.ko': -1 File exis
    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    ti81xxvo.ko
    VPSS_FVID2: contrl event 0x1004001a timeout
    VPSS_DCTRL: failed to get venc info.

    and the console is hanged....

    Again i rebooted and tried with the below commands

    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~# cd /usr/share/ti/ti-media-controller-utils/
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# /etc/init.d/matrix-gui-
    e stop
    Stopping Matrix GUI application.
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# /etc/init.d/pvr-init st
    op
    Stopping PVR
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# ./load-hd-v4l2-firmware
    .sh stop
    Unloading HDVICP2 Firmware
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 1 stop Successful
    Unloading HDVPSS Firmware
    ERROR: Module ti81xxfb is in use
    ERROR: Module ti81xxvin does not exist in /proc/modules
    ERROR: Module ti81xxvo does not exist in /proc/modules
    ERROR: Module tvp5150 does not exist in /proc/modules
    ERROR: Module vpss is in use by ti81xxfb
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 2 stop Successful
    Removed syslink kernel module
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils#
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# ./load-hd-v4l2-firmware
    .sh start
    Loading HDVICP2 Firmware
    DM816X prcm_config_app version: 2.0.0.1
    Doing PRCM settings...
            PRCM for IVHD0 is in Progress, Please wait.....  
                            BW Phy Addr : 0x48180600 Data : 0x00000102
                            AW Phy Addr : 0x48180600 Data : 0x00000102
                            Phy Addr : 0x48180c04 Data : 0x00000037
                            BW Phy Addr : 0x48180620 Data : 0x00000002
                            AW Phy Addr : 0x48180620 Data : 0x00000002
                            BW Phy Addr : 0x48180624 Data : 0x00000002
                            AW Phy Addr : 0x48180624 Data : 0x00000002
                            Phy Addr : 0x48180600 Data : 0x00000102
                            BW Phy Addr : 0x48180c10 Data : 0x00000000
                            AW Phy Addr : 0x48180c10 Data : 0x00000003
                            Phy Addr : 0x48180c14 Data : 0x00000007
                            BW Phy Addr : 0x58088000 Data : 0xeafffffe
                            AW Phy Addr : 0x58088000 Data : 0xeafffffe
                            BW Phy Addr : 0x58098000 Data : 0xeafffffe
                            AW Phy Addr : 0x58098000 Data : 0xeafffffe
                            BW Phy Addr : 0x48180c10 Data : 0x00000003
                            AW Phy Addr : 0x48180c10 Data : 0x00000000
                            Phy Addr : 0x48180c14 Data : 0x00000007
            PRCM for IVHD0 is Done Successfully  
            PRCM for IVHD1 is in Progress, Please wait.....  
                            BW Phy Addr : 0x48180700 Data : 0x00000102
                            AW Phy Addr : 0x48180700 Data : 0x00000102
                            Phy Addr : 0x48180d04 Data : 0x00000037
                            BW Phy Addr : 0x48180720 Data : 0x00000002
                            AW Phy Addr : 0x48180720 Data : 0x00000002
                            BW Phy Addr : 0x48180724 Data : 0x00000002
                            AW Phy Addr : 0x48180724 Data : 0x00000002
                            Phy Addr : 0x48180700 Data : 0x00000102
                            BW Phy Addr : 0x48180d10 Data : 0x00000000
                            AW Phy Addr : 0x48180d10 Data : 0x00000003
                            Phy Addr : 0x48180d14 Data : 0x00000007
                            BW Phy Addr : 0x5a088000 Data : 0xeafffffe
                            AW Phy Addr : 0x5a088000 Data : 0xeafffffe
                            BW Phy Addr : 0x5a098000 Data : 0xeafffffe
                            AW Phy Addr : 0x5a098000 Data : 0xeafffffe
                            BW Phy Addr : 0x48180d10 Data : 0x00000003
                            AW Phy Addr : 0x48180d10 Data : 0x00000000
                            Phy Addr : 0x48180d14 Data : 0x00000007
            PRCM for IVHD1 is Done Successfully  
            PRCM for IVHD2 is in Progress, Please wait.....  
                            BW Phy Addr : 0x48180800 Data : 0x00000102
                            AW Phy Addr : 0x48180800 Data : 0x00000102
                            Phy Addr : 0x48180e04 Data : 0x00000037
                            BW Phy Addr : 0x48180820 Data : 0x00000002
                            AW Phy Addr : 0x48180820 Data : 0x00000002
                            BW Phy Addr : 0x48180824 Data : 0x00000002
                            AW Phy Addr : 0x48180824 Data : 0x00000002
                            Phy Addr : 0x48180800 Data : 0x00000102
                            BW Phy Addr : 0x48180e10 Data : 0x00000000
                            AW Phy Addr : 0x48180e10 Data : 0x00000003
                            Phy Addr : 0x48180e14 Data : 0x00000007
                            BW Phy Addr : 0x53088000 Data : 0xeafffffe
                            AW Phy Addr : 0x53088000 Data : 0xeafffffe
                            BW Phy Addr : 0x53098000 Data : 0xeafffffe
                            AW Phy Addr : 0x530SysLink version : 2.20.02.20
    SysLink module created on Date:Dec 26 2012 Time:11:03:34
    98000 Data : 0xeafffffe
                            BW Phy Addr : 0x48180e10 Data : 0x00000003
                            AW Phy Addr : 0x48180e10 Data : 0x00000000
                            Phy Addr : 0x48180e14 Data : 0x00000007
            PRCM for IVHD2 is Done Successfully  
    PRCM Initialization completed
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 1 start Successful
    Loading HDVPSS (V4L2) Firmware
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 0
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 2 start Successful
    VPSS_FVID2: contrl event 0x1004001a timeout
    VPSS_DCTRL: failed to get venc info.

    Again the console hanged with this message..... I have changed the script for tvp5150 instead of tvp7002.... still this is condition....

    Please let me know what i have to do....

    Whether i have to continue with notifyk.vpssm3_sva=0xBF900000 ......?

    Thanks and regards

    Ajna



  • Dear margarita,

    Onething i noticed in the DM816x EZSDK 5.05 Release Notes....

    Limitations
    1. External video capture is only supported through the TVP7002 video decoder via I2C1.
    Customers are required to maintain the same configuration on their boards. The EZSDK will
    support additional capture devices in future releases. Customers will also be able to add capture
    devices of their choice in future releases.

    This means i will not be able to use tvp5150 with this package...?

    I have applied necessary changes to change the decoder from tvp7002 to tvp5150....

    Hoping your kind attension..

    Thanks and Regards

    Ajna


  • Hello,

    You could check in the forum that some members are able to the external decoder by follow the steps here:

    http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_Adding_External_Decoders_to_V4L2_Capture_Driver

    BR

    Margarita

  • Dear Margarita,

    I have done all those things to change the decoder....

    i am stucked up in the Querying DV preset failed error ...

    root@dm816x-evm:~# ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of doing capture
    Querying DV Preset failed

    I dint understood what i have to do next....

    may i know how this error is resulted.... U told it is because of resolution not getting detected..... But even if i remove the video in cable, i am getting this error....

    Why my device is not getting detected....?. Prblme is with hardware or software.?..

    Waiting for your reply...

    thanks and Regards

     Ajna

  • Dear all,

     Please help me....

    I am stucked up here for about 2-3 weeks....

    Thanks and Regards

    Ajna

  • Hello,

    AJNA ABUBACKER said:

    U told it is because of resolution not getting detected..... But even if i remove the video in cable, i am getting this error....

    Why my device is not getting detected....?. Prblme is with hardware or software.?..

    Yes you will see the error even when the video source is not connected. Possible reason could be that there is no signal to the input and that is why can't detect resolution also.

    Best Regards,

    Margarita

  • Dear Margarita,

     My video source device and all is proper....  Still why i am getting this error ..?

    whether i have to change anything in source code.....?

    Please help

    Thanks and Regards

    Ajna

  • Hello,

    All the sample applications of V4L2 capture driver uses FBDEV buffer as the user pointer buffers. FBDEV needs to
    be loaded with following arguments to make all sample applications work successfully insmod ti81xxfb.ko
    vram=0:40M,1:1M,2:1M. This is to ensure that fbdev has enough memory for using it with V4L2 capture driver.
    ti81xxvo.ko must loaded before ti81xxvin.ko, which is to ensure that /dev/video1-3 are created for display function.
    Capture source must be connected to the component input of IO EXPANSION board before run the sample
    application, otherwise the sample application reports error.

    In the default SaLoopBack test it is use /dev/video0 input where the video source is connected.

    "

    #define CAPTURE_DEVICE        "/dev/video0"
    #define CAPTURE_NAME        "Capture"
    /* device node to be used for display */
    #define DISPLAY_DEVICE        "/dev/video1"
    #define DISPLAY_NAME        "Display"

    "

    BR

    Margarita

  • Dear Margarita,

    Every nodes are formed... fb0-3 and also video0-6....

    Also input i have given....

    But still the same error persists...... 

    What i have to do next...?

    Software wise any changes should i add...?

    Please help me....

    Thanks and Regards

    Ajna

  • Dear all....

    I saw the following in the TI81XX Video Capture Driver User Guide


    Setting input


    V4L2 architecture supports number of decoders through standard V4L2 subdevice model. Number of different
    decoders can be supported for same V4L2 capture driver based on different boards. Different decoder supports
    different type of inputs like S-Video, Composite, Component, DVI, HDMI etc. Application can select one of the
    input from number of supported inputs. Following ioctl allows application to select specific input from supported
    inputs. V4L2 capture driver sets the input in the connected decoder as V4L2 capture driver is independent of the
    inputs.
    int input_index = 0;
    ioctl(fd, VIDIOC_S_INPUT, &input_index);
    if (ret) {
    printf("%s: Setting Input failed\n", APP_NAME);
    printf("Return Value = %d\n", ret);
    exit(2);
    }

    in Usage part, page no. 8...

    But this part is not used anywhre in the application code saLoopBack....

    Whether i have to add this into the application...?

    if so under which function...?

    Please help me.....

    Thanks and Regards

    Ajna

  • Dear all,

    Anyone please help me....

    Thanks and regards

    Ajna

  • Hello,

    TVP5150 driver is  available as a part of Linux kernel under /linux-2.6.37-psp04.04.00.01/drivers/media/video. You just need to hook this up to V4L2 capture driver: http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_Adding_External_Decoders_to_V4L2_Capture_Driver

    menuconfig:

    < > Texas Instruments TVP5150 video decoder

    You could search in the forum  also.

    Best Regards,

    Margarita

  • Hello,

    I want to know about this part

    Setting input


    V4L2 architecture supports number of decoders through standard V4L2 subdevice model. Number of different
    decoders can be supported for same V4L2 capture driver based on different boards. Different decoder supports
    different type of inputs like S-Video, Composite, Component, DVI, HDMI etc. Application can select one of the
    input from number of supported inputs. Following ioctl allows application to select specific input from supported
    inputs. V4L2 capture driver sets the input in the connected decoder as V4L2 capture driver is independent of the
    inputs.


    int input_index = 0;
    ioctl(fd, VIDIOC_S_INPUT, &input_index);
    if (ret) {
    printf("%s: Setting Input failed\n", APP_NAME);
    printf("Return Value = %d\n", ret);
    exit(2);
    }

    What i have to do with this.....

    In the saLoopBack.c this part is missing....

    Whether it will work without this input setting....

    Please answer for this above question...

    Thanks and Regards.

    Ajna

  • Hello,

    Tvp5150  is already available as the part of source code no.... Then what is the need of again looking into http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_Adding_External_Decoders_to_V4L2_Capture_Driver ..?

    For me the chip is getting detected.. Please go through this part of log

    root@dm816x-evm:~# insmod /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    ti81xxvin.ko

    tvp5150 2-005d: chip found @ 0xba (OMAP I2C adapter)
    ti81xxvin ti81xxvin: registered sub device tvp5150
    ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~# echo 0 > /sys/devices/platform/vpss/graphics0/enabled
    VPSS_GRPX : please open fb0 node first.
    root@dm816x-evm:~# ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of doing capture
    Querying DV Preset failed
    root@dm816x-evm:~#


    For  me the error is during running the application... why my input is not getting detected...? i want to know whether it have anything relation with my previous post..... Setting or selecting of input is not happening.....

    Is that the reason for my "Querying DV Preset failed" error...?

    Thanks and Regards

    Ajna

  • Dear all,

    Someone please clarify these doubts for me.... I am stucked up here....

    Thanks and Regards

    Ajna

  • Excuse me...

    Someone plzzzzzzzzzz help me....

    Thanks and Regards

    Ajna

  • You need to search through the Linux kernel source for these errors that you are getting and then you will be able to find the root of your problem.

    Are you building your Linux kernel from source? If not, I recommend that you do as it then makes debugging so much easier.

    Ralph