博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
内核的调试
阅读量:7120 次
发布时间:2019-06-28

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

hot3.png

1、默认make uImage会出错,出错如下

scripts/mod/sumversion.c: In function ‘get_src_version’: scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in this function) scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once scripts/mod/sumversion.c:384: error: for each function it appears in.) scripts/mod/sumversion.c:384: warning: unused variable ‘filelist’ make[3]: *** [scripts/mod/sumversion.o] Error 1 make[2]: *** [scripts/mod] Error 2 make[1]: *** [scripts] Error 2 make[1]: Leaving directory `/home/nios2/uClinux-dist/linux-2.6.x' make: *** [linux] Error 1

解决方法:

# vi scripts/mod/sumversion.c

头文件包含中查看是否有limits.h,若没有,包含进去即可

#include <limits.h>

---------------------------------

在测试的过程中发现u-boot经常提示:

DMArray161A PHY Detected
No link
MAC: error during RMII initialization
End of Autonegociation
这样的错误,只要有这样的错误出现NFS肯定挂不上,想是u-boot有bug换高版本的吧,于是下载了个1.1.6的故障依旧,没有办法,只有看代码了,最后终于发现是检测DMArray161时的超时时间设置的不够,修改后工作正常。
cd  uboot/include/configs/
vim include/configs/at91sam9260ek.h 

改#define AT91C_ETH_TIMEOUT               30000
为#define AT91C_ETH_TIMEOUT               300000
重新编译u-boot就可以了。

---------------------------------

后来换了个uboot(2009-11)版本,发现超时修改的地方变了,在drivers/net/macb.c里。

转载于:https://my.oschina.net/gxuliang/blog/144158

你可能感兴趣的文章
java基础知识(一)
查看>>
浏览器的缓存
查看>>
WinForm Read Excel
查看>>
Linux时间子系统之六:高精度定时器(HRTIMER)的原理和实现
查看>>
React开发环境搭建
查看>>
jQuery-ui源代码重点难点分析
查看>>
(转)Linux传输大文件(分割传输)
查看>>
1003. 我要通过!(20)
查看>>
phpstudy for linux版环境安装
查看>>
MinGW GCC 7.1.0 2017年6月份出炉啦
查看>>
二叉树的实现(Java语言描述)
查看>>
Json Datable Convert
查看>>
微信小程序制作-随笔4
查看>>
adt 22.6出现的问题
查看>>
Struts2(补充)
查看>>
Linux文件系统的目录结构详解
查看>>
MySQL server PID file could not be found!
查看>>
洛谷 P3049园林绿化 题解
查看>>
eclipse New菜单项的显示问题
查看>>
python3常用内置函数总结
查看>>