简体   繁体   English

u-boot编译错误

[英]u-boot compilation error

I have a feeling this may be too broad of a question but I'm hoping some may be a u-boot expert so I'm going to give it a shot... 我觉得这可能是一个过于宽泛的问题,但我希望某些人可能是u-boot专家,所以我会给它一个机会...

When compiling for a powerpc based setup similar to redwood, I'm getting an error: nand.c:91: undefined reference to `board_nand_init' 编译类似于redwood的基于powerpc的设置时,出现错误:nand.c:91:对`board_nand_init'的未定义引用

The function is in ndfc.c, which does not have a .h file, and the prototype is defined in nand.h, I don't understand how a function in ndfc.c can be called by another module. 该函数位于ndfc.c中,该文件没有.h文件,并且原型是在nand.h中定义的,我不明白ndfc.c中的函数如何被另一个模块调用。

Thanks for your help! 谢谢你的帮助!

This kind of error is usually caused by not defining all the compilation variables required. 这种错误通常是由于未定义所需的所有编译变量引起的。

See the U-Boot README file . 请参阅U-Boot自述文件 Some are set with the Makefile: for example make TQM823L_config which defines all the variables normally used for the TQM823L board. 有些是用Makefile设置的:例如, make TQM823L_config定义了通常用于TQM823L板的所有变量。

Other configuration settings need to be done by hand editing the header files. 其他配置设置需要通过手工编辑头文件来完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM