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 at 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 at amd:/data/l/android#
...and then it just goes away after powercycling the phone...
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 16 lines · Pavel Machek
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 at 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 at amd:/data/l/android#
Quoted 1 line
...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 at 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
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 16 lines · Pavel Machek
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 at 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 at amd:/data/l/android#
Quoted 1 line
...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
Quoted 17 lines · Brian Swetland
Quoted 16 lines · Pavel Machek
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 at 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 at amd:/data/l/android#
Quoted 5 lines
Quoted 1 line
...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->miniBcable?
No, that seems to work reliably.
Quoted 5 lines
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
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html