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.

NFS boot of DM365 IPNC-MT5

Hello,

While Booting DM365 IPNC-MT5 from NFS file system,

I am getting following kernel panic as shown below.

Ihave set bootargs for TFTP & NFS boot.

Chip initialization passed!
TI UBL Version: 1.30
Booting Catalog Boot Loader
BootMode = NAND
Starting NAND Copy...
Valid MagicNum found.

 ENTRY POINT = 0x81080000
 NUM PAGES = 0x00000128
 BLOCK = 0x0000000B
 PAGE = 0x00000000
 LOAD ADDRESS = 0x81080000   DONE
Jumping to entry point at 0x81080000.

 DM365_IPNC_UBL_V02

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

I2C:   ready
DRAM:  128 MB
NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3
V 8-bit)
Bad block table found at page 65504, version 0x00
Bad block table found at page 65472, version 0x00
32 MiB
In:    serial
Out:   serial
Err:   serial
ARM Clock :- 297MHz
DDR Clock :- 270MHz
Ethernet PHY: GENERIC @ 0x01
Hit any key to stop autoboot:  0
DM365 IPNC :>setenv ipaddr 10.110.3.91
DM365 IPNC :>setenv serverip 10.110.1.200
DM365 IPNC :>setenv nfshost 10.110.1.200
DM365 IPNC :>setenv rootpath /home/users/Kalpesh/IpNetCam/ipnc/target/filesys_ip
nc
DM365 IPNC :>setenv bootcmd 'tftp 0x80700000 uImage_DM365_IPNC;bootm;'
DM365 IPNC :>setenv bootargs console=ttyS1,115200n8 ip=10.110.3.91:10.110.1.200:
10.110.1.2:255.255.252.0:::off eth=00:0C:0C:A0:02:BE noinitrd rw root=/dev/nfs q
uiet nfsroot=$(nfshost):$(rootpath), nolock mem=60M
DM365 IPNC :>boot
TFTP from server 10.110.1.200; our IP address is 10.110.3.91
Filename 'uImage_DM365_IPNC'.
Load address: 0x80700000
Loading: #################################################################
         ##########################################################
done
Bytes transferred = 1803100 (1b835c hex)
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.18_pro500-davinci_IPNC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1803036 Bytes =  1.7 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

IP-Config: No network devices available.
Root-NFS: Unable to get nfsd port number from server, using default
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -101 while mounting /home/users/Kalpesh/IpNetCam
/ipnc/target/filesys_ipnc
VFS: Unable to mount root fs via NFS, trying floppy.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

can any one suggest me where is the problem???

 

Regards,

