ou_ou

博客园 首页 新随笔 联系 订阅 管理

学习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 

 

 

posted on 2015-09-15 12:00  ou_ou  阅读(250)  评论(0编辑  收藏  举报