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.

DM368-IPNC boot up issues

 

Hi Raghu,

 

Thanks for your continuous help and support.

1.My cramfs is of size:

-rwxrwxrwx 1 root root 14327808 2011-08-24 15:12 cramfsImage_ipnc_DM368_IMX036

so i think E00000 is right size.

2.Also please tell me how should i set bootcmd and bootargs for version 2.6 as Appro hasn't given any modified bootargs

and what i am using is what i got from the posts of other forums.

 

3.I tried giving the permissions as it is mentioned in the document and regenerated cramfs image and also given write permission to cramfsImage

before installing but still the problem is same.My output is as follows:

IPNC UBL Version: 1.1.0
Platform: DM368

Jumping to entry point at 0x81080000

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

I2C:   ready
DRAM:  128 MB
NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
128 MiB
In:    serial
Out:   serial
Err:   serial
ARM Clock :- 432MHz
DDR Clock :- 340MHz
Ethernet PHY: GENERIC @ 0x01
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x700000, size 0xe00000
Skipping bad block 0x00b80000
 14680064 bytes read: OK

Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000
   Image Name:   Linux-2.6.18_pro500-davinci_IPNC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1865348 Bytes =  1.8 MB
   Load Address: 80008000
   Entry Point:  80008000
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.18_pro500-davinci_IPNC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1865348 Bytes =  1.8 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (mayank@mayank-laptop) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Wed1
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci DM368 IPNC
Memory policy: ECC disabled, Data cache writeback
DaVinci DM0365 variant 0x8
PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000
PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428
PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists.  Total pages: 12288
Kernel command line: mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0
PID hash table entries: 256 (order: 8, 1024 bytes)
Clock event device timer0_0 configured with caps set: 07
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 48MB = 48MB total
Memory: 28196KB available (3193K code, 654K data, 184K 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: 16384K
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 Aug 24 2011 14:20:44 Installing.
SGI XFS with no debug enabled
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
LTT : ltt-facilities init
LTT : ltt-facility-core init in kernel
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
Davinci EMAC MII Bus: probed
MAC address is deadbeaf
TI DaVinci EMAC Linux version updated 4.0
netconsole: not configured, aborting
Linux video capture interface: v2.00
Trying to register davinci display video device.
layer=c2f08000,layer->video_dev=c2f08160
Trying to register davinci display video device.
layer=c2f1be00,layer->video_dev=c2f1bf60
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: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Creating 7 MTD partitions on "nand_davinci.0":
0x00000000-0x00300000 : "bootloader"
0x00300000-0x00500000 : "params"
0x00500000-0x00700000 : "kernel"
0x00700000-0x02700000 : "filesystem"
0x02700000-0x02900000 : "data1"
0x02900000-0x02d00000 : "Calibration"
0x02d00000-0x08000000 : "data2"
nand_davinci nand_davinci.0: hardware revision: 2.3
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 c3866000 using DMA, IRQ 12
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.1
CQ0093 Voice Codec 0.1
asoc: cq93vc <-> davinci-vcif mapping ok
ALSA device list:
  #0: On-chip voice codec (cq93vc)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 05:28:44 (946704524)
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: Complete:
      device=eth0, addr=192.168.1.101, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.101, domain=, nis-domain=(none),
     bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 13992KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 184K
Warning: unable to open an initial console.
CSL: Module install successful, device major num = 253
CSL: Module version 0.10.00, built on Aug 24 2011 14:26:39
I2C: Module install successful, device major num = 252
DMA: Module install successful, device major num = 251
DRV: Module install successful
DRV: Module built on Aug 24 2011 14:26:42
DRV: EDMACC.QUEPRI  = 00000777
DRV: SYSTEM.MSTPRI0 = 00440022
DRV: SYSTEM.MSTPRI1 = 00000244
DRV: ISP.BCR        = 00000002
DRV: SYSTEM.MISC    = 00000391
CMEMK module: built on Aug 24 2011 at 14:26:09
  Reference Linux version 2.6.18
  File /home/mayank/DM36x/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x5000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
cmemk initialized
EDMAK module: built on Aug 24 2011 at 14:26:11
  Reference Linux version 2.6.18
  File /home/mayank/DM36x/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Aug 24 2011 at 14:26:12
  Reference Linux version 2.6.18
  File /home/mayank/DM36x/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
io scheduler deadline registered
io scheduler cfq registered
 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
PPP Deflate Compression module registered
Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)

 

After showing the above output it hangs,i have tried many things but of no help.


Also my printenv is as follows:

bootdelay=4
baudrate=115200
setboot=setenv bootargs $(bootargs)
bootamd=nboot 0x80700000 0 0x500000;bootm
nfshost=10.17.8.125
bootfile=""
rootpath=10.17.8.125:/home/mayank/DM36x/ipnc/target/fifilesys
ethaddr=00:0C:0C:A0:04:05
bootcmd=nand read 0x82000000 0x700000 0xE00000;nboot 0x80700000 0 0x500000;bootm 0x80700000
bootargs=mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0
filesize=DAA000
fileaddr=82000000
ipaddr=10.17.8.131
serverip=10.17.8.125
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.3.4 (Dec  9 2010 - 17:44:14) DM368-IPNC-1.0.1

Environment size: 629/131068 bytes.

 

Also i am directly connecting the lan cable from the camera to my PC and i am not in the network.

 

Thanks and Regards,

Mayank Agarwal.

  • Mayank:

    I am having the same problem with the DM368-IMX036 IPNC camera from Appro and version 2.6.1. Have you solved this problem?

    When I build with the "release" configuration (using the file davinci_dm368_ipnc_defconfig_rel) and write the kernel and filesystem into flash, the boot sequence looks the same as what you showed in your message. The last message is "Loading iSCSI transport class ..." and then nothing else.

    When I build with the "debug" configuration (using the file davinci_dm368_ipnc_defconfig_dbg), write the kernel into flash but boot using an NFS-mounted filesystem, the boot sequence completes. After the "Loading iSCSI transport class ..." message, there is one more "sbulla: unknown partition table" message and then the login prompt appears. I can successfully login as root and I can see that various processes have started successfully.

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

    IPNC UBL Version: 1.1.0
    Platform: DM368

    Jumping to entry point at 0x81080000

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

    I2C:   ready
    DRAM:  128 MB
    NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
    Bad block table found at page 65472, version 0x01
    Bad block table found at page 65408, version 0x01
    128 MiB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 432MHz
    DDR Clock :- 340MHz
    Ethernet PHY: GENERIC @ 0x01
    Hit any key to stop autoboot:  0

    Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000
       Image Name:   Linux-2.6.18_pro500-davinci_IPNC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1865524 Bytes =  1.8 MB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting kernel from Legacy Image at 80700000 ...
       Image Name:   Linux-2.6.18_pro500-davinci_IPNC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1865524 Bytes =  1.8 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (troy@ubuntu) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Fri Sep 2 23:53:02 CDT 2011
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    Machine: DaVinci DM368 IPNC
    Memory policy: ECC disabled, Data cache writeback
    DaVinci DM0365 variant 0x8
    PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000
    PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428
    PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
    Built 1 zonelists.  Total pages: 12288
    Kernel command line: console=ttyS1,115200n8 noinitrd rw root=/dev/nfs nfsroot=192.168.20.142:/home/troy/disk/ipnc_2.6.1/ipnc/target/filesys,nolock mem=48M ip=192.168.20.20:192.168.20.1:192.168.20.1:255.255.255.0 eth=00:0C:0C:A0:06:94
    TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:A0:06:94
    PID hash table entries: 256 (order: 8, 1024 bytes)
    Clock event device timer0_0 configured with caps set: 07
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Memory: 48MB = 48MB total
    Memory: 44580KB available (3193K code, 654K data, 184K init)
    Security Framework v1.0.0 initialized
    Capability LSM initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    DaVinci: 104 gpio irqs
    MUX: initialized GPIO20
    MUX: initialized I2C_SCL
    Generic PHY: Registered new driver
    ch0 default output "COMPOSITE", mode "NTSC"
    VPBE Encoder Initialized
    SCSI subsystem initialized
    NET: Registered protocol family 2
    IP route cache hash table entries: 512 (order: -1, 2048 bytes)
    TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 2048 bind 1024)
    TCP reno registered

     ***davinci_spi_board_init()!<6>
     ***davinci_spi_board_init_End(0)!<5>VFS: Disk quotas dquot_6.5.1
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 3.1 (2006/08/19) Phillip Lougher
    JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
    yaffs Sep  2 2011 23:49:53 Installing.
    SGI XFS with no debug enabled
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    LTT : ltt-facilities init
    LTT : ltt-facility-core init in kernel
    DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
    serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    Davinci EMAC MII Bus: probed
    MAC address is 00:0C:0C:A0:06:94
    TI DaVinci EMAC Linux version updated 4.0
    netconsole: not configured, aborting
    Linux video capture interface: v2.00
    Trying to register davinci display video device.
    layer=c0639000,layer->video_dev=c0639160
    Trying to register davinci display video device.
    layer=c04f0e00,layer->video_dev=c04f0f60
    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: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
    Creating 7 MTD partitions on "nand_davinci.0":
    0x00000000-0x00300000 : "bootloader"
    0x00300000-0x00500000 : "params"
    0x00500000-0x00700000 : "kernel"
    0x00700000-0x02700000 : "filesystem"
    0x02700000-0x02900000 : "data1"
    0x02900000-0x02d00000 : "Calibration"
    0x02d00000-0x08000000 : "data2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    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 c3866000 using DMA, IRQ 12
    rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
    rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)
    rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
    ASoC version 0.13.1
    CQ0093 Voice Codec 0.1
    asoc: cq93vc <-> davinci-vcif mapping ok
    ALSA device list:
      #0: On-chip voice codec (cq93vc)
    IPv4 over IPv4 tunneling driver
    TCP bic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-03 09:52:40 (946893160)
    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: Complete:
          device=eth0, addr=192.168.20.20, mask=255.255.255.0, gw=192.168.20.1,
         host=192.168.20.20, domain=, nis-domain=(none),
         bootserver=192.168.20.1, rootserver=192.168.20.142, rootpath=
    Looking up port of RPC 100003/2 on 192.168.20.142
    Looking up port of RPC 100005/1 on 192.168.20.142
    VFS: Mounted root (nfs filesystem).
    Freeing init memory: 184K
    Warning: unable to open an initial console.
    CSL: Module install successful, device major num = 253
    CSL: Module version 0.10.00, built on Sep  2 2011 23:55:24
    I2C: Module install successful, device major num = 252
    DMA: Module install successful, device major num = 251
    DRV: Module install successful
    DRV: Module built on Sep  2 2011 23:55:28
    DRV: EDMACC.QUEPRI  = 00000777
    DRV: SYSTEM.MSTPRI0 = 00440022
    DRV: SYSTEM.MSTPRI1 = 00000244
    DRV: ISP.BCR        = 00000002
    DRV: SYSTEM.MISC    = 00000391
    CMEMK module: built on Sep  2 2011 at 23:54:51
      Reference Linux version 2.6.18
      File /media/LinuxExt2/ipnc_2.6.1/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    allocated heap buffer 0xc4000000 of size 0x5000000
    CMEM Range Overlaps Kernel Physical - allowing overlap
    CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
    cmemk initialized
    EDMAK module: built on Sep  2 2011 at 23:54:54
      Reference Linux version 2.6.18
      File /media/LinuxExt2/ipnc_2.6.1/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    IRQK module: built on Sep  2 2011 at 23:54:55
      Reference Linux version 2.6.18
      File /media/LinuxExt2/ipnc_2.6.1/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    irqk initialized
    io scheduler deadline registered
    io scheduler cfq registered
     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
    PPP Deflate Compression module registered
    Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
     sbulla: unknown partition table

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

    192.168.20.20 login: root


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

    login[762]: root login  on `console'

    # ps
      PID  Uid     VmSize Stat Command
        1 root        564 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]
       79 root            SW  [pdflush]
       80 root            SW  [pdflush]
       81 root            SW< [kswapd0]
       82 root            SW< [aio/0]
       83 root            SW< [xfslogd/0]
       84 root            SW< [xfsdatad/0]
      176 root            SW  [mtdblockd]
      203 root            SW< [kmmcd]
      218 root            SW< [rpciod/0]
      273 root        404 S < udevd --daemon
      520 root            SWN [jffs2_gcd_mtd4]
      522 root        952 S   ./system_server
      533 root       2296 S   ./av_server.out DM368 NTSC APPRO2A AEWB D1 H264 30000
      650 bin         368 S   /sbin/portmap
      660 root        636 S   /usr/sbin/inetd
      749 root        532 S   ./boa -c /etc
      752 root        488 S   avahi-autoipd: [eth0] sleeping
      753 root        308 S   avahi-autoipd: [eth0] callout dispatcher
      756 root       1208 S   avahi-daemon: running [192.local]
      759 root        512 S   /usr/sbin/avahi-dnsconfd -D
      762 root        852 S   -sh
      765 root        748 R   ps
    #



    However, the camera's web server does not respond when I connect to it from Internet Explorer or from VLC. If I load into flash the pre-built binaries that were provided by Appro, the camera does not have these problems. It boots and behaves normally.

  • Hi Troy,

     

    Thanks for your reply.

    I tried installing the filesystem through nfs but i am facing problems in that too.

    printenv output is:

    bootdelay=4                                                                    
    baudrate=115200                                                                
    setboot=setenv bootargs $(bootargs)                                            
    bootamd=nboot 0x80700000 0 0x500000;bootm                                      
    bootfile=""                                                                    
    ethaddr=00:0C:0C:A0:FF:FA                                                      
    filesize=DCE000                                                                
    fileaddr=82000000                                                              
    bootcmd=nand read 0x82000000 0x700000 0xE00000;nboot 0x80700000 0 0x500000;boot0
    eth=00:0C:0C:A0:07:Ea                                                          
    rootpath=/home/mayank/DM36x/ipnc/target/filesys                                
    bootargs=console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.17M
    serverip=192.168.1.21                                                          
    ipaddr=192.168.1.20                                                            
    nfshost=192.168.1.21                                                           
    stdin=serial                                                                   
    stdout=serial                                                                  
    stderr=serial                                                                  
    ver=U-Boot 1.3.4 (Dec  9 2010 - 17:44:14) DM368-IPNC-1.0.1                     
                                                                                   
    Environment size: 643/131068 bytes

    and when i am booting i am getting the following output:

    bootdelay=4                                                                    
    baudrate=115200                                                                
    setboot=setenv bootargs $(bootargs)                                            
    bootamd=nboot 0x80700000 0 0x500000;bootm                                      
    bootfile=""                                                                    
    ethaddr=00:0C:0C:A0:FF:FA                                                      
    filesize=DCE000                                                                
    fileaddr=82000000                                                              
    bootcmd=nand read 0x82000000 0x700000 0xE00000;nboot 0x80700000 0 0x500000;boot0
    eth=00:0C:0C:A0:07:Ea                                                          
    rootpath=/home/mayank/DM36x/ipnc/target/filesys                                
    bootargs=console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.17M
    serverip=192.168.1.21                                                          
    ipaddr=192.168.1.20                                                            
    nfshost=192.168.1.21                                                           
    stdin=serial                                                                   
    stdout=serial                                                                  
    stderr=serial                                                                  
    ver=U-Boot 1.3.4 (Dec  9 2010 - 17:44:14) DM368-IPNC-1.0.1                     

    and i am getting the Kernel sync error when booting:

    DM368 IPNC :>boot                                                              
                                                                                   
    NAND read: device 0 offset 0x700000, size 0xe00000                             
    Skipping bad block 0x00b80000                                                  
     14680064 bytes read: OK                                                       
                                                                                   
    Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000                           
       Image Name:   Linux-2.6.18_pro500-davinci_IPNC                              
       Image Type:   ARM Linux Kernel Image (uncompressed)                         
       Data Size:    1818408 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:    1818408 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.localdomai1
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                  
    Machine: DaVinci DM368 IPNC                                                    
    Memory policy: ECC disabled, Data cache writeback                              
    DaVinci DM0365 variant 0x8                                                     
    PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000          
    PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428            
    PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000           
    CPU0: D VIVT write-back cache                                                  
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets           
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets             
    Built 1 zonelists.  Total pages: 12288                                         
    Kernel command line: console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nM
    PID hash table entries: 256 (order: 8, 1024 bytes)                             
    Clock event device timer0_0 configured with caps set: 07                       
    Console: colour dummy device 80x30                                             
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)                  
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)                   
    Memory: 48MB = 48MB total                                                      
    Memory: 44672KB 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                                        
    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 Jun 30 2011 15:45:25 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=c0555a00,layer->video_dev=c0555b60                                       
    Trying to register davinci display video device.                               
    layer=c0555800,layer->video_dev=c0555960                                       
    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: 0xf1 (Samsung NAND 128MiB 3,3V 8-b)
    Creating 7 MTD partitions on "nand_davinci.0":                                 
    0x00000000-0x00300000 : "bootloader"                                           
    0x00300000-0x00500000 : "params"                                               
    0x00500000-0x00700000 : "kernel"                                               
    0x00700000-0x02700000 : "filesystem"                                           
    0x02700000-0x02900000 : "data1"                                                
    0x02900000-0x02d00000 : "Calibration"                                          
    0x02d00000-0x08000000 : "data2"                                                
    nand_davinci nand_davinci.0: hardware revision: 2.3                            
    MUX: initialized SPI0_SCLK                                                     
    MUX: initialized SPI0_SDO)                                                     
    dm_spi.0: davinci SPI Controller driver at 0xc3866000 (irq = 42) use_dma=0     
    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 a0
    Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50.
    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                                             
    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-01-01 0)
    IP-Config: No network devices available.                                       
    Looking up port of RPC 100003/2 on 10.17.8.125                                 
    portmap: RPC call returned error 101                                           
    Root-NFS: Unable to get nfsd port number from server, using default            
    Looking up port of RPC 100005/1 on 10.17.8.125                                 
    portmap: RPC call returned error 101                                           
    Root-NFS: Unable to get mountd port number from server, using default          
    mount: RPC call returned error 101                                             
    Root-NFS: Server returned error -101 while mounting /home/mayank/DM36x/ipnc/tars
    VFS: Unable to mount root fs via NFS, trying floppy.                           
    VFS: Cannot open root device "nfs" or unknown-block(2,0)                       
    Please append a correct "root=" boot option                                    
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

     

    Environment size: 643/131068 bytes

    For nfs mount i am following the procedure as given in :

    2.4.4 Booting from Flash Using NFS File System in user guide.

    Thanks and Regards,

    Mayank

     

     

     

     

  • In your case, NFS is failing to mount the root filesystem. Your bootargs variable does not look correct to me. To mount the root filesystem at boot time via NFS, nfsroot should specify the NFS server and its exported filesystem. It should look something like this:

    console=ttyS1,115200n8 noinitrd rw root=/dev/nfs nfsroot=192.168.1.21:/home/mayank/DM36x/ipnc/target/filesys,nolock mem=48M ip=dhcp

  • Mayank,

    One problem with your bootargs is already pointed out by Troy. The other issue i can see from your log is the network interface not being enabled. I think i answered a similar question on another post. We need to use "davinci_dm368_ipnc_defconfig_dbg" kernel defconfig to enable network by default during bootup. Please create a new uImage which has network interface enabled and modify your bootargs to use the right NFS server details. Let us know if you still face issues with the NFS mounting.

    Regards,

    Anshuman

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

  • Whether Mayank's NFS problem has been resolved or not, I'm still having the same problem that he originally described. That is, the camera boots but it is unresponsive. I provided the details in my first response in this thread. Can someone help with that problem?

    Mayank: If you are able to boot using an NFS root filesystem, is your camera working now? Can you access it from a web browser or from VLC? If not, then I suggest that the original problem described in this thread has not been resolved.

  • I am currently trying to resolve this issue as well. Have you had any luck in figuring out what's wrong?

     

    When I did some digging around, it appeared that there were also some things that were not 'in the right place' in the file system. Ie.. some hard paths to binaries that were not right.

     

    Rick

  • I have made some progress. Here are a few observations:

    1. The document "IPNC Reference Design on DM36x, User Guide" says that one can build either a "release" build or a "debug" build (see step 13 in section 3.1.1). To build the release build, copy davinci_dm368_ipnc_defconfig_rel to davinci_dm368_ipnc_defconfig. To build the debug build, copy davinci_dm368_ipnc_defconfig_dbg todavinci_dm368_ipnc_defconfig. However, this is NOT correct. Appro told me to build with the version of davinci_dm368_ipnc_defconfig that was included in the published distribution package. If you compare the various versions of these files, the most significant difference is that the various SPI flags need to be enabled. These include CONFIG_SPI, CONFIG_SPI_MASTER, CONFIG_SPI_DAVINCI, CONFIG_SPI_DAVINCI_DMA, CONFIG_SPI_BITBANG and CONFIG_SPI_SPIDEV.

    2. Appro also advised that to use an NFS filesystem, boot with a NAND-resident root filesystem and then mount an NFS filesystem during the boot sequence or later. To do this, copy the rcS.nfs file to rcS in the /etc/init.d directory. Edit the rcS script to adjust the mount command to refer to the IP address of the NFS server.

    3. The only way I have successfully built a "release" configuration and booted it from NAND using a NAND-resident root filesystem is to use the root userid when unpacking and building the IPNC software. If I use a non-root userid, the kernel and root filesystem images result in a failed boot sequence, as described earlier in this thread. The documentation states that using the root userid is not necessary (see step 14 in section 3.1.1) but it seems to be necessary. It is insufficient to simply re-build everything as root. It must be installed as root and built as root. I have not determined why this is necessary.

  • Troy,

    Thank you very much for the reply. I'm currently working with the DM365 and not the 368, however, I can only surmise that the two code bases are going to be highly similiar.

    I did a 'find . -name rcS.nfs' and got no results, so there is no rcS.nfs file in my build at all. Could I talk you into cutting and pasting the contents of that file here for me? It would be greatly appreciated.

    I really want to use nfs, but if I have to, I'll jsut burn the image into nand and be done with it and see if that gets me a working system.

    Thanks for the checklist, I'll start going through it and trying the things you have noted there. 

    re: item 3, the only thing I can think of off the top of my head is that there might be some setuid things going on that require the code being executed to have root privileges.  There's a lot going on in this camera when it comes up and being the only one working on it here, I have my work cut out for me. Haven't even gotten our boards in yet to load a bootloader onto. THAT will be a whole lot of fun right there as well. :)

    Rick

     

  • We have both DM368 and DM365 IPNC reference design cameras from Appro. My observations about building the code apply to both.

    The rcS, rcS.nfs and rcS.normal files are included in the target filesystem image provided with the SDK (e.g. Application/bin/cramfsImage_ipnc_dm368_IMX036_2.60.01). The Rules.make file defines the TARGET_FS variable. The rcS files should be in $(TARGET_FS)/etc/init.d.