Part Number: TMS320DM368
Hello,
We are porting the IPNC application on DM36x EVM. We are using SD Card for booting.
We are able to see the live video on the CVBS Out and able to record the video with IPNC RDK 5.1.0 on DM36x EVM.
But we are facing following issues:-
1. We are not able to stream the H.264 encoded video with bit rate greater than 300kbps. We are using VLC for streaming & debug logs is attached.
2. We are not able to access the web based GUI.
We are running the application through the command line. We have commented some lines of rcS script as mentioned in the YUV Sensor Guide Document.
For GUI, we are using windows 7 64bit with IE version 8.
Please suggest what we have to do for the above.
DM36x initialization passed!
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = SD/MMC
Starting SDMMC Copy...
DONE
Jumping to entry point at 0x81080000.
U-Boot 2010.12-rc2 (Mar 24 2011 - 16:49:26)
Cores: ARM 432 MHz
DDR: 340 MHz
I2C: ready
DRAM: 128 MiB
NAND: 2048 MiB
MMC: davinci: 0, davinci: 1
Bad block table found at page 524224, version 0x13
Bad block table found at page 1048512, version 0x01
Bad block table found at page 524160, version 0x13
Bad block table found at page 1048448, version 0x01
nand_read_bbt: Bad block at 0x000003f80000
nand_read_bbt: Bad block at 0x00000a9a0000
nand_read_bbt: Bad block at 0x00000c100000
nand_read_bbt: Bad block at 0x000022040000
nand_read_bbt: Bad block at 0x000024260000
nand_read_bbt: Bad block at 0x000026460000
nand_read_bbt: Bad block at 0x000030180000
nand_read_bbt: Bad block at 0x000031840000
nand_read_bbt: Bad block at 0x000031ae0000
nand_read_bbt: Bad block at 0x000032740000
nand_read_bbt: Bad block at 0x0000328e0000
nand_read_bbt: Bad block at 0x000032d80000
nand_read_bbt: Bad block at 0x000033980000
nand_read_bbt: Bad block at 0x0000355a0000
nand_read_bbt: Bad block at 0x000037580000
nand_read_bbt: Bad block at 0x000037cc0000
nand_read_bbt: Bad block at 0x000037ce0000
nand_read_bbt: Bad block at 0x000039780000
nand_read_bbt: Bad block at 0x00003bee0000
nand_read_bbt: Bad block at 0x00003bf00000
nand_read_bbt: Bad block at 0x00003bf20000
nand_read_bbt: Bad block at 0x00003d660000
nand_read_bbt: Bad block at 0x00003f860000
nand_read_bbt: Bad block at 0x000040400000
nand_read_bbt: Bad block at 0x000045aa0000
nand_read_bbt: Bad block at 0x00004cda0000
nand_read_bbt: Bad block at 0x00004ffe0000
nand_read_bbt: Bad block at 0x000051e00000
nand_read_bbt: Bad block at 0x00005bd60000
nand_read_bbt: Bad block at 0x000064640000
nand_read_bbt: Bad block at 0x0000668a0000
nand_read_bbt: Bad block at 0x000066ba0000
nand_read_bbt: Bad block at 0x000070e60000
nand_read_bbt: Bad block at 0x0000738c0000
nand_read_bbt: Bad block at 0x000074a60000
nand_read_bbt: Bad block at 0x00007dd00000
Net: Ethernet PHY: GENERIC @ 0x00
DaVinci-EMAC
Hit any key to stop autoboot: 0
reading boot.scr
** Unable to read "boot.scr" from mmc 0:1 **
reading uImage
5150208 bytes read
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.37_IPNC_DM365EVM_5.1.0
Created: 2017-04-13 4:08:12 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5150144 Bytes = 4.9 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Linux version 2.6.37_IPNC_DM365EVM_5.1.0 (root@ubuntu) (gcc version 4.3.3 (Sourc
ery G++ Lite 2009q1-203) ) #2 PREEMPT Thu Apr 13 09:38:10 IST 2017
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM36x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm36x_rev1.2 variant 0x8
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 12192
Kernel command line: mem=48M console=ttyS0,115200n8 noinitrd root=/dev/mmcblk0p2
rootwait ip=192.168.1.253:192.168.1.184:192.168.1.1:255.255.255.0:::off cmemk.p
hys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cme
mk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHea
pIfPoolUnavailable=1
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 48MB = 48MB total
Memory: 43440k/43440k available, 5712k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xc3800000 - 0xfea00000 ( 946 MB)
lowmem : 0xc0000000 - 0xc3000000 ( 48 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc002d000 ( 148 kB)
.text : 0xc002d000 - 0xc04c0000 (4684 kB)
.data : 0xc04c0000 - 0xc04f15c0 ( 198 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 215.44 BogoMIPS (lpj=1077248)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
EVM: HD imager video input
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
Advanced Linux Sound Architecture Driver Version 1.0.23.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer0_1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 84
io scheduler noop registered (default)
CSL: Module install successful, device major num = 254
CSL: Module version 0.10.00, built on Apr 13 2017 09:21:36
I2C: Module install successful, device major num = 253
DMA: Module install successful, device major num = 252
EVM: switch to tvp5146 SD video input
DRV: Sensor interface selected on DM365 EVM
DRV: Module install successful
DRV: Module built on Apr 13 2017 09:21:37
DRV: EDMACC.QUEPRI = 00002777
DRV: SYSTEM.MSTPRI0 = 00440011
DRV: SYSTEM.MSTPRI1 = 00000444
DRV: ISP.BCR = 00000002
DRV: SYSTEM.MISC = 00000399
EDMAK module: built on Apr 13 2017 at 09:21:19
Reference Linux version 2.6.37
File /home/spectross/Projects/IPNC_RDK/Source/dvsdk_ipnctools/linuxutils_2_26_
02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Apr 13 2017 at 09:21:14
Reference Linux version 2.6.37
File /home/spectross/Projects/IPNC_RDK/Source/dvsdk_ipnctools/linuxutils_2_26_
02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
CMEMK module: built on Apr 13 2017 at 09:21:17
Reference Linux version 2.6.37
File /home/spectross/Projects/IPNC_RDK/Source/dvsdk_ipnctools/linuxutils_2_26_
02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x5000000
heap fallback enabled - will try heap if pool buffer is not available
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
cmemk initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
serial8250 serial8250.0: unable to register port at index 1 (IO0 MEM1d06000 IRQ4
1): -22
brd: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
Read MAC addr from EEPROM: 00:0e:99:03:50:a1
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron )
2 NAND chips detected
Creating 5 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000f00000 : "bootloader"
0x000000f00000-0x000001000000 : "params"
0x000001000000-0x000001400000 : "kernel"
0x000001400000-0x000021400000 : "filesystem1"
0x000021400000-0x000080000000 : "filesystem2"
davinci_nand davinci_nand.0: controller rev. 2.3
spi_davinci spi_davinci.0: Controller at 0xfec66000
davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
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
console [netcon0] enabled
netconsole: network logging started
mice: PS/2 mouse device common for all mice
input: TSC2004 Touchscreen as /devices/virtual/input/input0
dm365evm_keys: probe of 1-0025 failed with error -16
i2c /dev entries driver
Linux media interface: v0.10
lirc_dev: IR Remote Control driver registered, major 246
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR LIRC bridge handler initialized
Linux video capture interface: v2.00
vpbe-osd vpbe-osd: OSD sub device probe success
vpbe-venc vpbe-venc: VENC sub device probe success
vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
write byte data failed
vpbe-v4l2 vpbe-v4l2: v4l2 sub device ths7303 registered
Setting default output to Composite
Setting default mode to ntsc
vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
vpbe-v4l2 vpbe-v4l2: layer=c29df400,layer->video_dev=c29df4f4
vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
vpbe-v4l2 vpbe-v4l2: layer=c29df600,layer->video_dev=c29df6f4
watchdog watchdog: heartbeat 60 sec
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
asoc: tlv320aic3x-hifi <-> davinci-mcbsp mapping ok
ALSA device list:
#0: DaVinci DM365 EVM
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
mmc0: new SDHC card at address e624
mmcblk0: mmc0:e624 SD08G 7.40 GiB
mmcblk0: p1 p2
net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=221613)
IP-Config: Complete:
device=eth0, addr=192.168.1.253, mask=255.255.255.0, gw=192.168.1.1,
host=192.168.1.253, domain=, nis-domain=(none),
bootserver=192.168.1.184, rootserver=192.168.1.184, rootpath=
EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional featu
res (240)
EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional featu
res (244)
EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is rec
ommended
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
Freeing init memory: 148K
INIT: version 2.86 booting
mtd->read(0x100 bytes from 0x12ea0000) returned ECC error
PHY: 0:01 - Link is Up - 100/Full
INIT: Entering runlevel: 5
Starting telnet daemon.
Starting syslogd/klogd: done
getty: ioctl() TIOCSPGR
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org 192.168.1.253 console
Arago 2009.11 192.168.1.253 console
192.168.1.253 login: root
-sh: can't access tty; job control turned off
root@192:~#
root@192:~# cd /opt/ipnc/
root@192:/opt/ipnc#
root@192:/opt/ipnc#
root@192:/opt/ipnc# ./av_server.out DM368 D1 720 480 H264 1500000 VBR AUTO RTSP
YUV_MOD_INTERLACED is set
DM365MM Init Successful
AVSERVER UI: Initializing.
CLK Hz,
ARM Hz = 432000000
DDR Hz = 340000000
VPSS Hz = 340000000
IMCOP Hz = 340000000
[OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR
IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter
DM365MM Init SuccessfulSYSTEM.MSTPRI0 value changed to 00440011
CONFIGURING AVSERVER FOR DM368 .....
Creat queue id:0
queue id:0
Before File Save enable in AV ServerUI
AVSERVER UI: Starting Streaming Server...
ApproDrvInit: 10
Creat queue id:32769
ApproDrvInit: 8
queue id:32769
ApproDrvInit: 6
queue id:32769
ApproDrvInit: 2
ApproDrvInit: 9
queue id:32769
queue id:32769
queue id:32769
AVSERVER UI: Starting Streaming Server...DONE
CAPTURE: Recevied CMD = 0x0300
CAPTURE: Create...
CAPTURE: Opening capture on imager TVP514X.
Inside DRV_captureOpen
CAPTURE: Opening imager TVP514X.
Inside DRV_imgsOpen
In DRV_imgGetWidthHeight, mode is: 1 gYuvModeWidth : 720 gYuvModeHeight : 480
In DRV_imgGetWidthHeight, width is: 736, height is: 480
Inside DRV_imgsOpen after DRV_imgGetWidthHeight, width is: 736, height is: 480
Inside DRV_imgsOpen after H & V PAD, DRV_imgGetWidthHeight, width is: 736, heigh
t is: 480
Inside CalcFrameTimedataW is: 736, dataH is: 480
In DRV_imgsCalcFrameTime, dataW is: 736, dataH is: 480
After IMGS_W_MAX/dataW & IMGS_H_MAX/dataH
Before col_start in DRV_imgsCalcFrameTime
After col_start in DRV_imgsCalcFrameTime
In between pFrame in DRV_imgsCalcFrameTime
Inside CalcFrameTime3
SENSOR FPS VALUE = 30
Inside CalcFrameTime3
CAPTURE: Opening ISIF.
CAPTURE: Opening H3A.
CAPTURE: Opening IPIPE.
CAPTURE: Open DONE.
CAPTURE: Create...DONE
queue id:32769
IPNC_DM365EVM_5.1.0 (root@ubuntu) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1
DM365MM Init SuccessfulIPNC AUTO_IRIS = 1
Initializing...
Initializing...
Initializing...
Initializing...
Initializing...
...done initializing
...done initializing
...done initializing
...done initializing
...done initializing
Play this stream using the URL:
rtsp://192.168.1.253:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG
(We use port 8302 for optional RTSP-over-HTTP tunneling.)
Play this stream using the URL:
rtsp://192.168.1.253:8554/PSIA/Streaming/channels/1?videoCodecType=MPEG4
(We use port 8301 for optional RTSP-over-HTTP tunneling.)
Play this stream using the URL:
rtsp://192.168.1.253:8556/PSIA/Streaming/channels/2?videoCodecType=H.264
(We use port 8303 for optional RTSP-over-HTTP tunneling.)
Play this stream using the URL:
rtsp://192.168.1.253:8557/PSIA/Streaming/channels/2?videoCodecType=H.264
(We use port 8304 for optional RTSP-over-HTTP tunneling.)
Play this stream using the URL:
rtsp://192.168.1.253:8553/PSIA/Streaming/channels/1?videoCodecType=MPEG4
(We use port 8300 for optional RTSP-over-HTTP tunneling.)
CAPTURE: Start...
CAPTURE: Starting IPIPE.
CAPTURE: Starting ISIF.
CAPTURE: Starting imager.
CAPTURE: Starting H3A.
CAPTURE: Start DONE.
CAPTURE: Start...DONE
Current Settings,
Face Detect : OFF
Lens Distortion Correction (LDC): OFF
Video Stabilization : OFF
Advanced DMVA : OFF
Spatial NF : OFF
Temporal NF : OFF
File Save : OFF
AE/AWB : OFF
Host-name / IP address : 192.168.1.253
==============
AV Server Main
==============
1: Toggle ON/OFF: Face Detect
2: Toggle ON/OFF: LDC
3: Toggle ON/OFF: Video Stabilization
4: Toggle ON/OFF: Spatial NF
5: Toggle ON/OFF: Temporal NF
6: Toggle ON/OFF: Save to file
7: Toggle ON/OFF: AE/AWB
9: Toggle ON/OFF: Advanced DMVA
r: Save RAW data to file
y: Save YUV data to file
p: Print Profile Info
0: Stop and Exit
Enter Choice : Stream 2 is not avaliable~~~~~~~~1:vol_data.size = 288
caught SIGTERM: shutting down
ApproDrvExit: 10
Regards,
Amit Soni