如何在imx6q_sabresd的u-boot里添加U盘支持?我在include/configs/mx6q_sabresd.h中已经添加了这几个宏定义:#define CONFIG_CMD_USB 1 //xhb add
#define CONFIG_USB_STORAGE 1 //xhb add
#define CONFIG_USB_UHCI 1 //xhb add
#define CONFIG_USB_KEYBOARD 1 //xhb add
编译时出现以下错误:common/libcommon.a(usb.o): In function `usb_stop':
/home/gemotech/th/uboot/common/usb.c:137: undefined reference to `usb_lowlevel_stop'
common/libcommon.a(usb.o): In function `usb_submit_int_msg':
/home/gemotech/th/uboot/common/usb.c:163: undefined reference to `submit_int_msg'
common/libcommon.a(usb.o): In function `usb_control_msg':
/home/gemotech/th/uboot/common/usb.c:196: undefined reference to `submit_control_msg'
common/libcommon.a(usb.o): In function `usb_bulk_msg':
/home/gemotech/th/uboot/common/usb.c:223: undefined reference to `submit_bulk_msg'
common/libcommon.a(usb.o): In function `usb_init':
/home/gemotech/th/uboot/common/usb.c:110: undefined reference to `usb_lowlevel_init'
common/libcommon.a(usb_storage.o): In function `usb_stor_CBI_get_status':
/home/gemotech/th/uboot/common/usb_storage.c:586: undefined reference to `submit_int_msg'
make: *** [u-boot] Error 1
我分别进入usb.c和usb_storage.c文件的目录发现在已经加入到了Makefile中,为什么还会出现“未定义的错误”?求大神指点迷津!!! |