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.

Not able to execute video example of linux-driver-examples-psp04.04.00.01 on Evm dm 8148.

Other Parts Discussed in Thread: PCF8575, TPS65910, PMP, TVP7002

I am using ti-ezsdk_dm814x-evm_5_05_02_00 and trying to run video example of linux-driver-examples-psp04.04.00.01  on Evm dm 8148.

My boot log is

Starting kernel ...                                                             
                                                                                
Uncompressing Linux... done, booting the kernel.                                
Linux version 2.6.37 (x0029463@swubn01) (gcc version 4.3.3 (Sourcery G++ Lite 22
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f                 
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache               
Machine: ti8148evm                                                              
reserved size = 52428800 at 0x0                                                 
FB: Reserving 52428800 bytes SDRAM for VRAM                                     
Memory policy: ECC disabled, Data cache writeback                               
OMAP chip is TI8148 2.1                                                         
SRAM: Mapped pa 0x402f1000 to va 0xfe400000 size: 0xf000                        
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 19712      
Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.10.180
PID hash table entries: 512 (order: -1, 2048 bytes)                             
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)                  
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                    
Memory: 78MB = 78MB total                                                       
Memory: 72732k/72732k available, 58340k reserved, 0K highmem                    
Virtual kernel memory layout:                                                   
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)                               
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                               
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)                               
    vmalloc : 0xc8800000 - 0xf8000000   ( 760 MB)                               
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)                               
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                               
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)                               
      .init : 0xc0008000 - 0xc003d000   ( 212 kB)                               
      .text : 0xc003d000 - 0xc0549000   (5168 kB)                               
      .data : 0xc054a000 - 0xc05970c0   ( 309 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 20000000 Hz                                 
Console: colour dummy device 80x30                                              
Calibrating delay loop... 598.01 BogoMIPS (lpj=2990080)                         
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 GPIO hardware version 0.1                                                  
OMAP GPIO hardware version 0.1                                                  
omap_mux_init: Add partition: #1: core, flags: 4                                
NOR: Can't request GPMC CS                                                      
Debugfs: Only enabling/disabling deep sleep and wakeup timer is supported now   
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 @0xc8820000                                   
ti81xx_pcie: Starting PCI scan...                                               
PCI: bus0: Fast back to back transfers enabled                                  
bio: create slab <bio-0> at 0                                                   
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 4ea2080b                                                         
registerd cppi-dma Intr @ IRQ 17                                                
Cppi41 Init Done                                                                
omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz                                    
pcf857x 1-0021: gpios 128..143 on a pcf8575                                     
regulator: VRTC: 1800 mV                                                        
regulator: VIO: 1500 mV                                                         
regulator: VDD1: 600 <--> 1500 mV at 1200 mV                                    
regulator: VDD2: 600 <--> 1500 mV at 1200 mV                                    
regulator: VDDCTRL: 600 <--> 1400 mV at 1200 mV                                 
regulator: LDO1: 1100 <--> 3300 mV at 1800 mV                                   
regulator: LDO2: 1100 <--> 3300 mV at 1800 mV                                   
regulator: LDO3: 1100 <--> 3300 mV at 3300 mV                                   
regulator: LDO4: 1100 <--> 3300 mV at 1800 mV                                   
regulator: LDO5: 1100 <--> 3300 mV at 3300 mV                                   
regulator: LDO6: 1100 <--> 3300 mV at 3300 mV                                   
regulator: LDO7: 1100 <--> 3300 mV at 3300 mV                                   
regulator: LDO8: 1100 <--> 3300 mV at 1800 mV                                   
tps65910 1-002d: No interrupt support, no core IRQ                              
omap_i2c omap_i2c.3: bus 3 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 c881e000 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 c8826800 using DMA, IRQ 19   
NET: Registered protocol family 2                                               
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                  
TCP established hash table entries: 4096 (order: 3, 32768 bytes)                
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                       
TCP: Hash tables configured (established 4096 bind 4096)                        
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 142                                                      
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                
console [ttyO0] enabled                                                         
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                
omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3                
omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4                
omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5                
brd: module loaded                                                              
loop: module loaded                                                             
ahci ahci.0: forcing PORTS_IMPL to 0x1                                          
ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode      
ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc apst         
scsi0 : ahci_platform                                                           
ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16      
m25p80 spi1.0: w25x32 (4096 Kbytes)                                             
Creating 5 MTD partitions on "spi_flash":                                       
0x000000000000-0x000000020000 : "U-Boot-min"                                    
0x000000020000-0x000000060000 : "U-Boot"                                        
0x000000060000-0x000000062000 : "U-Boot Env"                                    
0x000000062000-0x0000002e2000 : "Kernel"                                        
0x0000002e2000-0x000000400000 : "File System"                                   
omap2-nand driver initializing                                                  
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron )                     
Creating 6 MTD partitions on "omap2-nand.0":                                    
0x000000000000-0x000000020000 : "U-Boot-min"                                    
0x000000020000-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 fffffffc                         
davinci_mdio.0: probed                                                          
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown                
davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown                
CAN device driver interface                                                     
CAN bus driver for Bosch D_CAN controller 1.0                                   
d_can d_can: d_can device registered (irq=52, irq_obj=53)                       
usbcore: registered new interface driver cdc_ether                              
usbcore: registered new interface driver dm9601                                 
usbcore: registered new interface driver cdc_acm                                
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adaptes
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                                     
ata1: SATA link down (SStatus 0 SControl 300)                                   
qt602240_ts 1-004a: Family ID: 128 Variant ID: 1 Version: 22 Build: 171         
qt602240_ts 1-004a: Matrix X Size: 18 Matrix Y Size: 12 Object Num: 17          
input: AT42QT602240/ATMXT224 Touchscreen as /devices/platform/omap/omap_i2c.1/i0
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 00
usbcore: registered new interface driver snd-usb-audio                          
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok                           
ALSA device list:                                                               
  #0: TI81XX EVM                                                                
