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.

RDK Ver 4 Install Problem.

Expert 1840 points

Dear,

I am working with DM368 IPNC and ver 4 Software. I am using appro IPNC DM368IPNC-MT5 A187 and try to burn the software for it but I got the error during booting. Please see the below image for detail. The boot process just go to mounted rootfs and stop there.

I wonder that why the V4 look like difficult for burning than the previous versions. It is grateful to have your help.

  • Bioz,

    Firstly, we have v4.1 which is the latest version, if you are starting on 2.6.37 kernel version. We suggest you start form this version

    For the error you are getting, it looks like you have not erased the NAND before burning binaries. As we have chnaged the NAND confi, you need run NAND SCRUB while migrating to v4.x releases.

    This is available at Appro ftp site or contact TI local sales/FAE for this

    Please send us the complete log by removing 'quiet' from bootargs as this will mask the boot logs

    Also, try burning the binaries from CCS once as this will erase the complete NAND before burning new v4.x binaries

    Regards,

    Raghu

  • Dear,

    I have tried the v4.1 on our appro camera. It worked for the binary files which supplied by RDK package but after we compile and use our owned binary files some errors happened. Please see the log for detail:

    DM36x initialization passed!
    TI UBL Base Version: 1.50
    Boot Loader BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000008.
    Boot Mode Task Completed

    IPNC UBL Version: 2.1.0
    Platform: DM368-432

    Jumping to entry point at 0x81080000

    U-Boot 1.3.4 (Jan 29 2013 - 21:09:36) DM368-IPNC-4.1.0

    I2C: ready
    DRAM: 128 MB
    NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
    Bad block table not found for chip 0
    Bad block table not found for chip 0

    loop oob 81021ad8 Bad block table written to 0x07fe0000, version 0x01

    loop oob 81021ad8 Bad block table written to 0x07fc0000, version 0x01
    128 MiB
    In: serial
    Out: serial
    Err: serial
    ARM Clock :- 432MHz
    DDR Clock :- 340MHz
    Ethernet PHY: GENERIC @ 0x01
    Hit any key to stop autoboot: 0

    Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000
    Image Name: Linux-2.6.37_IPNC_DM365_4.1.0
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3439968 Bytes = 3.3 MB
    Load Address: 80008000
    Entry Point: 80008000
    ## Booting kernel from Legacy Image at 80700000 ...
    Image Name: Linux-2.6.37_IPNC_DM365_4.1.0
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3439968 Bytes = 3.3 MB
    Load Address: 80008000
    Entry Point: 80008000
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    [ 0.000000] Linux version 2.6.37_IPNC_DM365_4.1.0 (toan@ubuntu) (gcc version 4.3.3 (GCC) ) #2 PREEMPT Fri Feb 1 18:54:44 PST 2013
    [ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    [ 0.000000] CPU: VIVT data cache, VIVT instruction cache
    [ 0.000000] Machine: DaVinci DM36x IPNC
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] DaVinci dm365_rev1.1 variant 0x0
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 12192
    [ 0.000000] Kernel command line: mem=48M console=ttyS1,115200n8 noinitrd ip=dhcp rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248 eth=00:0c:0c:a0:09:EC
    [ 0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 00:0c:0c:a0:09:EC
    [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
    [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Memory: 48MB = 48MB total
    [ 0.000000] Memory: 45184k/45184k available, 3968k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] DMA : 0xff000000 - 0xffe00000 ( 14 MB)
    [ 0.000000] vmalloc : 0xc3800000 - 0xfea00000 ( 946 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xc3000000 ( 48 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .init : 0xc0008000 - 0xc0028000 ( 128 kB)
    [ 0.000000] .text : 0xc0028000 - 0xc032c000 (3088 kB)
    [ 0.000000] .data : 0xc032c000 - 0xc034fd60 ( 144 kB)
    [ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptable hierarchical RCU implementation.
    [ 0.000000] RCU-based detection of stalled CPUs is disabled.
    [ 0.000000] Verbose stalled-CPUs detection is disabled.
    [ 0.000000] NR_IRQS:245
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000294] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
    [ 0.000351] pid_max: default: 32768 minimum: 301
    [ 0.000635] Mount-cache hash table entries: 512
    [ 0.001420] CPU: Testing write buffer coherency: ok
    [ 0.005935] DaVinci: 8 gpio irqs
    [ 0.006551] NET: Registered protocol family 16
    [ 0.090606] bio: create slab <bio-0> at 0
    [ 0.095228] SCSI subsystem initialized
    [ 0.099050] usbcore: registered new interface driver usbfs
    [ 0.100750] usbcore: registered new interface driver hub
    [ 0.101633] usbcore: registered new device driver usb
    [ 0.104800] vpss vpss: dm365_vpss vpss probed
    [ 0.104864] vpss vpss: dm365_vpss vpss probe success
    [ 0.106772] Advanced Linux Sound Architecture Driver Version 1.0.23.
    [ 0.108741] Switching to clocksource timer0_1
    [ 0.171717] NET: Registered protocol family 2
    [ 0.172030] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.172807] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [ 0.172949] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.173039] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.173072] TCP reno registered
    [ 0.173108] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.173171] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.173668] NET: Registered protocol family 1
    [ 0.241044] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [ 0.244593] msgmni has been set to 88
    [ 0.247346] io scheduler noop registered (default)
    [ 0.248811] CSL: Module install successful, device major num = 254
    [ 0.248857] CSL: Module version 0.10.00, built on Feb 1 2013 18:52:48
    [ 0.248911] I2C: Module install successful, device major num = 253
    [ 0.248959] DMA: Module install successful, device major num = 252
    [ 0.248987] DRV: Module install successful
    [ 0.249011] DRV: Module built on Feb 1 2013 18:52:49
    [ 0.249038] DRV: EDMACC.QUEPRI = 00002777
    [ 0.249060] DRV: SYSTEM.MSTPRI0 = 00440011
    [ 0.249082] DRV: SYSTEM.MSTPRI1 = 00000444
    [ 0.249104] DRV: ISP.BCR = 00000002
    [ 0.249126] DRV: SYSTEM.MISC = 00000399
    [ 0.249151] EDMAK module: built on Feb 1 2013 at 18:52:31
    [ 0.249180] Reference Linux version 2.6.37
    [ 0.249205] File /home/toan/IPNetCam/dm368_41_org/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    [ 0.250895] IRQK module: built on Feb 1 2013 at 18:52:30
    [ 0.250944] Reference Linux version 2.6.37
    [ 0.250968] File /home/toan/IPNetCam/dm368_41_org/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    [ 0.252449] irqk initialized
    [ 0.252528] CMEMK module: built on Feb 1 2013 at 18:52:28
    [ 0.252569] Reference Linux version 2.6.37
    [ 0.252595] File /home/toan/IPNetCam/dm368_41_org/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    [ 0.257337] allocated heap buffer 0xc4000000 of size 0x5000000
    [ 0.257379] heap fallback enabled - will try heap if pool buffer is not available
    [ 0.257421] CMEM Range Overlaps Kernel Physical - allowing overlap
    [ 0.257455] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
    [ 0.257601] cmemk initialized
    [ 0.257656] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [ 0.281802] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    [ 0.303791] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
    [ 0.818884] console [ttyS1] enabled
    [ 0.825811] brd: module loaded
    [ 0.837431] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )
    [ 0.845965] Bad block table not found for chip 0
    [ 0.852168] Bad block table not found for chip 0
    [ 0.856803] Scanning device for bad blocks
    [ 0.942023] Creating 7 MTD partitions on "davinci_nand.0":
    [ 0.947552] 0x000000000000-0x000000300000 : "bootloader"
    [ 0.956896] 0x000000300000-0x000000500000 : "params"
    [ 0.965985] 0x000000500000-0x000000900000 : "kernel"
    [ 0.975197] 0x000000900000-0x000003100000 : "filesystem1"
    [ 0.984992] 0x000003100000-0x000003300000 : "data1"
    [ 0.994238] 0x000003300000-0x000005b00000 : "filesystem2"
    [ 1.004148] 0x000005b00000-0x000008000000 : "data2"
    [ 1.013538] davinci_nand davinci_nand.0: controller rev. 2.3
    [ 1.022379] UBI: attaching mtd3 to ubi0
    [ 1.026244] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 1.032837] UBI: logical eraseblock size: 126976 bytes
    [ 1.038252] UBI: smallest flash I/O unit: 2048
    [ 1.043099] UBI: sub-page size: 512
    [ 1.047732] UBI: VID header offset: 2048 (aligned 2048)
    [ 1.053839] UBI: data offset: 4096
    [ 1.302818] UBI: max. sequence number: 2
    [ 1.319165] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 2, need 3
    [ 1.331898] UBI: attached mtd3 to ubi0
    [ 1.335669] UBI: MTD device name: "filesystem1"
    [ 1.341286] UBI: MTD device size: 40 MiB
    [ 1.346178] UBI: number of good PEBs: 320
    [ 1.350909] UBI: number of bad PEBs: 0
    [ 1.355363] UBI: number of corrupted PEBs: 0
    [ 1.359807] UBI: max. allowed volumes: 128
    [ 1.364489] UBI: wear-leveling threshold: 4096
    [ 1.369199] UBI: number of internal volumes: 1
    [ 1.373698] UBI: number of user volumes: 1
    [ 1.378149] UBI: available PEBs: 0
    [ 1.382640] UBI: total number of reserved PEBs: 320
    [ 1.387523] UBI: number of PEBs reserved for bad PEB handling: 2
    [ 1.393574] UBI: max/mean erase counter: 1/0
    [ 1.397850] UBI: image sequence number: 1499229593
    [ 1.402807] UBI: background thread "ubi_bgt0d" started, PID 400
    [ 1.460111] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
    [ 1.466321] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
    [ 1.474033] davinci_mdio.0: probed
    [ 1.477479] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    [ 1.485359] i2c /dev entries driver
    [ 1.491158] Linux media interface: v0.10
    [ 1.495787] Linux video capture interface: v2.00
    [ 1.502708] vpbe-osd vpbe-osd: OSD sub device probe success
    [ 1.509134] vpbe-venc vpbe-venc: VENC sub device probe success
    [ 1.515963] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
    [ 1.522149] Setting default output to Composite
    [ 1.526701] Setting default mode to ntsc
    [ 1.530834] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [ 1.537548] vpbe-v4l2 vpbe-v4l2: layer=c2936000,layer->video_dev=c29360e8
    [ 1.545230] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [ 1.552165] vpbe-v4l2 vpbe-v4l2: layer=c2936600,layer->video_dev=c29366e8
    [ 1.560831] watchdog watchdog: heartbeat 60 sec
    [ 1.570698] Error: Driver 'davinci-mcbsp' is already registered, aborting...
    [ 1.580709] asoc: cq93vc-hifi <-> davinci-vcif mapping ok
    [ 1.589452] ALSA device list:
    [ 1.592735] #0: DaVinci DM365 EVM
    [ 1.597507] TCP cubic registered
    [ 1.601089] NET: Registered protocol family 17
    [ 1.614444] net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=181b8b0)
    [ 1.640373] Sending DHCP requests .
    [ 3.610404] PHY: 0:01 - Link is Up - 100/Full
    [ 3.740075] ..,. OK
    [ 13.870167] IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.0.93
    [ 13.878027] IP-Config: Complete:
    [ 13.881189] device=eth0, addr=192.168.0.93, mask=255.255.255.0, gw=192.168.0.1,
    [ 13.888892] host=192.168.0.93, domain=, nis-domain=(none),
    [ 13.894880] bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
    [ 14.012753] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [ 14.018789] UBIFS: file system size: 38473728 bytes (37572 KiB, 36 MiB, 303 LEBs)
    [ 14.026545] UBIFS: journal size: 5332992 bytes (5208 KiB, 5 MiB, 42 LEBs)
    [ 14.033928] UBIFS: media format: w4/r0 (latest is w4/r0)
    [ 14.039768] UBIFS: default compressor: lzo
    [ 14.043923] UBIFS: reserved for root: 0 bytes (0 KiB)
    [ 14.051824] VFS: Mounted root (ubifs filesystem) on device 0:12.
    [ 14.057989] Freeing init memory: 128K
    [ 15.163886] davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    [ 15.291285] Loading iSCSI transport class v2.0-870.
    [ 15.584095] iscsi: registered transport (tcp)
    [ 15.657964] musb-hdrc: version 6.0, peripheral, debug=0
    [ 15.734067] musb-hdrc musb-hdrc: dma type: dma-cppi3
    [ 15.761071] musb-hdrc musb-hdrc: USB Peripheral mode controller at fec64000 using DMA, IRQ 12
    [ 15.876439] loop: module loaded
    [ 15.946907] tun: Universal TUN/TAP device driver, 1.6
    [ 15.952210] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [ 16.006490] console [netcon0] enabled
    [ 16.010402] netconsole: network logging started
    [ 16.097513] PPP generic driver version 2.4.2
    [ 16.127665] PPP Deflate Compression module registered

    the booting process was stopped here. I guess something wrong stay in the mtd_utils or ubifs file system. Do you have any idear about that.

    I also attached the configure information for bootarg and boot command below:

    DM36x initialization passed!
    TI UBL Base Version: 1.50
    Boot Loader BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000008.
    Boot Mode Task Completed

    IPNC UBL Version: 2.1.0
    Platform: DM368-432

    Jumping to entry point at 0x81080000

    U-Boot 1.3.4 (Jan 29 2013 - 21:09:36) DM368-IPNC-4.1.0

    I2C: ready
    DRAM: 128 MB
    NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
    Bad block table not found for chip 0
    Bad block table not found for chip 0

    loop oob 81021ad8 Bad block table written to 0x07fe0000, version 0x01

    loop oob 81021ad8 Bad block table written to 0x07fc0000, version 0x01
    128 MiB
    In: serial
    Out: serial
    Err: serial
    ARM Clock :- 432MHz
    DDR Clock :- 340MHz
    Ethernet PHY: GENERIC @ 0x01
    Hit any key to stop autoboot: 0
    DM368 IPNC :>print
    bootdelay=4
    baudrate=115200
    bootfile="uImage"
    serverip=192.168.0.41
    ipaddr=192.168.0.124
    ethaddr=00:EA:AD:EF:ED:FE
    gatewayip=192.168.0.1
    dnsip=192.168.0.1
    dnsip2=192.168.0.1
    netmask=255.255.255.0
    bootcmd=nboot 0x80700000 0 0x500000;bootm 0x80700000
    bootargs=mem=48M console=ttyS1,115200n8 noinitrd ip=dhcp rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248 eth=00:0c:0c:a0:09:EC
    verify=no
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Jan 29 2013 - 21:09:36) DM368-IPNC-4.1.0

    Environment size: 731/131068 bytes
    DM368 IPNC :>

    I have already scrub nand everytime I burned new file system:

    nand scrub 0x900000 0x7700000;mw.b 0x82000000 0xFF 0x1800000
    tftpboot 0x82000000 ipnc_dm368_ubifs;nand erase 0x900000 0x1800000;nand write 0x82000000 0x900000 0x1800000

     

    Thanks

  • Dear,

    The problem may come from my compiler setting. It made the wrong ubifs so camera couldnt work. It worked fine now, thanks.