博客
关于我
天嵌TQ210挂载NFS文件系统详细步骤
阅读量:726 次
发布时间:2019-03-21

本文共 1508 字,大约阅读时间需要 5 分钟。

在 Ubuntu 上配置 NFS 并连接天嵌 TQ210 开发板的完整指南

这篇文章是针对天嵌 TQ210开发板在 Ubuntu 下挂载 NFS 文件系统 Lesbian filesystem(文件系统)的详细解决方案,希望能为开发者节省时间,避免重复他人的探索之路。


一、开发环境

  • 开发板:天嵌科技 TQ210
  • 宿主机:Ubuntu 11.10(PC双系统)
  • 路由器:PC 和开发板通过路由器直连,确保网络稳定性

开发板和宿主机通过 SD 卡或 tftp下载 uboot 和 kernel 系统,使用天嵌科技提供的官方镜像进行操作。


二、在 Ubuntu 上安装配置 NFS 服务

(1) 安装 NFS 服务和相关工具

sudo apt-get install nfs-kernel-server portmap nfs-common

(2) 配置 NFS 共享目录

找到并解压开发板的文件系统 /opt/EmbedSky/TQ210/rootfs_linux_v1.4_corb,以共享的方式添加到 NFS 服务中:

sudo chmod 777 /opt/EmbedSky/TQ210/rootfs_linux_v1.4_corb

(3) 启动 NFS 服务

sudo /etc/init.d/nfs-kernel-server restartsudo exportfs -rasudo exportfs -v

(4) 检查 NFS 服务状态

通过以下命令确认 NFS 服务是否正常启动:

sudo showmount -e

如果输出显示共享目录已正确挂载,表示 NFS 配置完成。例如:

mount -t nfs -o nolock:192.168.1.100:/opt/EmbedSky/TQ210/rootfs_linux_v1.4_coreb /mnt/nfs/

三、开发板配置与启动

  • 网线连接

    • Develop_board 和 PC 通过路由器连接,确保两者处于同一个网络段。
  • 设置开发板 IP 地址

    根据网络环境(或天嵌 TQ210 的默认配置)设置开发板 IP 地址为 192.168.1.100

  • 启动系统并访问 NFS 文件系统

    系统启动时,确保 NFS 服务已正确设置,开发板可以通过网络访问宿主机的 NFS 共享目录。


  • 注意事项与常见问题

  • 网络配置问题

    • 如果开发板无法访问宿主机的 NFS 服务,可能是 /etc/hosts.deny/etc/hosts.allow 文件的问题。请检查这些文件的内容并添加必要的权限规则。

    • /etc/hosts.deny 示例

      ALL: ALL

      需要在文件末尾添加允许的规则。

    • /etc/hosts.allow 示例

      192.168.1.100 ALL:all
  • 网络传输问题

    • 在开发板的 /etc/init.d/rcS 文件中,将 net set 规树屏蔽,避免网络冲突。
      #!/bin/sh# net_setifconfig eth0 192.168.1.100/24 && echo "eth0   enp1s0"
    • 如果以上方法无效,可以咨询天嵌技术支持以获取更详细的解决方案。
  • 通过以上步骤,应该能够顺利配置 Ubuntu 上的 NFS 服务,并将开发板成功接入 NFS 文件系统。遇到具体问题时,请结合实际网络环境 Performing 范围内的故障排除步骤进行解决。


    参考文献

  • 《TQ210 开发板 NFS 挂载 Android 4.0.4 的 rootfs 方法》
  • 《TQ2440 通过 NFS 挂载 Root Filesystem》
  • 转载地址:http://dudgz.baihongyu.com/

    你可能感兴趣的文章
    notepad++最详情汇总
    查看>>
    notepad++正则表达式替换字符串详解
    查看>>
    notepad如何自动对齐_notepad++怎么自动排版
    查看>>
    Notes on Paul Irish's "Things I learned from the jQuery source" casts
    查看>>
    Notification 使用详解(很全
    查看>>
    NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty()
    查看>>
    NotImplementedError: Could not run torchvision::nms
    查看>>
    nova基于ubs机制扩展scheduler-filter
    查看>>
    Now trying to drop the old temporary tablespace, the session hangs.
    查看>>
    nowcoder—Beauty of Trees
    查看>>
    np.arange()和np.linspace()绘制logistic回归图像时得到不同的结果?
    查看>>
    np.power的使用
    查看>>
    NPM 2FA双重认证的设置方法
    查看>>
    npm build报错Cannot find module ‘webpack/lib/rules/BasicEffectRulePlugin‘解决方法
    查看>>
    npm build报错Cannot find module ‘webpack‘解决方法
    查看>>
    npm ERR! ERESOLVE could not resolve报错
    查看>>
    npm ERR! fatal: unable to connect to github.com:
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near '...on":"0.10.3","direc to'
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near ‘...“:“^1.2.0“,“vue-html-‘ npm ERR! A comp
    查看>>
    npm error Missing script: “server“npm errornpm error Did you mean this?npm error npm run serve
    查看>>