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.

IPNC v5.1根文件系统解压,软链接指向绝对路径

Other Parts Discussed in Thread: TVP5146, TSC2004, THS7303

大家好!我使用的是IPNC V5.1软件包,为什么我解压出来的根文件系统的软链接指向的是绝对路径?有没有利用NFS挂载根文件系统的,能否为小弟解答一下,非常感谢!!!!!!!

  • 你好;

    ipnc v5.1的版本,这么高的版本,这个是新出来的吗?

  • 可以使用nfs挂载文件系统

    需要修改uboot参数bootargs

  • 所有的参数都设置好了 ,能挂载最简根文件系统。就是APRRO IPNC V5.1的根文件系统解压出来后多链接都是这样的:

    lrwxrwxrwx  1   40502 root      12  5月 17  2013 linuxrc -> /bin/busybox

    lrwxrwxrwx 1 40502 root     13  5月 17  2013 lsmod -> /bin/lsmod.26

    lrwxrwxrwx 1 40502 root     17  5月 17  2013 ip -> /sbin/ip.iproute2

    。。。。。。。。。

    而正常情况下应该是这样的:

    lrwxrwxrwx 1 longwei longwei       11  5月  4 17:55 linuxrc -> bin/busybox

    lrwxrwxrwx 1 longwei longwei    14  5月  4 17:55 zcip -> ../bin/busybox




  • 没有获取到 ipnc v5.1的开发包;

    但是在IPNC rdk v3.8中文件系统的系统命令链接都是正常的

    lrwxrwxrwx 1 40502 root      7 12月 10  2012 cat -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 chattr -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 chgrp -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 chmod -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 chown -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 cp -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 cpio -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 date -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 dd -> busybox
    lrwxrwxrwx 1 40502 root      9 12月 10  2012 delgroup -> tinylogin
    lrwxrwxrwx 1 40502 root      9 12月 10  2012 deluser -> tinylogin
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 df -> busybox
    lrwxrwxrwx 1 40502 root      7 12月 10  2012 dmesg -> busybox
  • IPNC V5.1 适配DM36x

    IPNC V3.8 适配DM38x 以及 DM812x

    另外解压IPNC v5.1跟文件系统没有遇到类似问题。下图是在ubuntu服务器中所看到的情况,你是在板子上看的还是在服务器上看的?

    另外,你在实际NFS运行中是否有遇到什么问题或困难呢?

  • 你好!

    这是我的ubuntu下的截图:

    实际使用NFS挂载文件系统运行的时候,是这样的:

    Starting kernel ...                                                             
                                                                                    
    Linux version 2.6.37_IPNC_DM365EVM_5.1.0 (longwei@123456) (gcc version 4.3.3 (G5
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                   
    CPU: VIVT data cache, VIVT instruction cache                                    
    Machine: DaVinci DM36x EVM                                                      
    Memory policy: ECC disabled, Data cache writeback                               
    DaVinci dm36x_rev1.2 variant 0x8                                                
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192      
    Kernel command line: mem=48M console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/df
    TI DaVinci EMAC: kernel boot params Ethernet address: 00:0e:99:02:c0:cf         
    PID hash table entries: 256 (order: -2, 1024 bytes)                             
    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: 43740k/43740k available, 5412k reserved, 0K highmem                     
    Virtual kernel memory layout:                                                   
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)                               
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                               
        DMA     : 0xff000000 - 0xffe00000   (  14 MB)                               
        vmalloc : 0xc3800000 - 0xfea00000   ( 946 MB)                               
        lowmem  : 0xc0000000 - 0xc3000000   (  48 MB)                               
        modules : 0xbf000000 - 0xc0000000   (  16 MB)                               
          .init : 0xc0008000 - 0xc002d000   ( 148 kB)                               
          .text : 0xc002d000 - 0xc0475000   (4384 kB)                               
          .data : 0xc0476000 - 0xc04a7000   ( 196 kB)                               
    SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1         
    Preemptable hierarchical RCU implementation.                                    
            RCU-based detection of stalled CPUs is disabled.                        
            Verbose stalled-CPUs detection is disabled.                             
    NR_IRQS:245                                                                     
    Console: colour dummy device 80x30                                              
    Calibrating delay loop (skipped) preset value.. 147.86 BogoMIPS (lpj=739328)    
    pid_max: default: 32768 minimum: 301                                            
    Mount-cache hash table entries: 512                                             
    CPU: Testing write buffer coherency: ok                                         
    DaVinci: 8 gpio irqs                                                            
    NET: Registered protocol family 16                                              
    EVM: HD imager video input                                                      
    bio: create slab <bio-0> at 0                                                   
    SCSI subsystem initialized                                                      
    usbcore: registered new interface driver usbfs                                  
    usbcore: registered new interface driver hub                                    
    usbcore: registered new device driver usb                                       
    vpss vpss: dm365_vpss vpss probed                                               
    vpss vpss: dm365_vpss vpss probe success                                        
    Advanced Linux Sound Architecture Driver Version 1.0.23.                        
    cfg80211: Calling CRDA to update world regulatory domain                        
    Switching to clocksource timer0_1                                               
    NET: Registered protocol family 2                                               
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                  
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)                
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)                        
    TCP: Hash tables configured (established 2048 bind 2048)                        
    TCP reno registered                                                             
    UDP hash table entries: 256 (order: 0, 4096 bytes)                              
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                         
    NET: Registered protocol family 1                                               
    RPC: Registered udp transport module.                                           
    RPC: Registered tcp transport module.                                           
    RPC: Registered tcp NFSv4.1 backchannel transport module.                       
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).                        
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.                            
    msgmni has been set to 85                                                       
    io scheduler noop registered (default)                                          
    CSL: Module install successful, device major num = 254                          
    CSL: Module version 0.10.00, built on Jun 23 2015 15:59:09                      
    I2C: Module install successful, device major num = 253                          
    DMA: Module install successful, device major num = 252                          
    EVM: switch to tvp5146 SD video input                                           
    DRV: Sensor interface selected on DM365 EVM                                     
    DRV: Module install successful                                                  
    DRV: Module built on Jun 23 2015 15:59:10                                       
    DRV: EDMACC.QUEPRI  = 00002777                                                  
    DRV: SYSTEM.MSTPRI0 = 00440011                                                  
    DRV: SYSTEM.MSTPRI1 = 00000444                                                  
    DRV: ISP.BCR        = 00000002                                                  
    DRV: SYSTEM.MISC    = 00000399                                                  
    EDMAK module: built on Jun 23 2015 at 15:58:46                                  
      Reference Linux version 2.6.37                                                
      File /home/longwei/working/IPNC_RDK_DM36x_V5.1.0/Source/dvsdk_ipnctools/linuxc
    IRQK module: built on Jun 23 2015 at 15:58:45                                   
      Reference Linux version 2.6.37                                                
      File /home/longwei/working/IPNC_RDK_DM36x_V5.1.0/Source/dvsdk_ipnctools/linuxc
    irqk initialized                                                                
    CMEMK module: built on Jun 23 2015 at 15:58:43                                  
      Reference Linux version 2.6.37                                                
      File /home/longwei/working/IPNC_RDK_DM36x_V5.1.0/Source/dvsdk_ipnctools/linuxc
    allocated heap buffer 0xc4000000 of size 0x5000000                              
    CMEM Range Overlaps Kernel Physical - allowing overlap                          
    CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)             
    cmemk initialized                                                               
    Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled                        
    serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A                    
    console [ttyS0] enabled                                                         
    serial8250 serial8250.0: unable to register port at index 1 (IO0 MEM1d06000 IRQ2
    brd: module loaded                                                              
    at24 1-0050: 32768 byte 24c256 EEPROM (writable)                                
    Read MAC addr from EEPROM: 00:0e:99:02:cf:a8                                    
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron )                     
    2 NAND chips detected                                                           
    Creating 12 MTD partitions on "davinci_nand.0":                                 
    0x000000000000-0x000000700000 : "bootloader"                                    
    0x000000700000-0x000000780000 : "descriptions"                                  
    0x000000780000-0x000000800000 : "parameters"                                    
    0x000000800000-0x000000a00000 : "system_file"                                   
    0x000000a00000-0x000000e00000 : "safe_kernel"                                   
    0x000000e00000-0x000002e00000 : "safe_rootfs"                                   
    0x000002e00000-0x000003200000 : "kernel"                                        
    0x000003200000-0x000005200000 : "rootfs"                                        
    0x000005200000-0x000005a00000 : "opt"                                           
    0x000005a00000-0x000005e00000 : "log"                                           
    0x000005e00000-0x000006000000 : "cfg"                                           
    0x000006000000-0x000008000000 : "data"                                          
    davinci_nand davinci_nand.0: controller rev. 2.3                                
    spi_davinci spi_davinci.0: Controller at 0xfec66000                             
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.4                          
    davinci_mdio davinci_mdio.0: detected phy mask fffffffc                         
    davinci_mdio.0: probed                                                          
    davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown                
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown                
    console [netcon0] enabled                                                       
    netconsole: network logging started                                             
    mice: PS/2 mouse device common for all mice                                     
    tsc2004: probe of 1-0049 failed with error -121                                 
    input: DM365 EVM Controls as /devices/platform/i2c_davinci.1/i2c-1/1-0025/input0
    i2c /dev entries driver                                                         
    Linux media interface: v0.10                                                    
    lirc_dev: IR Remote Control driver registered, major 246                        
    IR NEC protocol handler initialized                                             
    IR RC5(x) protocol handler initialized                                          
    IR RC6 protocol handler initialized                                             
    IR JVC protocol handler initialized                                             
    IR Sony protocol handler initialized                                            
    IR RC5 (streamzap) protocol handler initialized                                 
    IR LIRC bridge handler initialized                                              
    Linux video capture interface: v2.00                                            
    vpbe-osd vpbe-osd: OSD sub device probe success                                 
    vpbe-venc vpbe-venc: VENC sub device probe success                              
    vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered                                
    ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)                         
    write byte data failed                                                          
    vpbe-v4l2 vpbe-v4l2: v4l2 sub device ths7303 registered                         
    Setting default output to Composite                                             
    Setting default mode to ntsc                                                    
    vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.                    
    vpbe-v4l2 vpbe-v4l2: layer=c29b5800,layer->video_dev=c29b58f4                   
    vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.                    
    vpbe-v4l2 vpbe-v4l2: layer=c29b5a00,layer->video_dev=c29b5af4                   
    watchdog watchdog: heartbeat 60 sec                                             
    usbcore: registered new interface driver usbhid                                 
    usbhid: USB HID core driver                                                     
    asoc: tlv320aic3x-hifi <-> davinci-mcbsp mapping ok                             
    ALSA device list:                                                               
      #0: DaVinci DM365 EVM                                                         
    TCP cubic registered                                                            
    NET: Registered protocol family 17                                              
    lib80211: common routines for IEEE802.11 drivers                                
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=221613)  
    Sending DHCP requests .                                                         
    PHY: 0:01 - Link is Up - 100/Full                                               
    ., OK                                                                           
    IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.41             
    IP-Config: Complete:                                                            
         device=eth0, addr=192.168.1.41, mask=255.255.255.0, gw=192.168.1.1,        
         host=192.168.1.41, domain=, nis-domain=(none),                             
         bootserver=0.0.0.0, rootserver=192.168.1.100, rootpath=                    
    VFS: Mounted root (nfs filesystem) on device 0:13.                              
    Freeing init memory: 148K                                                       
    INIT: version 2.86 booting                                                      
    mknod: /dev/spidev0.0: File exists                                              
    Starting mounting local filesystems: mount Creat queue id:0                     
    queue id:0                                                                      
    FileMngThread created                                                           
    Creat queue id:32769                                                            
    queue id:32769                                                                  
    queue id:32769                                                                  
    AlramThread created                                                             
    Share memory init success                                                       
    Creat queue id:65538                                                            
    queue id:65538                                                                  
    Creat queue id:98307                                                            
    queue id:98307                                                                  
    IPNC_DM365EVM_5.1.0 (longwei@123456) (gcc version 4.3.3 (GCC) ) #3 PREEMPT Thu  
    queue id:65538                                                                  
    net_search_gateway:eth0, 1A8C0, 0, 1                                            
                                                                                    
    CPU is DM365                                                                    
    Check_device_version : DEVICE VER = 0 !!                                        
                                                                                    
    *****************************************************************               
                                                                                    
      IPNC BUILD VERSION: DM365 IPNC RDK V5.10.00.02                                
                                                                                    
    *****************************************************************               
                                                                                    
    Error: SemWait: Invalid Semaphore handler                                       
    Error: SemRelease: Invalid Semaphore handler                                    
    ./av_server.out DM365 NTSC TI2A AEWB 720P H264 4000000 VBR AUTO MENUOFF &       
    nfs: server 192.168.1.100 not responding, still trying                          
    nfs: server 192.168.1.100 not responding, still trying                          
    nfs: server 192.168.1.100 not responding, still trying                          
    nfs: server 192.168.1.100 not responding, still trying                          
    nfs: server 192.168.1.100 not responding, still trying                          
    INFO: task mount:1081 blocked for more than 120 seconds.                        
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.       
    mount         D c036eb94     0  1081   1080 0x00000000                          
    Backtrace:                                                                      
    [<c036e834>] (schedule+0x0/0x3f8) from [<c036f270>] (schedule_timeout+0x24/0x21)
    [<c036f24c>] (schedule_timeout+0x0/0x214) from [<c036f0b4>] (wait_for_common+0x)
     r7:7fffffff r6:c2b63f54 r5:00000000 r4:00000000                                
    [<c036efbc>] (wait_for_common+0x0/0x1bc) from [<c036f220>] (wait_for_completion)
    [<c036f208>] (wait_for_completion+0x0/0x1c) from [<c0042734>] (do_fork+0x280/0x)
    [<c00424b4>] (do_fork+0x0/0x2cc) from [<c0031108>] (sys_vfork+0x34/0x40)        
    [<c00310d4>] (sys_vfork+0x0/0x40) from [<c002e020>] (ret_fast_syscall+0x0/0x2c)
    INFO: task mount:1081 blocked for more than 120 seconds.                        
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.       
    mount         D c036eb94     0  1081   1080 0x00000000                          
    Backtrace:                                                                      
    [<c036e834>] (schedule+0x0/0x3f8) from [<c036f270>] (schedule_timeout+0x24/0x21)
    [<c036f24c>] (schedule_timeout+0x0/0x214) from [<c036f0b4>] (wait_for_common+0x)
     r7:7fffffff r6:c2b63f54 r5:00000000 r4:00000000                                
    [<c036efbc>] (wait_for_common+0x0/0x1bc) from [<c036f220>] (wait_for_completion)
    [<c036f208>] (wait_for_completion+0x0/0x1c) from [<c0042734>] (do_fork+0x280/0x)
    [<c00424b4>] (do_fork+0x0/0x2cc) from [<c0031108>] (sys_vfork+0x34/0x40)        
    [<c00310d4>] (sys_vfork+0x0/0x40) from [<c002e020>] (ret_fast_syscall+0x0/0x2c)
    INFO: task mount:1081 blocked for more than 120 seconds.                        
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.       
    mount         D c036eb94     0  1081   1080 0x00000000                          
    Backtrace:                                                                      
    [<c036e834>] (schedule+0x0/0x3f8) from [<c036f270>] (schedule_timeout+0x24/0x21)
    [<c036f24c>] (schedule_timeout+0x0/0x214) from [<c036f0b4>] (wait_for_common+0x)
     r7:7fffffff r6:c2b63f54 r5:00000000 r4:00000000                                
    [<c036efbc>] (wait_for_common+0x0/0x1bc) from [<c036f220>] (wait_for_completion)
    [<c036f208>] (wait_for_completion+0x0/0x1c) from [<c0042734>] (do_fork+0x280/0x)
    [<c00424b4>] (do_fork+0x0/0x2cc) from [<c0031108>] (sys_vfork+0x34/0x40)        
    [<c00310d4>] (sys_vfork+0x0/0x40) from [<c002e020>] (ret_fast_syscall+0x0/0x2c)


  • -rwxr-xr-x 1 40502 root 73148  4月 24  2012 lsusb
    lrwxrwxrwx 1 40502 root    23  5月 17  2013 makedevs -> /sbin/makedevs.makedevs
    -rwxr-xr-x 1 40502 root  8204  4月 24  2012 makedevs.makedevs
    lrwxrwxrwx 1 40502 root    14  5月 17  2013 mdev -> ../bin/busybox
    lrwxrwxrwx 1 40502 root    19  5月 17  2013 mkfs.ext2 -> mkfs.ext2.e2fsprogs
    lrwxrwxrwx 1 40502 root    16  5月 17  2013 mkfs.ext2.e2fsprogs -> mke2fs.e2fsprogs
    lrwxrwxrwx 1 40502 root    19  5月 17  2013 mkfs.ext3 -> mkfs.ext3.e2fsprogs
    lrwxrwxrwx 1 40502 root    16  5月 17  2013 mkfs.ext3.e2fsprogs -> mke2fs.e2fsprogs
    lrwxrwxrwx 1 40502 root    19  5月 17  2013 mkfs.ext4 -> mkfs.ext4.e2fsprogs
    lrwxrwxrwx 1 40502 root    22  5月 17  2013 mkfs.ext4dev -> mkfs.ext4dev.e2fsprogs
    lrwxrwxrwx 1 40502 root    16  5月 17  2013 mkfs.ext4dev.e2fsprogs -> mke2fs.e2fsprogs
    lrwxrwxrwx 1 40502 root    16  5月 17  2013 mkfs.ext4.e2fsprogs -> mke2fs.e2fsprogs
    -rwxr-xr-x 1 40502 root  4192  4月 24  2012 mklost+found
    lrwxrwxrwx 1 40502 root    20  5月 17  2013 mkswap -> mkswap.util-linux-ng
    -rwxr-xr-x 1 40502 root 16820  4月 24  2012 mkswap.util-linux-ng
    lrwxrwxrwx 1 40502 root    16  5月 17  2013 modinfo -> /sbin/modinfo.26
    -rwxr-xr-x 1 40502 root 22520  4月 24  2012 modinfo.26
    -rwxr-xr-x 1 40502 root 44168  4月 24  2012 modprobe.26

    不知道为什么插入不了图片  这是拷贝出来的



  • 从打印出来的日志看,似乎是你的板子与NFS服务器网络连接出了问题。

    nfs: server 192.168.1.100 not responding, still trying                          
    nfs: server 192.168.1.100 not responding, still trying                          
    nfs: server 192.168.1.100 not responding, still trying