[U-Boot] Fastboot is not detected

Hi,
I am trying to add fastboot support for mx6qsabresd and I did the following changes on against top of head U-boot:
--- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -238,6 +238,12 @@ #define CONFIG_G_DNL_VENDOR_NUM 0x0525 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5 #define CONFIG_G_DNL_MANUFACTURER "FSL" + +#define CONFIG_USB_FUNCTION_FASTBOOT +#define CONFIG_CMD_FASTBOOT +#define CONFIG_ANDROID_BOOT_IMAGE +#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR +#define CONFIG_FASTBOOT_BUF_SIZE 0x07000000 #endif
#endif /* __MX6QSABRE_COMMON_CONFIG_H */
On the U-boot prompt I run:
=> fastboot 0
and then in the host PC I try to read the bootloader version:
$ fastboot getvar bootloader-version < waiting for device >
(and it gets stuck here)
After a CTRL+C I have also tried:
$ sudo fastboot devices $
,but nothing is reported.
I am able to mount the SD card via 'ums 0 mmc 1' command, so the USB OTG connection is fine.
Does anyone have any suggestions?
Thanks,
Fabio Estevam

On Wednesday, September 09, 2015 at 11:02:45 PM, Fabio Estevam wrote:
Hi,
I am trying to add fastboot support for mx6qsabresd and I did the following changes on against top of head U-boot:
--- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -238,6 +238,12 @@ #define CONFIG_G_DNL_VENDOR_NUM 0x0525 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5 #define CONFIG_G_DNL_MANUFACTURER "FSL"
+#define CONFIG_USB_FUNCTION_FASTBOOT +#define CONFIG_CMD_FASTBOOT +#define CONFIG_ANDROID_BOOT_IMAGE +#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR +#define CONFIG_FASTBOOT_BUF_SIZE 0x07000000 #endif
#endif /* __MX6QSABRE_COMMON_CONFIG_H */
On the U-boot prompt I run:
=> fastboot 0
and then in the host PC I try to read the bootloader version:
$ fastboot getvar bootloader-version < waiting for device >
(and it gets stuck here)
After a CTRL+C I have also tried:
$ sudo fastboot devices $
,but nothing is reported.
I am able to mount the SD card via 'ums 0 mmc 1' command, so the USB OTG connection is fine.
Does anyone have any suggestions?
Don't you need this patch from Peng? [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback https://patchwork.ozlabs.org/patch/511739/
Best regards, Marek Vasut

Hi Marek,
On Wed, Sep 9, 2015 at 6:21 PM, Marek Vasut marex@denx.de wrote:
Don't you need this patch from Peng? [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback https://patchwork.ozlabs.org/patch/511739/
Thanks. Just applied this patch and the behaviour is still the same.
Peng,
It seems you managed to get fastboot working with your patch applied.
Any ideas as to why I am getting:
$ fastboot getvar bootloader-version < waiting for device >
Thanks,
Fabio Estevam

Hi,
Le mercredi 09 septembre 2015 à 18:29 -0300, Fabio Estevam a écrit :
On Wed, Sep 9, 2015 at 6:21 PM, Marek Vasut marex@denx.de wrote:
Don't you need this patch from Peng? [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback https://patchwork.ozlabs.org/patch/511739/
Thanks. Just applied this patch and the behaviour is still the same.
Peng,
It seems you managed to get fastboot working with your patch applied.
Any ideas as to why I am getting:
$ fastboot getvar bootloader-version < waiting for device >
Hmm, does the device show up at all on the host (in dmesg)? I.e. is it somewhat detected by the host usb driver, does it fail early, etc?

On Thu, Sep 10, 2015 at 5:00 AM, Paul Kocialkowski contact@paulk.fr wrote:
Hmm, does the device show up at all on the host (in dmesg)?
Yes, it does.
I.e. is it somewhat detected by the host usb driver, does it fail early, etc?
The issue is solved now. I had to apply Peng's patch for USB driver and also need to pass the '-i' option in the fastboot command line.
Thanks,
Fabio Estevam

Hi Fabio,
On 09/10/2015 05:02 AM, Fabio Estevam wrote:
Hi,
I am trying to add fastboot support for mx6qsabresd and I did the following changes on against top of head U-boot:
--- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -238,6 +238,12 @@ #define CONFIG_G_DNL_VENDOR_NUM 0x0525 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5 #define CONFIG_G_DNL_MANUFACTURER "FSL"
+#define CONFIG_USB_FUNCTION_FASTBOOT +#define CONFIG_CMD_FASTBOOT +#define CONFIG_ANDROID_BOOT_IMAGE +#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR +#define CONFIG_FASTBOOT_BUF_SIZE 0x07000000 #endif
#endif /* __MX6QSABRE_COMMON_CONFIG_H */
On the U-boot prompt I run:
=> fastboot 0
and then in the host PC I try to read the bootloader version:
$ fastboot getvar bootloader-version < waiting for device >
Please check whether the fastboot application supports your vendor ID. If not, add "-i <vendor_id> in your command line.
Best Regards, Bo Shen

Hi Bo,
On Wed, Sep 9, 2015 at 7:32 PM, Bo Shen voice.shen@gmail.com wrote:
Please check whether the fastboot application supports your vendor ID. If not, add "-i <vendor_id> in your command line.
Thanks a lot! Now fastboot communicates well with -i:
$ fastboot getvar bootloader-version -i 0x0525 bootloader-version: U-Boot 2015.10-rc2-23960-g2462cce-dirty finished. total time: 0.000s
$ fastboot reboot -i 0x0525 --> board reboots fine.
Thanks for your help,
Fabio Estevam
participants (4)
-
Bo Shen
-
Fabio Estevam
-
Marek Vasut
-
Paul Kocialkowski