• (七)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

     

  • 相关阅读:
    C#正则表达式笔记
    C# App 中嵌入 Chrome 浏览器使用 CefSharp (CS嵌套BS)
    ERROR in static/js/xxxxxxxx.js from UglifyJs
    mysql 5.6设置允许外部访问
    pytorch学习笔记——加载checkpoint时,程序报错,存在GPU和CPU不同步的情况
    pytorch学习笔记——训练时显存逐渐增加,几个epoch后outofmemory
    基于方面情感分析的关系图注意网络
    nn.Embedding()函数理解
    RGATABSA数据处理过程
    Bert获取词向量的过程
  • 原文地址:https://www.cnblogs.com/liuchengchuxiao/p/4321138.html
Copyright © 2020-2023  润新知