移植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
------解决思路----------------------
应该是依赖不完整吧
------解决思路----------------------
内核移植时修改,网上文章很多