nf_conntrack version 0.5.0 (1136 buckets, 4544 max)                             
ip_tables: (C) 2000-2006 Netfilter Core Team                                    
TCP cubic registered                                                            
NET: Registered protocol family 17                                              
can: controller area network core (rev 20090105 abi 8)                          
NET: Registered protocol family 29                                              
can: raw protocol (rev 20090105)                                                
can: broadcast manager protocol (rev 20090105 t)                                
Registering the dns_resolver key type                                           
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.                                                    
Detected MACID=0:18:32:62:1d:a                                                  
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)  
                                                                                
CPSW phy found : id is : 0x4dd074                                               
                                                                                
CPSW phy found : id is : 0x4dd074                                               
Sending DHCP requests .                                                         
PHY: 0:01 - Link is Up - 0/Half                                                 
PHY: 0:01 - Link is Down                                                        
PHY: 0:00 - Link is Up - 100/Full                                               
., OK                                                                           
IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.10.143           
IP-Config: Complete:                                                            
     device=eth0, addr=192.168.10.143, mask=255.255.255.0, gw=192.168.10.1,     
     host=192.168.10.143, domain=, nis-domain=(none),                           
     bootserver=0.0.0.0, rootserver=192.168.10.181, rootpath=                   
VFS: Mounted root (nfs filesystem) on device 0:15.                              
devtmpfs: mounted                                                               
Freeing init memory: 212K                                                       
INIT: version 2.86 booting                                                      
Error opening /dev/fb0: No such file or directory                               
Please wait: booting...                                                         
Starting udev                                                                   
udevd (86): /proc/86/oom_adj is deprecated, please use /proc/86/oom_score_adj i.
Root filesystem already rw, not remounting                                      
Caching udev devnodes                                                           
NET: Registered protocol family 10                                              
ALSA: Restoring mixer settings...                                               
No state is present for card EVM                                                
NOT configuring network interfaces: / is an NFS mount                           
Found hardware: "" "" "" "" ""                                                  
Hardware is initialized using a generic method                                  
No state is present for card EVM                                                
Mon Dec 31 10:37:00 UTC 2012                                                    
INIT: Entering runlevel: 5                                                      
Loading HDVICP2 Firmware                                                        
DM814X prcm_config_app version: 2.0.0.1                                         
Doing PRCM settings...                                                          
        PRCM for IVHD0 is in Progress, Please wait.....                         
                        BW Phy Addr : 0x48180600 Data : 0x00000001              
                        AW Phy Addr : 0x48180600 Data : 0x00000002              
                        Phy Addr : 0x48180c04 Data : 0x00000037                 
                        BW Phy Addr : 0x48180620 Data : 0x00070000              
                        AW Phy Addr : 0x48180620 Data : 0x00050002              
                        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 : 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 Initialization completed                                                   
SysLink version : 2.20.02.20                                                    
SysLink module created on Date:Dec 26 2012 Time:18:39:49                        
FIRMWARE: I2cInit will be done by M3                                            
FIRMWARE: Memory map bin file not passed                                        
Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mm]
===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
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> [-mm]
===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
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.
Configuring fb0 to LCD                                                          
HDMI W1 rev 4.0                                                                 
HDMI CEC Spec version 1.2                                                       
I2C No Ack                                                                      
                                                                                
