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.

VPSS Video Driver User Guide

Other Parts Discussed in Thread: TVP7002, PMP

I am having a hard time getting the video input capture and display (using the VPSS Video Driver User Guide) to work. I have not been able to get all the pre-requistoes to work. For example,  there is no ti816x_hdvpss.xem3...I did find the following xem3 files:

./usr/share/ti/ti-media-controller-utils/dm816x_hdvicp.xem3
./usr/share/ti/ti-media-controller-utils/dm816x_hdvpss_v4l2.xem3
./usr/share/ti/ti-media-controller-utils/dm816x_hdvpss.xem3
./media/mmcblk0p2/usr/share/ti/ti-media-controller-utils/dm816xbm_m3video.xem3
./media/mmcblk0p2/usr/share/ti/ti-media-controller-utils/dm816xbm_m3vpss.xem3

Also, there is no slaveloader but I did find slaveloader_release and slaveloader_debug in multiple directories:

./usr/share/ti/syslink-examples/TI816X/heapbufmp/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/heapbufmp/slaveloader_debug
./usr/share/ti/syslink-examples/TI816X/listmp/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/listmp/slaveloader_debug
./usr/share/ti/syslink-examples/TI816X/gatemp/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/gatemp/slaveloader_debug
./usr/share/ti/syslink-examples/TI816X/messageq/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/messageq/slaveloader_debug
./usr/share/ti/syslink-examples/TI816X/notify/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/notify/slaveloader_debug
./usr/share/ti/syslink-examples/TI816X/ringio/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/ringio/slaveloader_debug
./usr/share/ti/syslink-examples/TI816X/frameq/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/frameq/slaveloader_debug
./usr/share/ti/syslink-examples/TI816X/heapmemmp/slaveloader_release
./usr/share/ti/syslink-examples/TI816X/heapmemmp/slaveloader_debug

and all the modules specified are in multiple locations:

./lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
./media/mmcblk0p2/lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
./media/mmcblk0p2/usr/share/ti/c6accel-apps/syslink.ko
./media/mmcblk0p2/usr/share/ti/c6run-apps/syslink.ko
./media/mmcblk0p2/usr/share/ti/dsp-benchmark-apps/syslink.ko

./home/root/dm816x-evm/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/vpss.ko
./lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/vpss.ko
./media/mmcblk0p2/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/vpss.ko

./home/root/dm816x-evm/lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko
./lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko
./media/mmcblk0p2/lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko

./home/root/dm816x-evm/lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/ti81xxvo.ko
./lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/ti81xxvo.ko

./home/root/dm816x-evm/lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxhdmi/ti81xxhdmi.ko
./lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxhdmi/ti81xxhdmi.ko

########

PLEASE help: I have customer demo I have to down by the end of January.....

ALL I need to do is Video Capture from TVP7002 (from a Video Camera) and Display it on the Composite Video and HDMI display.....

