你的分享就是我们的动力 ---﹥

u-boot-1.3.4移植出现有关问题,求高手解答

时间:2014-10-29 16:03来源:www.chengxuyuans.com 点击:
u-boot-1.3.4移植出现问题,求高手解答
移植u-boot-1.3.4到S3C2440,编译过程中出现下面到错误,总提示没有定义‘nand_legacy_erase’,'nand_legacy_rw'等函数,希望有懂到人帮忙解答,谢谢!

打印到错误信息:
common/libcommon.a(env_nand.o)(.bss+0x4): In function `env_get_char_spec':
/home/administrator/Software/u-boot-1.3.4/common/env_nand.c:96: multiple definition of `nand_info'
drivers/mtd/nand/libnand.a(nand.o)(.bss+0x0):/home/administrator/Software/u-boot-1.3.4/drivers/mtd/nand/nand.c:64: first defined here
board/mesh/mesh2440/libmesh2440.a(mesh2440.o)(.text+0x12c): In function `nand_init':
/home/administrator/Software/u-boot-1.3.4/board/mesh/mesh2440/mesh2440.c:284: multiple definition of `nand_init'
drivers/mtd/nand/libnand.a(nand.o)(.text+0x0):/home/administrator/Software/u-boot-1.3.4/drivers/mtd/nand/nand.c:64: first defined here
arm-linux-ld: Warning: size of symbol `nand_init' changed from 164 in drivers/mtd/nand/libnand.a(nand.o) to 116 in drivers/mtd/nand/libnand.a(nand.o)
common/libcommon.a(env_nand.o)(.text+0x128): In function `saveenv':
/home/administrator/Software/u-boot-1.3.4/common/env_nand.c:249: undefined reference to `nand_legacy_erase'
common/libcommon.a(env_nand.o)(.text+0x164):/home/administrator/Software/u-boot-1.3.4/common/env_nand.c:258: undefined reference to `nand_legacy_rw'
common/libcommon.a(env_nand.o)(.text+0x19c):/home/administrator/Software/u-boot-1.3.4/common/env_nand.c:263: undefined reference to `nand_dev_desc'
common/libcommon.a(env_nand.o)(.text+0x2b0): In function `env_relocate_spec':
/home/administrator/Software/u-boot-1.3.4/common/env_nand.c:360: undefined reference to `nand_legacy_rw'
common/libcommon.a(env_nand.o)(.text+0x2f8):/home/administrator/Software/u-boot-1.3.4/common/env_nand.c:367: undefined reference to `nand_dev_desc'
board/mesh/mesh2440/libmesh2440.a(mesh2440.o)(.text+0x188): In function `nand_init':
/home/administrator/Software/u-boot-1.3.4/board/mesh/mesh2440/mesh2440.c:291: undefined reference to `nand_probe'
make: *** [u-boot] 错误 1


------解决思路----------------------
应该是依赖不完整吧
------解决思路----------------------
引用:
Quote: 引用:

串口输出和 Flash 有什么关系,串口输出乱码不知道你怎么和Flash 联系上的,如果是读Flash 输出的,你先调试直接常量输出啊

还有一个问题,移植yaffs文件系统是不是一定要对u-boot做修改,使其支持。如果不是,时间比较赶我就没必要重新移植u-boot了,有一个现成的可用的u-boot-1.3.1
 内核移植时修改,网上文章很多

转载注明地址:http://www.chengxuyuans.com/Hardware/embedded-driver/84014.html

推荐文章