Starting system message bus: dbus.                                              
Starting Dropbear SSH server: dropbear.                                         
Starting telnet daemon.                                                         
Starting network benchmark server: netserver.                                   
Starting syslogd/klogd: done                                                    
Starting thttpd.                                                                
Starting PVR                                                                    
/dev/mem opened.                                                                
Memory mapped at address 0x401ea000.                                            
Read at address  0x48180F04 (0x401eaf04): 0x00000001                            
Write at address 0x48180F04 (0x401eaf04): 0x00000000, readback 0x00000000       
/dev/mem opened.                                                                
Memory mapped at address 0x40082000.                                            
Read at address  0x48180900 (0x40082900): 0x00000102                            
Write at address 0x48180900 (0x40082900): 0x00000002, readback 0x00000002       
/dev/mem opened.                                                                
Memory mapped at address 0x4019d000.                                            
Read at address  0x48180920 (0x4019d920): 0x00040002                            
Write at address 0x48180920 (0x4019d920): 0x00000002, readback 0x00000002       
Starting Matrix GUI application.                                                
                                                                                
 _____                    _____           _         _                           
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_                         
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|                        
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|                          
              |___|                    |___|                                    
                                                                                
Arago Project http://arago-project.org dm814x-evm ttyO0                         
                                                                                
Arago 2011.09 dm814x-evm ttyO0                                                  
                                                                                
dm814x-evm login:



It is executing saFbdevDisplay and saFbdevDisplayPan but i m not able to run other samples .

when i try to run saUserptrDisplay its says : Failed to open display device 

and when i run HDMI examples it says :

I2C No Ack                                                                      
                                                                                
Mode Changed to 720P60 from default mode of 1080P60                             
press any key and hit return to continue...                                     
                                                                                
                                                                                
Fix Screen InfVPSS_GRPX : (0)- region(1280x720) out of frame(800x480).          
o:                                                                              
----------------                                                                
Line Length - 3200                                                              
Physical Address = 84e00000                                                     
Buffer Length = 25165824                                                        
                                                                                
Var Screen Info:                                                                
----------------                                                                
Xres - 800                                                                      
Yres - 480                                                                      
Xres Virtual - 800                                                              
Yres Virtual - 1440                                                             
nonstd       - 0                                                                
Bits Per Pixel - 32                                                             
blue lenth 8 msb 0 offset 0                                                     
red lenth 8 msb 0 offset 16                                                     
green lenth 8 msb 0 offset 8                                                    
trans lenth 8 msb 0 offset 24                                                   
Error writing variable information.                                             
: Invalid argument   

Kindly help me with this.

Regards,

