现在的位置: 首页 > 综合 > 正文

开发板挂载出现的问题

2017年12月10日 ⁄ 综合 ⁄ 共 1687字 ⁄ 字号 评论关闭

文件系统不可以挂载

出现问题:unreach network

原因:开发板未联网

解决办法:开发板联网

解决后 同样的问题

虚拟机 主机都可以ping通百度

原因:开发板在其他网段

解决办法:通过 ifconfig eth0 211.66.3.xxx 修改开发板ip   使之与虚拟机处于相同网段

后  mount   ubuntuip:nfsdir  /mnt/nfs   -t   nfs  将虚拟机上的文件 挂载到 开发板的/mnt/nfs的目录下


问题描述 :可以挂载,但是拷贝文件时出现:nfs:server
is not responding, still trying
 

原因分析:Mandag 27 november 2006 20:12 skrev Verner Kjrsgaard:

> Mandag 27 november 2006 19:33 skrev John P. New:
> > Verner,
> >
> > This is a problem with NFS and 2.6 kernels, fast server NICs and
> > comparatively slower client NICs. This will show up when the server has
> > a 1000Mb card and the client a 100Mb, or when the server has a 100Mb
> > card and the client a 10Mb.
> >
> > Essentially, you have to pass some options to the kernel on terminal
> > boot, and this varies depending on whether you are using etherboot or
> > PXE.
> >
> > See
> > http://wiki.ltsp.org/twiki/bin/view/Ltsp/NFS#NFS_Server_not_responding
> > for a deeper explanation of the problem and the cure.
 

大意是说具有较高的传送速率的NFS主机网卡和较低速率的目标机网卡之间不匹配,要解决此问题需要在挂载文件系统时添加额外的参数。

解决办法: 
1   当目标机启动后已经进入linux系统的情况下,使用以下mount命令:
mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 59.70.245.216:/home/lizhao/rootfs  /mnt/nfs
(即添加了intr rsize=1024 wsize=1024 参数,参数的具体意义见下面注释)
2   当目标机处在引导阶段向内核传递命令行参数时,使用以下参数:
console=ttySAC0 root=/dev/nfs nfsroot=59.70.245.216:/home/lizhao/rootfs,
 flags=intr,rsize=1024,wsize=1024ip=59.70.245.222:59.70.245.216:59.70.245.216:255.255.255.0:leao:eth0:off           

参数解释: 
intr -- 当服务器宕机或者无法到达时,允许中断NFS请求 nolock--禁用文件锁。 rsize
= 8192 和 wsize=8192  -- 通过设定大的同时传输的数据块大小(bytes),以提高NFS读写的速度。改变这些值时要当心,一些旧的linux内核和网卡在大的块大小不能正常工作

问题描述

TQ2440上-/bin/sh: 命令:not found

原因分析
只所以提示“-/bin/sh: /usr/bin/helloworld: not found”这个,是因为我没有拷helloworld所需的库文件。那怎么才能知道helloworld需要哪些库文件呢,可以这样,在命令行输入
arm-linux-readelf -a xxx(可执行文件名)
 命令然后在输出的内容中找到Program Headers:节这里就有helloworld所需的库文件

解决办法:在你的交叉编译器中找到这个库文件把它拷到我们文件系统的/lib目录中然后烧到开发板中再次运行

抱歉!评论已关闭.