zoukankan      html  css  js  c++  java
  • LAVA2 配置

    根据平台修改默认参数:sudo vim /etc/lava-server/dispatcher-config/device-types/xxxx.jinja2

    修改设备配置:sudo vim /etc/lava-server/dispatcher-config/devices/xxxx-evk.jinja2

    配置共享目录

    vim /etc/default/tftpd-hpa

    TFTP_DIRECTORY="/home/zhangyi/tftp"

    首先创建目录“/home/zhangyi/nfs”,然后修改配置文件“/etc/exports”,如下:

     vim /etc/exports

    # Example for NFSv4:
    # /srv/nfs4        *(rw,sync,no_root_squash)
    # /srv/nfs4        *(rw,sync,fsid=0,crossmnt,no_subtree_check)
    # /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
    /home/zhangyi/nfs  *(rw,sync,no_root_squash,no_subtree_check)

    启动过程中出现错误

    setenv bootargs "console=ttyPS0,115200 earlyprintk root=/dev/nfs nfsroot=192.168.40.87:/home/zhangyi/nfs,nfsvers=4,nolock ip=dhcp rw"

    [ 5.351482] bootserver=192.168.36.180, rootserver=192.168.40.87, rootpath= nameserver0=192.168.34.3, nameserver1=192.168.34.4
    [ 5.364063] ttyPS0 - failed to request DMA
    [ 5.368342] RAMDISK: Couldn't find valid RAM disk image starting at 0.

    rootpath=为空

    • 通过各种排查,发现自己都没设置错误,在一个偶然的机会看到一帖tiny210 用 nfs 成功 mount 根文件系统 ,
      上面讲是nfs文件系统设置的问题,在后面加上proto=tcp,就可以解决问题
    setenv bootargs root=/dev/nfs nfsroot=192.168.1.88:/home/wildbook/Documents/nfsboot/rootfs_tiny6410,proto=tcp ip=192.168.1.230 console=ttySAC0,115200 init=/linuxrc
     
     
    /var/lib/lava/dispatcher/tmp/
    /etc/exports.d/lava-dispatcher-nfs.exports
    /etc/apache2/sites-available/lava-server.conf
    /etc/lava-dispatcher/lava-dispatcher.conf
    以上貌似和nfs目录都有关,试验下来都不用修改。
  • 相关阅读:
    LeetCode 461. Hamming Distance
    LeetCode 442. Find All Duplicates in an Array
    LeetCode 448. Find All Numbers Disappeared in an Array
    LeetCode Find the Difference
    LeetCode 415. Add Strings
    LeetCode 445. Add Two Numbers II
    LeetCode 438. Find All Anagrams in a String
    LeetCode 463. Island Perimeter
    LeetCode 362. Design Hit Counter
    LeetCode 359. Logger Rate Limiter
  • 原文地址:https://www.cnblogs.com/idyllcheung/p/13783959.html
Copyright © 2011-2022 走看看