New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discovery] boot.img exceeds max size #305
Comments
ls -l boot.img please |
I cant replicate on a clean build |
EDIT: Removed entire |
I had the same problem. Reason was that I tried to flash while my notebook was on battery. As soon as I plugged in the power-cord and restarted the phone into bootloader it worked without any problems. I've just retried that procedure and could reproduce it, maybe you have the same problem: Failed attempt: After re-plugging the power-cord and rebooting the phone into the bootloader again it worked: |
Sounds like black magic ;) |
Good that it works now. Another reason could be an unstable usb connection... Next time you could also try using a different usb plug or cable. When switching to battery, several power saving mechanisms kick in - that would be a better explanation than good old witchcraft :-) |
How you finally made this work? Tried several times without solution. I even bought a new "Sony" cable, and still nothing. By some reason, flashmode or adb works great, just fastboot seems to be quite buggy for me. |
Sometimes it gets buggy for me too |
Just to throw in more black magic :D I changed my workplace and put my laptop in standby for that. Then it worked using the same usb cable from before. |
I got the same random errors again and need to restart my phone into fastboot after every "fastboot flash". |
Yeah, I can reproduce the same. No idea if this is a Linux specific issue or not, tried 3 different versions of fastboot, used different Linux distros (own Gentoo + Ubuntu 18.04 + Debian), even a different computer with Linux, and same problem. For now I can't test myself with Windows because I don't have a partition for that, and doesn't work for me using QEMU, got usb connect/disconnect issues. I will try today later using a borrowed Windows, I read somewhere at XDA about using Sony's fastboot drivers may solve the problem. |
Update: Tried on a OSX and worked correctly. I would guess this is a Linux specific issue. At Linux, it fails to me using fastboot version 28.0.1-4986621 |
I've found communication with sony devices over fastboot to be quite flakey (and I have tested a number of different sony devices). I started testing the connection by repeatedly running When I started using a usb hub, the problem went away for me. Maybe it has something to do with the voltage supplied by the usb connection. I also found that the connection was stable when I tried on a mac. |
For yoshino, lilac it is pretty stable on my linux box, just when I switch from AC to battery it gets reproducable unstable. I tried: I am using Dell made many bugfixes over the time for my notebook (a precision 7510). Many of them tackled firmware probs of the usb controller. But maybe yoshino/lilac is just not affected from what you report... |
I have problems with my Linux on a lenovo x240 and Yoshiko/lilac and tone/kagura when directly connected to the machine. It works when I disable USB3 in the BIOS. It however works with USB3 and a hub between. |
I can confirm the hub as solution. Thanks! |
With my ThinkPad T460P Ultra Dock 90W and AC I get the weird errors at USB3 and USB2. |
I also use the UltraDock and the ports are as unstable as the ones on the device itself for me. I have two Dell displays with integrated USB3 hubs, connected to the dock and if I use these for fastboot it will work 100% reliable. |
Now I understand my bug in the past. |
I have the exact same issue on my device (mermaid). Will try USB hub. Does it have to be powered one or just normal one ? |
Just a normal one. I assume USB hub distribute power supply independent from computer. I tried with USB 2.0 and USB 3.0 and works great. Just fails when directly connected. |
Platform: Nile
Device: Discovery, XA2 Ultra, H3213
Kernel version: 4.9
Android version: android-9.0.0_r30
Description
fastboot flash boot boot.img
results in:How to reproduce
Build
android-9.0.0_r30
branch foraosp_h3213-userdebug
and try to flashboot.img
The text was updated successfully, but these errors were encountered: