免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1305 | 回复: 0
打印 上一主题 下一主题

Embedded linux frequancy question [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-21 15:22 |只看该作者 |倒序浏览
Embedded linux frequancy question:
1. 【linux脚本】在linux在执行脚本出现 bad interpreter: No such file or directory
一般来说,在windows用建立的sh文件在linux中运行时,因为window在每行后加入隐藏字符^M
所以当linux编译时 由于无法编译^M而导致bad interpreter错误
使用 vi -b  找出^M 然后删除。

2. 【Embeded linux】在target板上挂主机的NFS文件系统出现"error -13"
IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.86.16
IP-Config: Complete:
      device=eth0, addr=192.168.86.16, mask=255.255.255.0, gw=192.168.86.1,
     host=192.168.86.16, domain=, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=192.168.86.252, rootpath=
Looking up port of RPC 100003/2 on 192.168.86.252
Looking up port of RPC 100005/1 on 192.168.86.252
Root-NFS: Server returned error -13 while mounting /project/dengjj/gxv3140/rootfs/
VFS: Unable to mount root fs via NFS, trying floppy.

原因:在主机端没有开启NFS服务或已export the NFS server folder, 但没有用exportfs激活。

3, 【compile u-boot/linux】target CPU does not support interworking

start.S:0: warning: target CPU does not support interworking

【Reason】
which come from some ARM cross compilers and are caused by hard-coded
(with "--with-cpu=arm9" configuration option) ARM targets (which
support ARM Thumb instructions), while the ARM target selected from the command line (with "-march=armv4") doesn't support Thumb instructions.

This warning is issued by the compiler regardless of the real use of the Thumb instructions in code.

To fix this problem, we use options according to compiler version being used.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/54388/showart_1905501.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP