AnsweredAssumed Answered

[iMX6UL] BSP Build error when enable CONFIG_CMD_USB_MASS_STORAGE in u-boot-imx

Question asked by Jim Huang on Mar 8, 2018
Latest reply on Mar 9, 2018 by Jim Huang

Hi iMX experts,

 

I am trying to enable "ums" command in u-boot-imx on i.mx6ultralite-evaluation-kit

After I enabled CONFIG_CMD_USB_MASS_STORAGE=y in mx6ul_14x14_evk_defconfig 

and re-build u-boot-imx, I got the build error as below.

 

| cmd/built-in.o: In function `do_usb_mass_storage':
| /home3/jim/fsl-release-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/cmd/usb_mass_storage.c:177: undefined reference to `g_dnl_register'
| /home3/jim/fsl-release-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/cmd/usb_mass_storage.c:187: undefined reference to `g_dnl_board_usb_cable_connected'
| /home3/jim/fsl-release-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/cmd/usb_mass_storage.c:194: undefined reference to `g_dnl_board_usb_cable_connected'
| /home3/jim/fsl-release-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/cmd/usb_mass_storage.c:215: undefined reference to `usb_gadget_handle_interrupts'
| /home3/jim/fsl-release-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/cmd/usb_mass_storage.c:217: undefined reference to `fsg_main_thread'
| /home3/jim/fsl-release-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/cmd/usb_mass_storage.c:233: undefined reference to `g_dnl_unregister'
| /home3/jim/fsl-release-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/cmd/usb_mass_storage.c:170: undefined reference to `fsg_init' 

 

Could you give a suggestion for enabling "ums" command in u-boot?

 

 

BSP uboot-version:
U-Boot 2017.03-nxp/imx_v2017.03_4.9.11_1.0.0_ga+ga2fea67

 

BSP build code method:

repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-morty
MACHINE=imx6ulevk source fsl-setup-release.sh -b build
bitbake fsl-image-gui

 

Thanks,

Jim

Attachments

Outcomes