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.

APPRO - DM365 IPNC - IMX035 - Software Version 2.6 not working

We have IPNC DM365 – IMX035 reference kit. It is working fine with software version 2.1.

When i download version 2.6 released binary files (uImage and Cramfs) It is giving me errors. 

Below is my configuration parameters.

 bootdelay=4                                                                                                                                                                                                                                                                                                                                                                       
baudrate=115200                                                                                                                                                                                                                                                                                                                                                                   
bootfile="uImage"                                                                                                                                                                                                                                                                                                                                                                 
nfshost=192.168.120.216                                                                                                                                                                                                                                                                                                                                                           
rootpath=/home/user/IP_CAMERA/IPNetCam_2_6/ipnc/target/filesys                                                                                                                                                                                                                                                                                                               
ethaddr=00:0C:13:A5:DE:D1                                                                                                                                                                                                                                                                                                                                                         
ipaddr=192.168.120.168                                                                                                                                                                                                                                                                                                                                                            
serverip=192.168.120.216                                                                                                                                                                                                                                                                                                                                                          
bootcmd=nand read 0x82000000 0x400000 0x0E00000;nboot 0x80700000 0 0x200000;bootm 0x80700000                                                                                                                                                                                                                                                                                      
bootargs=mem=50M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=off eth=00:0C:13:A5:DE:D1                                                                                                                                                                                                                                                                      
stdin=serial                                                                                                                                                                                                                                                                                                                                                                      
stdout=serial                                                                                                                                                                                                                                                                                                                                                                     
stderr=serial                                                                                                                                                                                                                                                                                                                                                                     
ver=U-Boot 1.3.4 (Dec  9 2010 - 17:45:52) DM365-IPNC-1.0.1 

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

Boot log is as written below.

Loading from NAND 32MiB 3,3V 8-bit, offset 0x200000

Image Name: Linux-2.6.18_pro500-davinci_IPNC

Image Type: ARM Linux Kernel Image (uncompressed)

Data Size: 1818424 Bytes = 1.7 MB

Load Address: 80008000

Entry Point: 80008000

## Booting kernel from Legacy Image at 80700000 ...

Image Name: Linux-2.6.18_pro500-davinci_IPNC

Image Type: ARM Linux Kernel Image (uncompressed)

Data Size: 1818424 Bytes = 1.7 MB

Load Address: 80008000

Entry Point: 80008000

Verifying Checksum ... OK

Loading Kernel Image ... OK

OK

Starting kernel ...

Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (root@localhost.localdomain) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Fri Jul 8 03:42:00 CST 2011

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

Machine: DaVinci DM365 IPNC

Memory policy: ECC disabled, Data cache writeback

DaVinci DM0365 variant 0x0

PLL0: fixedrate: 24000000, commonrate: 135000000, vpssrate: 270000000

PLL0: vencrate_sd: 27000000, ddrrate: 270000000 mmcsdrate: 49090909

PLL1: armrate: 297000000, voicerate: 118800000, vencrate_hd: 74250000

CPU0: D VIVT write-back cache

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

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

Built 1 zonelists. Total pages: 12800

Kernel command line: mem=50M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=off eth=00:0C:13:A5:DE:D1

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

Clock event device timer0_0 configured with caps set: 07

Console: colour dummy device 80x30

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory: 50MB = 50MB total

Memory: 32256KB available (3117K code, 647K data, 176K init)

Security Framework v1.0.0 initialized

Capability LSM initialized

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd

Freeing initrd memory: 14336K

NET: Registered protocol family 16

DaVinci: 104 gpio irqs

MUX: initialized GPIO20

MUX: initialized I2C_SCL

Generic PHY: Registered new driver

ch0 default output "COMPOSITE", mode "NTSC"

VPBE Encoder Initialized

SCSI subsystem initialized

NET: Registered protocol family 2

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

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

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

TCP: Hash tables configured (established 2048 bind 1024)

TCP reno registered

***davinci_spi_board_init()!<6>

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

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

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

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

yaffs Jul 8 2011 03:38:59 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=c2c42a00,layer->video_dev=c2c42b60

Trying to register davinci display video device.