########






  • Hi,

    Please follow following steps to get V4L2 capture + display working on DM8168.

    1. Download all binaries at http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/psp/LinuxPSP/DM816x_04_00/04_00_02_14/index_FDS.html

    2. Flash u-boot from pre-compiled binary.

    3. Remember to set notifyk.vpssm3_sva=0xA0000000 in bootargs.

    4. Load kernel

    5. insmod syslink.ko

    6. ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3

    7. insmod vpss.ko

    8. insmod ti81xxfb.ko vram=0:40M,1:1M,2:1M

    9. insmod ti81xxvo.ko

    10 insmod tvp7002.ko

    11 insmod ti81xxvin.ko

    12 Set resolution of component in to 1080P60 or 720P60 or 1080P30.

    13 ./saLoopBack.

    Regards,

    Hardik Shah

  • Thanks for your answer but I am a bit confused. I have ti-ezsdk_dm816x-evm_5_03_01_15 on my host machine however, the user guide for the link suggest that a whole new directory will be used to run linux. I am confused becuase I followed DM816x AM389x Video Driver User Guide PSP 04.00.01.14 which seem to reference ti-ezsdk_dm816x-evm_5_03_01_15 from EZSDK but the link references a folder TI816x-LINUX-PSP-MM.mm.pp.bb.

    It looks like you have multiple build environments and paths that work towards the same goals. This is confusing for me because there are tons of information on the wiki pages and they do not seem to be organized properly.

  • Do I put the all the .ko files and slaveloader in my targetfs folder?

  • I flashed the u-boou.noxip.bin and uImage files into the NAND...I get this far then it stops:

    NAND read: device 0 offset 0x280000, size 0x260000
     2490368 bytes read: OK
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-2.6.37+
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2430828 Bytes = 2.3 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+ (x0029463@psplinux050) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Fri Dec 2 02:27:47 IST 2011
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    bootconsole [earlycon0] enabled
    vram size = 0 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 1.1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 52224
    Kernel command line: console=ttyUSB0,115200n8 root=/dev/nfs nfsroot=192.168.1.198:/home/ndi-rs/targetfs,nolock rw mem=256M earlyprintk notifyk.vpssm3_sva=0xA
    0000000 vram=0:16M,1:16M,2:16M ip=dhcp
    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: 203412k/203412k available, 58732k 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 - 0xc003a000   ( 200 kB)
          .text : 0xc003a000 - 0xc049d000   (4492 kB)
          .data : 0xc049e000 - 0xc04e59c0   ( 287 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_vpss device
    registered ti816x_gpio_vr device
    registered TI816x on-chip HDMI device
    registered ti816x_sr device
    registered ti81xx_vidout device
    pm_dbg_init: only OMAP3 supported
    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 enabled
    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
    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-hdrc: kernel must blacklist external hubs
    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
    /�/��Hc����K�V���!����.�օ2M%b%N IK�I)��*b)W�-���Ms��&Hz/L/��/2�+�9(�K�6��V0��4ȃ��`�����.�� -�H�+#��%h�H�� �*r4h���K��+�?{,-:���+�ʥ4�/��* IK�I�


  • Hi,

    Yes you have to copy .kos and .xem3s to your target fs. Regarding kernel dump, can you please try uart console instead of usb console and try to load all .kos and binaries.

    Regards,

    Hardik Shah

  • Hi,

      my development laptop does not a serial port so I have to use a usb to serial converter. However, I dont see how that would affect the kernel on the target since the usb to serial converter is on the host machine and works fine. Here are my environment variables

    TI8168_EVM#printenv
    bootdelay=3
    baudrate=115200
    verify=yes
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 1 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    ethaddr=90:d7:eb:88:10:41
    ethact=DaVinci EMAC
    autoload=no
    bootfile=uImage
    dnsip=65.32.1.65
    dnsip2=65.32.1.70
    nfsserver=192.168.1.198
    bootcmd=nand read 0x81000000 0x280000 0x260000;bootm 0x81000000
    filesize=2517AC
    fileaddr=81000000
    gatewayip=192.168.1.1
    netmask=255.255.255.0
    ipaddr=192.168.1.118
    serverip=192.168.1.198
    bootargs=console=ttyUSB0,115200n8 root=/dev/nfs nfsroot=192.168.1.198:/home/ndi-rs/targetfs,nolock rw mem=256M earlyprintk notifyk.vpssm3_sva=0xA0000000 vram
    =0:16M,1:16M,2:16M ip=dhcp
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 2010.06 (Dec 02 2011 - 02:13:03)

    *****

    I used u-boot.noxip.bin and uImage for the kernel Image of course. These were the image files included in the TI816X-LINUX-PSP-04.00.02.14.

    Do you have a tutorial: Getting the DM816x Eval board with all the peripherals up and running for DUMMIES




  • Hi,

    Can you please use your USB to serial converted to first solve the problem of kernel booting. You need to change bootargs=console=ttyUSB0ttyO2,115200n8 root=/dev/nfs nfsroot=192.168.1.198:/home/ndi-rs/targetfs,nolock rw mem=256M earlyprintk notifyk.vpssm3_sva=0xA0000000 vram
    =0:16M,1:16M,2:16M ip=dhcp  Once console boots up we can review further for getting all peripherals up.

    Regards,

    Hardik Shah

  • Hi,

       I am able to boot the EVM using the images thats come with the ti-ezsdk_dm816x-evm_5_03_01_15 but I had to make a change to the bootargs you recommended. I changed notifyk.vpssm3_sva=0xA0000000 to notifyk.vpssm3_sva=0xBF900000 becuase I was getting the following error:

    notify_shm_drv_sendevent failed! status = 0xfffffff0

    notify_send_event failed! status = 0xfffffff0

    I also, had to reload the uboot and kernel images into the nand.

    The problem now is: when I try to insert the .ko files I get the error messages below:

    root@dm816x-evm:~/dm816x-evm/ndi-rs# insmod syslink.ko
    syslink: version magic '2.6.37+ mod_unload modversions ARMv7 p2v8 ' should be '2.6.37 mod_unload modversions ARMv7 '
    insmod: error inserting 'syslink.ko': -1 Invalid module format
    root@dm816x-evm:~/dm816x-evm/ndi-rs# ./slaveloader VPSS-M3 ti816x_hdvpss.xem3
    -sh: ./slaveloader: Permission denied
    root@dm816x-evm:~/dm816x-evm/ndi-rs# insmod vpss.ko
    vpss: version magic '2.6.37+ mod_unload modversions ARMv7 p2v8 ' should be '2.6.37 mod_unload modversions ARMv7 '
    insmod: error inserting 'vpss.ko': -1 Invalid module format

    You should note that a made a folder ndi-rs in the dm816x-evm folder of the targetfs file system and that is where all the binaries and slaveloader are found.

    I noticed that when I run lsmod some of the binaries already seem to be loaded:

    root@dm816x-evm:~/dm816x-evm/ndi-rs# lsmod
    Module                  Size  Used by
    bufferclass_ti          4946  0
    omaplfb                10794  0
    pvrsrvkm              155450  2 bufferclass_ti,omaplfb
    ti81xxhdmi             14478  0
    ti81xxfb               21771  3
    vpss                   72346  3 omaplfb,ti81xxhdmi,ti81xxfb
    syslink              1113011  0
    ipv6                  209855  12



  • I haven't tried to go through these specific steps, but just from experience it appears that kernel and the modules you are trying to load are mismatched.  Did you happen to load these from the same SDK as prebuilt binaries?  If so, one would 'think' that they should work together.

  • hi,

    this error typically comes when you insert a module which is compiled with the different kernel configuration than the uImage. Can you with the default uImage?

    Thanks,

    Brijesh Jadav

  • Hello,

     The error is because of the .ko was not build from the uImage you were running.

    Did you use the uImage, syslink.ko and other files all from the SDK?

    Regards,

    yihe

  • Pardon me, my mistake I meant to say the u-boot and kernel -uImage and binaries are the pre-built downloaded from the link given to me in the previous reply from TI employee:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/psp/LinuxPSP/DM816x_04_00/04_00_02_14/index_FDS.html

    I found another thread on the forum where the same issue I have now is being hased out: VPSS_FVID2: contrl event 0x10040018 timeout

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/153450.aspx#555885

    It looks like they are stuck at the same point. I have included the log of the boot-up:

    DDR clk: 796MHz

    I2C:   ready
    DRAM:  2 GiB
    NAND:  HW ECC Hamming Code selected
    256 MiB
    :,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
    ;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
    ;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
    ;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
    ;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
    r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
    ;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
    r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
    r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS   @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
    r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
    rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
    ;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
    ;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
    r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
    ;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
    ;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
    :,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
    ;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
    :.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
    :.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
    ,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
    : ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
    ,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,
                                                                                    
    MMC:   OMAP SD/MMC: 0                                                           
    Net:   Detected MACID:90:d7:eb:88:10:41                                         
    Ethernet PHY: GENERIC @ 0x01                                                    
    DaVinci EMAC                                                                    
    Hit any key to stop autoboot:  0                                                
                                                                                    
    NAND read: device 0 offset 0x280000, size 0x260000                              
     2490368 bytes read: OK                                                         
    ## Booting kernel from Legacy Image at 81000000 ...                             
       Image Name:   Linux-2.6.37                                                   
       Image Type:   ARM Linux Kernel Image (uncompressed)                          
       Data Size:    2428308 Bytes = 2.3 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 (ndi-rs@ndi-rs-laptop) (gcc version 4.3.3 (Sourcery G++ Lit
    e 2009q1-203) ) #1 Thu Dec 22 11:40:10 EST 2011                                 
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f                 
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache               
    Machine: ti8168evm                                                              
    bootconsole [earlycon0] enabled                                                 
    vram size = 0 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 1.1                                                         
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 52224      
    Kernel command line: console=ttyO2,115200n8 root=/dev/nfs nfsroot=192.168.1.198:
    /home/ndi-rs/targetfs,nolock rw mem=256M earlyprintk notifyk.vpssm3_sva=0xBF9000
    00 vram=0:16M,1:16M,2:6M ip=dhcp                                                
    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: 203420k/203420k available, 58724k 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 - 0xc003a000   ( 200 kB)                               
          .text : 0xc003a000 - 0xc049c000   (4488 kB)                               
          .data : 0xc049c000 - 0xc04e36c0   ( 286 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 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_vpss device                                                   
    registered ti816x_gpio_vr device                                                
    registered TI816x on-chip HDMI device                                           
    registered ti816x_sr device                                                     
    registered ti81xx_vidout device                                                 
    pm_dbg_init: only OMAP3 supported                                               
    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 enabled                                  
    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                                       
    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-hdrc: kernel must blacklist external hubs                                  
    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-hdrc: kernel must blacklist external hubs                                  
    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 397                                                      
    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, bootconsole disabled                                   
    console [ttyO2] enabled, bootconsole disabled                                   
    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      
    m25p80 spi1.0: found m25p05-nonjedec, expected w25x32                           
    m25p80 spi1.0: m25p05-nonjedec (64 Kbytes)                                      
    Creating 4 MTD partitions on "spi_flash":                                       
    0x000000000000-0x000000040000 : "U-Boot"                                        
    mtd: partition "U-Boot" extends beyond the end of device "spi_flash" -- size tru
    ncated to 0x10000                                                               
    0x000000010000-0x000000012000 : "U-Boot Env"                                    
    mtd: partition "U-Boot Env" is out of reach -- disabled                         
    0x000000000000-0x000000280000 : "Kernel"                                        
    mtd: partition "Kernel" extends beyond the end of device "spi_flash" -- size tru
    ncated to 0x10000                                                               
    0x000000010000-0x000000010000 : "File System"                                   
    mtd: partition "File System" is out of reach -- disabled                        
    omap2-nand driver initializing                                                  
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron )                     
    Creating 5 MTD partitions on "omap2-nand.0":                                    
    0x000000000000-0x000000260000 : "U-Boot"                                        
    0x000000260000-0x000000280000 : "U-Boot Env"                                    
    0x000000280000-0x0000006c0000 : "Kernel"                                        
    0x0000006c0000-0x00000cee0000 : "File System"                                   
    0x00000cee0000-0x000010000000 : "Reserved"                                      
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6                          
    davinci_mdio davinci_mdio.0: detected phy mask fffffff9                         
    davinci_mdio.0: probed                                                          
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown                
    davinci_mdio davinci_mdio.0: phy[2]: device 0:02, 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                            
    usbcore: registered new interface driver usbhid                                 
    usbhid: USB HID core driver                                                     
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0x
    bf900000                                                                        
    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                                     
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)  
    ata1: SATA link down (SStatus 0 SControl 300)                                   
    ata2: SATA link down (SStatus 0 SControl 300)                                   
    mmc0: new high speed SDHC card at address aaaa                                  
    mmcblk0: mmc0:aaaa SD08G 7.40 GiB                                               
     mmcblk0: p1 p2 p3                                                              
    davinci_mdio davinci_mdio.0: resetting idled controller                         
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=282f014)
    net eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:02, id=282f014)
    Sending DHCP requests .                                                         
    PHY: 0:01 - Link is Up - 100/Full                                               
    .                                                                               
    DHCP/BOOTP: Ignoring delayed packet                                             
    ., OK                                                                           
    IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.155            
    IP-Config: Complete:                                                            
         device=eth0, addr=192.168.1.155, mask=255.255.255.0, gw=192.168.1.1,       
         host=192.168.1.155, domain=, nis-domain=(none),                            
         bootserver=0.0.0.0, rootserver=192.168.1.198, rootpath=                    
    VFS: Mounted root (nfs filesystem) on device 0:14.                              
    devtmpfs: mounted                                                               
    Freeing init memory: 200K                                                       
    INIT: version 2.86 booting                                                      
    Please wait: booting...                                                         
    Error opening /dev/fb0: No such file or directory                               
    Starting udev                                                                   
    udevd (73): /proc/73/oom_adj is deprecated, please use /proc/73/oom_score_adj in
    stead.                                                                          
    FAT: bogus number of reserved sectors                                           
    VFS: Can't find a valid FAT filesystem on dev mmcblk0.                          
    EXT3-fs (mmcblk0): error: can't find ext3 filesystem on dev mmcblk0.            
    EXT2-fs (mmcblk0): error: can't find an ext2 filesystem on dev mmcblk0.         
    FAT: bogus number of reserved sectors                                           
    VFS: Can't find a valid FAT filesystem on dev mmcblk0.                          
    ISOFS: Unable to identify CD-ROM format.                                        
    EXT3-fs: barriers not enabled                                                   
    kjournald starting.  Commit interval 5 seconds                                  
    EXT3-fs (mmcblk0p3): warning: maximal mount count reached, running e2fsck is rec
    ommended                                                                        
    EXT3-fs (mmcblk0p3): using internal journal                                     
    EXT3-fs (mmcblk0p3): recovery complete                                          
    EXT3-fs (mmcblk0p3): mounted filesystem with writeback data mode                
    EXT3-fs: barriers not enabled                                                   
    kjournald starting.  Commit interval 5 seconds                                  
    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is rec
    ommended                                                                        
    EXT3-fs (mmcblk0p2): using internal journal                                     
    EXT3-fs (mmcblk0p2): recovery complete                                          
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode                
    Root filesystem already rw, not remounting                                      
    Caching udev devnodes                                                           
    NET: Registered protocol family 10                                              
    ALSA: Restoring mixer settings...                                               
    NOT configuring network interfaces: / is an NFS mount                           
    Fri Dec  9 14:54:00 UTC 2011                                                    
    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 : 0x9631b6e6              
                            AW Phy Addr : 0x58088000 Data : 0xeafffffe              
                            BW Phy Addr : 0x58098000 Data : 0xaea26e82              
                            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 : 0x132bbd3b              
                            AW Phy Addr : 0x5a088000 Data : 0xeafffffe              
                            BW Phy Addr : 0x5a098000 Data : 0xf59fd0b3              
                            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 : 0x4d32b478              
                            AW Phy Addr : 0x53088000 Data : 0xeafffffe              
                            BW Phy Addr : 0x53098000 Data : 0xc72d3830              
                            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.00.05.85                                                    
    SysLink module created on Date:Dec  9 2011 Time:12:47:37                        
    FIRMWARE: Memory map bin file not passed                                        
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [Loca
    tion of Mem map bin file]                                                       
    FIRMWARE: Default memory configuration is used                                  
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.1.1           
    FIRMWARE: Memory Configuration status : In Progress                             
    FIRMWARE: 1 start Successful                                                    
    Loading HDVPSS Firmware                                                         
    FIRMWARE: Memory map bin file not passed                                        
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [Loca
    tion of Mem map bin file]                                                       
    FIRMWARE: Default memory configuration is used                                  
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.1.1           
    FIRMWARE: Memory Configuration status : In Progress                             
    FIRMWARE: 2 start Successful                                                    
    HDMI W1 rev 2.0                                                                 
    Timing Info:                                                                    
      pixel_clk = 148500                                                            
      x_res  = 1920                                                                 
      y_res  = 1080                                                                 
      hfp      = 88                                                                 
      hsw      = 44                                                                 
      hbp      = 148                                                                
      vfp      = 4                                                                  
      vsw      = 5                                                                  
      vbp      = 36                                                                 
    Starting system message bus: dbus.                                              
    Starting telnet daemon.                                                         
    Starting syslogd/klogd: done                                                    
    Starting thttpd.                                                                
    Starting PVR                                                                    
    /dev/mem opened.                                                                
    Memory mapped at address 0x400aa000.                                            
    Read at address  0x48180F04 (0x400aaf04): 0x00000001                            
    Write at address 0x48180F04 (0x400aaf04): 0x00000000, readback 0x00000000       
    /dev/mem opened.                                                                
    Memory mapped at address 0x40245000.                                            
    Read at address  0x48180900 (0x40245900): 0x00000102                            
    Write at address 0x48180900 (0x40245900): 0x00000002, readback 0x00000002       
    /dev/mem opened.                                                                
    Memory mapped at address 0x4015c000.                                            
    Read at address  0x48180920 (0x4015c920): 0x00040002                            
    Write at address 0x48180920 (0x4015c920): 0x00000002, readback 0x00000002       
    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:~#


  • Hi Cary,

    This log shows that the modules are already loaded, so there is no need to load them again.

    Thanks,

    Brijesh Jadav

  • Hi,

    Please make sure you are loading dm816x_hdvpss_v4l2.xem3 binary if you want to use V4L2 capture. Please check which binary is getting loaded as a part of your init script.

    Regards,

    Hardik shah

  • Ok but to load dm816x_hdvpss_v4l2.xem3 should I replace the load-hd-firmware.sh in /etc/init.d/ with load-hd-v4l2-firmware.sh? Also, how do I verify that all the appropiate modules for video capture have been loaded on start-up?


    Is the lsmod sufficient to show me that information?

  • To add to my last post I noticed that in the load-hd-v4ls-firmware.sh............firmware_loader is used for loading the modules.

  • Hi,

    lsmod wont tell you which firmware you loaded. This is of most important since there are 2 firmware for HDVPSS. one for openmax applications and other for V4L2 drivers. Further lsmod wont tell you with which parameters module was loaded.

    Regards,

    Hardik Shah

  • To load dm816x_hdvpss_v4l2.xem3 should I replace the load-hd-firmware.sh in /etc/init.d/ with load-hd-v4l2-firmware.sh?

  • Hi,

    Can you please attach both of your init scirpts. I will do proper modifications and send you back.

    Regards,

    Hardik Shah

  • 7510.ti_load_scripts.rar

    Hi,

       I have attached the zip file with both scripts.

    1. load-hd-v4l2-firmware.sh is from targetfs/usr/share/ti/ti-media-controller-utilis

    2.load-hd-firmware.sh is from /etc/init.d/

    Cary

  • Hi,

    You should be using load-hd-v4l2-firmware for V4L2 applications like display and capture.

    Regards,

    Hardik Shah

  • Ok.. so do I just replace the load-hd-firmware.sh with  load-hd-v4l2-firmware in the /etc/init.d/ folder?

  • Cary, you'll probably want to change the link in /etc/rcN.d, where N is the runlevel number (probably 3 or 5) to the load-hd-v4l2-firmware.sh in /etc/init.d in order to get it to load at startup.

  • I verified the runlevel: N 5. I am new to linux so bear with me and confirm my next course of action:

    rc5.d has the following softlink file: S01load-hd-firmware.sh -> ../init.d/load-hd-firmware.sh

    I plan to delete the softlink and file above and replace it with using the command: ln -s S01load-hd-v4l2-firmware.sh ../targetfs/usr/share/ti/ti-media-controller/load-hd-v4l2-firmware.sh

    Should I copy the load-hd-v4l2-firmware.sh script into the /etc/init.d/ ditrectory and then link to that?

  • Hi Cary,

    I would suggest starting a new thread about your issue since the subject does not match your issue and the experts may overlook this.

    Regards,

    yihe

  • Hi Cary,

    That would be the way to do it if you wanted the script to run at boot.   However, you might want to do these steps manually first, then confirm that they work, before doing them during the init process.

    John

  • I stopped load-hd-firmware.sh and then started load-hd-v4l2-firmware.sh and got an error at the end. See log below:

    root@dm816x-evm:/etc/init.d# ./load-hd-firmware.sh stop                         
    Unloading HDVICP2 Firmware                                                      
    FIRMWARE: Memory map bin file not passed                                        
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [Loca
    tion of Mem map bin file]                                                       
    FIRMWARE: Default memory configuration is used                                  
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.1.1           
    FIRMWARE: Memory Configuration status : In Progress                             
    FIRMWARE: 1 stop Successful                                                     
    Unloading HDVPSS Firmware                                                       
    ERROR: Module ti81xxfb is in use                                                
    ERROR: Module vpss is in use by omaplfb,ti81xxfb                                
    FIRMWARE: Memory map bin file not passed                                        
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [Loca
    tion of Mem map bin file]                                                       
    FIRMWARE: Default memory configuration is used                                  
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.1.1           
    FIRMWARE: Memory Configuration status : In Progress                             
    FIRMWARE: 2 stop Successful                                                     
    Removed syslink kernel module                                                   
    root@dm816x-evm:/etc/init.d# ls                                                 
    alignment.sh          matrix-gui-e          sendsigs                            
    alsa-state            modutils.sh           single                              
    banner                mountall.sh           sysfs.sh                            
    bootmisc.sh           mountnfs.sh           syslog                              
    checkroot             networking            syslog.busybox                      
    dbus-1                populate-volatile.sh  telnetd                             
    devpts.sh             psplash               thttpd                              
    finish.sh             pvr-init              udev                                
    functions             ramdisk               udev-cache                          
    gplv3-notice          rc                    umountfs                            
    halt                  rcS                   umountnfs.sh                        
    hostname.sh           reboot                urandom                             
    hwclock.sh            rmnologin                                                 
    load-hd-firmware.sh   save-rtc.sh                                               
    root@dm816x-evm:/etc/init.d# cd ../../                                          
    root@dm816x-evm:/# ls                                                           
    Settings  dev       lib       mnt       sbin      tmp                           
    bin       etc       linuxrc   opt       srv       usr                           
    boot      home      media     proc      sys       var                           
    root@dm816x-evm:/# cd usr/share/ti/ti-media-controller-utils/                   
    root@dm816x-evm:/usr/share/ti/ti-media-controller-utils# ls                     
    change_resolution.sh      dm816x_hdvpss.xem3        load-hd-v4l2-firmware.sh    
    dm816x_c6xdsp.xe674       dm816x_hdvpss_v4l2.xem3                               
    dm816x_hdvicp.xem3        load-hd-firmware.sh                                   
    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.00.05.85         
    SysLink module created on Date:Dec  9 2011 Time:12:47:37                        
    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: Memory map bin file not passed                                        
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [Loca
    tion of Mem map bin file]                                                       
    FIRMWARE: Default memory configuration is used                                  
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.1.1           
    FIRMWARE: Memory Configuration status : In Progress                             
    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> [Loca
    tion of Mem map bin file]                                                       
    FIRMWARE: Default memory configuration is used                                  
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.1.1           
    FIRMWARE: Memory Configuration status : In Progress                             
    FIRMWARE: 2 start Successful                                                    
    VPSS_FVID2: contrl event 0x1004001a timeout                                     
    VPSS_DCTRL: failed to get venc info.    

  • Hi Cary,

    I haven't done this, but I would first try to prevent the old script from running by removing the link in rc5.d, then try to load the alternate script manually.  Certain modules may not 'behave' properly if they are unloaded. 

    John

  • Hi Cary,

    How did you solve that problem?