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.

DM368IPNC boot hangs

Hi,

 

I am trying to run the ipnc application on DM368IPNC board on Appro design

but the image sensor board from some other vendor.Sometimes it works fine

that we are able to see the camera display but we get the following message in log.

ChipX id fail.Please contact appropho.com.

Lately now in same set up the boot process hangs unexpectedly.Boot log is as follows:

DM368 IPNC :>

DM36x initialization passed!

TI UBL Base Version: 1.50

Boot Loader BootMode = NAND

Starting NAND Copy...

Valid magicnum, 0xA1ACED66, found in block 0x00000008.

Boot Mode Task Completed

IPNC UBL Version: 1.1.0

Platform: DM368

Jumping to entry point at 0x81080000

U-Boot 1.3.4 (Dec  9 2010 - 17:44:14) DM368-IPNC-1.0.1

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

NAND read: device 0 offset 0x700000, size 0xe00000

Skipping bad block 0x00b80000

14680064 bytes read: OK

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:    1883832 Bytes =  1.8 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:    1883832 Bytes =  1.8 MB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

Starting kernel ...

Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (root@mayank-a) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Tue May 8 16:55:43 IS2

CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

Machine: DaVinci DM368 IPNC

Memory policy: ECC disabled, Data cache writeback

DaVinci DM0365 variant 0x8

PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000

PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428

PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000

CPU0: D VIVT write-back cache

CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets

CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets

Built 1 zonelists.  Total pages: 12288

Kernel command line: console=ttyS1,115200n8 noinitrd rw ip=192.168.1.1:192.168.1.50:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.50:/home/mayank/DM368IPCM/ipnc/targetM

PID hash table entries: 256 (order: 8, 1024 bytes)

Clock event device timer0_0 configured with caps set: 07

Console: colour dummy device 80x30

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: 44544KB available (3229K code, 658K data, 184K init)

Security Framework v1.0.0 initialized

Capability LSM initialized

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

NET: Registered protocol family 16

DaVinci: 104 gpio irqs

MUX: initialized GPIO20

MUX: initialized I2C_SCL

Generic PHY: Registered new driver

ch0 default output "COMPOSITE", mode "NTSC"

VPBE Encoder Initialized

SCSI subsystem initialized

NET: Registered protocol family 2

IP route cache hash table entries: 512 (order: -1, 2048 bytes)

TCP established hash table entries: 2048 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 2048 bind 1024)

TCP reno registered

***davinci_spi_board_init()!<6>

***davinci_spi_board_init_End(0)!<5>VFS: Disk quotas dquot_6.5.1

Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

squashfs: version 3.1 (2006/08/19) Phillip Lougher

JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.

yaffs May  8 2012 16:53:52 Installing.

SGI XFS with no debug enabled

Initializing Cryptographic API

io scheduler noop registered

io scheduler anticipatory registered (default)

LTT : ltt-facilities init

LTT : ltt-facility-core init in kernel

DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec

Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled

serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A

serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A

RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize

Davinci EMAC MII Bus: probed

MAC address is deadbeaf

TI DaVinci EMAC Linux version updated 4.0

netconsole: not configured, aborting

Linux video capture interface: v2.00

Trying to register davinci display video device.

layer=c059e000,layer->video_dev=c059e160

Trying to register davinci display video device.

layer=c0584e00,layer->video_dev=c0584f60

davinci_init:DaVinci V4L2 Display Driver V1.0 loaded

i2c /dev entries driver

Generic platform RAM MTD, (c) 2004 Simtec Electronics

nand_davinci nand_davinci.0: Using 4-bit hardware ECC

NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)

Creating 7 MTD partitions on "nand_davinci.0":

0x00000000-0x00300000 : "bootloader"

mtd: Giving out device 0 to bootloader

0x00300000-0x00500000 : "params"

mtd: Giving out device 1 to params

0x00500000-0x00700000 : "kernel"

