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.

About Web connect of DM368IPNC

Genius 3400 points

Hi:

       Today, I erase the kernel and filesys of DM368IPNC and flash by TFTP, then boot and run system server automatical。

    And when connect camera from web,UART display following wrong:

Error -3 while decompressing!
c03bc090(-11791524)->c13aa000(4096)

[01/Jan/2000:01:21:11 +0000] request from 192.168.42.30 "(null)" ("(null)"): header read: Connection reset by peer

[01/Jan/2000:01:22:11 +0000] request from 192.168.42.30 "GET /favicon.ico HTTP/1.1" ("/var/www/favicon.ico"): document open: No such file or directory
 
I found a file "gIPNC-ro.gz" in directroy of /var/www and cannot decompress using command “gunzip”。

Anybody can tell me what's problem? and give me the "gIPNC-ro.gz"  file.

Thanks!

  • I think the CramFS size entered in bootargs is not fine,  Marked in yellow is what specifies your filesystem size.

    The decompressing error is due to fact that there is not space in memeory to uncompress the cram file system.

    Or the file might be half loaded into NAND. Anather way is to increase mem=48M and keep filesystem size below 14M

     

    Following are the commands you can use:

    setenv ethaddr 00:0C:0C:A0:03:78;setenv ipaddr 172.24.190.202;setenv serverip 172.24.136.240;saveenv

    setenv netmask 255.255.252.0;setenv gatewayip 172.24.188.1;setenv dnsip 172.24.170.30;setenv dnsip2 172.24.170.29;saveenv

     

    tftpboot 0x80700000 uImage_ipnc_DM368;nand erase 0x500000 0x200000;nand write 0x80700000 0x500000 0x200000

    tftpboot 0x82000000 cramfsImage_ipnc_dm368_1.9.0;nand erase 0x700000 0xD00000;nand write 0x82000000 0x700000 0xD00000

    setenv bootcmd 'nand read 0x82000000 0x700000 0xD00000; nboot 0x80700000 0 0x500000; bootm'

    setenv bootargs 'mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=dhcp eth=00:0C:0C:A0:03:78';saveenv

  • At first, Thank you for your reply!

    According your advices, I user the following  argments:

     setenv serverip 192.168.42.30
    setenv ipaddr 192.168.42.166
    setenv ethaddr 00:0C:0C:A0:03:78

    tftp 0x80700000 uImage_ipnc_dm368_1.9.0
    tftp 0x82000000 cramfsImage_ipnc_dm368_1.9.0
    nand erase 0x200000 0xF00000

    nand write 0x80700000 0x500000 0x200000 
    nand write 0x82000000 0x700000 0xD00000
    setenv bootcmd 'nand read 0x82000000 0x700000 0xD00000;nboot 0x80700000 0 0x500000;bootm 0x80700000'

    setenv bootargs mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=192.168.42.166:192.168.42.1:192.168.42.2:255.255.255.0:::off eth=00:0C:0C:A0:03:78

    saveenv

    And the kernel and cramfs are also supplied by APPRO, the size of cramfs is 11.2 MB (11,837,440 Bytes)

    Start  server by manual, the first is system_server, and then  boot_proc,  autorun at last.  following is  process:

    # ./system_server &
    # queue id:0
    queue id:32769
    IPNC_DM368_1.9 (
    wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    queue id:65538
    queue id:32769
    DEMOCFG Value   : 0
    Videocodecmode  : 0
    Videocodecres   : 0

    CPU is DM368
    ./av_server.out FD OSD DM368 AEWB APPRO2A AUDIO 8000 720P H264 14000000 VBR MENUOFF &
    queue id:65538
    AUDIO SAMPLE RATE = 8000

     AVSERVER UI: Initializing.

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

    DRV_SyncRst: module = 47, domain = 0, state = 3
    Check_device_version : DEVICE VER = 1 !!
     
     CLK Hz,
     ARM   Hz =  432000000
     DDR   Hz =  340000000
     VPSS  Hz =  340000000
     IMCOP Hz =  340000000
     
     DRV LDC: GetConfig 0004 0x0
    ApproDrvInit: 7
    Creat queue id:131075
    queue id:131075

    CONFIGURED AVSERVER FOR DM368
    AUDIO SAMPLE RATE: 8000
     AVSERVER UI: Starting in mode 2
     SENSOR FPS VALUE = 30
    APPRO Setting Applied

     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:131075

     FR : 0 users registered from exsiting face album
    IPNC_DM368_1.9 (
    wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    IPNC AUTO_IRIS = 1 #####################
    APPRO 2A Created
    GBCE in EVAL MODE
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
    APPRO AEW TRIAL VERSION !!!
    APPRO AEW DATE LINE 2010/12

    FeatureMask: NONE.
    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%]
    killall: wis-streamer: no process killed

    # ApproDrvInit: 2
    queue id:131075
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.42.166/mpeg4
    ApproDrvInit: 6
    queue id:131075
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.42.166:8554/mpeg4
    ApproDrvInit: 8
    queue id:131075
    Initializing...
    ApproDrvInit: 9
    queue id:131075
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.42.166:8556/h264
    ApproDrvInit: 10
    queue id:131075
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.42.166:8557/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.42.166:8555/mjpeg
    # ./boot_proc
    queue id:0
    This program should be used only once in the boot flow.
    Only one parameter is allowed which is a number of interger.
    This number will be passed to system server to control boot.
    # ./boot_proc 1
    queue id:0
    FAT: bogus number of reserved sectors
    VFS: Can't find a valid FAT filesystem on dev mmcblk0.
    mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0,
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so

    killall: dhcpcd: no process killed
    rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 2AA8C0, 0, 1
    net_search_gateway:eth0, 0, 22AA8C0, 3
    dns=202.106.0.20
    net_search_gateway:eth0, 2AA8C0, 0, 1
    net_search_gateway:eth0, 0, 22AA8C0, 3
    dns=202.106.0.20
    musb_platform_disable 140: dma still active
    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
    drivers/usb/musb/davinci.c musb_platform_enable: dma not reactivated
    # ApproDrvInit: 2
    queue id:131075
    Initializing...
    Failed to create RTSP server: bind() error (port number: 554): Address already in use
    ApproDrvInit: 6
    queue id:131075
    Initializing...
    Failed to create RTSP server: bind() error (port number: 8554): Address already in use
    ApproDrvInit: 8
    ApproDrvInit: 9
    queue id:131075
    ApproDrvInit: 10
    queue id:131075
    Initializing...
    Failed to create RTSP server: bind() error (port number: 8557): Address already in use
    queue id:131075
    Initializing...
    Failed to create RTSP server: bind() error (port number: 8555): Address already in use
    Initializing...
    Failed to create RTSP server: bind() error (port number: 8556): Address already in use

    #
    # ./autorun.sh
    ApproDrvInit: 3
    ./autorun.sh: ./autorun.sh: 4: /usr/sbin/avahi-autoipd: not found
    ./autorun.sh: ./autorun.sh: 5: /usr/sbin/avahi-daemon: not found
    ./autorun.sh: ./autorun.sh: 6: /usr/sbin/avahi-dnsconfd: not found
    # queue id:131075
    queue id:0
    queue id:32769
    queue id:0
    [01/Jan/2000:00:32:44 +0000] boa: server version Boa/0.94.13
    [01/Jan/2000:00:32:44 +0000] boa: server built Apr 27 2010 at 11:06:37.
    [01/Jan/2000:00:32:44 +0000] boa: starting server pid=933, port 80
    UDPString=uuid:Upnp-TVEmulator-1_0-00_0066062829</UDN>

    Upnp port is 0
    UPnP Initialized OK ip=192.168.42.166, port=49152
    desc_doc_url =
    http://192.168.42.166/tvdevicedesc.xml
    UpnpRegisterRootDevice failure.
    error code = -108
    device advertisement failure.

    Error -3 while decompressing!                                  <-------  Use Web browser connect 192.168.42.166
    c03bc090(-11791524)->c055d000(4096)

     Module   | Avg Time/Frame | Frame-rate | Total time | Total Frames |
     CAPTURE  |          33.46 |      29.89 |      30143 |          901 |
     ENCODE0  |          15.17 |      65.91 |       6827 |          450 |
     STREAM   |           1.11 |     901.80 |        499 |          450 |
     OSD0     |           0.64 |    1553.45 |        580 |          901 |
     OSD1     |           0.01 |   90100.00 |         10 |          901 |
     AEWB     |           0.93 |    1079.04 |        835 |          901 |


     Module   | Avg Time/Frame | Frame-rate | Total time | Total Frames |
     CAPTURE  |          33.45 |      29.90 |      30135 |          901 |
     ENCODE0  |          15.18 |      65.90 |       6844 |          451 |
     STREAM   |           1.13 |     886.05 |        509 |          451 |
     OSD0     |           0.62 |    1603.20 |        562 |          901 |
     AEWB     |           0.93 |    1079.04 |        835 |          901 |

    [01/Jan/2000:00:33:54 +0000] request from 192.168.42.30 "GET /favicon.ico HTTP/1.1" ("/var/www/favicon.ico"): document open: No such file or directory

    And when running boot_proc program cause so many wrongs. why?

    And I try to copy gIPNC-ro.gz to /tmp, it' also display wrong, but copy other file correctly.

    # cp gIPNC-ro.gz /tmp/Error -3 while decompressing!

    c03bbc20(-11020340)->c0d14000(4096)
    # gunzip gIPNC-ro.gz
    gunzip: gIPNC-ro: Read-only file system
    # cp usbconf.exe  /tmp/

    I don't know what's wrong, Thank you very much!

  • Hi:

       Reference the question http://e2e.ti.com/support/embedded/f/354/p/47144/167802.aspx#167802 and using the following command:

     cd /opt/ipnc/

    ./killall.sh

    flash_eraseall /dev/mtd4
    and reboot, It resolve the problem of
    Upnp port is 0
    UPnP Initialized OK ip=192.168.1.114, port=49152
    desc_doc_url = http://192.168.1.114/tvdevicedesc.xml
    UpnpRegisterRootDevice failure.
    error code = -204
    device advertisement failure.
    But when using web to connect IPNC, the wrong is as of old.
     
    queue id:98307
    Starting hotplug subsystem:
       pci    
    CONFIGURED AVSERVER FOR DM368
    AUDIO SAMPLE RATE: 8000
     AVSERVER UI: Starting in mode 2
     SENSOR FPS VALUE = 30
       pci      [success]
    APPRO Setting Applied
     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
     FR : 0 users registered from exsiting face album
    IPNC_DM368_1.9 (
    wenchi@dino.linux) (gcc version 4.2.0 (MontaVis
    IPNC AUTO_IRIS = 1 #####################
    APPRO 2A Created
       usb    
    GBCE in EVAL MODE
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
    APPRO AEW TRIAL VERSION !!!
    APPRO AEW DATE LINE 2010/12
    FeatureMask: NONE.
    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%]
    killall: wis-streamer: no process killed
       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: 00:0C:0C:A0:03:78
     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 00:0C:0C:A0:03:78
    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
    mmcblk0: mmc0:b368       124160KiB
     mmcblk0: p1 p2
    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 c38f8000 using DMA, IRQ 12
    Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
     sbulla: unknown partition table
    mkdosfs 2.11 (12 Mar 2005)
    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 386d4419, no volume label.
    queue id:0
    FAT: bogus number of reserved sectors
    umount: /mnt/mmcVFS: Can't find a valid FAT filesystem on dev mmcblk0.
    : not mounted
    mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0,
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    killall: dhcpcd: no process killed
    Error -3 while decompressing!
    rm: cannot removc03bf798(-11805612)->c0c07000(4096)
    e `/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 -3 while decompressing!
    c03bbbac(-10991552)->c05b2000(4096)
    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 does not exist in /g_file_storage gadget-lun0: ro=0, file: /dev/sbulla
    proc/modules
    system_server/523[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196
    INIT: Entering runlevel: 3
    ApproDrvInit: 2
    queue id:98307
    Initializing...
    Play this stream using the URL:
            rtsp://192.168.1.168/mpeg4
    ApproDrvInit: 6
    queue id:98307
    Initializing...
    ...done initializing
    ApproDrvInit: 8
    queue id:98307
    Initializing...
    ApproDrvInit: 3
    queue id:98307
    queue id:0
    queue id:32769
    ApproDrvInit: 9
    queue id:98307
    ApproDrvInit: 10
    queue id:98307
    Initializing...
    ...done 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:8554/mpeg4
    Play this stream using the URL:
            rtsp://192.168.1.168:8555/mjpeg
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8556/h264
    Error -3 while decompressing!
    [01/Jan/2000:00:c03bf580(-11805076)->c0dcc000(4096)
    02:36 +0000] boa: server version Boa/0.94.13
    [01/Jan/2000:00:02:36 +0000] boa: server built Apr 27 2010 at 11:06:37.
    [01/Jan/2000:00:02:36 +0000] boa: starting server pid=798, port 80
    queue id:0
    UDPString=uuid:Upnp-TVEmulator-1_0-00_0077944575</UDN>
    Error -3 while decompressing!
    Upnp port is 0
    c03bb55c(-11805040)->c0dd0000(4096)
    UPnP Initialized OK ip=192.168.1.168, port=49152
    desc_doc_url =
    http://192.168.1.168/tvdevicedesc.xml
    UpnpRegisterRootDevice failure.
    error code = -108
    device advertisement failure.
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!
    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
    DM368_IPNC login: Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!
    Audio Alarm!!
    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
    DM368_IPNC login:
    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
    DM368_IPNC login:
    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
    DM368_IPNC login: root


    Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774).
    login[806]: root login  on `console'
    #
     Module   | Avg Time/Frame | Frame-rate | Total time | Total Frames |
     CAPTURE  |          33.42 |      29.92 |      30109 |          901 |
     ENCODE0  |          15.21 |      65.75 |      13689 |          900 |
     STREAM   |           0.21 |    4663.21 |        193 |          900 |
     OSD0     |           0.08 |   12013.33 |         75 |          901 |
     OSD1     |           0.02 |   50055.55 |         18 |          901 |
     FACE.D   |         199.50 |       5.01 |       1197 |            6 |
     AEWB     |           1.00 |     997.78 |        901 |          899 |
     
    Error -3 while decompressing!                                   <---------------- Using web browser to connect
    c03bc090(-11791524)->c084d000(4096)
     Module   | Avg Time/Frame | Frame-rate | Total time | Total Frames |
     CAPTURE  |          33.45 |      29.89 |      30139 |          901 |
     ENCODE0  |          15.04 |      66.50 |      13548 |          901 |
     STREAM   |           0.19 |    5238.37 |        172 |          901 |
     OSD0     |           0.07 |   14301.59 |         63 |          901 |
     AEWB     |           0.95 |    1056.27 |        853 |          901
    |

    And I try to copy gIPNC-ro.gz to /tmp, it' also report wrong, but copy other file correctly.

    # cp gIPNC-ro.gz /tmp/Error -3 while decompressing!

    c03bbc20(-11020340)->c0d14000(4096)
    # gunzip gIPNC-ro.gz
    gunzip: gIPNC-ro: Read-only file system
    # cp usbconf.exe  /tmp/

    I don't know what's wrong, Thank you vermuch

     

     
  • Hi,

    A few questions:

    1. Have you tried using the same filesystem mounted using NFS and booting your IP camera using the NFS as root filesystem?

    2. Just want to confirm, you have used the filesystem (cramfs) binary as it is from IPNC ver 1.9 release?

    3. Are you using DM368 IPNC or DM365 IPNC? The release ver 1.9 had binaries built only for DM368, by default.

     

    Regards,

    Anshuman

  • Hi:

       1.I'm using DM368 IPNC, The release ver is 1.9. And cramfs file name is cramfsImage_ipnc_dm368_1.9.0.

        2.Today I rmmove some file (Alarm.wav) form file system and make cramfs using command of mkfs.cramfs, and then load to nand flash. it can run successfully.

        2.Using debug configure of kernel, I can boot from NFS. But when run the program by manually(Remask auto run shell in /etc/init.d/rcS) , it cause NFS filesystem have no response. The log if following. And I wite Email to Appro support to ask what's. They answer is the DM368 IPNC have no support boot from NFS filesystem.

    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
    rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-09-14 01:01:01 (968893261)
    IP-Config: Guessing netmask 255.255.255.0
    IP-Config: Complete:
          device=eth0, addr=192.168.42.166, mask=255.255.255.0, gw=255.255.255.255,
         host=192.168.42.166, domain=, nis-domain=(none),
         bootserver=255.255.255.255, rootserver=192.168.42.34, rootpath=
    Looking up port of RPC 100003/2 on 192.168.42.34
    Looking up port of RPC 100005/1 on 192.168.42.34
    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 2010 09:17:07
    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 2010 09:17:10
    DRV: EDMACC.QUEPRI  = 00000777
    DRV: SYSTEM.MSTPRI0 = 00550011
    DRV: SYSTEM.MSTPRI1 = 00000444
    DRV: ISP.BCR        = 00000002
    DRV: SYSTEM.MISC = 00000399
    CMEMK module: built on May 11 2010 at 09:16:32
      Reference Linux version 2.6.18
      File /mnt/had/IPNetCam/ipnc_1.9_0/install_dir/dvsdk_2_10_01_18/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 -> 0x83800000)
    cmemk initialized
    EDMAK module: built on May 11 2010 at 09:16:35
      Reference Linux version 2.6.18
      File /mnt/had/IPNetCam/ipnc_1.9_0/install_dir/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    IRQK module: built on May 11 2010 at 09:16:36
      Reference Linux version 2.6.18
      File /mnt/had/IPNetCam/ipnc_1.9_0/install_dir/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    irqk initialized
    Empty flash at 0x001e19a8 ends at 0x001e2000
    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)
    Setting up networking ....
    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
    insmod: /opt/ipnc/modules/i2c-emac.ko: No such file or directory
     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
    PPP generic driver version 2.4.2
    insmod: /opt/ipnc/modules/netconsole.ko: No such file or directory       <-----  These modules have compile into kernel.
    PPP Deflate Compression module registered
    insmod: /opt/ipnc/modules/davinci_emac.ko: No such file or directory
    insmod: /opt/ipnc/modules/mmc_core.ko: No such file or directory
    insmod: /opt/ipnc/modules/mmc_block.ko: No such file or directory
    insmod: /opt/ipnc/modules/davinci-mmc.ko: No such file or directory
    insmod: /opt/ipnc/modules/usbcore.ko: No such file or directory
    insmod: /opt/ipnc/modules/musb_hdrc.ko: No such file or directory
    insmod: /opt/ipnc/modules/usbmon.ko: No such file or directory
    Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
     sbulla: unknown partition table
    mkdosfs 2.11 (12 Mar 2005)
    INIT: Entering runlevel: 3

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

    192.168.42.166 login: root
    Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774).

    login[721]: root login  on `console'


    # cd /opt/ipnc/

    # ./system_server &
    # Creat queue id:0
    queue id:0
    Creat queue id:32769
    queue id:32769
    queue id:32769
    IPNC_DM368_1.9 (
    gomo@gomo-desktop) (gcc version 4.2.0 (MontaVis
    Creat queue id:65538
    queue id:65538
    queue id:65538
    DEMOCFG Value   : 0
    Videocodecmode  : 0
    Videocodecres   : 0

    CPU is DM368
    ./av_server.out FD OSD DM368 AEWB APPRO2A AUDIO 8000 720P H264 4000000 VBR MENUOFF &
    Check_device_version : DEVICE VER = 1 !!
    AUDIO SAMPLE RATE = 8000

     AVSERVER UI: Initializing.

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

    DRV_SyncRst: module = 47, domain = 0, state = 3
     
     CLK Hz,
     ARM   Hz =  432000000
     DDR   Hz =  340000000
     VPSS  Hz =  340000000
     IMCOP Hz =  340000000
     
     DRV LDC: GetConfig 0004 0x0

    CONFIGURED AVSERVER FOR DM368
    AUDIO SAMPLE RATE: 8000
     AVSERVER UI: Starting in mode 2
     SENSOR FPS VALUE = 30
    ApproDrvInit: 7
    Creat queue id:98307
    queue id:98307
    APPRO Setting Applied

     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

     FR : 0 users registered from exsiting face album
    IPNC_DM368_1.9 (
    gomo@gomo-desktop) (gcc version 4.2.0 (MontaVis
    IPNC AUTO_IRIS = 1 #####################
    APPRO 2A Created
    GBCE in EVAL MODE
    AUDIO : period size = 1000 frames dir = 0
    AUDIO : period time = 125000 us dir = 0
    queue id:65538
    APPRO AEW TRIAL VERSION !!!
    APPRO AEW DATE LINE 2010/12

    FeatureMask: NONE.
    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%]
    killall: wis-streamer: no process killed

    #
    # ./boot_proc 1
    queue id:0
    umount: /mnt/mmc: not mounted
    nfs: RPC call returned error 101                        <------- This is the wrong.
    killall: dhcpcd:nfs: RPC call returned error 101
     no process killed
    rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 1A8C0, 0, 1

    nfs: server 192.168.42.34 not responding, still trying
    nfs: server 192.168.42.34 not responding, still trying
    TimeOut occure in boot_proc.
    Program exit.
    #

    And the Uart have no respond again.

    BTW: we can connect camera throught Web browser, The UI is perfect. In our project ,we want modify the web UI and add some items and delete some items base on your UI. But we cannot fond the source of UI, It builds by GoDB.

    How to modify the UI? and can support source?

    Thanks.

  • Have you configured the device for static ip or dhcp? If static ip, is the static ip in the same network as your nfs server.

    From the error it seems that the network is becoming unaccessable when you run the final script

  • Hi:

    1.    I moved the switch on the hardware to position 4 i.e. (Static IP Mode );

    2.   NFS boot args is:   setenv bootargs console=ttyS1,115200n8 noinitrd rw ip=192.168.42.166 eth=00:0c:0c:A0:02:b1 root=/dev/nfs nfsroot=192.168.42.34:/opt/368filesys,nolock mem=56M      NFS ip is 192.168.42.34, Camera's ip is 192.168.42.166

    3.  It can boot from NFS filesystem successfully which show above.

    4.When I run the program manually, the wrong is alse show above.

    Thanks.


  • What is the static ip you configured for the camera. It should be 192.168.42.xx. When you are running the final script manually, the camera will be trying to change the ip address to the default static ip (in Dm365 IPNC 1.5 release it is 192.168.1.168). with that ip, the camera wont be able to see the nfs server.

    Before running, the script the camera will be taking the ip from the kernel command line which is 192.168.42.166. But when you run the script, it set the ip to the default static ip so that nfs server wont be accessible and the camera will stop responding.

    You can change the switch to DHCP position if you have a dhcp server running in your network.

  • Thank you very much! I have read the source of "boot_proc", The program will set the ip to default static ip address.

    So I run the program by manually, Don't run boot_proc, just like this:

    ./system_server &

    ./wis_stream &

    ./boa -c /etc &

    I have repost another question to ask How to modify the web UI? http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/49590/175791.aspx#175791

    Thanks again.

  • Thanks Geo for providing your inputs.

    Hi Gomo,

    Is your problem finally resolved or do you need any further help on this topic?

     

    Regards,

    Anshuman

  • Thank you very much.

    Error -3 while decompressing!
    c03bc090(-11791524)->c13aa000(4096)

    These problems have not appear again. I use command mkfs.cramfs(Ubuntu default command) to remake cramfs and set following args:

    setenv serverip 192.168.42.30
    setenv ipaddr 192.168.42.166
    setenv ethaddr 00:0C:0C:A0:03:78

     

    tftp 0x80700000 uImage_ipnc_dm368_1.9.0
    tftp 0x82000000 cramfsImage_ipnc_dm368_1.9.0
    nand erase 0x200000 0xF00000

    nand write 0x80700000 0x500000 0x200000 
    nand write 0x82000000 0x700000 0xD00000
    setenv bootcmd 'nand read 0x82000000 0x700000 0xD00000;nboot 0x80700000 0 0x500000;bootm 0x80700000'

    setenv bootargs mem=56M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=192.168.42.166:192.168.42.1:192.168.42.2:255.255.255.0:::off eth=00:0C:0C:A0:03:78

    It can work normally. I didn't have found what's the reason at all. But  I very agree with 's pointerview.

        >I think the CramFS size entered in bootargs is not fine,  Marked in yellow is what specifies your filesystem size.

        >The decompressing error is due to fact that there is not space in memeory to uncompress the cram file system.

        >Or the file might be half loaded into NAND. Anather way is to increase mem=48M and keep filesystem size below 14M

    Maybe It relates to increase memory to 56M dircetly!

    Thanks again.