zoukankan      html  css  js  c++  java
  • 下载资料到开发板

    学习Linux驱动,那么如何下载资料到开发板。我主要用的是两种:

    1、mount 

      将开发板挂载到Ubuntu主机的 nfs 文件内(前提是Ubuntu安装好 nfs 服务),这种办法是比较方便的,如我挂载到 Ubuntu 的 /work/nfs_root 目录,如下命令

      mount -t nfs -o nolock 192.168.1.20:/work/nfs_root /mnt

      这样在Ubuntu主机中,把编译好的文件放到 /work/nfs_root 目录中,在开发板的 mnt 目录下就可以看到,并且可以运行。

    但最近遇到一个问题,开发板 mount 不上主机,提示如下错误:

    root@socfpga:~/test# mount -t nfs -o nolock 192.168.1.20:/work/nfs_root /mnt
    mount: wrong fs type, bad option, bad superblock on 192.168.1.20:/work/nfs_root,
    missing codepage or helper program, or other error
    (for several filesystems (e.g. nfs, cifs) you might
    need a /sbin/mount.<type> helper program)
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    暂时没法解决。

    2、通过 tftp 下载

      首先也需要Ubuntu安装 tftp 服务,并设置 tftp 目录,如我设置目录为 /work/nfs_root

      把编译好的文件放到 /work/nfs_root 目中,用如下命令就可以下传资料到开发板

       root@socfpga:~/test# tftp -g -r firstdrvtest 192.168.0.75 

  • 相关阅读:
    CodeForces 385D: Bear and Floodlight
    UVA
    SGU 495: Kids and Prizes
    CodeForces 148D: Bag of mice
    HDU 4405: Aeroplane chess
    HDU 4336: Card Collector
    UVA
    POJ 2577: Interpreter
    伪类选择器 伪原色选择器 选择器的优先级
    复习html CSS选择器 组合选择器和属性选择器
  • 原文地址:https://www.cnblogs.com/mouou/p/4809839.html
Copyright © 2011-2022 走看看