Chintan Choksi

  • can you break into u-boot and see if you can ping your host from your target?  You should since TFTP appears to have worked, which means your firewall on your host should be properly set as well.  One other thing to check is your hosts NFS service; make sure is is enabled and that the directory specified by $(rootpath) in you settings above match your host's /etc/exports file settings.

  • Hello,

    I am able to ping to my nfs server.

    Following are the settings in my /etc/exports file.

    /home/users/Kalpesh/IpNetCam/ipnc/target/filesys_ipnc   *(rw,sync,no_root_squash)

    I think there is not any problem with /etc/exports settings..

    I dont know why it is saying "IP-Config: No network devices available".

    Is there any problem with my kernel uImage or the problem in my bootargs????

    Regards,

    Chintan Choksi 

  • your fisrt post had the following

       DM365 IPNC :>setenv rootpath /home/users/Kalpesh/IpNetCam/ipnc/target/filesys_ip

    and your las post stated that your /etc/exports file has

       /home/users/Kalpesh/IpNetCam/ipnc/target/filesys_ipnc   *(rw,sync,no_root_squash)

    first directory path has an additional 'IpNetCam' directory not found on /etc/exports.  If this is true, this could be the source of the issue.

  • No this is not the source of the issue.

    I have given correct path in the bootargs and also in the /etc/exports.

    I think the issue is because of kernel searches for NFS file system before initalization of eth0 driver at boot up.

    You can observe in my first post.

    If i am worng somewhere,please correct me.

    Please guide me. how can i make sure that ethernet driver initializes first at the bootup. 

     

  • It appears you were able to TFTP, so it seems like the network support in u-boot is ok.  Therefore, this sounds like it is eithet a problem with the host's NFS service or the Linux kernel.  What flavor of Linux are you using for your host OS?  Also, which uImage are you running, the pre-built one that came with IPNC, the pre-built one that came with our DVSDK, or one you built yourself?  I am attaching a working boot log on my DM365 EVM (not an IPNC kit) so you can compare to your bootlog (you may want to remove the 'quiet' from your bootargs to see all the log).

  •      I got an same problem with chintan choksi, I runing the pre-built uImage from IPNC,

    this is the default params which can work well with ramdisk boot:

    DM365 IPNC :>print
    bootdelay=4
    baudrate=115200
    bootfile="uImage"
    ethaddr=00:0C:0C:A0:FF:FA
    filesize=BC7000
    fileaddr=82000000
    bootcmd=nand read 0x82000000 0x500000 0xc43000;nboot 0x80700000 0 0x200000;bootm;setenv
    bootargs=mem=60M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M ip=192.168.1.101:
    192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:A0:02:ad
    ipaddr=192.168.1.144
    serverip=192.168.1.237
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Jun 23 2009 - 09:40:19) DM365-IPNC-0.4

     

    and this was I change for NFS boot:

    DM365 IPNC :>print
    bootdelay=4
    baudrate=115200
    bootfile="uImage"
    ethaddr=00:0C:0C:A0:FF:FA
    filesize=BC7000
    fileaddr=82000000
    bootcmd=nand read 0x82000000 0x500000 0xc43000;nboot 0x80700000 0 0x200000;bootm;setenv
    ipaddr=192.168.1.144
    serverip=192.168.1.237
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Jun 23 2009 - 09:40:19) DM365-IPNC-0.4
    bootargs=mem=60M console=ttyS1,115200n8 noinitrd ip=192.168.1.144 root=/dev/nfs rw nfsroot=192.16
    8.1.237:/home/houshiqi/Appro_365/Filesys,nolock

    and got problem as follow:

    Switched to high resolution mode on CPU 0
    IP-Config: No network devices available.
    Looking up port of RPC 100003/2 on 192.168.1.237
    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 192.168.1.237
    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/houshiqi/Appro_365/Filesys
    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)

           I have use DM355, DM365 board before but never used Appro program, so maybe somewhere I made an mistake, please let me know if anything can help me, thanks

     

  • looks like you are using static ips (as opposed to dynamic IPs) in your bootargs (e.g. ip=dhcp for dynamic ips).  I have not tried the short-hand form, but the folloing worked for me on our dm365 EVM

    bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.1.41:192.168.1.40:192.168.1.1:255.255.255.0:::off root=/dev/nfs nfsroot=192.168.1.40:/home/user/dm365/dvsdk_2_10_00_18/filesys,nolock mem=76M

    where 192.168.1.41 = evm ip,

              192.168.1.40 = host ip

              192.168.1.1 = gateway

              255.255.255.0 = netmask

  • Juan:

          I have test that before, and have the same problem as mentioned, and I use the same params on 365EVM board and got passed with an good NFS mounted. so I want to know why I can "ping" and "tftp" well in U-boot which means network device work well, but when I run uImage and mount NFS got an message like "IP-Config: No network devices available"? dose this mean network card haven't start?

  • I am not familiar with IPNC, but it certainly sounds like a kernel difference.  Perhaps they did not enable the network support necessary to do NFS mounts; I would ping them to see exactly whant their network stack consists of and what is supported by hardware.  Seeing how this is an IP  networked camera reference design, there must be some network support in kernel.

  • It is because of the kernel config, you can use the debug version for the kenal config. This issue can be fixed.

    Regards,

    Robin

  • Hello All,

    Finally I found where the problem exists.......

    Ya its in kernel configuration 

    kernel was  configuring  CONFIG_TI_DAVINCI_EMAC as 'm' . It means it was configuring EMAC driver as file system module.So kernel  was searching for FileSystem in the network   before loading the EMAC driver. I have configure it to 'y'. It means it will be preconfigured in the kernel.

    Now my kernel boots properly.

    I guess this is the problem with DM365 IPNC only because i have checked kernel configuration file for Dm365 EVM. In that case CONFIG_TI_DAVINCI_EMAC as 'y'

    Regards,

    Chintan Choksi

  • Hi,

        Do you know how to specify the bootargs of IPNC to configure the framebuffer and the display stand?

        Is it like the evm's configuration

    bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.198.1:/opt/dmsw/MVL401_rootfs,nolock mem=116M video=davincifb:vid0=0:vid1=0:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc

    ?

       Thanks!

  • Hello All

     

    We are facing the same issue with IPNC i.e we are not able to boot using tftp and NFS file system. 

    Did it work by just changing the EMAC driver option? It didnt work for us by just changing the EMAC driver option. 

    Could you share your bootargs so that we can cross verify with your bootargs? Our bootargs are as below.

    setenv bootdelay 4

    setenv baudrate 115200

    setenv bootfile uImage_dm365

    setenv videostd NTSC

    setenv serverip 192.168.1.1

    setenv ipaddr 192.168.1.2

    setenv netmask 255.255.255.0

    setenv ethaddr 00:0C:0C:A0:02:BC

    setenv nfshost 192.168.1.1

    setenv gatewayip 192.168.1.3

    setenv rootpath /mnt/DaVinci/workdir/filesys

    setenv bootcmd 'nboot 0x80700000 0 0x200000; bootm'

    setenv bootargs 'mem=60M console=ttyS1,115200n8 root=/dev/nfs rw noinitrd ip=192.168.1.2 eth=00:0C:0C:A0:02:BC nfsroot=192.168.1.1:/mnt/DaVinci/workdir/filesys,nolock'

    saveenv

    printenv

     

    We get the same error every time we try to boot

    Kernel panic not syncing VFS 

    Please suggest what could be the issue?

     

    With Regards

    Pravin 

     

     

     

     

     

     

  • Pravin,

    Have you modified the uImage on the NAND after you changed the EMAC driver config to "y" instead of "m" in kernel configuration file? Can you please share your log during boot-up?

    Ideally, once you use debug kernel config, it should work fine. Ofcourse you have to use the newly created uImage instead of the one already burnt on IPNC.

    Regards,

    Anshuman

  • Hi Anshuman

    We followed these steps  in the ti-davinci/linux - --- --- folder

    i) make distclean

    ii) make davinci_dm365_ipnc_defconfig_dbg

    iii) make uImage

    The resultant uImage we are transfering to /tftpboot folder and given the above mentioned bootargs.

    We always get kernel panic message "unable to sync VFS".

    Please let me know in case you need any more details.

    With Regards

    Pravin Angolkar

     

  • Pravin,

    Your bootargs show that you are trying to boot from NAND and not from TFTP. So even if you place your uImage in /tftpboot, it is not going to help. You are not using your newly generated uImage to boot.

    Either change bootargs to boot from TFTP or program the uImage on NAND and boot from NAND.

     

    regards,

    Anshuman

  • Hi All,

    I also cound not boot from nfs on DM365 ipnc-MT5.

    According to the Posted by on 25 Sep 2009 12:42 AM , I try to modify lsp_ipnc_dm36x_1.0.0.tgz, configuring  CONFIG_TI_DAVINCI_EMAC to 'y', I also modify File Systems according to seeddsp's dm365 EVM. Then booting as follow,


     DM36x initialization passed!
    TI UBL Version: 1.50
    Booting Catalog Boot Loader
    BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000008.
       DONE
    Jumping to entry point at 0x81080000.

     DM365_IPNC_UBL_V02

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

    I2C:   ready
    DRAM:  128 MB
    NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
    Bad block table found at page 65504, version 0x00
    Bad block table found at page 65472, version 0x00
    32 MiB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 297MHz
    DDR Clock :- 270MHz
    Ethernet PHY: GENERIC @ 0x01
    Hit any key to stop autoboot:  0
    DM365 IPNC :>print
    bootdelay=4
    baudrate=115200
    setboot=setenv bootargs $(bootargs) video=dm36x:output=$(videostd)
    ethaddr=00:0C:0C:A0:02:D7
    filesize=B53000
    fileaddr=82000000
    bootcmd=nand read 0x82000000 0x400000 0xB70000;nboot 0x80700000 0 0x200000;bootm 0x80700000
    nfshost=192.168.1.110
    bootfile=uImagewavep
    bootargs=mem=60M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M ip=192.168.1.168:192.168.1.128:192.168.1.1:255.255.255.0:::ff eth=00:0C:0C:A0:02:9c
    serverip=192.168.1.240
    ipaddr=192.168.1.21
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Aug  5 2009 - 18:21:12) DM365-IPNC-0.6

    Environment size: 595/16380 bytes
    DM365 IPNC :>setenv bootcmd 'tftpboot 0x80700000 uImage_dm365ipnc_20100622_1012;nboot 0x80700000 0 0x200000;bootm 0x80700000'
    DM365 IPNC :>setenv bootargs console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/fage/rdmnts, nolock mem=60M
    DM365 IPNC :>boot
    TFTP from server 192.168.1.240; our IP address is 192.168.1.21
    Filename 'uImage_dm365ipnc_20100622_1012'.
    Load address: 0x80700000
    Loading: #################################################################
             ################################################################
    done
    Bytes transferred = 1881104 (1cb410 hex)

    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:    1803028 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:    1803028 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_1.0 (wenchi@localhost.localdomain) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Tue Sep 1 16:13:22 CST 2009
    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: 135000000
    PLL1: armrate: 297000000, voicerate: 20482758, 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: 15360
    Kernel command line: console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/fage/rdmnts, nolock mem=60M
    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: 60MB = 60MB total
    Memory: 56856KB available (3092K code, 643K 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
    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  1 2009 16:09:23 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=c0589a00,layer->video_dev=c0589b60
    Trying to register davinci display video device.
    layer=c0589800,layer->video_dev=c0589960
    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 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x00080000 : "bootloader"
    0x00080000-0x00200000 : "params"
    0x00200000-0x00400000 : "kernel"
    0x00400000-0x01c00000 : "filesystem1"
    0x01c00000-0x02000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    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:09:36 (946685376)
    Time: timer0_1 clocksource has been installed.
    Clock event device timer0_0 configured with caps set: 08
    Switched to high resolution mode on CPU 0
    IP-Config: No network devices available.
    Looking up port of RPC 100003/2 on 192.168.1.240
    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 192.168.1.240
    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 /opt/dm365ipnc/fage/rdmnts
    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)

    Please suggest what could be the issue?

    Thanks!

  • 1. At first, you can boot IPNC from cramfs, and test you NFS,

         $mount -t nfs -o nolock 192.168.1.240:/opt/dm365ipnc/fage/rdmnts /opt/test

        Only test success, you can do next.

    2. You must set IP address through bootcmd, not use dhcp.

       like this:

          setenv bootargs console=ttyS1,115200n8 noinitrd rw ip=92.168.1.21 gw=192.168.1.xx eth=00:0c:0c:A0:02:b5 root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/fage/rdmnts,nolock mem=60M

     

    Try to do it.

  • Looking at your bootlog, it is clear that the network device is not initialized. Please ensure that you have built the defconfig of the kernel (dm365_ipnc_defconfig_dbg), which enables the ethernet as built-in driver instead of module.

    Which version of IPNC software are you using?

    Regards,

    Anshuman

  • Anshuman,

      NFS configuration is ok.

      I really don't know how to built the defconfig of the kernel. how ?

      Version of IPNC software,  is it mean DVSDK? I use dvsdk_dm365_setuplinux_2_10_01_18.bin.

    Please guide me.

    Regards,

    swinter


  • Hi,

    You are using IPNC-MT5 and hence you would have got IPNC software which has version number for it. For example IPNC ver 1.0, ver 1.1, ver 1.5, ver 1.9 etc...

    Anyways, specifically for the problem of building the debug version, if you are using IPNC software, follow the below steps:

    1. Go <IPNC_REF_DESIGN_FOLDER>/ipnc/ti_davinci/arch/arm/configs/

    2. # mv davinci_dm365_ipnc_defconfig_dbg davinci_dm365_ipnc_defconfig

    3. Go <IPNC_REF_DESIGN_FOLDER>/ipnc

    4. Do complete build steps for lsp (# make lspall)

    5. Copy the uImage generated and use it for TFTP or NAND boot

     

    Regards,

    Anshuman

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

  • Thank you Anshuman,

    You help me a lot, but I still could not boot from nfs.

    Sotfware version is DM365PrivatePackage-1.0-Setup.exe,  Open_src_IPNC_DM365_1.0.0.tgz,  lsp_ipnc_dm36x_1.0.0.tgz, ipnc_app_dm365_open_1.0.0.tgz .

    ///////////////////////////////////////NFS File system installing/////////////////////////////////

    (1)I do it according DM365PrivatePackage\Docs\Users_Guide_IPNC_DM365.pdf(section 2.4), show as picture 1,  so the nfs rootpath is /opt/dm365ipnc/fage/filesys.

     (2) Another way i do it is like that, so the another nfs rootpath is /opt/dm365ipnc/nfs_target.

    # cd /opt/dm365ipnc/
    # mkdir -p nfs_target
    # cd nfs_target
    # cp /opt/dm365ipnc/montavista/pro/devkit/arm/v5t_le/target/* .

    Then I config /etc/exports as follow,

    /opt/nfs *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/nfs *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/nfs_target *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/fage/rdmnt *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/fage/filesys *(rw,no_root_squash,no_all_squash,sync)

    # exportfs -rv

    ////////////////////////////////////// NFS testing/////////////////////////////////////////

    I boot DM365 IPNC MT5 from cramfs, press Ctrl+C from hypertrm,

    # ping 192.168.1.240
    PING 192.168.1.240 (192.168.1.240): 56 data bytes
    64 bytes from 192.168.1.240: icmp_seq=0 ttl=64 time=0.7 ms
    64 bytes from 192.168.1.240: icmp_seq=1 ttl=64 time=0.4 ms

    --- 192.168.1.240 ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 0.4/0.5/0.7 ms
    # cd /mnt
    # mount -t nfs 192.168.1.240:/opt/dm365ipnc/fage/filesys /mnt/mmc
    mount: 192.168.1.240:/opt/dm365ipnc/fage/filesys failed, reason given by server: Permission denied
    # mount -t nfs 192.168.1.240:/opt/dm365ipnc/nfs_target /mnt/mmc
    # ls /mnt/mmc/
    bin    dev    home   media  opt    root   srv    tmp    var
    boot   etc    lib    mnt    proc   sbin   sys    usr
    #

    ////////////////////////////////Modify dm365 ipnc kernel///////////////////

    # tar -zxvf lsp_ipnc_dm36x_xxx.tgz
    # cd ti-davinci\arch\arm\configs
    # mv davinci_dm365_ipnc_defconfig_dbg davinci_dm365_ipnc_defconfig
    # make distclean
    # make davinci_dm365_ipnc_defconfig
    # make uImage

    After built I copy ti-davinci/arch/arm/boot/uImage to /tftpboot and rename it to uImage_dm365ipnc_20100630_1000.

    ///////////////////////////////Boot testing/////////////////////////////////////////////

    Try to boot from TFTP & NFS file system, I use /opt/dm365ipnc/fage/filesys or /opt/dm365ipnc/nfs_target as nfs root path, boot log is similar like that,

     DM36x initialization passed!
    TI UBL Version: 1.50
    Booting Catalog Boot Loader
    BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000008.
       DONE
    Jumping to entry point at 0x81080000.

     DM365_IPNC_UBL_V02

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

    I2C:   ready
    DRAM:  128 MB
    NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
    Bad block table found at page 65504, version 0x00
    Bad block table found at page 65472, version 0x00
    32 MiB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 297MHz
    DDR Clock :- 270MHz
    Ethernet PHY: GENERIC @ 0x01
    Hit any key to stop autoboot:  0
    DM365 IPNC :>setenv bootargs console=ttyS1,115200n8 noinitrd rw ip=92.168.1.21 gw=192.168.1.1

    eth=00:0c:0c:A0:02:b5 root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/fage/filesys,nolock mem=60M
    DM365 IPNC :>
    DM365 IPNC :>setenv bootcmd 'tftpboot 0x80700000 uImage_dm365ipnc_20100630_1000;bootm 0x80700000'
    DM365 IPNC :>
    DM365 IPNC :>boot
    TFTP from server 192.168.1.240; our IP address is 192.168.1.21
    Filename 'uImage_dm365ipnc_20100630_1000'.
    Load address: 0x80700000
    Loading: #################################################################
             #############################################################
    done
    Bytes transferred = 1846824 (1c2e28 hex)
    ## Booting kernel from Legacy Image at 80700000 ...
       Image Name:   Linux-2.6.18_pro500-davinci_IPNC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1846760 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_1.0 (root@vresearch) (gcc 鐗堟湰 4.2.0 (MontaVista 4.2.0-

    16.0.32.0801914 2008-08-30)) #1 PREEMPT Thu Jul 1 09:48:49 CST 2010
    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: 135000000
    PLL1: armrate: 297000000, voicerate: 20482758, 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: 15360
    Kernel command line: console=ttyS1,115200n8 noinitrd rw ip=92.168.1.21 gw=192.168.1.1

    eth=00:0c:0c:A0:02:b5 root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/fage/filesys,nolock mem=60M
    TI DaVinci EMAC: kernel boot params Ethernet address: 00:0c:0c:A0:02:b5
    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: 60MB = 60MB total
    Memory: 56832KB available (3161K code, 630K 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
    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  1 2010 09:46:34 Installing.
    SGI XFS with no debug enabled
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    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:02:b5
    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=c062d000,layer->video_dev=c062d160
    Trying to register davinci display video device.
    layer=c062fe00,layer->video_dev=c062ff60
    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 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x00080000 : "bootloader"
    0x00080000-0x00200000 : "params"
    0x00200000-0x00400000 : "kernel"
    0x00400000-0x01c00000 : "filesystem1"
    0x01c00000-0x02000000 : "filesystem2"
    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 c4066000 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 00:55:45 (946688145)
    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: Guessing netmask 255.0.0.0
    IP-Config: Complete:
          device=eth0, addr=92.168.1.21, mask=255.0.0.0, gw=255.255.255.255,
         host=92.168.1.21, domain=, nis-domain=(none),
         bootserver=255.255.255.255, rootserver=192.168.1.240, rootpath=
    Looking up port of RPC 100003/2 on 192.168.1.240
    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 192.168.1.240
    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 /opt/dm365ipnc/fage/filesys
    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)
     
    ////////////////////////////////////////////////////////////////////////

    It is like EMAC has initializted through boot up, but failed. Now I want to know how to install nfs file system on linux host?

    Please guide me. What should I do? What is wrong with my steps?

    Regards,

    swinter.

  • I am sorry, I check my configuration,  the bootarg is problem. IP is wrong. I use follow string, then I could boot from nfs.

    setenv bootargs console=ttyS1,115200n8 noinitrd rw ip=192.168.1.21 gw=192.168.1.1 eth=00:0c:0c:A0:02:b5 root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/nfs_target,nolock mem=60M

    but i still want to know how to instll nfs file system, because I can not boot from nfs when using root path /opt/dm365ipnc/fage/filesys.

    Thanks,

  • swinter said:
    i still want to know how to instll nfs file system, because I can not boot from nfs when using root path /opt/dm365ipnc/fage/filesys

    Have you copied the filesys folder from the mounted cramfs to any other folder and then used it as NFS root filesystem? I usually mount the cramfs to a local directory say /mnt/mmc and then copy the contents from /mnt/mmc to say /opt/dm365ipnc/fage/filesys, then use it for exporting the network file system on NFS server.

    Regards,

    Anshuman

  • hi please follow the link

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/52262/190925.aspx#190925

    with subject DM365 IPNC setup issues.

    the same NFS problem has been solved and discussed in the post dated 28-06-10.

  • one more thing would like to addthe IP address in ur PC should have a IP similar domain with the camera.

    for example your PC IP is 192.168.17.195 and camera ip id 192.168.1.168 the in TCP IP properties add a temporary ip for ur pc might be 192.168.1.40.

    for your reference below is my boot env.

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

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

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

  •  

    Hi all,
     I use DM365 IPNC-MT5, meeting issues when boot from nfs.
     By the way, I really don't know SW version, maybe is ver1.0.

    ///////////////////////////////////////NFS File system installing/////////////////////////////////

    (1) I do it according DM365PrivatePackage\Docs\Users_Guide_IPNC_DM365.pdf(section 2.4), so the nfs rootpath is /opt/dm365ipnc/rootfs/filesys.

    #cd /opt/dm365ipnc/rootfs
    #mkdir filesys
    #mount -o loop -t cramfs cramfsimage_ipnc_dm365_1.0.0 filesys


    (2) Another way i do it is copying the mount dir as follow, so the another nfs rootpath is /opt/dm365ipnc/rootfs/copyfilesys.

    # cd /opt/dm365ipnc/rootfs
    # mkdir copyfilesys
    # cd copyfilesys
    # cp cp -a /opt/dm365ipnc/rootfs/filesys/* .

    But I get some warning here,
    root@vresearch:/opt/dm365ipnc/rootfs/copyfilesys# cp -a /opt/dm365ipnc/rootfs/filesys/* .
    cp: will not create hard link `./etc/dhcpc' to directory `./dev/pts'
    cp: will not create hard link `./etc/hotplug/pci' to directory `./dev/pts'
    cp: will not create hard link `./etc/hotplug/usb' to directory `./dev/pts'
    cp: will not create hard link `./etc/network/if-down.d' to directory `./dev/pts'
    cp: will not create hard link `./etc/network/if-post-down.d' to directory `./dev/pts'
    cp: will not create hard link `./etc/network/if-pre-up.d' to directory `./dev/pts'
    cp: will not create hard link `./etc/network/if-up.d' to directory `./dev/pts'
    cp: will not create hard link `./etc/udhcpc' to directory `./dev/pts'
    cp: will not create hard link `./lib/udev/devices' to directory `./dev/pts'
    cp: will not create hard link `./mnt/mmc' to directory `./dev/pts'
    cp: will not create hard link `./mnt/nand' to directory `./dev/pts'
    cp: will not create hard link `./mnt/ramdisk' to directory `./dev/pts'
    cp: will not create hard link `./proc' to directory `./dev/pts'
    cp: will not create hard link `./sys' to directory `./dev/pts'
    cp: will not create hard link `./tmp' to directory `./dev/pts'
    cp: will not create hard link `./var/log/hotplug' to directory `./dev/pts'
    cp: will not create hard link `./var/run/usb' to directory `./dev/pts'
    root@vresearch:/opt/dm365ipnc/rootfs/copyfilesys#

    Then I config /etc/exports as follow,
    /opt/nfs *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/nfs *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/nfs_target *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/rootfs/filesys *(rw,no_root_squash,no_all_squash,sync)
    /opt/dm365ipnc/rootfs/copyfilesys *(rw,no_root_squash,no_all_squash,sync)

    # exportfs -rv

    /////////////////////////////////
    ////////////////////////////////////// Flash boot log/////////////////////////////////////////
    I boot from cramfs on the flash, all setting is default, log is here.

    DM36x initialization passed!
    TI UBL Version: 1.50
    Booting Catalog Boot Loader
    BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000008.
       DONE
    Jumping to entry point at 0x81080000.

     DM365_IPNC_UBL_V02

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

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

    NAND read: device 0 offset 0x400000, size 0xb70000
     11993088 bytes read: OK

    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:    1803028 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:    1803028 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_1.0 (wenchi@localhost.localdomain) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Tue Sep 1 16:13:22 CST 2009
    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: 135000000
    PLL1: armrate: 297000000, voicerate: 20482758, 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: 15360
    Kernel command line: mem=60M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M ip=192.168.1.168:192.168.1.128:192.168.1.1:255.255.255.0:::ff eth=00:0C:0C:A0:02:9c
    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: 60MB = 60MB total
    Memory: 43544KB available (3092K code, 643K 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: 13312K
    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
    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  1 2009 16:09:23 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=c32daa00,layer->video_dev=c32dab60
    Trying to register davinci display video device.
    layer=c32da800,layer->video_dev=c32da960
    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 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x00080000 : "bootloader"
    0x00080000-0x00200000 : "params"
    0x00200000-0x00400000 : "kernel"
    0x00400000-0x01c00000 : "filesystem1"
    0x01c00000-0x02000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    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
    IP-Config: No network devices available.
    RAMDISK: cramfs filesystem found at block 0
    RAMDISK: Loading 11596KiB [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 Sep  8 2009 14:36:55
    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  8 2009 14:36:59
    DRV: EDMACC.QUEPRI  = 00000777
    DRV: SYSTEM.MSTPRI0 = 00550011
    DRV: SYSTEM.MSTPRI1 = 00000444
    DRV: ISP.BCR        = 00000002
    CMEMK module: built on Sep  1 2009 at 16:16:07
      Reference Linux version 2.6.18
      File /home/wenchi/software/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    ioremap_nocache(0x83c00000, 71303168)=0xc5000000
    allocated heap buffer 0xc5000000 of size 0x4400000
    cmem initialized 0 pools between 0x83c00000 and 0x88000000
    CMEM Range Overlaps Kernel Physical - allowing overlap
    CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83c00000)
    ioremap_nocache(0x1000, 28672)=0xc4068000
    no remaining memory for heap, no heap created for memory block 1
    cmem initialized 1 pools between 0x1000 and 0x8000
    EDMAK module: built on Sep  1 2009 at 16:16:10
      Reference Linux version 2.6.18
      File /home/wenchi/software/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    IRQK module: built on Sep  1 2009 at 16:16:11
      Reference Linux version 2.6.18
      File /home/wenchi/software/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    irqk initialized
    Creat queue id:0
    queue id:0
    Creat queue id:32769
    queue id:32769
    IPNC_1.0 (wenchi@localhost.localdomain) (gcc version 4.2.0 (Mon
    Creat queue id:65538
    queue id:65538
    queue id:32769
    queue id:65538

     DEMOCFG Value: 1

    nVideocodecmode = 2
    nVideocodecres = 1
    ./av_server.out AEWB FD OSD 3MP MJPEG 50 MENUOFF &
    Check_device_version : DEVICE VER = 1 !!

     AVSERVER UI: Initializing.

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

    DRV_SyncRst: module = 47, domain = 0, state = 3
    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)
     
     CLK Hz,
     ARM   Hz =  297000000
     DDR   Hz =  270000000
     VPSS  Hz =  270000000
     IMCOP Hz =  270000000
     
     DRV LDC: GetConfig 0004 0x0
    Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file system
     AVSERVER UI: Starting in mode 7
    Starting hotplug subsystem:
       pci    
    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

     Default IconDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
     layer->layer_info.config.line_length= 640
     TI Logo

     Default Icon TI Logo

     DM365MM Init Successful ALG: ImgEnc: XDM_GETBUFINFO: min in bufs:2 buf(0):3145728 buf(1):1572864
     STREAM: Ext 0: 0x0
     STREAM: Ext 1: 2048x1536
    Creat queue id:98307
    queue id:98307
    IPNC_1.0 (wenchi@localhost.localdomain) (gcc version 4.2.0 (Mon
    IPNC AUTO_IRIS = 1 #####################
    AUDIO : period size = 1000 frames
    AUDIO : period time = 125000 us
    queue id:65538
    ApproDrvInit: 7
    queue id:98307

    FeatureMask: NONE.

    FeatureMask: NONE.
       pci      [success]
       usb    
     ALG: ImgEnc: XDM_GETBUFINFO: min in bufs:2 buf(0):3145728 buf(1):1572864
    APPRO AEW TRIAL VERSION !!!
    APPRO AEW DATE LINE 2010/6
       usb      [success]
       isapnp 
       isapnp   [success]
       ide    
       ide      [success]
       input  
       input    [success]
       scsi   
    numid=2,iface=MIXER,name='Mono DAC Playback Volume'
      ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
      : values=32
       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:02:9c
     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:02:9c
    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 c40f8000 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 386d4391, no volume label.
    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
    INIT: Entering runlevel: 3
    ApproDrvInit: 3
    queue id:98307
    queue id:0
    queue id:32769
    queue id:0
    [01/Jan/2000:00:00:1system_server/506[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196
    9 +0000] boa: server version Boa/0.94.13
    [01/Jan/2000:00:00:19 +0000] boa: server built Sep  8 2009 at 14:38:36.
    [01/Jan/2000:00:00:19 +0000] boa: starting server pid=766, port 80
    UDPString=uuid:Upnp-TVEmulator-1_0-00_0063085780</UDN>

    Upnp port is 0
    UPnP Initialized OK ip=192.168.1.168, port=49152
    desc_doc_url = http://192.168.1.168/tvdevicedesc.xml
    ApproDrvInit: 2
    queue id:98307
    Initializing...
    ApproDrvInit: 6
    queue id:98307
    ApproDrvInit: 8
    queue id:98307
    ApproDrvInit: 9
    queue id:98307
    Initializing...
    ApproDrvInit: 10
    queue id:98307
    Initializing...
    Initializing...
    error code = 0
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8557/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8556/h264
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8554/mpeg4
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168/mpeg4
    Initializing...
    ...done initializing
    Play this stream using the URL:
            rtsp://192.168.1.168:8555/mjpeg

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

    (none) login: device advertisement succeed.
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!
    Audio disabled!

     Module   | Avg Time/Frame | Frame-rate | Total time | Total Frames |
     CAPTURE  |          66.55 |      15.03 |      30013 |          451 |
     ENCODE0  |          52.92 |      18.89 |      23816 |          450 |
     STREAM   |           1.35 |     741.35 |        607 |          450 |
     FACE.D   |          11.57 |      86.41 |       5208 |          450 |
     AEWB     |           1.24 |     807.55 |        556 |          449 |


     Module   | Avg Time/Frame | Frame-rate | Total time | Total Frames |
     CAPTURE  |          66.61 |      15.01 |      60084 |          902 |
     ENCODE0  |          52.59 |      19.01 |      47386 |          901 |
     STREAM   |           1.34 |     744.63 |       1210 |          901 |
     FACE.D   |          11.56 |      86.53 |      10412 |          901 |
     AEWB     |           1.19 |     837.99 |       1074 |          900 |


    /////////////////////////////////
    ////////////////////////////////////// NFS boot log/////////////////////////////////////////
    Booting from cramfs is ok, but if I boot from nfs, using rootpath /opt/dm365ipnc/rootfs/copyfilesys, the boot log is here,


    DM36x initialization passed!
    TI UBL Version: 1.50
    Booting Catalog Boot Loader
    BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000008.
       DONE
    Jumping to entry point at 0x81080000.

     DM365_IPNC_UBL_V02

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

    I2C:   ready
    DRAM:  128 MB
    NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
    Bad block table found at page 65504, version 0x00
    Bad block table found at page 65472, version 0x00
    32 MiB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 297MHz
    DDR Clock :- 270MHz
    Ethernet PHY: GENERIC @ 0x01
    Hit any key to stop autoboot:  0
    DM365 IPNC :>setenv bootcmd 'tftpboot 0x80700000 uImage_dm365ipnc_20100630_1000;bootm 0x80700000'
    DM365 IPNC :>setenv bootargs console=ttyS1,115200n8 noinitrd rw ip=192.168.1.21 gw=192.168.1.1 eth=00:0c:0c:A0:02:b5 root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/rootfs/copyfilesys,nolock mem=60M
    DM365 IPNC :>print
    bootdelay=4
    baudrate=115200
    setboot=setenv bootargs $(bootargs) video=dm36x:output=$(videostd)
    ethaddr=00:0C:0C:A0:02:D7
    filesize=B53000
    fileaddr=82000000
    nfshost=192.168.1.110
    bootfile=uImagewavep
    serverip=192.168.1.240
    ipaddr=192.168.1.21
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Aug  5 2009 - 18:21:12) DM365-IPNC-0.6
    bootcmd=tftpboot 0x80700000 uImage_dm365ipnc_20100630_1000;bootm 0x80700000
    bootargs=console=ttyS1,115200n8 noinitrd rw ip=192.168.1.21 gw=192.168.1.1 eth=00:0c:0c:A0:02:b5 root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/rootfs/copyfilesys,nolock mem=60M

    Environment size: 597/16380 bytes
    DM365 IPNC :>boot
    TFTP from server 192.168.1.240; our IP address is 192.168.1.21
    Filename 'uImage_dm365ipnc_20100630_1000'.
    Load address: 0x80700000
    Loading: #################################################################
             #############################################################
    done
    Bytes transferred = 1846824 (1c2e28 hex)
    ## Booting kernel from Legacy Image at 80700000 ...
       Image Name:   Linux-2.6.18_pro500-davinci_IPNC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1846760 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_1.0 (root@vresearch) (gcc 版本 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Thu Jul 1 09:48:49 CST 2010
    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: 135000000
    PLL1: armrate: 297000000, voicerate: 20482758, 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: 15360
    Kernel command line: console=ttyS1,115200n8 noinitrd rw ip=192.168.1.21 gw=192.168.1.1 eth=00:0c:0c:A0:02:b5 root=/dev/nfs nfsroot=192.168.1.240:/opt/dm365ipnc/rootfs/copyfilesys,nolock mem=60M
    TI DaVinci EMAC: kernel boot params Ethernet address: 00:0c:0c:A0:02:b5
    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: 60MB = 60MB total
    Memory: 56832KB available (3161K code, 630K 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
    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  1 2010 09:46:34 Installing.
    SGI XFS with no debug enabled
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    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:02:b5
    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=c065f000,layer->video_dev=c065f160
    Trying to register davinci display video device.
    layer=c0599e00,layer->video_dev=c0599f60
    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 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x00080000 : "bootloader"
    0x00080000-0x00200000 : "params"
    0x00200000-0x00400000 : "kernel"
    0x00400000-0x01c00000 : "filesystem1"
    0x01c00000-0x02000000 : "filesystem2"
    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 c4066000 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 00:10:01 (946685401)
    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: Guessing netmask 255.255.255.0
    IP-Config: Complete:
          device=eth0, addr=192.168.1.21, mask=255.255.255.0, gw=255.255.255.255,
         host=192.168.1.21, domain=, nis-domain=(none),
         bootserver=255.255.255.255, rootserver=192.168.1.240, rootpath=
    Looking up port of RPC 100003/2 on 192.168.1.240
    Looking up port of RPC 100005/1 on 192.168.1.240
    VFS: Mounted root (nfs filesystem).
    Freeing init memory: 184K
    INIT: version 2.86 booting
    grep: /proc/mounts: No such file or directory
    grep: /proc/filesystems: No such file or directory
    udev requires a mounted procfs, not started.
     failed!
    grep: /proc/mounts: No such file or directory
    grep: /proc/filesystems: No such file or directory
    killall: unable to open `/proc': No such file or directory
    killall: unable to open `/proc': No such file or directory
    ERROR: Removing 'csl': No such file or directory
    ERROR: Removing 'drv': No such file or directory
    ERROR: Removing 'cmemk': No such file or directory
    ERROR: Removing 'irqk': No such file or directory
    ERROR: Removing 'edmak': No such file or directory
    ERROR: Removing 'dm365mmap': No such file or directory
    csl: disagrees about version of symbol struct_module
    ERROR: Removing 'csl': No such file or directory
    insmod: cannot insert `./csl.ko': Invalid module format (-1): Exec format error
    drv: disagrees about version of symbol struct_module
    ERROR: Removing 'drv': No such file or directory
    insmod: cannot insert `./drv.ko': Invalid module format (-1): Exec format error
    awk: /proc/devices: No such file or directory
    BusyBox v1.2.2 (2007.03.11-00:56+0000) multi-call binary

    Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR

    Create a special file (block, character, or pipe).

    Options:
            -m      create the special file using the specified mode (default a=rw)

    TYPEs include:
            b:      Make a block (buffered) device
            c or u: Make a character (un-buffered) device
            p:      Make a named pipe. MAJOR and MINOR are ignored for named pipes

    awk: /proc/devices: No such file or directory
    cmemk: disagrees about version of symbol struct_module
    BusyBox v1.2.2 (2007.03.11-00:56+0000) multi-call binary

    Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR

    Create a special file (block, character, or pipe).

    Options:
            -m      create the special file using the specified mode (default a=rw)

    TYPEs include:
            b:      Make a block (buffered) device
            c or u: Make a character (un-buffered) dedmak: disagrees about version of symbol struct_module
    evice
            p:      Make a named pipe. MAJOR and MINOR are ignored for named pipes

    insmod: cannot insert `cmemk.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `edmak.ko': Invalid module format (-1): Exec format error
    irqk: disagrees about version of symbol struct_module
    dm365mmap: disagrees about version of symbol struct_module
    insmod: cannot insert `irqk.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `dm365mmap.ko': Invalid module format (-1): Exec format error
    ln: rtc: File exists
    mount: mount point /mnt/nand does not exist
    Creat queue id:0
    queue id:0
    Creat queue id:32769
    queue id:32769
    Gio: Error
    read device error !! gio = 79
    Error: Platform_check fail
    queue id:32769
    Creat queue id:65538
    queue id:65538
    FileMng: Error Can't create system file
    Kill queue id:32769
    FileMsgDrv: Error
    Data read error
    Can't get system info!!
    FileMsgDrv: Error
    Data read error
    Starting mounting local filesystems: mount warning: can't open /etc/mtab: No such file or directory
    mount: mount point /dev/shm does not exist
    none on /var/run type tmpfs (rw)
    mount: mount point /tmp does not exist
     failed (96: ).
    Setting up networking ....
    Kernel hotplug support not enabled.
    Starting portmap daemon: portmapportmap: fork: No such devicepidof[313]: cannot opendir(/proc)
    .
    Starting internet superserver: inetdcrc_ccitt: disagrees about version of symbol struct_module
    inetd: daemon: No such device
    .
    insmod: cannot insert `/opt/ipnc/modules/crc-ccitt.ko': Invalid module format (-1): Exec format error
    libcrc32c: disagrees about version of symbol struct_module
    deadline_iosched: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/libcrc32c.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/deadline-iosched.ko': Invalid module format (-1): Exec format error
    cfq_iosched: disagrees about version of symbol struct_module
    i2c_emac: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/cfq-iosched.ko': Invalid module format (-1): Exec format error
    cat: /proc/cmdline: No such file or directory
    insmod: cannot insert `/opt/ipnc/modules/i2c-emac.ko': Invalid module format (-1): Exec format error
    sbull: disagrees about version of symbol struct_module
    crc32c: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/sbull.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/crc32c.ko': Invalid module format (-1): Exec format error
    deflate: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/deflate.ko': Invalid module format (-1): Exec format error
    des: disagrees about version of symbol struct_module
    md5: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/des.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/md5.ko': Invalid module format (-1): Exec format error
    sha1: disagrees about version of symbol struct_module
    nls_ascii: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/sha1.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/nls_ascii.ko': Invalid module format (-1): Exec format error
    nls_utf8: disagrees about version of symbol struct_module
    exportfs: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/nls_utf8.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/exportfs.ko': Invalid module format (-1): Exec format error
    nfsd: disagrees about version of symbol struct_module
    loop: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/nfsd.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/loop.ko': Invalid module format (-1): Exec format error
    tun: disagrees about version of symbol struct_module
    slhc: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/tun.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/slhc.ko': Invalid module format (-1): Exec format error
    netconsole: disagrees about version of symbol struct_module
    ppp_generic: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/netconsole.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/ppp_generic.ko': Invalid module format (-1): Exec format error
    ppp_synctty: disagrees about version of symbol struct_module
    ppp_async: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/ppp_synctty.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/ppp_async.ko': Invalid module format (-1): Exec format error
    ppp_deflate: disagrees about version of symbol struct_module
    davinci_emac: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/ppp_deflate.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/davinci_emac.ko': Invalid module format (-1): Exec format error
    mmc_core: disagrees about version of symbol struct_module
    mmc_block: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/mmc_core.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/mmc_block.ko': Invalid module format (-1): Exec format error
    davinci_mmc: disagrees about version of symbol struct_module
    usbcore: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/davinci-mmc.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/usbcore.ko': Invalid module format (-1): Exec format error
    musb_hdrc: disagrees about version of symbol struct_module
    usbmon: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/musb_hdrc.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/usbmon.ko': Invalid module format (-1): Exec format error
    scsi_transport_iscsi: disagrees about version of symbol struct_module
    libiscsi: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/scsi_transport_iscsi.ko': Invalid module format (-1): Exec format error
    insmod: cannot insert `/opt/ipnc/modules/libiscsi.ko': Invalid module format (-1): Exec format error
    iscsi_tcp: disagrees about version of symbol struct_module
    sbull: disagrees about version of symbol struct_module
    insmod: cannot insert `/opt/ipnc/modules/iscsi_tcp.ko': Invalid module format (-1): Exec format error
    warning: can't open /etc/mtab: No such file or directory
    umount: /mnt/ramdisk: not found
    ERROR: Removing 'sbull': No such file or directory
    insmod: cannot insert `sbull.ko': Invalid module format (-1): Exec format error
    mkdosfs 2.11 (12 Mar 2005)
    /dev/sbulla: No such file or directory
    mount: special device /dev/sbulla does not exist
    killall: unable to open `/proc': No such file or directory
    INIT: Entering runlevel: 3
    ApproDrvInit: 3
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'

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

    192.168.1.21 login:

    /////////////////////////////////
    ////////////////////////////////////// Question/////////////////////////////////////////

     I could not boot from nfs using rootpath /opt/dm365ipnc/rootfs/filesys(I even could not mount it on linux host), I copy filesystem from mount, then meet a lot of errors(see NFS boot log), as I see it, booting from nfs using /opt/dm365ipnc/rootfs/copyfilesys should autostart applications normally, How do deal with it? Please guide me.


    Regards,

    swinter

  • Hi swinter,

    have you referred the discussions made by me while i was doing the same.

    kindly follow this link below

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/52262/190925.aspx#190925

    you will find all the problems related to NFS on IPNC and the solutions too are discissed.

  • Oh yes,

    The problem is just solved yesterday,  installing the filesystem is like this,

    a. Copy cramfsImage_ipnc_dm36x_xxx to /home/<useracct>/ in your Linux desktop 
        b. Go to working directory and create a new directory to mount file system
                #cd <Filesystem Mount Directory>
                #mkdir filesys
                #mkdir rdmnt2
        c. Mount the file system using following command:
                #mount -t cramfs -o loop cramfsImage_ipnc_dm36x_xxx rdmnt2/
                #cd rdmnt2
                #tar -cf  - . | tar -C ../filesys/ -xpf –

    And then make sysall the dvsdk &app, built the dbg kernel and boot from nfs, all is ok!