zoukankan      html  css  js  c++  java
  • (七)uboot NFS启动


     关闭虚拟机防火墙       lokkit --disabled 

     配置NFS服务端  

    建立一个目录用来共享 存放根文件系统

    cd /               mkdir rootfs

     

    配置NFS共享目录 

     gedit /etc/exports

    写入/rootfs *(rw,sync,no_root_squash)   //其中/rootfs为nfs共享的目录

    查看nsf 服务是否启动:

    [root@centos ~]$service nfs status
    rpc.mountd (pid 9313) is running...
    nfsd (pid 9310 9309 9308 9307 9306 9305 9304 9303) is running...
    rpc.rquotad (pid 9298) is running.

     则表示nfs服务正常运行。

    查看nfs的配置文件

    [root@centos /etc]$cat /etc/exports
    /rootfs *(rw,sync,no_root_squash)  //其中/rootfs为nfs共享的目录

    当对文件/etc/exprots进行了编辑之后需要重新启动nfs服务
    [root@centos /etc]$service nfs restart
    Shutting down NFS mountd:                                  [  OK  ]
    Shutting down NFS daemon:                                  [  OK  ]
    Shutting down NFS quotas:                                  [  OK  ]
    Shutting down NFS services:                                [  OK  ]
    Starting NFS services:                                     [  OK  ]
    Starting NFS quotas:                                       [  OK  ]
    Starting NFS daemon:                                       [  OK  ]
    Starting NFS mountd:                                       [  OK  ]

    之后exprots中的文件就可以配共享访问了

     开发板参数设置

    [u-boot@MINI2440]# printenv

    bootdelay=3
    baudrate=115200
    ethaddr=12:34:56:78:90:ab
    stdin=serial
    stdout=serial
    stderr=serial
    ethact=dm9000
    gatewayip=192.168.1.1
    netmask=255.255.255.0
    ipaddr=192.168.1.103
    serverip=192.168.1.102
    bootcmd=nfs 0x30008000 192.168.1.102:/rootfs/uImage;bootm
    bootargs=noinitrd root=/dev/nfs rw nfsroot=192.168.1.102:/rootfs,
    nolock ip=192.168.1.103 console=ttySAC0,115200 init=/linuxrc mem=64M

     

  • 相关阅读:
    python 参数化之读取写入yaml文件
    python实现对列表进行模糊查询
    通过UI自动化获取登录cookie,进行接口自动化测试
    Node.js初学
    Jquery 滚动到指定容器的位置,一行解决
    代码神兽护体
    React井字棋改进需求实现
    工作流开发流程
    call、apply和bind的学习
    call、apply和bind的学习
  • 原文地址:https://www.cnblogs.com/liuchengchuxiao/p/4321138.html
Copyright © 2011-2022 走看看