Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    看到一篇V853开发板nfs配置方法,分享一下

    V Series
    1
    1
    1383
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • newcastle
      newcastle LV 6 last edited by q1215200171

      原文链接:http://bbs.eeworld.com.cn/thread-1220718-1-1.html
      作者:dql2016

      网络文件系统,英文 Network File System(NFS),是由 SUN 公司研制的 UNIX 表示层协议 (presentation layer protocol),能使使用者访问网络上别处的文件就像在使用自己的计算机一样。 将Ubuntu文件目录挂载到开发板上就能方便的复制文件。

      输入

      make kernel_menuconfig
      

      选择File System->Network File System,如下配置

      捕获.JPG

      重新编译并打包内核

      make -j4
      pack
      

      查看

      cat /proc/filesystems
      

      支持的文件系统,发现多了两个nfs和nfs4

      捕获2.JPG

      ubuntu配置

      安装 NFS 软件包

      sudo apt-get install nfs-kernel-server  # 安装 NFS服务器端
      sudo apt-get install nfs-common         # 安装 NFS客户端
      

      添加 NFS 共享目录

      sudo gedit /etc/exports
      

      若需要把 “/home/allwinner/nfsroot” 目录设置为 NFS 共享目录,请在该文件末尾添加下面的一行:

      /home/allwinner/nfsroot *(rw,sync,no_root_squash)     # * 表示允许任何网段 IP 的系统访问该 NFS 目录
      

      新建“/nfsroot”目录,并为该目录设置最宽松的权限:

      mkdir /home/allwinner/nfsroot
      sudo chmod -R 777 /home/allwinner/nfsroot
      

      测试文件

      捕获4.JPG

      启动 NFS 服务

      sudo /etc/init.d/nfs-kernel-server restart
      

      捕获3.JPG

      开发板上挂载

      mount -o nolock -t nfs 192.168.8.65:/home/allwinner/nfsroot /mnt
      

      捕获5.JPG

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策