我试图在u-boot中启用UBIFS支持,但在编译时遇到了几个未定义的引用错误。在我的单板配置中,我启用了以下功能:
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
#define CONFIG_CMD_MTDPARTS
#define CONFIG_CMD_UBI
#define CONFIG_RBTREE
#define CONFIG_CMD_UBIFS
#define CONFIG_LZO并在编译时得到以下未定义的引用错误:
uboot/fs/ubifs/lpt_commit.c:1232: undefined reference to dbg_chk_lpt_free_spc
uboot/fs/ubifs/lpt_commit.c:1235: undefined reference to `dbg_check_ltab'
fs/built-in.o: In function `layout_cnodes':
uboot/fs/ubifs/lpt_commit.c:322: undefined reference to `ubifs_dump_lpt_lebs'
fs/built-in.o: In function `ubifs_add_bud_to_log':
uboot/fs/ubifs/log.c:194: undefined reference to `ubifs_commit_required'
uboot/fs/ubifs/log.c:225: undefined reference to `ubifs_request_bg_commit'
uboot/fs/ubifs/log.c:265: undefined reference to `ubifs_write_node'
fs/built-in.o: In function `ubifs_log_end_commit':
uboot/fs/ubifs/log.c:479: undefined reference to `ubifs_write_master'
fs/built-in.o: In function `do_write_orph_node':
uboot/fs/ubifs/orphan.c:248: undefined reference to `ubifs_write_node'dbg_chk_lpt_free_spc、db_check-ltab、ubifs_dump_lpt_lebs、ubifs_write_node和ubifs_write_master是“ifdef‘d”out (定义了#ifndef __UBOOT__ but...obviously __UBOOT__ )。
使用快速grep,ubifs_commit_required和ubifs_request_bg_commit完全缺少实现。
u-boot不是完全支持UBIFS,还是它目前已经失效了?(使用2016.07版本)。或者我是不是错过了一步。
发布于 2016-09-22 13:24:29
UBIFS确实在几种体系结构的主线上出现了问题。建议的补丁可以在http://lists.denx.de/pipermail/u-boot/2016-September/265474.html的管道电子邮件中找到,但尚未获得批准。应用的补丁没有问题,我现在可以编译了,尽管文件系统是否能与它一起工作还有待观察……
https://stackoverflow.com/questions/39582079
复制相似问题