mtd: Giving out device 2 to kernel

0x00700000-0x02700000 : "filesystem"

mtd: Giving out device 3 to filesystem

0x02700000-0x02900000 : "data1"

mtd: Giving out device 4 to data1

0x02900000-0x02d00000 : "Calibration"

mtd: Giving out device 5 to Calibration

0x02d00000-0x08000000 : "data2"

mtd: Giving out device 6 to data2

nand_davinci nand_davinci.0: hardware revision: 2.3

MUX: initialized SPI0_SCLK

MUX: initialized SPI0_SDO)

dm_spi.0: davinci SPI Controller driver at 0xc3866000 (irq = 42) use_dma=0

musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0

musb_hdrc musb_hdrc: No DMA interrupt line

musb_hdrc: USB Peripheral mode controller at c3868000 using DMA, IRQ 12

rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc

rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)

rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0

davinci-mmc davinci-mmc.0: Supporting 4-bit mode

davinci-mmc davinci-mmc.0: Using DMA mode

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.1

CQ0093 Voice Codec 0.1

asoc: cq93vc <-> davinci-vcif mapping ok

ALSA device list:

  #0: On-chip voice codec (cq93vc)

IPv4 over IPv4 tunneling driver

TCP bic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 01:06:43 (946688803)

Time: timer0_1 clocksource has been installed.

Clock event device timer0_0 configured with caps set: 08

Switched to high resolution mode on CPU 0

IP-Config: Guessing netmask 255.255.255.0

IP-Config: Gateway not on directly connected network.

Looking up port of RPC 100003/2 on 192.168.1.50

Looking up port of RPC 100005/1 on 192.168.1.50

VFS: Mounted root (nfs filesystem).

Freeing init memory: 184K

INIT: version 2.86 booting

0

Starting the hotplug events dispatcher: udevd.

Synthesizing the initial hotplug events...done.

Waiting for /dev to be fully populated...done.

0

CSL: Module install successful, device major num = 253

CSL: Module version 0.10.00, built on May 11 2012 10:21:08

I2C: Module install successful, device major num = 252

DMA: Module install successful, device major num = 251

DRV: Module install successful

DRV: Module built on May 11 2012 10:21:09

DRV: EDMACC.QUEPRI  = 00000777

DRV: SYSTEM.MSTPRI0 = 00440022

DRV: SYSTEM.MSTPRI1 = 00000244

DRV: ISP.BCR        = 00000002

DRV: SYSTEM.MISC    = 00000391

CMEMK module: built on May 11 2012 at 10:20:54

  Reference Linux version 2.6.18

  File /home/mayank/DM368IPCM/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

allocated heap buffer 0xc4000000 of size 0x5000000

CMEM Range Overlaps Kernel Physical - allowing overlap

CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)

cmemk initialized

EDMAK module: built on May 11 2012 at 10:20:55

  Reference Linux version 2.6.18

  File /home/mayank/DM368IPCM/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

IRQK module: built on May 11 2012 at 10:20:56

  Reference Linux version 2.6.18

  File /home/mayank/DM368IPCM/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c

irqk initialized

Empty flash at 0x001e2830 ends at 0x001e3000

Empty flash at 0x001fa81c ends at 0x001fb000

JFFS2 notice: (559) read_dnode: node CRC failed on dnode at 0x1fa7d8: read 0xffffffff, calculated 0x20d1c69f

JFFS2 notice: (559) read_dnode: node CRC failed on dnode at 0x1e27ec: read 0xffffffff, calculated 0x60708ecd

Creat queue id:0

queue id:0

Creat queue id:32769

queue id:32769

FileMngThread created

queue id:32769

AlramThread created

Share memory init success

