* [U-Boot] Fastboot is not detected
@ 2015-09-09 21:02 Fabio Estevam
2015-09-09 21:21 ` Marek Vasut
2015-09-09 22:32 ` Bo Shen
0 siblings, 2 replies; 7+ messages in thread
From: Fabio Estevam @ 2015-09-09 21:02 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fastboot is not detected
2015-09-09 21:02 [U-Boot] Fastboot is not detected Fabio Estevam
@ 2015-09-09 21:21 ` Marek Vasut
2015-09-09 21:29 ` Fabio Estevam
2015-09-09 22:32 ` Bo Shen
1 sibling, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2015-09-09 21:21 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fastboot is not detected
2015-09-09 21:21 ` Marek Vasut
@ 2015-09-09 21:29 ` Fabio Estevam
2015-09-10 8:00 ` Paul Kocialkowski
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2015-09-09 21:29 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fastboot is not detected
2015-09-09 21:02 [U-Boot] Fastboot is not detected Fabio Estevam
2015-09-09 21:21 ` Marek Vasut
@ 2015-09-09 22:32 ` Bo Shen
2015-09-09 22:58 ` Fabio Estevam
1 sibling, 1 reply; 7+ messages in thread
From: Bo Shen @ 2015-09-09 22:32 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fastboot is not detected
2015-09-09 22:32 ` Bo Shen
@ 2015-09-09 22:58 ` Fabio Estevam
0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2015-09-09 22:58 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fastboot is not detected
2015-09-09 21:29 ` Fabio Estevam
@ 2015-09-10 8:00 ` Paul Kocialkowski
2015-09-10 13:16 ` Fabio Estevam
0 siblings, 1 reply; 7+ messages in thread
From: Paul Kocialkowski @ 2015-09-10 8:00 UTC (permalink / raw)
To: u-boot
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?
--
Paul Kocialkowski, Replicant developer
Replicant is a fully free Android distribution running on several
devices, a free software mobile operating system putting the emphasis on
freedom and privacy/security.
Website: https://www.replicant.us/
Blog: https://blog.replicant.us/
Wiki/tracker/forums: https://redmine.replicant.us/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150910/578203aa/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] Fastboot is not detected
2015-09-10 8:00 ` Paul Kocialkowski
@ 2015-09-10 13:16 ` Fabio Estevam
0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2015-09-10 13:16 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-09-10 13:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 21:02 [U-Boot] Fastboot is not detected Fabio Estevam
2015-09-09 21:21 ` Marek Vasut
2015-09-09 21:29 ` Fabio Estevam
2015-09-10 8:00 ` Paul Kocialkowski
2015-09-10 13:16 ` Fabio Estevam
2015-09-09 22:32 ` Bo Shen
2015-09-09 22:58 ` Fabio Estevam
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.