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
Hi Fabio,
Thanks, it is helpful.
BR,
Jim
Take a look at configs/pico-imx6ul_defconfig. It is a mx6ul based board that has CONFIG_CMD_USB_MASS_STORAGE=y.