2009-11-09 10:36:04

by Pavel Machek

[permalink] [raw]
Subject: dream: fastboot getting protocol errors

Hi!

I'm still fighting with porting MMC support to current mainline.

Meanwhile: I'm getting this *way* too often -- with the htcUSB to
2xUSB reduction. Any ideas?

root@amd:/data/l/android# ./fastboot -c "console=tty0
root=/dev/mmcblk0p1 rootdelay=5 fbcon=rotate:1" boot
/data/l/linux-msm/arch/arm/boot/zImage
creating boot image...
creating boot image - 1667072 bytes
downloading 'boot.img'... FAILED (command write failed (Protocol
error))
root@amd:/data/l/android#

...and then it just goes away after powercycling the phone...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


2009-11-09 10:42:56

by Pavel Machek

[permalink] [raw]
Subject: Re: dream: fastboot getting protocol errors

On Mon 2009-11-09 11:36:02, Pavel Machek wrote:
> Hi!
>
> I'm still fighting with porting MMC support to current mainline.
>
> Meanwhile: I'm getting this *way* too often -- with the htcUSB to
> 2xUSB reduction. Any ideas?
>
> root@amd:/data/l/android# ./fastboot -c "console=tty0
> root=/dev/mmcblk0p1 rootdelay=5 fbcon=rotate:1" boot
> /data/l/linux-msm/arch/arm/boot/zImage
> creating boot image...
> creating boot image - 1667072 bytes
> downloading 'boot.img'... FAILED (command write failed (Protocol
> error))
> root@amd:/data/l/android#
>
> ...and then it just goes away after powercycling the phone...

And this is another failure mode: display says "FASTBOOT", and serial
console says

UART0:Cmd>szCPLDstrlen=0x5

+usbloader_init
-usbloader_init


(but no message about usb highspeed mode), and fastboot hangs with

root@amd:/data/l/android# ./fastboot -c "console=tty0
root=/dev/mmcblk0p1 rootdelay=5 fbcon=rotate:1" boot
/data/l/linux-dream-mainline/arch/arm/boot/zImage
creating boot image...
creating boot image - 1421312 bytes
< waiting for device >

Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2009-11-09 12:59:11

by Brian Swetland

[permalink] [raw]
Subject: Re: dream: fastboot getting protocol errors

On Mon, Nov 9, 2009 at 2:36 AM, Pavel Machek <[email protected]> wrote:
> Hi!
>
> I'm still fighting with porting MMC support to current mainline.
>
> Meanwhile: I'm getting this *way* too often -- with the htcUSB  to
> 2xUSB reduction. Any ideas?
>
> root@amd:/data/l/android# ./fastboot -c "console=tty0
> root=/dev/mmcblk0p1 rootdelay=5 fbcon=rotate:1" boot
> /data/l/linux-msm/arch/arm/boot/zImage
> creating boot image...
> creating boot image - 1667072 bytes
> downloading 'boot.img'... FAILED (command write failed (Protocol
> error))
> root@amd:/data/l/android#
>
> ...and then it just goes away after powercycling the phone...

Unfortunately, I think that's just flakies in the htc bootloader. I'm
not aware of any simple workaround. Do you not see it fail if you use
a straight USB A->miniB cable?

I think that bootloader will still honor a secondstage bootloader
embedded in the boot.img (mkbootimg --second foo), or you could
replace the zimage in the boot.img with a second stage bootloader.
Either way, dunno if you want to dig into bootloader hackery to try to
resolve usb issues.

Brian

2009-11-09 13:13:43

by Pavel Machek

[permalink] [raw]
Subject: Re: dream: fastboot getting protocol errors

On Mon 2009-11-09 04:59:10, Brian Swetland wrote:
> On Mon, Nov 9, 2009 at 2:36 AM, Pavel Machek <[email protected]> wrote:
> > Hi!
> >
> > I'm still fighting with porting MMC support to current mainline.
> >
> > Meanwhile: I'm getting this *way* too often -- with the htcUSB ?to
> > 2xUSB reduction. Any ideas?
> >
> > root@amd:/data/l/android# ./fastboot -c "console=tty0
> > root=/dev/mmcblk0p1 rootdelay=5 fbcon=rotate:1" boot
> > /data/l/linux-msm/arch/arm/boot/zImage
> > creating boot image...
> > creating boot image - 1667072 bytes
> > downloading 'boot.img'... FAILED (command write failed (Protocol
> > error))
> > root@amd:/data/l/android#
> >
> > ...and then it just goes away after powercycling the phone...
>
> Unfortunately, I think that's just flakies in the htc bootloader. I'm
> not aware of any simple workaround. Do you not see it fail if you use
> a straight USB A->miniB cable?

No, that seems to work reliably.

> I think that bootloader will still honor a secondstage bootloader
> embedded in the boot.img (mkbootimg --second foo), or you could
> replace the zimage in the boot.img with a second stage bootloader.
> Either way, dunno if you want to dig into bootloader hackery to try to
> resolve usb issues.

Ok, so its time to simply retry until it works...

Thanks for info!
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html