Hi,
i am interfacing LI CAM AR-0331 sensor on DM368 IPNC Ver 3.0. the system hangs after init scripts execution with the below error
#
# ApproDrvExit: 7
Error: WaitStreamReady Fail.
sycOnvif Profile 1
Error: SemWait: Invalid Semaphore handler
my environment variables list:
DM368 IPNC :>printenv
bootdelay=4
baudrate=115200
bootfile="uImage"
ipaddr=10.17.8.140
serverip=10.17.1.111
gateway=10.17.1.21
netmask=255.255.240.0
ethaddr=00:0C:0C:A0:08:27
bootcmd=nboot 0x80700000 0 0x500000;nand read 0x80700000 0x500000 0x400000;bootm 0x80700000
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.3.4 (Feb 28 2012 - 15:29:09) DM368-IPNC-2.0.0
bootargs=mem=48M console=ttyS1,115200n8 root=/dev/mtdblock3 rootfstype=cramfs ip=10.17.8.140:10.17.1.111:10.17.1.21:255.255.240.0:::off eth=00:0C:0C:A0:08:27 lpj=107724
8 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"
Environment size: 682/131068 bytes
below is the bootlog:
IPNC UBL Version: 2.0.0
Platform: DM368
queue id:131076
Jumping to entry point at 0x81080000
queue id:32769
U-Boot 1.3.4 (Feb 28 2012 - 15:29:09) DM368-IPNC-2.0.0
I2C: ready
DRAM: 128 MB
NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
128 MiB
In: serial
Out: serial
Err: serial
ARM Clock :- 432MHz
DDR Clock :- 340MHz
Ethernet PHY: GENERIC @ 0x01
Hit any key to stop autoboot: 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: 2669220 Bytes = 2.5 MB
Load Address: 80008000
Entry Point: 80008000
NAND read: device 0 offset 0x500000, size 0x400000
4194304 bytes read: OK
## 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: 2669220 Bytes = 2.5 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
[ 0.000000] Linux version 2.6.18_pro500-davinci_IPNC_DM368_3.1.0 (root@mallikarjun) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Mon
Nov 19 09:48:16 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=ttyS1,115200n8 root=/dev/mtdblock3 rootfstype=cramfs ip=10.17.8.140:10.17.1.111:10.17.1.21:255.255.240.0:::off eth=0
0:0C:0C:A0:08:27 lpj=1077248 cmemk.phys_start="0x83000000" cmemk.phys_end="0x88000000" cmemk.phys_start_1="0x00001000" cmemk.phys_end_1="0x00008000" cmemk.pools_1="1x28
672" cmemk.allowOverlap="1"
[ 0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:A0:08:27
[ 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 (2301K code, 279K data, 172K 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.130000] VFS: Disk quotas dquot_6.5.1
[ 0.130000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.130000] squashfs: version 3.1 (2006/08/19) Phillip Lougher
[ 0.130000] 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 Nov 19 2012 09:38:06
[ 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 Nov 19 2012 09:38:07
[ 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 Nov 19 2012 at 09:37:46
[ 0.160000] Reference Linux version 2.6.18
[ 0.160000] File /home/mallikarjun/ipnc_workspace/dm368_ipnc_v3_1_0/Source/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
[ 0.170000] IRQK module: built on Nov 19 2012 at 09:37:47
[ 0.170000] Reference Linux version 2.6.18
[ 0.170000] File /home/mallikarjun/ipnc_workspace/dm368_ipnc_v3_1_0/Source/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[ 0.170000] irqk initialized
[ 0.170000] CMEMK module: built on Nov 19 2012 at 09:37:45
[ 0.170000] Reference Linux version 2.6.18
[ 0.170000] File /home/mallikarjun/ipnc_workspace/dm368_ipnc_v3_1_0/Source/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 $ 2 ports, IRQ sharing disabled
[ 0.170000] serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
[ 0.170000] serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
[ 0.190000] RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
[ 0.200000] Davinci EMAC MII Bus: probed
[ 0.210000] MAC address is 00:0C:0C:A0:08:27
[ 0.210000] TI DaVinci EMAC Linux version updated 4.0
[ 0.220000] Linux video capture interface: v2.00
[ 0.220000] Trying to register davinci display video device.
[ 0.230000] layer=c04be200,layer->video_dev=c04be360
[ 0.230000] Trying to register davinci display video device.
[ 0.240000] layer=c04be000,layer->video_dev=c04be160
[ 0.240000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
[ 0.250000] i2c /dev entries driver
[ 0.260000] 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.290000] 0x00300000-0x00500000 : "params"
[ 0.290000] 0x00500000-0x00900000 : "kernel"
[ 0.300000] 0x00900000-0x02100000 : "filesystem"
[ 0.300000] 0x02100000-0x02300000 : "data1"
[ 0.310000] 0x02300000-0x08000000 : "data2"
[ 0.320000] nand_davinci nand_davinci.0: hardware revision: 2.3
[ 0.320000] MUX: initialized SPI0_SCLK
[ 0.320000] MUX: initialized SPI0_SDO)
[ 0.330000] dm_spi.0: davinci SPI Controller driver at 0xc386e000 (irq = 42) use_dma=0
[ 0.340000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
[ 0.350000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)
[ 0.360000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0
[ 0.370000] Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
[ 0.380000] ASoC version 0.13.1
[ 0.380000] CQ0093 Voice Codec 0.1
[ 0.380000] asoc: cq93vc <-> davinci-vcif mapping ok
[ 0.390000] ALSA device list:
[ 0.400000] #0: On-chip voice codec (cq93vc)
[ 0.400000] IPv4 over IPv4 tunneling driver
[ 0.410000] TCP bic registered
[ 0.410000] NET: Registered protocol family 1
[ 0.410000] NET: Registered protocol family 17
[ 0.420000] rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:01:04 (946684864)
[ 0.430000] Time: timer0_1 clocksource has been installed.
[ 0.440000] Clock event device timer0_0 configured with caps set: 08
[ 0.440000] Switched to high resolution mode on CPU 0
[ 0.480000] IP-Config: Complete:
[ 0.480000] device=eth0, addr=10.17.8.140, mask=255.255.240.0, gw=10.17.1.21,
[ 0.490000] host=10.17.8.140, domain=, nis-domain=(none),
[ 0.490000] bootserver=10.17.1.111, rootserver=10.17.1.111, rootpath=
[ 0.510000] VFS: Mounted root (cramfs filesystem) readonly.
[ 0.510000] Freeing init memory: 172K
INIT: version 2.86 booting
mknod: /dev/spidev0.0: File exists
Creat queue id:0
queue id:0
FileMngThread created
Creat queue id:32769
queue id:32769
AlramThread created
Share memory init success
IPNC_DM368_3.1.0 (root@mallikarjun) (gcc version 4.2.0 (MontaVi
Creat queue id:65538
queue id:65538
queue id:32769
queue id:65538
Creat queue id:98307
queue id:98307
Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file system
net_search_gateway:eth0, 1A8C0, 0, 1
log status
Starting portmap daemon: log status
portmap
CPU is DM368
*****************************************************************
IPNC BUILD VERSION: DM368 IPNC REF DESIGN VERSION 3.10.00.08
*****************************************************************
./av_server.out DM368 NTSC TI2A AEWB 2MP MJPEG 80 MENUOFF &
start_daemon
Check_device_version : DEVICE VER = 1 !!
ApproDrvInit: 9
Creat queue id:131076
queue id:131076
ApproDrvInit: 8
queue id:131076
ApproDrvInit: 2
queue id:131076
ApproDrvInit: 6
queue id:131076
ApproDrvInit: 10
queue id:131076
AVSERVER UI: Initializing.
ApproDrvInit: 7
queue id:131076
log success
.
log status
CLK Hz,
ARM Hz = 432000000
DDR Hz = 340000000
VPSS Hz = 340000000
IMCOP Hz = 340000000
log status
Starting mounting local filesystems: log status
[OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR
IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter
mount none on /dev/shm type tmpfs (rw,size=5M)
none on /var/run type tmpfs (rw)
none on /tmp type tmpfs (rw,sync)
log success
log status
Starting hotplug subsystem:
SYSTEM.MSTPRI0 value changed to 00440011
CONFIGURING AVSERVER FOR DM368 .....
queue id:65538
SENSOR FPS VALUE = 30
Read Sensor ID:0x2602
[ 5.850000] DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
[ 5.850000] layer.pix_fmt.bytesperline = 640,
[ 5.850000] layer.pix_fmt.width = 640,
[ 5.850000] layer.pix_fmt.height = 480,
[ 5.850000] layer.pix_fmt.sizeimage =460800
[ 5.880000] DavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
[ 5.880000] layer->layer_info.config.line_length= 640
FR : 0 users registered from exsiting face album
IPNC_DM368_3.1.0 (root@mallikarjun) (gcc version 4.2.0 (MontaVi
IPNC AUTO_IRIS = 0
Initializing...
Initializing...
Initializing...
Initializing...
Initializing...
usb
...done initializing
Play 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 initializing
Play 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 initializing
Play 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 initializing
Play 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 initializing
Play 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.)
usb [success]
input
input [success]
done.
Finished Linear Mode Init with AR0331 rev2.
[ 8.310000] loop: loaded (max 8 devices)
[ 8.450000] tun: Universal TUN/TAP device driver, 1.6
[ 8.460000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 8.670000] CSLIP: code copyright 1989 Regents of the University of California
[ 8.790000] netconsole: not configured, aborting
[ 8.930000] PPP generic driver version 2.4.2
[ 9.120000] PPP Deflate Compression module registered
Starting internet superserver: inetd.
[ 9.720000] sbulla: unknown partition table
[ 10.890000] davinci-mmc davinci-mmc.0: Supporting 4-bit mode
[ 10.900000] davinci-mmc davinci-mmc.0: Using DMA mode
[ 11.310000] usbcore: registered new driver usbfs
[ 11.400000] usbcore: registered new driver hub
[ 11.630000] musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0
[ 11.740000] musb_hdrc musb_hdrc: No DMA interrupt line
[ 11.740000] musb_hdrc: USB Peripheral mode controller at c38fa000 using DMA, IRQ 12
[ 12.020000] Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
[ 12.750000] sbulla: unknown partition table
mkdosfs 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 3cdf121d, no volume label.
queue id:0
MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
10 login: root (automatic login)
Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774).
login[636]: root login on `ttyS1'
# ps
ps
PID Uid VmSize Stat Command
1 root 552 S init [5]
2 root SW [posix_cpu_timer]
3 root SW [softirq-high/0]
4 root SW [softirq-timer/0]
5 root SW [softirq-net-tx/]
6 root SW [softirq-net-rx/]
7 root SW [softirq-block/0]
8 root SW [softirq-tasklet]
9 root SW [softirq-hrtimer]
10 root SW [softirq-rcu/0]
11 root SW< [desched/0]
12 root SW< [events/0]
13 root SW< [khelper]
14 root SW< [kthread]
25 root SW< [kblockd/0]
73 root SW [pdflush]
74 root SW [pdflush]
75 root SW< [kswapd0]
76 root SW< [aio/0]
170 root SW [mtdblockd]
191 root SW< [dm_spi.0]
263 root SWN [jffs2_gcd_mtd4]
264 root 992 S ./system_server
285 root 3396 S ./av_server.out DM368 NTSC TI2A AEWB 2MP MJPEG 80 MEN
291 root 1096 S ./wis-streamer -s -h
293 root 836 S ./wis-streamer -s -h
294 root 836 S ./wis-streamer -s -h
296 root 836 S ./wis-streamer -s -h
297 root 836 S ./wis-streamer -s -h
466 root 636 S /usr/sbin/inetd
517 root SW< [kmmcd]
553 root SW< [khubd]
622 root 860 S ./boa -c /etc
625 root 508 S avahi-autoipd: [eth0] announcing 169.254.3.232
626 root 376 S avahi-autoipd: [eth0] callout dispatcher
629 root 1208 S avahi-daemon: running [10.local]
632 root 512 S /usr/sbin/avahi-dnsconfd -D
636 root 852 S -sh
642 root 276 R avahi-autoipd: [eth0] callout dispatcher
643 root 748 R ps
#
# ApproDrvExit: 7
Error: WaitStreamReady Fail.
sycOnvif Profile 1
Error: SemWait: Invalid Semaphore handler