IPNC_DM368_2.6.0 (root@mayank-a) (gcc version 4.2.0 (MontaVista

Creat queue id:65538

queue id:65538

queue id:65538

Creat queue id:98307

queue id:98307

CPU is DM368

DEMOCFG Value   : 0

Videocodecmode  : 0

Videocodecres   : 0

Value of pConfig -> nVideocodecmode by default 0

./av_server.out DM368 NTSC APPRO2A AEWB D1 MPEG4 5000000 VBR AUTO MENUOFF &

Check_device_version : DEVICE VER = 1 !!

Starting mounting local filesystems: mount

AVSERVER UI: Initializing.

none on /dev/shm type tmpfs (rw,size=5M)

none on /var/run type tmpfs (rw)

none on /tmp type tmpfs (rw,sync)

CLK Hz,

ARM   Hz =  432000000

DDR   Hz =  340000000

VPSS  Hz =  340000000

IMCOP Hz =  340000000

Setting up networking ... DRV LDC: GetConfig 0003 0x0

[OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR

IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter

ApproDrvInit: 7

Creat queue id:131076

queue id:131076

CONFIGURING AVSERVER FOR DM368 .....

queue id:65538

############OPEN###########

==========>>>> Start X,Y = 52,18

############reset###########

DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:

layer.pix_fmt.bytesperline = 640,

layer.pix_fmt.width = 640,

layer.pix_fmt.height = 480,

layer.pix_fmt.sizeimage =460800

############SPI DavinciDisplay DavinciDisplay.1: pixfmt->width = 640,

layer->layer_info.config.line_length= 640

OPEN###########

spi mode: 16

bits per word: 8

max speed: 12000000 Hz (12000 KHz)

############SET REG###########

############OPEN END###########

================> 10, 400, 1735

APPRO Setting Applied

queue id:131076

FR : 0 users registered from exsiting face album

IPNC_DM368_2.6.0 (root@mayank-a) (gcc version 4.2.0 (MontaVista

IPNC AUTO_IRIS = 1 (0:Manual,1:Auto)#####################

APPRO 2A Created

XXXXX IAE_CMD_SET_CONFIG XXXXX

.

222 Aew_Cal_LoadParam: dfc check sum success

(nand offset: 0x00500010, size: 0x0000181c, checksum: 0x00020024)

################DFC ret=0##################

Starting hotplug subsystem:

   pci    

   pci      [success]

   usb    

QualityMode:(Index:0)7

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 success

Schedule manager init success

   usb      [success]

   isapnp 

   isapnp   [success]

   ide    

MTD_open

   ide      [sucMTD_read

cess]

   input MTD_close

 

############################################################

#####  AEWB IPNC_DM368IMX036 formal version for FW2.60.01 20120106.  #####

############################################################

XXXXX DRV_imgsSetAgain() Error(0)

~~~ fn: Aew_Cal_LoadAutoIrisParam, start ~~~

~~~ fn: Aew_Cal_LoadAutoIrisParam, nand_addr 0x340000 ~~~

 

!!! FAIL, Checksum error, Aew_Cal_LoadAutoIrisParam, tmp_chksum 354, iris_chksum 47811, iris_test_val 11513604 !!!

!!!!!! FAIL, autoiris default value 0 !!!!!!

Enable APPRO_DBG Function @@@@@@@@@@@@@@@@@@@@@

--->Chip init PASS

Mode:0,F:0,minST=0,(Gain:7),Q:-1

ND Init

ND:Day

   input    [success]

   scsi   

swa

when i run ./av_server.out D1 the capture runs fine but  no streaming.

Please help.

 

Regards,

Mayank

 

 

 

 

  • Try with TI 2A (or none) algorithm selected in web interface.
    Appro stops working after few minutes using not Appro sensor board.

    >>>>when i run ./av_server.out D1 the capture runs fine but  no streaming.

    Add RTSP to arguments e.g. :  ./av_server.out DM368 MENUOFF 1080P TI2A AEWB RTSP H264 6000000 CVBR H264 1000000 CVBR &

    Regards.