layer=c2c42800,layer->video_dev=c2c42960

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 0xc3866000 (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 00:00:00 (946684800)

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

RAMDISK: cramfs filesystem found at block 0

RAMDISK: Loading 13712KiB [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 Jul 8 2011 03:44:40

I2C: Module install successful, device major num = 252

DMA: Module install successful, device major num = 251

DRV: Module install successful

DRV: Module built on Jul 8 2011 03:44:42

DRV: EDMACC.QUEPRI = 00002777

DRV: SYSTEM.MSTPRI0 = 00440022

DRV: SYSTEM.MSTPRI1 = 00000344

DRV: ISP.BCR = 00000002

DRV: SYSTEM.MISC = 00000391

CMEMK module: built on Jul 8 2011 at 03:44:11

Reference Linux version 2.6.18

File /home/user/workdir/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

CMEM Range Overlaps Kernel Physical - allowing overlap

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

CMEMK Error: Failed to request_mem_region(0x83000000, 83886080)

insmod: cannot insert `cmemk.ko': Bad address (-1): Bad address

EDMAK module: built on Jul 8 2011 at 03:44:13

Reference Linux version 2.6.18

File /home/user/workdir/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

IRQK module: built on Jul 8 2011 at 03:44:14

Reference Linux version 2.6.18

File /home/user/workdir/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c

irqk initialized

Creat queue id:0

queue id:0

FileMngThread created

Creat queue id:32769

queue id:32769

AlramThread created

Share memory init success

Creat queue id:65538

queue id:65538

Creat queue id:98307

queue id:98307

IPNC_DM368_2.6.0 (root@localhost.localdomain) (gcc version 4.2.

queue id:65538

queue id:32769

CPU is DM365

./av_server.out DM365 NTSC APPRO2A AEWB SXGA H264 5000000 VBR AUTO MENUOFF &

Check_device_version : DEVICE VER = 1 !!

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 ...rm: unable to remove `/etc/network/run': Read-only file system

CPU CurrentStatus is = 0

AVSERVER UI: Initializing.

ApproDrvInit: 7

CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'

Error: ApproDrvInit fail

SystemInit success

Schedule manager init success

Starting hotplug subsystem:

pci

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|572): DRV_init()

ERROR (avServerUi.c|UI_start|54): AVSERVER_init()

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: 00:0C:13:A5:DE:D1

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:13:A5:DE:D1

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 c38f2000 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 38fa8860, 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

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/527[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196

ApproDrvInit: 9

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'

ApproDrvInit: 6

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

CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'

ApproDrvInit: 3

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)

DM365_IPNC login:

Thanks

  • Try with  bootargs=mem=48M (instead of 50M),
    or change cmem.ko phys_start address in /opt/ipnc/av_capture_load.sh

    Regards.

  • Dear Marko,

    Thanks you for prompt response. It worked with bootargs mem = 48M settings. :-)

    Could you please help me to understand why it is required to set it 48M?

    How it is so significant? 

    Please suggest any reference document to go through if any.

    Regards,

  • Hi,

    You set 48MB to Linux, and other is available to cmem (used by encoders, decoders).

    Total  memory : 0x80000000 - 0x88000000 (128MB=128*1024*1204=0x8000000)

    when Linux mem=48 (default)
    Linux : 0x80000000 - 0x83000000
    CMEM  0x83000000 - 0x88000000
    insmod cmemk.ko phys_start=0x83000000 phys_end=0x88000000 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672
    -------------------------------------------

    when Linux mem=50MB (you have to reduce 2MB memory for cmem in that case)

    Linux : 0x80000000 - 0x83200000
    CMEM  0x83200000 - 0x88000000
    insmod cmemk.ko phys_start=0x83200000 phys_end=0x88000000 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672
    --------------------------------------------

    You can give 50MB to Linux, but then you can not give that part of memory to cmem.ko driver (in /opt/ipnc/av_capture_load.sh),
    However in that case cmem will have less memory and not all codec combination will work (dual, triple streams - high resolution).


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

    You can read about cmem at http://processors.wiki.ti  (type cmem in search box)

    http://processors.wiki.ti.com/index.php/Changing_the_DVEVM_memory_map
    http://processors.wiki.ti.com/index.php/CMEM_Overview
    http://processors.wiki.ti.com/index.php/HOWTO_Change_the_Linux_Kernel_Start_Address

    Regards.