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.

DM365IPNC-IMX035 by APPRO setup issues

hi

i am trying to do the setup for DM365IPNC-IMX035 by APPRO using ipnc1.2.

i am following the steps given in Users_Guide_IPNC_DM365_IMX035.pdf.  while installing the IPNETCAM APPLICATION, in section 3.1.1.1

while make

make -s sysall

getting errors for the cramfs files  mounted inside filesys folder.

as per my information cramfs files are readonly files.

-----------------

rm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm4_tunnel.ko': Read-only file system
rm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_mode_transport.ko': Read-only file system
rm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_mode_tunnel.ko': Read-only file system
rm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_tunnel.ko': Read-only file system
rm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm_user.ko': Read-only file system
make[2]: *** [lspclean] Error 1
make[1]: *** [lspall] Error 2
make: *** [sysall] Error 2

------------------

any one has faced the same. how to proceed further.

  • I commented out  lines which deletes *.ko files, in a main Makefile. 

    rm $(TARGET_FS_DIR)/modules/ltt*.ko

  • hi Marko, thanks for your reply

    i tried commenting the same, now i am getting one new  error

    ------------------------------------

    /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar: creating sysctrl.a
    install: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/reboot_ipnc': Read-only file system
    make[6]: *** [install] Error 1
    make[5]: *** [util] Error 2
    make[4]: *** [libs] Error 2
    make[3]: *** [libs] Error 2
    make[2]: *** [exe] Error 2
    make[1]: *** [all] Error 2
    make: *** [sysall] Error 2

    -------------------------------------

    have you tried some other method ?

    i am surprise how APPRO has released the document, with out verifying it.

  • Instead of mounting ramdisk image as described in UserGuide, i mounted it as described in UserGuide for IPNC-MT5 camera,
    or you can manualy create directory structure for /filesys/opt/....

    cd <Filesystem Mount Directory>
    mkdir filesys
    mkdir rdmnt2
    mount -t cramfs -o loop cramfsImage_ipnc_dm36x_xxx rdmnt2/
    cd rdmnt2
    tar -cf - . | tar -C ../filesys/ -xpf -

  • thank you for your reply.

    i am searching for this user guide gor MT5 but i am not getting it.

    http://dns.appropho.com/NewWeb/Product_DM365MT5.php

    in the above link getting started guide is there but it doesn't describes.

    will you please send me the link from where i can download the MT5 user guide.

    or please send me the user guide in the forum or in sujit.mahapatro@gmail.com

  • Sujit,

    Have you ensured that the ownership of the filesystem is in <username>? Looks like you are not able to delete the files from filesystem, because the file permission is not available.

    Also, did you follow the steps that Marko mentioned for creating a filesystem from the cramfs? by default, cramfs is read only filesystem, so if you just mount it and try to use it for building the executables, it will not allow you to overwrite the files.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • hi Marko,

    thanks for your help.

     now make sysall is successfull.

    once i am entering in to login prompt by typing "ifconfig " for the staic ip address for the device it displays the the default ip address only,

    not the ip address set by me. also the MAC address of the device shows is wrong.

    ---------------------------

    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    ApproDrvInit: 6
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    ApproDrvInit: 8
    ApproDrvInit: 9
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    ApproDrvInit: 10
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    INIT: Entering runlevel: 3

    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)

    DM36x_IPNC login: killall: wis-streamer: no process killed

    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)

    DM36x_IPNC login: root


    Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774).

    login[782]: root login  on `console'

    # ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:E0:0A:DD:00:00
              inet addr:192.168.1.168  Bcast:192.168.1.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:124 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:8736 (8.5 KiB)  TX bytes:0 (0.0 B)
              Interrupt:52 Base address:0x7000

    ----------------------------

    so that if while i am trying to run the ipaddress in the interbet browser i am not able to connect. any mistake have i done ?

    my enviornment variables are

     ---------------------------

    DM365 IPNC :>print
    bootdelay=4
    baudrate=115200
    bootfile="uImage"
    ethaddr=00:0C:0C:0A:03:0F
    setboot=setenv bootargs $(bootargs) video=dm36x:output=$(videostd)
    filesize=B3E000
    fileaddr=82000000
    serverip=192.168.17.5
    bootcmd=nand read 0x82000000 0x400000 0xb3e000;nboot 0x80700000 0 0x200000;bootm 0x80700000
    netmask=255.255.255.0
    gatewayip=55.101.66.1
    bootargs=mem=60M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,12M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=$(ethaddr)
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Jun 14 2010 - 16:32:08) DM365-IPNC-1.0.0

    Environment size: 589/16380 bytes
    DM365 IPNC :>

    ----------------------------

  • Hi Sujit,

    Can you share the boot up log? It might help us to figure out where the problem is happening during bootup and assigning of IP address. Also, i saw that /dev/cmem device is not created in your system. The boot up log might help there as well.

    Regards,

    Anshuman

  • hi Anshuman,

    how to get the boot up log file. i just coppied the message from console.

    ----------------------------------------------

    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 Jun  1 2010 16:34:55 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
    Linux video capture interface: v2.00
    Trying to register davinci display video device.
    layer=c2a49a00,layer->video_dev=c2a49b60
    Trying to register davinci display video device.
    layer=c2a49800,layer->video_dev=c2a49960
    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
    i2c /dev entries driver
    nand_davinci nand_davinci.0: Using 4-bit hardware ECC
    NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
    Creating 6 MTD partitions on "nand_davinci.0":
    0x00000000-0x00080000 : "bootloader"
    0x00080000-0x00200000 : "params"
    0x00200000-0x00400000 : "kernel"
    0x00400000-0x01400000 : "filesystem1"
    0x01400000-0x01600000 : "filesystem2"
    0x01600000-0x02000000 : "Calibration"
    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 0xc4066000 (irq = 42) use_dma=0
    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
    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 02:27:43 (946693663)
    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: No network devices available.
    RAMDISK: cramfs filesystem found at block 0
    RAMDISK: Loading 11512KiB [1 disk] into ram disk... done.
    VFS: Mounted root (cramfs filesystem) readonly.
    Freeing init memory: 176K
    INIT: version 2.86 booting
    0
    mkdir: Cannot create directory `/dev/.test': Read-only file system
    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 Jun  1 2010 19:01:25
    I2C: Module install successful, device major num = 252
    DMA: Module install successful, device major num = 251
    DRV: Module install successful
    DRV: Module built on Jun  1 2010 19:01:29
    DRV: EDMACC.QUEPRI  = 00000777
    DRV: SYSTEM.MSTPRI0 = 00550011
    DRV: SYSTEM.MSTPRI1 = 00000444
    DRV: ISP.BCR        = 00000002
    DRV: SYSTEM.MISC = 00000391
    CMEMK module: built on Jun  1 2010 at 16:41:28
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    CMEM Range Overlaps Kernel Physical - allowing overlap
    CMEM phys_start (0x83800000) overlaps kernel (0x80000000 -> 0x83c00000)
    CMEMK Error: Failed to request_mem_region(0x83800000, 75497472)
    insmod: cannot insert `cmemk.ko': Bad address (-1): Bad address
    EDMAK module: built on Jun  1 2010 at 16:41:31
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    IRQK module: built on Jun  1 2010 at 16:41:32
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    irqk initialized
    ln: rtc: File exists
    Creat queue id:0
    queue id:0
    Creat queue id:32769
    queue id:32769
    Creat queue id:65538
    queue id:65538
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    queue id:65538
    queue id:32769

     DEMOCFG Value: 0

    nVideocodecmode = 0
    nVideocodecres = 0
    ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &
    Check_device_version : DEVICE VER = 1 !!
    Starting mounting local filesystems: mount
     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3
    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 =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
     ERROR  (drv.c|DRV_init|43): CMEM init
     ERROR  (drv.c|DRV_init|107): DRV_init()
     ERROR  (avServerApi.c|AVSERVER_init|461): DRV_init()
     ERROR  (avServerUi.c|UI_start|50): AVSERVER_init()
    Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file system
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
    ApproDrvInit: 7
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    Error: ApproDrvInit fail
    Starting hotplug subsystem:
       pci
       pci      [success]
       usb
       usb      [success]
       isapnp
       isapnp   [success]
       ide
       ide      [success]
       input
       input    [success]
       scsi
       scsi     [success]
    done.
    Starting portmap daemon: portmap.
    Starting internet superserver: inetd.io scheduler deadline registered

    io scheduler cfq registered
    TI DaVinci EMAC: kernel boot params Ethernet address: $(ethaddr)
     sbulla: unknown partition table
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    loop: loaded (max 8 devices)
    tun: Universal TUN/TAP device driver, 1.6
    tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    CSLIP: code copyright 1989 Regents of the University of California
    netconsole: not configured, aborting
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    Davinci EMAC MII Bus: probed
    MAC address is $(ethaddr)
    TI DaVinci EMAC Linux version updated 4.0
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    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 c40f2000 using DMA, IRQ 12
    Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
     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 62dddef1, no volume label.
    queue id:0
    umount: /mnt/mmc: not mounted
    killall: dhcpcd: no process killed
    rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 1A8C0, 0, 1
    dns=192.168.1.1
    net_search_gateway:eth0, 1A8C0, 0, 1
    net_search_gateway:eth0, 0, FE01A8C0, 3
    dns=192.168.1.1
    g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
    ERROR: Module g_g_file_storage gadget: Number of LUNs=1
    file_storage doeg_file_storage gadget-lun0: ro=0, file: /dev/sbulla
    s not exist in /proc/modules
    system_server/535[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196
    ApproDrvInit: 2
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    ApproDrvInit: 6
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    ApproDrvInit: 9
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    ApproDrvInit: 10
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    ApproDrvInit: 8
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    INIT: Entering runlevel: 3

    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)

    DM36x_IPNC login: killall: wis-streamer: no process killed

    ----------------------------------------------

  • Your IP address is OK, but you should set it in Linux (web browser) , the one you set in  boot arguments is only for uBoot.
    The default for Linux is 192.168.1.168. I think it's set in system_server, if there is no config file in /mnt/nand  yet.

    In your log the following is a problem :

    CMEMK Error: Failed to request_mem_region(0x83800000, 75497472)
    insmod: cannot insert `cmemk.ko': Bad address (-1): Bad address

    Try to desrease your memory for Linux in uBoot bootargs to 56 or 50 M
    (like : bootargs=mem=56M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M stdin=serial),

    or change memory start address for cmem.ko in av_capture_load.sh.

    cmem.ko is trying to use memory already been reserved from Linux.

  • You can modify start address to 0x83800000 in av_capture_load.sh

  • HI MARKO,

    i modified the memory as suggested by you in bootargs, but audio disbeled msg is coming in the boot meassage .

    also the memory i have assigned is from 0x83800000 to 0x86A00000 ( 50 MB) but in the boot message its displaying from 0x80000000 to 0x83200000.

    is there anything else i need to modify ?

    -------------------------------------------------

     IP-Config: Device `off' not found.
    RAMDISK: cramfs filesystem found at block 0
    RAMDISK: Loading 11512KiB [1 disk] into ram disk... done.
    VFS: Mounted root (cramfs filesystem) readonly.
    Freeing init memory: 176K
    INIT: version 2.86 booting
    0
    mkdir: Cannot create directory `/dev/.test': Read-only file system
    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 Jun  1 2010 19:01:25
    I2C: Module install successful, device major num = 252
    DMA: Module install successful, device major num = 251
    DRV: Module install successful
    DRV: Module built on Jun  1 2010 19:01:29
    DRV: EDMACC.QUEPRI  = 00000777
    DRV: SYSTEM.MSTPRI0 = 00550011
    DRV: SYSTEM.MSTPRI1 = 00000444
    DRV: ISP.BCR        = 00000002
    DRV: SYSTEM.MISC = 00000391
    CMEMK module: built on Jun  1 2010 at 16:41:28
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    allocated heap buffer 0xc5000000 of size 0x4800000
    CMEM Range Overlaps Kernel Physical - allowing overlap
    CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83200000)
    cmemk initialized
    EDMAK module: built on Jun  1 2010 at 16:41:31
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    IRQK module: built on Jun  1 2010 at 16:41:32
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    irqk initialized
    ln: rtc: File exists
    Creat queue id:0
    queue id:0
    Creat queue id:32769
    queue id:32769
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    Creat queue id:65538
    queue id:65538
    queue id:32769
    queue id:65538

     DEMOCFG Value: 0

    nVideocodecmode = 0
    nVideocodecres = 0
    ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &
    Check_device_version : DEVICE VER = 1 !!

     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3

     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

    Starting mounting local filesystems: mount none on /dev/shm type tmpfs (rw,size=5M)
    none on /var/run type tmpfs (rw)
    none on /tmp type tmpfs (rw,sync)
     DRV LDC: GetConfig 0004 0x0
    Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file system
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
    ApproDrvInit: 7
    Creat queue id:98307
    queue id:98307
     AVSERVER UI: Starting in mode 1
    Starting hotplug subsystem:
       pci
    spi mode: 16
    bits per word: 8
    max speed: 12000000 Hz (12000 KHz)
     ~~~ Sensor_imgsSetRegs ~~~
    ================> 1000, 150, 0
    APPRO Setting Applied

     Default Icon TI Logo

     Default Icon TI Logo

     Default Icon TI Logo

    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
     DM365MM Init SuDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
     layer->layer_info.config.line_length= 640
    ccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0
     STREAM: Ext 1: 0x0
    queue id:98307
    FF: FF open

     FR : 0 users registered from exsiting face album
    FF: FF open done.
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
     IPNC AUTO_IRIS = 0 (0:Manual,1:Auto)#####################
    APPRO 2A Created
    XXXXX IAE_CMD_SET_CONFIG XXXXX
    Page read err(-1)
    eeprom_prErr:-1
    read fail!!
    ################DFC ret=-1##################
    EE SETUP SHIFT VALUE: 3
    GBCE in EVAL MODE
    AUDIO_GetSampleRate = 8000
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
       pci      [success]
       usb
       usb      [success]
       isapnp
       isapnp   [success]
       ide
       ide      [success]
       input
       input    [success]
       scsi
       scsi     [success]
    done.
    Starting portmap daemon: portmap.
    Starting internet superserver: inetd.
    io scheduler deadline registered
    io scheduler cfq registered
    TI DaVinci EMAC: kernel boot params Ethernet address: $(ethaddr)
     sbulla: unknown partition table
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    loop: loaded (max 8 devices)
    tun: Universal TUN/TAP device driver, 1.6
    tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    CSLIP: code copyright 1989 Regents of the University of California
    netconsole: not configured, aborting
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    Davinci EMAC MII Bus: probed
    MAC address is $(ethaddr)
    TI DaVinci EMAC Linux version updated 4.0
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    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 c40fa000 using DMA, IRQ 12
    Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
     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 70bb1f15, no volume label.
    queue id:0
    ApproDrvExit: 7
    Error: WaitStreamReady Fail.
    umount: /mnt/mmc: not mounted
    killall: dhcpcd: no process killed
    rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 1A8C0, 0, 1
    dns=192.168.1.1
    net_search_gateway:eth0, 1A8C0, 0, 1
    net_search_gateway:eth0, 0, FE01A8C0, 3
    dns=192.168.1.1
    ERROR: Module g_file_storage does not exist in /proc/modules
    g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
    g_file_storage gadget: Number of LUNs=1
    g_file_storage gadget-lun0: ro=0, file: /dev/sbulla
    system_server/525[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196
    ApproDrvInit: 2
    queue id:98307
    Initializing...
    ApproDrvInit: 6
    queue id:98307
    Initializing...
    ApproDrvInit: 8
    queue id:98307
    Initializing...
    ApproDrvInit: 9
    ApproDrvInit: 10
    queue id:98307
    Initializing...
    queue id:98307
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8557/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8554/mpeg4
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8556/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168/mpeg4
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8555/mjpeg
    INIT: Entering runlevel: 3
    [01/Jan/2000:21:52:17 +0000] boa: server version Boa/0.94.13
    [01/Jan/2000:21:52:17 +0000] boa: server built Jun  1 2010 at 19:03:11.
    [01/Jan/2000:21:52:17 +0000] boa: starting server pid=789, port 80
    queue id:0
    UDPString=uuid:Upnp-TVEmulator-1_0-00_0090676175</UDN>

    Upnp port is 0
    UPnP Initialized OK ip=192.168.1.168, port=49152
    desc_doc_url = http://192.168.1.168/tvdevicedesc.xml
    error code = 0
    device advertisement succeed.

    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)

    DM36x_IPNC login: Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!

    -------------------------------------------------

  • start address is already set to0x83800000 to 0x886A00000 (50 MB )

    please check the last mail i sent just before this message.

  • start address is already set to0x83800000 to 0x86A00000 (50 MB ) please check the last mail i sent just before this message.

  • Sujit,

    Just keep mem=56M. That is safe and your application was designed for that.

    I dont see any problems in your log anymore. Do you still face some issues? Can you point in the log where you see any more error messages. Dont worry about the overlap message while loading cmem.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • hi anshuman,

    1. i am getting two error messages in log " audio disbeled" and "".

    2. while i am connecting the device with  ipaddress in internet explorer the screen comes with the web viewer " Texas Instrument " but no live view appears.

        even i select 'live video' or 'image' no live image or video displays.

    3. also when i am tried using vlc media player , simoultaniously running the app in device  

    ./av_capture_load.sh

    ./loadmodules_ipnc.sh

    ./system_server &

    ./wis-streamer &

    vlc player is not able to display.

    log message

    ----------------

     CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83800000)
    cmemk initialized
    EDMAK module: built on Jun  1 2010 at 16:41:31
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_                                                                             03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    IRQK module: built on Jun  1 2010 at 16:41:32
      Reference Linux version 2.6.18
      File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_                                                                             03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    irqk initialized
    ln: rtc: File exists
    Creat queue id:0
    queue id:0
    Creat queue id:32769
    queue id:32769
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    Creat queue id:65538
    queue id:65538
    queue id:32769
    queue id:65538

     DEMOCFG Value: 0

    nVideocodecmode = 0
    nVideocodecres = 0
    Check_device_version : DEVICE VER = 1 !!
    ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &

     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3

     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

    Starting mounting local filesystems: mount none on /dev/shm type tmpfs (rw,size=                                                                             5M)
    none on /var/run type tmpfs (rw)
    none on /tmp type tmpfs (rw,sync)
     DRV LDC: GetConfig 0004 0x0
    Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file                                                                              system
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
    ApproDrvInit: 7
    Creat queue id:98307
    queue id:98307
     AVSERVER UI: Starting in mode 1
    Starting hotplug subsystem:
       pci
    spi mode: 16
    bits per word: 8
    max speed: 12000000 Hz (12000 KHz)
     ~~~ Sensor_imgsSetRegs ~~~
    ================> 1000, 150, 0
    APPRO Setting Applied

     Default Icon TI Logo

     Default Icon TI Logo

     Default Icon TI Logo

    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
     DM365MM Init SuDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
     layer->layer_info.config.line_length= 640
    ccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0
     STREAM: Ext 1: 0x0
    queue id:98307
    FF: FF open

     FR : 0 users registered from exsiting face album
    FF: FF open done.
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
     IPNC AUTO_IRIS = 0 (0:Manual,1:Auto)#####################
    APPRO 2A Created
    XXXXX IAE_CMD_SET_CONFIG XXXXX
    Page read err(-1)
    eeprom_prErr:-1
    read fail!!
    ################DFC ret=-1##################
    EE SETUP SHIFT VALUE: 3
    GBCE in EVAL MODE
    AUDIO_GetSampleRate = 8000
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
       pci      [success]
       usb
       usb      [success]
       isapnp
       isapnp   [success]
       ide
       ide      [success]
       input
       input    [success]
       scsi
       scsi     [success]
    done.
    Starting portmap daemon: portmap.
    Starting internet superserver: inetd.
    io scheduler deadline registered
    io scheduler cfq registered
    TI DaVinci EMAC: kernel boot params Ethernet address: $(ethaddr)
     sbulla: unknown partition table
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    loop: loaded (max 8 devices)
    tun: Universal TUN/TAP device driver, 1.6
    tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    CSLIP: code copyright 1989 Regents of the University of California
    netconsole: not configured, aborting
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    Davinci EMAC MII Bus: probed
    MAC address is $(ethaddr)
    TI DaVinci EMAC Linux version updated 4.0
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    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 c40fa000 using DMA, IRQ 12
    Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
     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 33ca8d43, no volume label.
    queue id:0
    ApproDrvExit: 7
    Error: WaitStreamReady Fail.
    umount: /mnt/mmc: not mounted
    killall: dhcpcd: no process killed
    rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 1A8C0, 0, 1
    dns=192.168.1.1
    net_search_gateway:eth0, 1A8C0, 0, 1
    net_search_gateway:eth0, 0, FE01A8C0, 3
    dns=192.168.1.1
    ERROR: Module g_file_storage does not exist in /proc/modules
    g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
    g_file_storage gadget: Number of LUNs=1
    g_file_storage gadget-lun0: ro=0, file: /dev/sbulla
    system_server/525[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196
    ApproDrvInit: 2
    queue id:98307
    Initializing...
    ApproDrvInit: 6
    queue id:98307
    ApproDrvInit: 8
    queue id:98307
    Initializing...
    ApproDrvInit: 9
    queue id:98307
    Initializing...
    ApproDrvInit: 10
    queue id:98307
    Initializing...
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168/mpeg4
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8557/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8554/mpeg4
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8556/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8555/mjpeg
    INIT: Entering runlevel: 3
    ApproDrvInit: 3
    queue id:98307
    queue id:0
    queue id:32769
    [02/Jan/2000:04:25:38 +0000] boa: server version Boa/0.94.13
    [02/Jan/2000:04:25:38 +0000] boa: server built Jun  1 2010 at 19:03:11.
    [02/Jan/2000:04:25:38 +0000] boa: starting server pid=789, port 80
    queue id:0
    UDPString=uuid:Upnp-TVEmulator-1_0-00_0035522396</UDN>

    Upnp port is 0
    UPnP Initialized OK ip=192.168.1.168, port=49152
    desc_doc_url = http://192.168.1.168/tvdevicedesc.xml
    error code = 0
    device advertisement succeed.

    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)

    DM36x_IPNC login: Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!

    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)

    DM36x_IPNC login:

    ----------------

  • Hi Sujit,

    sujit mahapatro said:
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!

    Dont worry about the above messages.

    For not getting the decoded stream on PC, i would need you to confirm the following:

    1. Run "ps" on your target to ensure that av_server.out is running and system_server is running.

    2. Check the IP address on your target using "ifconfig" and check if you are using the same IP address.

    Your logs dont show anything specific that might be going wrong, but still i will forward the log to our development team to look at it.

    Regards,

    Anshuman

  • both av_server and system_server are running fine.

    ------------------

    login[793]: root login  on `console'

    # ps
      PID  Uid     VmSize Stat Command
        1 root        560 S   init [3]
        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]
       77 root            SW< [xfslogd/0]
       78 root            SW< [xfsdatad/0]
      167 root            SW  [mtdblockd]
      188 root            SW< [dm_spi.0]
      276 root        408 S < udevd --daemon
      518 root            SWN [jffs2_gcd_mtd4]
      520 root        932 S   ./system_server
      529 root       3316 S   ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000
      641 bin         368 S   /sbin/portmap
      651 root        636 S   /usr/sbin/inetd
      729 root            SW< [khubd]
      780 root            SW< [file-storage-ga]
      784 root        992 S   ./wis-streamer
      785 root        804 S   ./wis-streamer
      786 root        804 S   ./wis-streamer
      787 root        804 S   ./wis-streamer
      788 root        800 S   ./wis-streamer
      789 root        996 S   ./boa -c /etc
      793 root        852 S   -sh
      797 root        888 S   ./upnp-scanip
      812 root        748 R   ps
    #
    -----------------

    in the boot message log i posted in my last message there was an error message , not sure wether you noticed or not

    -----------------

    Error: WaitStreamReady Fail.
    umount: /mnt/mmc: not mounted
    killall: dhcpcd: no process killed
    rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 1A8C0, 0, 1
    dns=192.168.1.1
    net_search_gateway:eth0, 1A8C0, 0, 1
    net_search_gateway:eth0, 0, FE01A8C0, 3
    dns=192.168.1.1
    ERROR: Module g_file_storage does not exist in /proc/modules
    g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
    g_file_storage gadget: Number of LUNs=1
    g_file_storage gadget-lun0: ro=0, file: /dev/sbulla
    system_server/525[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196

    -------------------

  • Hi anshuman,

    Check the IP address on your target using "ifconfig" and check if you are using the same IP address.

    both ip addresses are same and i am able to get the web viewer with all TABS like "Live video","image" etc but not getting any live display.

    also similar problem in VLC player.

    boot screen messages while running the application

    ----------------------------


    # ./loadmodules_ipnc.sh
    insmod: cannot insert `sbull.ko': File exists (-1): File exists
    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 859a5902, no volume label.
    # ./system_server &
    # queue id:0
    queue id:32769
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    queue id:65538

     DEMOCFG Value: 0

    nVideocodecmode = 0
    nVideocodecres = 0
    ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &
    queue id:32769
    queue id:65538
    Check_device_version : DEVICE VER = 1 !!

     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3

     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

     DRV LDC: GetConfig 0004 0x0
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
    ApproDrvInit: 7
    queue id:98307
     AVSERVER UI: Starting in mode 1
    <vpbe_encoder_enumoutput>
    spi mode: 16
    bi</vpbe_encoder_enumoutput>
    ts per word: 8
    VPBE Encoder de-initialized
    max speed: 12000<vpbe_encoder_setoutput>
    000 Hz (12000 KHSetting output to Composite
    z)
     ~~~ Sensor_Start of vpbe_encoder_setmode..
    imgsSetRegs ~~~ </vpbe_encoder_setmode>

    ==============</vpbe_encoder_setoutput>
    ==> 1000, 150, 0VPBE Encoder initialized

    APPRO Setting<vpbe_encoder_setoutput>
     Applied

     DeSetting output to Composite
    fault Icon TI LoStart of vpbe_encoder_setmode..
    go

     Default </vpbe_encoder_setmode>
    Icon TI Logo
    </vpbe_encoder_setoutput>

     Default Icon T<vpbe_encoder_getmode>
    I Logo

     DM36<vpbe_encoder_getmode/>
    5MM Init Success<vpbe_encoder_getmode>
    fulRate Control <vpbe_encoder_getmode/>
    Type: IVIDEO_STOStart of vpbe_encoder_setmode..
    RAGE STREAM: Ext</vpbe_encoder_setmode>
     0: 0x0
     STREAM<vpbe_encoder_getmode>
    : Ext 1: 0x0
    qu<vpbe_encoder_getmode/>
    eue id:98307
    FF<vpbe_encoder_getmode>
    : FF open

    <vpbe_encoder_getmode/>
     FR : 0 users re<vpbe_encoder_getmode>
    gistered from ex<vpbe_encoder_getmode/>
    siting face albuDavinciDisplay 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
    m
    FF: FF open dDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
     layer->layer_info.config.line_length= 640
    one.
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
     IPNC AUTO_IRIS = 0 (0:Manual,1:Auto)#####################
    APPRO 2A Created
    XXXXX IAE_CMD_SET_CONFIG XXXXX
    Page read err(-1)
    eeprom_prErr:-1
    read fail!!
    ################DFC ret=-1##################
    EE SETUP SHIFT VALUE: 3
    GBCE in EVAL MODE
    AUDIO_GetSampleRate = 8000
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
    ApproDrvExit: 7
    Error: WaitStreamReady Fail.

    #
    # ./wis-streamer &
    # ApproDrvInit: 2
    queue id:98307
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168/mpeg4
    ApproDrvInit: 6
    queue id:98307
    Initializing...
    ApproDrvInit: 8
    queue id:98307
    Initializing...
    ...done initializing
    ApproDrvInit: 9
    queue id:98307
    Initializing...
    ...done initializing
    ApproDrvInit: 10
    queue id:98307
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8557/h264
    Play this stream using the URL:
            rtsp://192.168.1.168:8555/mjpeg
    Play this stream using the URL:
            rtsp://192.168.1.168:8556/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8554/mpeg4

    # Stream 3 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 9
    ---------------------------------------------

    in vlc player i connected to rtsp://192.168.1.168:8556/h264

    -------------

    Connection failed:

    VLC could not connect to "192.168.1.168:8556".

    Your input can't be opened:

    VLC is unable to open the MRL 'rtsp://192.168.1.168:8556/h264'. Check the log for details.

     

    ----------

  • If you haven't changed streams configuration in web interface, there is only 1.st  h264 stream  active by default.

    It's on :     rtsp://192.168.1.168:8557/h264

  • hi Marko,

    i think the problem for live video not getting displayed is the ActiveX player. its showing some message "please install Active X player to enjoy live A/V stream"

    i searched Appro's website " http://www.appropho.com/NewWeb/Product_DM365IMX035_Product.php#1"  but didn't get the AciteveX sw.

    i am not sure why to get this separately, it must be with the package.

    even in VLC player " rtsp://<ipaddress>:8557/h264" is not able to play, error message in a vlc pop-up window is coming

    ------------------------------

    Connection failed:

    VLC could not connect to "192.168.17.193:8557".

    Your input can't be opened:

    VLC is unable to open the MRL 'rtsp://192.168.17.193:8557/h264'. Check the log for details.

    --------------------------------

    and in the device com boot message after connecting to VLC is

    -------------------------------


    login[794]: root login  on `console'

    # Stream 2 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 10
    -

    -------------------------------

  • Hi Sujit,

    ActiveX player is on the camera.
    You should temporarily enable "Download insigned ActiveX controls"  in Internet explorer (Internet options/Security/Internet(or local)/Custom Level), just to install it. (then disable it again)
    But this version of ActiveX doesn't play well.

    About VLC, it  should work.
    First, in camera web interface check if you have set the h264 stream. The first h264 stream is 8557 port, the second one is 8556,
    and check camera network IP, and gateway.
    Then on your PC set IP address,  in your another post i saw that you just add another IP address in control panel.
    Tray to change existing connection, so you have only one IP address on PC, and not two.

    First try camera with default configuration(192.168.1.168), and set PC to 192.168.1.x., try in VLC rtsp://192.168.1.168:8557/h264

     

    Marko.

  • hi Marko,

    i tried with your suggestions, but don't know why vlc is not able to play. i am getting the following message in vlc

    Connection failed: VLC could not connect to "192.168.1.168:8557".

    Your input can't be opened: VLC is unable to open the MRL 'rtsp://192.168.1.168:8557/h264'. Check the log for details.

    and in the device side login prompt i am getting the following message.

    # Stream 2 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 10
    Error: Invalid Semaphore handler

    do i need to do any changes in the hardware settings, for example for the Auto IRIS lens i changed the DIP switch to 2 possition and for static ip 4 possition.

  • also when i run av_server i am getting the error message " Error: WaitStreamReady Fail. "


    ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &
    queue id:32769
    queue id:65538
    Check_device_version : DEVICE VER = 1 !!

     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3

     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

     DRV LDC: GetConfig 0004 0x0
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
    ApproDrvInit: 7
    queue id:98307
     AVSERVER UI: Starting in mode 1
    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 mode: 16
    biDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
     layer->layer_info.config.line_length= 640
    ts per word: 8
    max speed: 12000000 Hz (12000 KHz)
     ~~~ Sensor_imgsSetRegs ~~~
    ================> 1000, 150, 0
    APPRO Setting Applied

     Default Icon TI Logo

     Default Icon TI Logo

     Default Icon TI Logo

     DM365MM Init SuccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0
     STREAM: Ext 1: 0x0
    queue id:98307
    FF: FF open

     FR : 0 users registered from exsiting face album
    FF: FF open done.
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
     IPNC AUTO_IRIS = 1 (0:Manual,1:Auto)#####################
    APPRO 2A Created
    XXXXX IAE_CMD_SET_CONFIG XXXXX
    Page read err(-1)
    eeprom_prErr:-1
    read fail!!
    ################DFC ret=-1##################
    EE SETUP SHIFT VALUE: 3
    GBCE in EVAL MODE
    AUDIO_GetSampleRate = 8000
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
    ApproDrvExit: 7

    ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &
    queue id:32769
    queue id:65538
    Check_device_version : DEVICE VER = 1 !!

     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3

     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

     DRV LDC: GetConfig 0004 0x0
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
    ApproDrvInit: 7
    queue id:98307
     AVSERVER UI: Starting in mode 1
    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 mode: 16
    biDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
     layer->layer_info.config.line_length= 640
    ts per word: 8
    max speed: 12000000 Hz (12000 KHz)
     ~~~ Sensor_imgsSetRegs ~~~
    ================> 1000, 150, 0
    APPRO Setting Applied

     Default Icon TI Logo

     Default Icon TI Logo

     Default Icon TI Logo

     DM365MM Init SuccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0
     STREAM: Ext 1: 0x0
    queue id:98307
    FF: FF open

     FR : 0 users registered from exsiting face album
    FF: FF open done.
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
     IPNC AUTO_IRIS = 1 (0:Manual,1:Auto)#####################
    APPRO 2A Created
    XXXXX IAE_CMD_SET_CONFIG XXXXX
    Page read err(-1)
    eeprom_prErr:-1
    read fail!!
    ################DFC ret=-1##################
    EE SETUP SHIFT VALUE: 3
    GBCE in EVAL MODE
    AUDIO_GetSampleRate = 8000
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
    ApproDrvExit: 7
    Error: WaitStreamReady Fail.

  • Hi Sujit,

    You call ./av_server.out ... two times ?

    Try like in User guide

    3.1.2.2 RTSP Streaming Demo on VLC

    Leave
    $./killall.sh

    Start
    $cd $(EXEC_DIR)
    $./av_capture_load.sh
    $./loadmodules_ipnc.sh
    $./system_server &  (or ./av_server.out AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &  )
    $./wis-streamer &

     

     

     

     

     

  • If your hardware is prior to SW version 1.1 was released, you can not use it with SW 1.1 or 1.2,
    only  0.4.

  • hi Marko,

    thanks for your help

    but even though i am getting the same error like before

    Stream 2 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 10

    and too in VLC same.

    is there any thing related to the hardware which i am not doing properly ?

     

  • Hi Sujit,

    I'm also gettin this message, but it works.
    There are 5  streams possible in av_server,  you don't use stream 2 , so it's been shut down.

     

    Try to enable multicast in web interface  : /network/rtsp.
    Then observe if you have any network trafic in Windows Task Manager or better in Wireshark ...

    With multicast enabled there should be network trafic (as specified by stream bitrate),
    even if there are no clients conneted.

     

    Marko.

  • hi Marko, i tried enabling multicast

    tried with different streams, but all streams its showing stream is not available


    Stream 2 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 10
    Stream 3 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 9
    Stream 0 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 2

    how to check wether the associated strams are available or not ?

  • Do you get any network trafic after  enable multicast.

    In a terminal you should also get stream statistics periodicaly like :

     Module   | Avg Time/Frame | Frame-rate | Total time | Total Frames |
     CAPTURE  |          33.43 |      29.92 |      30116 |          901 |
     ENCODE0  |          14.43 |      69.28 |      12990 |          900 |
     ENCODE1  |           1.91 |     522.95 |       1721 |          900 |
     STREAM   |           0.38 |    2612.48 |        689 |         1800 |
     OSD0     |           0.08 |   12690.14 |         71 |          901 |
     OSD1     |           0.09 |   10726.19 |         84 |          901 |
     FACE.D   |         199.33 |       5.02 |       1196 |            6 |
     AEWB     |           0.93 |    1071.51 |        839 |          899 |

    Do you get any statistic on serial ?

  • hi Marko,

     i am not geing the stram statistc on serial.

    i remember with factory default board it was coming.

    but i followed the userguide and flashed the uImage and file system etc the periodic statistics are not coming.

    what ever i flashed in to the nand is from ipnc1.2 release package.

    where can i get the factory settings of the DM365IPNC-IMX035 camera to flash in to the nand again.

    after enabling multicast i didn't get network traffic.

  • Hi Sujit,

    I am getting a feeling that the filesystem that you are using might not be the correct one. Please note that you have to use the kernel image and filesystem for DM365IPNC-IMX035 and not for any other IP Cameras available on the Appro website. As you said, earlier with the factory default, everything was working but after you programmed the NAND, things halted. So i would recommend to use the same filesystem and kernel image that came with the hardware. You can contact Appro to get you the working combination that was on the factory default.

    If images are not coming, one thing i can suspect is the sensor is not initialized correctly, which again can happen because of wrong filesystem. Can you try the following on the shell prompt of the serial terminal

     

    # ./av_server.out 720P H264 4000000 CVBR

    This should start just the av_server (which is the core of the overall IP camera). It should show a display on your TV. You can also save an encoded stream using the menu on the serial terminal. Can you confirm the following things once:

    1. Are you able to see the display on TV with the above command?

    2. Are you able to save a H.264 stream and play it offline on PC?

    If answer to both of the above is yes, then the only thing that we need to check is network and streaming. If answer is no, then we need to figure out from the sensor and video capture perspective, what is going wrong.

    Regards,

    Anshuman

  • hi Anshuman,

    after i run nothing is coming on the TV display, and in the serial terminal the following messages are coming.

    Are you able to see the display on TV with the above command?  ---- NO

    ============================================================

    # ./av_server.out 730P H264 4000000 CVBR

     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3

     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

     DRV LDC: GetConfig 0004 0x0
     AVSERVER UI: Starting in mode 0
    DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
    layer.pix_fmt.bytesperline = 736,
     layer.pix_fmt.width = 720,
     layer.pix_fmt.height = 480,
     layer.pix_fmt.sizeimage =529920
    spi mode: 16
    biDavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
     layer->layer_info.config.line_length= 736
    ts per word: 8
    max speed: 12000000 Hz (12000 KHz)
     ~~~ Sensor_imgsSetRegs ~~~
    ================> 1000, 150, 0
    APPRO Setting Applied

     Default Icon TI Logo

     Default Icon TI Logo

     Default Icon TI Logo

     DM365MM Init SuccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0
     STREAM: Ext 1: 0x0
    queue id:98307
    FF: FF open

     FR : 0 users registered from exsiting face album
    FF: FF open done.
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
     IPNC AUTO_IRIS = 1 (0:Manual,1:Auto)#####################
    APPRO 2A Created
    XXXXX IAE_CMD_SET_CONFIG XXXXX
    Page read err(-1)
    eeprom_prErr:-1
    read fail!!
    ################DFC ret=-1##################
    EE SETUP SHIFT VALUE: 3
    GBCE in EVAL MODE
    AUDIO_GetSampleRate = 8000
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538

    ========================================================================================

  • hi Anshuman,

    i doubt the codec's are not available in the file system because of that while playing its showing the message " stream 0/1/2/3/4 not available

    i am thinking off adding the codec's in to the server.

    all the codec's are availble in the dvsdk_2_10_01_18_368\dm365_codecs_01_00_06\packages\ti\sdo\codecs folder.

    now my question is

    how to include the codec's in to the strams ?

    which document i should follow for this.

  • Hi Sujit,

    I think you should first check if prebuilt kernel and filesystem, that are included in IPNC software works on your hardware.
    After that  when creating your filesystem check if all files are included, like in the prebuilt one.

  • Hi Sujit,

    Codecs are not available in filesystem. They are pre-built with the application (av_server.out in this case). Your problem does not seem to be related to codec as codec does not give any error in your console log. I am almost doubting your sensor driver and the code you are building for the sensor driver.

    As Marko suggested, why dont you just try the same filesystem and uimage, uboot, UBL that came with the package for IMX035? If you use the package filesystem and able to run the tests i had mentioned, then it is clear that your hardware is fine. Then you need to just focus on untarring the filesystem and using it again. Do not use the one which is available for Aptina MT5 sensor.

    Regards,

    Anshuman

     

  • hi Marko,

     i checked with Appro,ccording to them the uImage and file system ( cramfsImage ) released with package with ipnc1.2 is the default board setting package.

    so i flashed the images available in release ipnc .1.2 with out any compilation or modification.

    but still i am getting the same problem in both VLC and internet explorer

    like "stream 0/1/2/3/4 not available " for all codecs.

  • hi Anshuman

    i have not received any extra driver for the sensor or CD from them. is it available separate ?

    because i haven't done any installation or setup for the TAMRON AUTO IRIS LENS, i just connected it and made the DIP switch to 2 possition.

    i downloaded the ipnc1.2 package from ftp, and as i mentioned in my previous message Appro is saying the one available with ipnc1.2 package is the default one.

    i tested with reflashing uboot(u-boot-1.3.4_ipnc_dm36x_0.6.0),UBL(ubl_297arm_270ddr_ipnc_dm36x_0.3.0) , file system (cramfsImage_ipnc_dm365_imx035_1.2.0) available in ipnc1.2 release package via ftp download.

    but the result is same.

  • hi Marko & Anshuman, i just tried with another camera MT5 with the same sensor which i had used in IMX035. i am able to play in VLC as well as in internet explorer. so my conclusion now is some problem with my setup only. i am not getting the following message in MT5, while playing in vlc rtsp://192.168.1.168:8557/h264 or any other stram --------------------- # ./system_server & # queue id:0 queue id:32769 IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis queue id:65538 queue id:32769 queue id:65538 DEMOCFG Value: 0 nVideocodecmode = 0 nVideocodecres = 0 ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF & Check_device_version : DEVICE VER = 1 !! AVSERVER UI: Initializing. DRV_SyncRst: module = 47, domain = 0, state = 0 DRV_SyncRst: module = 47, domain = 0, state = 3 CLK Hz, ARM Hz = 297000000 DDR Hz = 270000000 VPSS Hz = 270000000 IMCOP Hz = 270000000 DRV LDC: GetConfig 0004 0x0 numid=2,iface=MIXER,name='Mono DAC Playback Volume' ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0 : values=32 ApproDrvInit: 7 queue id:98307 AVSERVER UI: Starting in mode 1 spi mode: 16 bits per word: 8 max speed: 12000000 Hz (12000 KHz) ~~~ Sensor_imgsSetRegs ~~~ ================> 1000, 150, 0 APPRO Setting Applied Default Icon TI Logo Default Icon TI Logo Default Icon TI Logo 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 DM365MM Init SuDavinciDisplay DavinciDisplay.1: pixfmt->width = 640, layer->layer_info.config.line_length= 640 ccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0 STREAM: Ext 1: 0x0 queue id:98307 FF: FF open FR : 0 users registered from exsiting face album FF: FF open done. IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis IPNC AUTO_IRIS = 0 (0:Manual,1:Auto)##################### APPRO 2A Created XXXXX IAE_CMD_SET_CONFIG XXXXX Page read err(-1) eeprom_prErr:-1 read fail!! ################DFC ret=-1################## EE SETUP SHIFT VALUE: 3 GBCE in EVAL MODE AUDIO_GetSampleRate = 8000 AUDIO : period size = 1000 frames dir = 0 AUDIO : period time = 125000 us dir = 0 queue id:65538 ApproDrvExit: 7 Error: WaitStreamReady Fail. # ./wis-streamer & # ApproDrvInit: 2 queue id:98307 ApproDrvInit: 6 queue id:98307 Initializing... ...done initializing Play this stream using the URL: rtsp://192.168.1.168:8554/mpeg4 ApproDrvInit: 8 queue id:98307 Initializing... ...done initializing Play this stream using the URL: rtsp://192.168.1.168:8555/mjpeg ApproDrvInit: 9 ApproDrvInit: 10 queue id:98307 Initializing... ...done initializing Play this stream using the URL: rtsp://192.168.1.168:8557/h264 Initializing... ...done initializing Play this stream using the URL: rtsp://192.168.1.168/mpeg4 queue id:98307 Initializing... ...done initializing Play this stream using the URL: rtsp://192.168.1.168:8556/h264 Stream 2 is not avaliable~~~~~~~~ caught SIGTERM: shutting down ApproDrvExit: 10 ---------------------- please let me know about the above error. have a look in the 3 errors above 1. Page read err(-1) eeprom_prErr:-1 read fail!! 2. Error: WaitStreamReady Fail. 3. Stream 2 is not avaliable~~~~~~~~ caught SIGTERM: shutting down ApproDrvExit: 10
  • ( resending the previous message )

    hi Marko & Anshuman,

     i just tried with another camera MT5 with the same sensor which i had used in IMX035.

     i am able to play in VLC as well as in internet explorer. so my conclusion now is some problem with my setup only.

    i am not getting the following message in MT5, while playing in vlc rtsp://192.168.1.168:8557/h264 or any other stram

    ---------------------

    # ./system_server &
    # queue id:0
    queue id:32769
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    queue id:65538
    queue id:32769
    queue id:65538

     DEMOCFG Value: 0

    nVideocodecmode = 0  
    nVideocodecres = 0
    ./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &
    Check_device_version : DEVICE VER = 1 !!

     AVSERVER UI: Initializing.

    DRV_SyncRst: module = 47, domain = 0, state = 0

    DRV_SyncRst: module = 47, domain = 0, state = 3

     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000

     DRV LDC: GetConfig 0004 0x0
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
    ApproDrvInit: 7
    queue id:98307
     AVSERVER UI: Starting in mode 1
    spi mode: 16
    bits per word: 8
    max speed: 12000000 Hz (12000 KHz)
     ~~~ Sensor_imgsSetRegs ~~~
    ================> 1000, 150, 0
    APPRO Setting Applied

     Default Icon TI Logo

     Default Icon TI Logo

     Default Icon TI Logo

    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
     DM365MM Init SuDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
     layer->layer_info.config.line_length= 640
    ccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0
     STREAM: Ext 1: 0x0
    queue id:98307
    FF: FF open

     FR : 0 users registered from exsiting face album
    FF: FF open done.
    IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
     IPNC AUTO_IRIS = 0 (0:Manual,1:Auto)#####################
    APPRO 2A Created
    XXXXX IAE_CMD_SET_CONFIG XXXXX
    Page read err(-1)
    eeprom_prErr:-1
    read fail!!
    ################DFC ret=-1##################
    EE SETUP SHIFT VALUE: 3
    GBCE in EVAL MODE
    AUDIO_GetSampleRate = 8000
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
    ApproDrvExit: 7
    Error: WaitStreamReady Fail.

    # ./wis-streamer &
    # ApproDrvInit: 2
    queue id:98307
    ApproDrvInit: 6
    queue id:98307
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8554/mpeg4
    ApproDrvInit: 8
    queue id:98307
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8555/mjpeg
    ApproDrvInit: 9
    ApproDrvInit: 10
    queue id:98307
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8557/h264
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168/mpeg4
    queue id:98307
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8556/h264
    Stream 2 is not avaliable~~~~~~~~
    caught SIGTERM: shutting down
    ApproDrvExit: 10

    ----------------------

    please let me know about the above error.

     have a look in the 3 errors above

    1. Page read err(-1)

        eeprom_prErr:-1 read fail!!

    2. Error: WaitStreamReady Fail.

    3. Stream 2 is not avaliable~~~~~~~~

    caught SIGTERM: shutting down

    ApproDrvExit: 10

  • Hi Sujit,

    You can also tray to delete sytem configuratrion file (/mnt/nand/sysenv.cfg) to start with default configuration, then restart camera.

    When flashing filesystem,  check if the filesystem size match your real cramfs size,
    so that you flash and then load the whole filesystem.

    nand erase 0x200000 0xD70000
    nand write 0x80700000 0x200000 0x200000
    nand write 0x82000000 0x400000 0xB70000

    Also check the size in boot parameters

    setenv bootcmd 'nand read 0x82000000 0x400000  0xB70000;nboot 0x80700000 0 0x200000;bootm 0x80700000'

  • Hi Sujit,

    sujit mahapatro said:

     i just tried with another camera MT5 with the same sensor which i had used in IMX035.

     i am able to play in VLC as well as in internet explorer. so my conclusion now is some problem with my setup only.

    What do you mean by the statement that you tried another camera MT5 with the same sensor which you had used in IMX035? Basically, are you saying, you took release of IPNC_IMX035 ver 1.2 and put it on MT5 camera? And that worked for you? This means that the release you are trying on IMX035 camera is really built for MT5 and wrongly used on IMX035.

    Can you please clarify?

    Regards,

    Anshuman

  • hi Anshuman,

    i just removed the DAVINCI DM365 IPNC-IMX035 camera and connected DAVINCI DM365 IPNC-MT5 camera with the same TAMRON AUTO IRIS LENS which i used in DAVINCI DM365 IPNC-IMX035 .

    i didn't do any kerenl compilation or filesystem building.

    i just booted the DAVINCI DM365 IPNC-MT5 camera( with its factory settings only) using COM1 serial connection and after login as root i started vlc player and played the stream via rtsp

    rtsp://192.168.1.168:8557/h264

    and live video is coming properly.

     

     

  • hi Marko,

    as suggested by youi tried the things suggested by you.

    1. deleted the system configuration file /mnt/nand/sysenv.cfg

    2. cramfsImage file size was 0xB3E000 and uimage size was 0x1BA970

    so i did the following

    nand erase 0x200000 0xD70000  (previous written size )
    nand write 0x80700000 0x200000 0x200000 ( if i use uImage actual size 0x1BA000, its not allowing, page boundry error is coming, so i used 0x200000 )
    nand write 0x82000000 0x400000 0xB3E000

    3. setenv bootcmd 'nand read 0x82000000 0x400000  0xB3E000;nboot 0x80700000 0 0x200000;bootm 0x80700000'

    but finally the result is same.

  • Can you successfully run diagnostic on camera (diagnostic_ipnc_dm36x_xxx.bin).
    User guide is included with MT5 - Diagnostic_Guide_IPNC_DM365.pdf.

  • Hi all,

    finally am able to boot up , every thing worked fine. i used NFS and TFTP  for development purpose.

    there few conversations between me and Marko which is not listed in the group discussion.

    the following suggestions by Marko gave me the success. thats why thought of putting all those here.

    ------------------------------------------

    Hi Sujit.

     

    I got IMX-035 working but i have 0.4 version so i can not try the new SW 1.2.

    You should also try other kernel configurations (/ipnc/ti-davinci/arch/arm/configs),

    try all default configurations, you have 3 preset configurations,  maybe one will work (davinci_dm365_ipnc_defconfig, davinci_dm365_ipnc_defconfig_dbg, davinci_dm365_ipnc_defconfig_rel).

    Try also with NFS booting /filesystem. For NFS i use davinci_dm365_ipnc_defconfig with ethernet on:  set CONFIG_TI_DAVINCI_EMAC=y , so you can boot from nfs. You can also  use that one for flashing.

     

    I've already got IMX036, and also had a lot of troubles, to make  it work.

    Prebuilt binaries, didn't work, but with another  kernel configuration that i mention, it works.

    Also note that UserGuide for flashing is more general, sometimes it doesn't work for the specific version, since partition addresses and sizes are different.

    Look at your boot up log, if filesystem addresses, are correct, and you are erasing and flashing  at the right addresses.

     

    I think your IMX035 should also work, but you have to find the proper kernel configuration and proper flash it.

     

    Regards,

     Marko.

    ---------------------------------------------

    Hi Marko,

    where to make this ethernet option on ?

    i found CONFIG_TI_DAVINCI_EMAC=m and made it to y.

    ------------------------------

    hi Marko,

    Thanks for your help.

    i have taken the davinci_dm365_ipnc_defconfig_dbg configuration with CONFIG_TI_DAVINCI_EMAC = y and also commented the last 8 lines for boot upscript in /etc/init.d/rcS file.

    Now it's working fine with live video in VLC.

    my enviornment variables are:

    --------------------------------

    bootdelay=4
    baudrate=115200
    setboot=setenv bootargs $(bootargs) video=dm36x:output=$(videostd)
    fileaddr=82000000
    nfshost=192.168.17.5
    ipaddr=192.168.17.193
    serverip=192.168.17.5
    ethaddr=00:0C:0C:A0:02:C4
    filesize=0
    bootfile=uImage_sujit
    rootpath=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesys
    bootcmd=tftpboot 0x80700000 uImage_ipnc_dm365;bootm 0x80700000
    bootargs=console=ttyS1,115200n8 noinitrd rw ip=192.168.17.193 root=/dev/nfs quiet nfsroot=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesys,nolock mem=56M
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Aug  5 2009 - 18:21:12) DM365-IPNC-0.6

    --------------------------------

     

    but when i am trying to play in the web browser its displaying

     

    where as if i enable dhcp and root=/dev/ram0 , then web browser is working fine with live video.

     

    if i make to boot via NFS and ip=dhcp with the following enviornments

    -------------------------------------

    bootdelay=4
    baudrate=115200
    setboot=setenv bootargs $(bootargs) video=dm36x:output=$(videostd)
    fileaddr=82000000
    nfshost=192.168.17.5
    ipaddr=192.168.17.193
    serverip=192.168.17.5
    ethaddr=00:0C:0C:A0:02:C4
    filesize=0
    bootfile=uImage_sujit
    rootpath=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesys
    bootcmd=tftpboot 0x80700000 uImage_ipnc_dm365;bootm 0x80700000
    bootargs=console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs quiet nfsroot=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesys,nolock mem=56M
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Aug  5 2009 - 18:21:12) DM365-IPNC-0.6

     

    -------------------------------------

     

    Then kernel is not booting, i am getting the following bootup message

    ------------------------------------------

    U-Boot 1.3.4 (Aug  5 2009 - 18:21:12) DM365-IPNC-0.6

    I2C:   ready
    DRAM:  128 MB
    NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
    Bad block table found at page 65504, version 0x00
    Bad block table found at page 65472, version 0x00
    32 MiB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 297MHz
    DDR Clock :- 270MHz
    Ethernet PHY: GENERIC @ 0x01
    Hit any key to stop autoboot:  0
    TFTP from server 192.168.17.5; our IP address is 192.168.17.193
    Filename 'uImage_ipnc_dm365'.
    Load address: 0x80700000
    Loading: #################################################################
             ###########################################################
    done
    Bytes transferred = 1819300 (1bc2a4 hex)
    ## 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:    1819236 Bytes =  1.7 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Root-NFS: Unable to get nfsd port number from server, using default
    -----------------------------------------------------------------

     

    i doubt dhcp is assigning some different domain 192.168.0.38 and my server is 192.168.17.5 and thats why its not able to get the sever.

     

    but when i make static ip with NFS , why web browser is not able to display live, asking for Active X , where as activeX is already there, i am not able to understand.

    -----------------------------------------

    Hi Sujit,

     

    I am glad it works.

     

    Try also "davinci_dm365_ipnc_defconfig" for flash files system,

    i don't know why it didn't work for you. Maybe you took "davinci_dm365_ipnc_defconfig_rel" which is not the same.

    You can also see this kernel configuration file  in a graphical environment,

    open terminal, go to  ../DM365IPNC/ti-davinci/      , type   "make menuconfig".

     

     

    About ActiveX player, just install it again in that domain, IE  has different security levels for internet and local intranet domains (Internet Options/Security/).

    Repeat the installation procedure for the one you don't have AXctl  installed. Since you don't see the installation bar at he top of IE, it's obvious you don't have enabled "install unsigned activex..." for that domain.

     

    If your DHCP server  is not in the same domain as NFS server, it won't work.

    You can check you current IP address in terminal : ifconfig.

    --------------------------------------------------------------------

    Hi Sujit.

     

    That's correct. Just  set   the CONFIG_TI_DAVINCI_EMAC=y, that's it.

    But that option matters only if you use NFS, since you need ethernet at boot time.

    Iif you boot from flash, ethernet driver can be built and start as a module, during the Linux boot up.

     

    If you boot from NTS, also look at  :  filesys/etc/init.d/rcS   

    for boot up script commands.

    I just commented out last 8 lines, everithing from the including   "./system_server &" on,

    so programms don't autostart, than i start them in terminal.

     

     

    Marko.

    ------------------------------------------