Hi,
Recently I got Appro 3.0 , I writed the images into DM368 IPNC and the IPNC can work correctly. Today I tested ONVIF protocol using ONVIF Conformance Tool v1.02.4.But when I began to test, DM368 IPNC ttyS0 output "caught SIGSEGV, dumping core in /tmp". After output these information, I can't ping IPNC.
So anyone can tell me how to debug this kind of error?
Thanks very much!
Dear Zhang,
Can you please provide the following details- Are you using the binaries given along with 3.0 ref design?- Can you please clarify whether, you weren't able to ping the camera or you weren't able to open the GUI page on the IE- Please provide the name of the test where it failed- It would be helpful if you can provide the screenshot of the test page in ONVIF tool
Regards,
Barath Vasudevan
Also, can you check with tool version 11.12 which we used for the tests
Raghu
Please mark this reply as Verify Answer on this post if it answers the question.
I am sorry for some mistake discrpition.
1: I wrote the image into IPNC368 with the raw binary image from 3.0 ref design without any modify;
2:After error information appear , boa process disappear , and I can't login IE GUI ,but I still can ping IPNC;
3:when I connect IPNC using swtich equipment when IPNC boot OK,above error information appear almost even if I can't use any PC test tools,
when I connect IPNC directly to PC ,when IPNC boot OK, above error information disappear almost, but when I use PC ONVIF test tools to verify IPNC ,error information appear again!
And I search such error signal,it seems to be memory error or hardware error.
So anyone can point to how to debug this error?
Thank you very much
Raghu Kudva Also, can you check with tool version 11.12 which we used for the tests Regards, Raghu
Hi ,can you tell me how to get tool version 11.12?I found only onvif members can download test tools from onvif website.
HI,
You need to check at ONVIF site for details on the tool, are you a member of this forum? you need to be one to get this detail
Hi zhang,
Can you also please send us the log of the entire boot process?
The following is my IPNC368 log message:
DM36x initialization passed!TI UBL Base Version: 1.50Boot Loader BootMode = NANDStarting NAND Copy...Valid magicnum, 0xA1ACED66, found in block 0x00000008.Boot Mode Task CompletedIPNC UBL Version: 2.0.0Platform: DM368Jumping to entry point at 0x81080000U-Boot 1.3.4 (Feb 28 2012 - 15:29:09) DM368-IPNC-2.0.0I2C: readyDRAM: 128 MBNAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)Bad block table found at page 65472, version 0x01Bad block table found at page 65408, version 0x01128 MiBIn: serialOut: serialErr: serialARM Clock :- 432MHzDDR Clock :- 340MHzEthernet PHY: GENERIC @ 0x01Hit any key to stop autoboot: 4 3 2 1 0 Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000 Image Name: Linux-2.6.18_pro500-davinci_IPNC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2658244 Bytes = 2.5 MB Load Address: 80008000 Entry Point: 80008000## Booting kernel from Legacy Image at 80700000 ... Image Name: Linux-2.6.18_pro500-davinci_IPNC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2658244 Bytes = 2.5 MB Load Address: 80008000 Entry Point: 80008000 Loading Kernel Image ... OKOKStarting kernel ...[ 0.000000] Linux version 2.6.18_pro500-davinci_IPNC_DM368_3.0.0 (a0875405@bangvideoapps01) (gcc version 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-3.0.0.0702771 2007-03-10)) #1 PREEMPT Tue Feb 28 15:37:29 IST 2012[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177[ 0.000000] Machine: DaVinci DM368 IPNC[ 0.000000] Memory policy: ECC disabled, Data cache writeback[ 0.000000] DaVinci DM0365 variant 0x8[ 0.000000] PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000[ 0.000000] PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428[ 0.000000] PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000[ 0.000000] CPU0: D VIVT write-back cache[ 0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets[ 0.000000] CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets[ 0.000000] Built 1 zonelists. Total pages: 12288[ 0.000000] Kernel command line: mem=48M console=ttyS0,115200n8 root=/dev/mtdblock3 rootfstype=squashfs ip=192.168.1.168 eth=00:0C:0C:A0:05:A1 lpj=1077248 cmemk.phys_start="0x83000000" cmemk.phys_end="0x88000000" cmemk.phys_start_1="0x00001000" cmemk.phys_end_1="0x00008000" cmemk.pools_1="1x28672" cmemk.allowOverlap="1"[ 0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:A0:05:A1[ 0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)[ 0.000000] Clock event device timer0_0 configured with caps set: 07[ 0.000000] Console: colour dummy device 80x30[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)[ 0.000000] Memory: 48MB = 48MB total[ 0.000000] Memory: 45860KB available (2289K code, 276K data, 176K init)[ 0.000000] Calibrating delay loop (skipped)... 215.44 BogoMIPS preset[ 0.000000] Security Framework v1.0.0 initialized[ 0.000000] Capability LSM initialized[ 0.000000] Mount-cache hash table entries: 512[ 0.000000] CPU: Testing write buffer coherency: ok[ 0.010000] NET: Registered protocol family 16[ 0.010000] DaVinci: 104 gpio irqs[ 0.010000] MUX: initialized GPIO20[ 0.010000] MUX: initialized I2C_SCL[ 0.010000] Generic PHY: Registered new driver[ 0.010000] ch0 default output "COMPOSITE", mode "NTSC"[ 0.020000] VPBE Encoder Initialized[ 0.020000] SCSI subsystem initialized[ 0.020000] NET: Registered protocol family 2[ 0.110000] IP route cache hash table entries: 512 (order: -1, 2048 bytes)[ 0.110000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)[ 0.110000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)[ 0.110000] TCP: Hash tables configured (established 2048 bind 1024)[ 0.110000] TCP reno registered[ 0.120000] VFS: Disk quotas dquot_6.5.1[ 0.120000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)[ 0.120000] squashfs: version 3.1 (2006/08/19) Phillip Lougher[ 0.120000] JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.[ 0.130000] Initializing Cryptographic API[ 0.130000] io scheduler noop registered[ 0.130000] io scheduler anticipatory registered (default)[ 0.130000] io scheduler deadline registered[ 0.130000] io scheduler cfq registered[ 0.160000] CSL: Module install successful, device major num = 253 [ 0.160000] CSL: Module version 0.10.00, built on Feb 28 2012 15:29:46 [ 0.160000] I2C: Module install successful, device major num = 252 [ 0.160000] DMA: Module install successful, device major num = 251 [ 0.160000] DRV: Module install successful[ 0.160000] DRV: Module built on Feb 28 2012 15:29:48 [ 0.160000] DRV: EDMACC.QUEPRI = 00002777[ 0.160000] DRV: SYSTEM.MSTPRI0 = 00440011[ 0.160000] DRV: SYSTEM.MSTPRI1 = 00000444[ 0.160000] DRV: ISP.BCR = 00000002[ 0.160000] DRV: SYSTEM.MISC = 00000391[ 0.160000] EDMAK module: built on Feb 28 2012 at 15:29:34[ 0.160000] Reference Linux version 2.6.18[ 0.160000] File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c[ 0.160000] IRQK module: built on Feb 28 2012 at 15:29:35[ 0.160000] Reference Linux version 2.6.18[ 0.160000] File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c[ 0.160000] irqk initialized[ 0.160000] CMEMK module: built on Feb 28 2012 at 15:29:33[ 0.170000] Reference Linux version 2.6.18[ 0.170000] File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c[ 0.170000] allocated heap buffer 0xc4000000 of size 0x5000000[ 0.170000] CMEM Range Overlaps Kernel Physical - allowing overlap[ 0.170000] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)[ 0.170000] cmemk initialized[ 0.170000] Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled[ 0.170000] serial8250.0: ttyS0 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A[ 0.180000] RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize[ 0.200000] Davinci EMAC MII Bus: probed[ 0.200000] MAC address is 00:0C:0C:A0:05:A1[ 0.210000] TI DaVinci EMAC Linux version updated 4.0[ 0.210000] Linux video capture interface: v2.00[ 0.220000] Trying to register davinci display video device.[ 0.220000] layer=c04cb200,layer->video_dev=c04cb360[ 0.230000] Trying to register davinci display video device.[ 0.230000] layer=c04cb000,layer->video_dev=c04cb160[ 0.240000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded[ 0.250000] i2c /dev entries driver[ 0.250000] nand_davinci nand_davinci.0: Using 4-bit hardware ECC[ 0.260000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)[ 0.270000] Creating 6 MTD partitions on "nand_davinci.0":[ 0.280000] 0x00000000-0x00300000 : "bootloader"[ 0.280000] 0x00300000-0x00500000 : "params"[ 0.290000] 0x00500000-0x00900000 : "kernel"[ 0.290000] 0x00900000-0x02100000 : "filesystem"[ 0.300000] 0x02100000-0x02300000 : "data1"[ 0.310000] 0x02300000-0x08000000 : "data2"[ 0.310000] nand_davinci nand_davinci.0: hardware revision: 2.3[ 0.320000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc[ 0.330000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)[ 0.330000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0[ 0.340000] Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).[ 0.350000] ASoC version 0.13.1[ 0.360000] CQ0093 Voice Codec 0.1[ 0.360000] asoc: cq93vc <-> davinci-vcif mapping ok[ 0.370000] ALSA device list:[ 0.370000] #0: On-chip voice codec (cq93vc)[ 0.380000] IPv4 over IPv4 tunneling driver[ 0.380000] TCP bic registered[ 0.390000] NET: Registered protocol family 1[ 0.390000] NET: Registered protocol family 17[ 0.400000] rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:00:56 (946684856)[ 0.410000] Time: timer0_1 clocksource has been installed.[ 0.410000] Clock event device timer0_0 configured with caps set: 08[ 0.410000] Switched to high resolution mode on CPU 0[ 0.450000] IP-Config: Guessing netmask 255.255.255.0[ 0.450000] IP-Config: Complete:[ 0.450000] device=eth0, addr=192.168.1.168, mask=255.255.255.0, gw=255.255.255.255,[ 0.460000] host=192.168.1.168, domain=, nis-domain=(none),[ 0.470000] bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=[ 0.480000] VFS: Mounted root (squashfs filesystem) readonly.[ 0.490000] Freeing init memory: 176K INIT: version 2.86 booting[ 2.490000] Empty flash at 0x00189834 ends at 0x0018a000[ 2.580000] JFFS2 notice: (250) read_dnode: node CRC failed on dnode at 0x1897f0: read 0xffffffff, calculated 0x62843199Creat queue id:0queue id:0FileMngThread createdCreat queue id:32769queue id:32769AlramThread createdShare memory init successqueue id:32769Creat queue id:65538queue id:65538Creat queue id:98307queue id:98307IPNC_DM368_3.0.0 (a0875405@bangvideoapps01) (gcc version 4.2.0 queue id:65538net_search_gateway:eth0, 1A8C0, 0, 1CPU is DM368***************************************************************** IPNC BUILD VERSION: DM368 IPNC REF DESIGN VERSION 3.00.00.10 *****************************************************************./av_server.out DM368 NTSC APPRO2A AEWB 720P H264 64000 VBR AUTO MENUOFF &Check_device_version : DEVICE VER = 1 !!Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file systemlog statusStarting portmap daemon: log statusportmapstart_daemonApproDrvInit: 7Creat queue id:131076queue id:131076ApproDrvInit: 9queue id:131076ApproDrvInit: 8queue id:131076ApproDrvInit: 2queue id:131076ApproDrvInit: 6queue id:131076ApproDrvInit: 10queue id:131076AVSERVER 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 parameterSYSTEM.MSTPRI0 value changed to 00440011CONFIGURING AVSERVER FOR DM368 .....queue id:65538SENSOR FPS VALUE = 30[ 4.850000] DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:[ 4.850000] layer.pix_fmt.bytesperline = 640,[ 4.850000] layer.pix_fmt.width = 640, [ 4.850000] layer.pix_fmt.height = 480, [ 4.850000] layer.pix_fmt.sizeimage =460800queue id:131076 [ 4.880000] DavinciDisplay DavinciDisplay.1: pixfmt->width = 640,[ 4.880000] layer->layer_info.config.line_length= 640 FR : 0 users registered from exsiting face albumInitializing...IPNC_DM368_3.0.0 (a0875405@bangvideoapps01) (gcc version 4.2.0 IPNC AUTO_IRIS = 1 Initializing...Initializing...Initializing...Initializing......done initializingPlay this stream using the URL: rtsp://192.168.1.168:8556/PSIA/Streaming/channels/2?videoCodecType=H.264(We use port 8303 for optional RTSP-over-HTTP tunneling.)...done initializingPlay this stream using the URL: rtsp://192.168.1.168:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG(We use port 8302 for optional RTSP-over-HTTP tunneling.)...done initializingPlay this stream using the URL: rtsp://192.168.1.168:8553/PSIA/Streaming/channels/1?videoCodecType=MPEG4(We use port 8300 for optional RTSP-over-HTTP tunneling.)...done initializingPlay this stream using the URL: rtsp://192.168.1.168:8554/PSIA/Streaming/channels/1?videoCodecType=MPEG4(We use port 8301 for optional RTSP-over-HTTP tunneling.)...done initializingPlay this stream using the URL: rtsp://192.168.1.168:8557/PSIA/Streaming/channels/2?videoCodecType=H.264(We use port 8304 for optional RTSP-over-HTTP tunneling.)APPRO AEW TRIAL VERSION !!!APPRO AEW DATE LINE 2012/12 /opt/ipnc/modules/init.d_ins/portmap: /opt/ipnc/modules/init.d_ins/portmap: 162: cannot create /var/run/portmap.pid: Read-only file systemlog success. log statuslog statusStarting mounting local filesystems: log statusmount none on /dev/shm type tmpfs (rw,size=5M)none on /var/run type tmpfs (rw)none on /tmp type tmpfs (rw,sync)log successlog statusStarting hotplug subsystem: usb Simple mixer control 'PGA',0 Capabilities: cvolume Capture channels: Mono Limits: Capture 0 - 3 Mono: Capture 2 [67%]Simple mixer control 'Mono DAC',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 63 Mono: Playback 47 [75%]SystemInit successSchedule manager init success usb [success] input input [success]done.[ 8.940000] loop: loaded (max 8 devices)[ 9.110000] tun: Universal TUN/TAP device driver, 1.6[ 9.110000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>[ 9.670000] CSLIP: code copyright 1989 Regents of the University of California[ 10.150000] netconsole: not configured, aborting[ 10.330000] PPP generic driver version 2.4.2[ 10.550000] PPP Deflate Compression module registeredStarting internet superserver: inetd.[ 11.390000] sbulla: unknown partition table[ 12.830000] davinci-mmc davinci-mmc.0: Supporting 4-bit mode[ 12.850000] davinci-mmc davinci-mmc.0: Using DMA mode[ 13.370000] usbcore: registered new driver usbfs[ 13.460000] usbcore: registered new driver hub[ 13.710000] musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0[ 13.840000] musb_hdrc musb_hdrc: No DMA interrupt line[ 13.850000] musb_hdrc: USB Peripheral mode controller at c3904000 using DMA, IRQ 12[ 14.200000] Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)[ 15.100000] sbulla: unknown partition tablemkdosfs 3.0.6 (04 Oct 2009)unable to get drive geometry, using default 255/63/dev/sbulla has 255 heads and 63 sectors per track,logical sector size is 512,using 0xf8 media descriptor, with 1024 sectors;file system has 2 12-bit FATs and 4 sectors per cluster.FAT size is 1 sector, and provides 247 clusters.Root directory contains 512 slots.Volume ID is 3c86189a, no volume label.queue id:0umount: /mnt/mmc: not mounteddns=192.168.1.1net_search_gateway:eth0, 1A8C0, 0, 1net_search_gateway:eth0, 0, FE01A8C0, 3dns=192.168.1.1ERROR: Module g_file_storage does not exist in /proc/modules[ 17.220000] g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005[ 17.240000] g_file_storage gadget: Number of LUNs=1[ 17.240000] g_file_storage gadget-lun0: ro=0, file: /dev/sbulla[ 17.270000] system_server/260[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196ApproDrvInit: 3queue id:131076queue id:0queue id:32769[01/Jan/2000:00:01:14 +0000] boa: server version Boa/0.94.13[01/Jan/2000:00:01:14 +0000] boa: server built Apr 5 2012 at 17:09:57.[01/Jan/2000:00:01:14 +0000] boa: starting server pid=664, port 80queue id:0 INIT: Entering runlevel: 5cMontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)192 login: root (automatic login)Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774).login[686]: root login on `ttyS0'UDPString=uuid:Upnp-TVEmulator-1_0-00_0077606280</UDN>Upnp port is 0UPnP Initialized OK ip=192.168.1.168, port=49152desc_doc_url = http://192.168.1.168/tvdevicedesc.xmlerror code = 0# device advertisement succeed.# Stream 8 is not avaliable~~~~~~~~caught SIGTERM: shutting downApproDrvExit: 8
I found that every boot log is different and error information is different too.
When I use the third VMS software to connect IPNC with PSIA ,such as Milestone XProtect , there are failed.
the part error information is below:
[01/Jan/2000:00:25:41 +0000] request from 192.168.1.188 "GET /PSIA/System/Video/inputs/channels/Single/capabilities HTTP/1.1" ("/var/www/PSIA/System/Video/inputs/channels/Single/capabilities"): document open: No such file or directory[01/Jan/2000:00:25:41 +0000] request from 192.168.1.188 "GET /PSIA/System/Video/inputs/channels/Single HTTP/1.1" ("/var/www/PSIA/System/Video/inputs/channels/Single"): document open: No such file or directory[01/Jan/2000:00:25:41 +0000] request from 192.168.1.188 "GET /PSIA/System/Video/inputs/channels/Single HTTP/1.1" ("/var/www/PSIA/System/Video/inputs/channels/Single"): document open: No such file or directory[01/Jan/2000:00:25:41 +0000] request from 192.168.1.188 "GET /PSIA/System/Video/inputs/channels/Single HTTP/1.1" ("/var/www/PSIA/System/Video/inputs/channels/Single"): document open: No such file or directory[01/Jan/2000:00:25:41 +0000] request from 192.168.1.188 "GET /PSIA/System/Video/inputs/channels/Single HTTP/1.1" ("/var/www/PSIA/System/Video/inputs/channels/Single"): document open: No such file or directory[01/Jan/2000:00:25:41 +0000] request from 192.168.1.188 "GET /PSIA/System/Video/inputs/channels/Single HTTP/1.1" ("/var/www/PSIA/System/Video/inputs/channels/Single"): document open: No such file or directory[01/Jan/2000:00:25:41 +0000] request from 192.168.1.188 "GET /PSIA/PTZ/channels HTTP/1.1" ("/var/www/PSIA/PTZ/channels"): document open: No such file or directory
[01/Jan/2000:00:27:06 +0000] caught SIGSEGV, dumping core in /tmp
When I use the third VMS software to connect IPNC with ONVIF,such as Milestone XProtect or Axxon Smart Pro, there are failed too.
[ 338.380000] Alignment trap: boa (670) PC=0x000a9614 Instr=0xe5911000 Address=0x6669766e FSR 0x001[01/Jan/2000:01:26:10 +0000] caught SIGBUS, dumping core in /tmp
|[ 459.480000] CMEMK Error: get_phys: Unable to find phys addr for 0x4d55aa72[ 459.500000] CMEMK Error: get_phys: get_user_pages() failed: -14[ 459.500000] CMEMK Error: GETPHYS: Failed to convert virtual 0x4d55aa72 to physical.CMEM Error: getPhys: Failed to get physical address of 0x4d55aa72
So it looks terrible, and now we are not the member of ONVIF or PSIA, we can't get complete protocol documents.
We dont know how to debug these error.Anyone can tell me how to debug these kind of error?
Zhang,
Thanks for the bootlog. Since you are using third party VMS, I would like to know the root cause of the problem. I would like to know for which request the boa crashed. To start with, can you please send us a wireshark capture between VMS and IPNC. -- Regards,
Barathkumar Vasudevan
Silvan Innovation Labs
Hi Raghu:
Is there an update on this topic. We are evaluating DM368 MT5 running RDK v3 with Milestone XProtect Enterprise 8.0c trail version. We observed similar issues(Web server crashes). If there is a fix/patch already addressing the issue, how does TI typically make them available to people who uses DM368 MT5 code base?
--jwu