Ammar Zafar                             

  • Hello,

    1. You should stop the graphics plane.
    2. Which script you are loading load-hd-v4l2-firmware.sh or load-hd-firmware.sh?
    3. What is the EZSDK version that you are using?

    BR
    Margarita
  • Using ti-ezsdk_dm814x-evm_5_05_02_00 and hdvpss firmaware after kernal boot.
  • Hello,

    Some of the video demos require the v4l2 firmware to be load:


    /etc/init.d/matrix-gui-e stop
    /etc/init.d/pvr-init stop
    cd /usr/share/ti/ti-media-controller-utils

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

    BR
    Margarita
  • And when i m using the arago base file system , after i load syslink and slave loader file ... insmod VPSS.ko hangs the evm.

    Reagrds
    Ammar
  • Unloading HDVICP2 Firmware
    load-hd-firmware.sh stop

    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mm]
    ===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
    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

    It Hangs here.
  • Hello,

    Are you stopping the Matrix first?
    If not you should stop it. Check my previous post.

    I would recommend you to try with :

    /main ezsdk folder/filesystem/ezsdk rootfs.

    BR
    Margarita
  • Yes i was , but now it seems to be working ... Still i am not able to load

    root@dm814x-evm:/bin# ./saMmapDisplay
    Get Format failed
    : Invalid argument
    root@dm814x-evm:/bin# ./saUserptrDisplay
    Set Format failed
    : Invalid argument

    With thanks and Regards
    Ammar Zafar
  • Hello Ammar,


    Check this topic:
    e2e.ti.com/.../847793

    Let me know if you made some changes in the EZSDK or you are using the default one.If it is not the default one I would recommend you to try with it.


    BR
    Margarita
  • I am using the default ezsdk .
  • root@dm814x-evm:~# /usr/share/ti/ti-media-controller-utils/load-hd-v4l2-firmware
    After i load v4l2 driver

    Loading HDVICP2 Firmware
    DM814X 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 Initialization completed
    SysLink version : 2.20.02.20
    SysLink module created on Date:Dec 26 2012 Time:18:39:49
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mm]
    ===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
    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> [-mm]
    ===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
    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: M3 firmware version 0x1000145 is newer,driver may not work properly.
    Configuring fb0 to LCD
    modprobe: page allocation failure. order:10, mode:0xd1


    Backtrace:
    [<c004bbd0>] (dump_backtrace+0x0/0x110) from [<c03ef4d8>] (dump_stack+0x18/0x1c)
    r7:00000000 r6:000000d1 r5:00000001 r4:00000000
    [<c03ef4c0>] (dump_stack+0x0/0x1c) from [<c00a9b30>] (__alloc_pages_nodemask+0x)
    [<c00a9668>] (__alloc_pages_nodemask+0x0/0x51c) from [<c00a9b9c>] (__get_free_p)
    [<c00a9b84>] (__get_free_pages+0x0/0x30) from [<bf2c3f88>] (ti81xx_vidout_alloc)
    [<bf2c3f48>] (ti81xx_vidout_alloc_buffer+0x0/0xac [ti81xxvo]) from [<bf2c60f0>])
    r5:c36ac400 r4:c36ac400
    [<bf2c5d94>] (ti81xx_vidout_probe+0x0/0x52c [ti81xxvo]) from [<c022c284>] (plat)
    [<c022c264>] (platform_drv_probe+0x0/0x24) from [<c022b1f0>] (driver_probe_devi)
    [<c022b120>] (driver_probe_device+0x0/0x190) from [<c022b318>] (__driver_attach)
    r7:c42f5d80 r6:bf2c7450 r5:c056128c r4:c0561258
    [<c022b2b0>] (__driver_attach+0x0/0x8c) from [<c022a99c>] (bus_for_each_dev+0x5)
    r7:c42f5d80 r6:bf2c7450 r5:c022b2b0 r4:00000000
    [<c022a94c>] (bus_for_each_dev+0x0/0x84) from [<c022b014>] (driver_attach+0x20/)
    r6:bf2c7450 r5:bf2c74b4 r4:00000000
    [<c022aff4>] (driver_attach+0x0/0x28) from [<c022a274>] (bus_add_driver+0xb4/0x)
    [<c022a1c0>] (bus_add_driver+0x0/0x234) from [<c022b650>] (driver_register+0xb0)
    [<c022b5a0>] (driver_register+0x0/0x13c) from [<c022c728>] (platform_driver_reg)
    r9:c4016000 r8:bf2cb000 r7:4002f000 r6:0001b418 r5:bf2c74b4
    r4:00000000
    [<c022c6dc>] (platform_driver_register+0x0/0x60) from [<bf2cb014>] (ti81xx_vido)
    [<bf2cb000>] (ti81xx_vidout_init+0x0/0x34 [ti81xxvo]) from [<c003d42c>] (do_one)
    [<c003d35c>] (do_one_initcall+0x0/0x1a4) from [<c009c54c>] (sys_init_module+0x9)
    [<c009c4b0>] (sys_init_module+0x0/0x1bc) from [<c0047e00>] (ret_fast_syscall+0x)
    r7:00000080 r6:00000000 r5:0001b418 r4:0001b070
    Mem-info:
    Normal per-cpu:
    CPU 0: hi: 18, btch: 3 usd: 0
    active_anon:402 inactive_anon:36 isolated_anon:0
    active_file:2135 inactive_file:10614 isolated_file:32
    unevictable:0 dirty:0 writeback:0 unstable:0
    free:1354 slab_reclaimable:356 slab_unreclaimable:874
    mapped:334 shmem:63 pagetables:58 bounce:0
    Normal free:5416kB min:1120kB low:1400kB high:1680kB active_anon:1608kB inactivo
    lowmem_reserve[]: 0 0 0
    Normal: 264*4kB 125*8kB 44*16kB 21*32kB 7*64kB 4*128kB 2*256kB 1*512kB 0*1024kBB
    12844 total pagecache pages
    32768 pages of RAM
    1466 free pages
    14532 reserved pages
    1058 slab pages
    1635 pages shared
    0 pages swap cached
    t81xx_vidout: probe of t81xx_vidout failed with error -12
    tvp7002 3-005d: tvp7002 found @ 0x5d (OMAP I2C adapter)
    tvp7002 3-005d: Rev. 02 detected.
    ti81xxvin ti81xxvin: registered sub device tvp7002
    ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized
    HDMI W1 rev 4.0
    HDMI CEC Spec version 1.2
    I2C No Ack

    root@dm814x-evm:~# ./bin/j
    -sh: ./bin/j: not found
    root@dm814x-evm:~# .//bin/j
    -sh: .//bin/j: not found
    root@dm814x-evm:~# cd /bin
    root@dm814x-evm:/bin# ./j
    Set Format failed
    : Invalid argument
    root@dm814x-evm:/bin#


    Regards
    Ammar Zafar
  • With the links you shared i was able to able run the program , though it was'nt displaying anything on lcd .

    what will be the steps to get saMmapDisplay display on lcd ?

    Regards
    Ammar Zafar
  • Hello,

    Are you able to display it on HDMI?
    You could check the sammapdislay source code the defines at the beginning.
    For the display dev/video1 is used.
    You could try to change it to /dev/video2.
    You should change the resolution etc.

    BR
    Margarita

  • root@dm814x-evm:/bin# ./sMM
    The V4L2 Display : Frame rate = 62

    Its shows this on minicom but there wasnt any display on lcd .
  • Hello,

    The demo is using /dev/video1 for display and the VPSS user guide.
    Please check my previous post.

    BR
    Margarita

  • Program is Running ,but i am not getting any display on lcd . I am not able to configure my samMapdisplay output to lcd.

    Regards

    Ammar Zafar

  • Hello Ammar,

    Could you confirm that you are seeing for example the Matrix GUI on the display?

    BR
    Margarita
  • Hello Margarita,

    Yes i was loading the filesystem provided with ezsdk , which runs the gui matrix .

    Was able to run saFbdevdisplay and safbpandisplay.


    I want to run the V4l2 example that is sammapdislay and saUserptrDisplay .

    so as you told me to load v4l2 after disabling matrix gui . I did that .

    than i run the samMap example which printed the frame rate on my host screen but didnt show anything on lcd.
    and saUserptrdisplay was giving an error of Segmentation fault.

    The config for V4l2 is

    echo "Configuring fb0 to LCD"
    echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    echo 0 > /sys/devices/platform/vpss/display1/enabled
    echo 33500,800/164/89/10,480/10/23/10,1 > /sys/devices/platform/vpss/display1/timings
    echo triplediscrete,rgb888 > /sys/devices/platform/vpss/display1/output
    echo 1 > /sys/devices/platform/vpss/display1/enabled
    fbset -xres 800 -yres 480 -vxres 800 -vyres 480

    i added
    echo vcompmux:dvo2 > /sys/devices/platform/vpss/video0/nodes

    after adding that i only get a 4 colored bar on my LCD when i m running sammapdisplay and sausrptrdisplay is giving same Segmentation fault.

    Kindly help me with this.
  • Hello,

    Answered here:
    e2e.ti.com/.../1719529

    BR
    Margarita
  • Hi,

    The display i am getting on samapdisplay is of a colorbar pattern , i am  unable to get the moving horizontal coloured line on the screen as described in description.

  • Hello,

    saFbdevMovingDisplay will display moving colorbar.

       saFbdevDisplay

       saFbdevDisplayPan

       saFbdevMovingDisplay

       saFbdevScalingDisplay

       saLoopBack

       saLoopBackFbdev

       saLoopBackScale

       saFbdevHdmiDisplay

       saMmapDisplay

       saUserptrDisplay

    Out of the above applications saMmapDisplay and saUserptrDisplay uses v4l2 drivers, whereas all others use framebuffer driver. Loop back applications( saLoopBack, saLoopBackFbdev, saLoopBackScale ) does a loop back on input video and shows the same on the output. All other applications display colour bars as output with corresponding feature, ie, saFbdevMovingDisplay will display a moving colour bar, saFbdevScalingDisplay will display a colour bar which scales, etc.

    BR
    Margarita

  • saMmapDisplay have a following discription

    * This is a V4L2 sample application to show the display functionality
    * The app puts a moving horizontal bar on the display device in various
    * shades of colors. This appplication runs in RGB565 mode with VGA
    * display resolution. It shows output on lcd.

    But its only showing the a Colour bar Image.

    BR
    Ammar Zafar
  • Hello,

    Try saFbdevMovingDisplay demo.

    BR
    Margarita
  • I have executed that as well . they all are working according to the discription but i dont know whats wrong with this v4l2 examples .. even sauserptrdisplay is showing the same color bars.