As you can see in the title, i decided to write a small fastboot tut, especially for our p880 and its "own" commands and tricks
I am, as always, not responsible for what you do with your device. Do it on your own risk.
I will however not explain on how to set up fastboot on your PC. There are tons of tuts out there on xda, just search for it
NOTICE: You need an unlocked bootloader for this
Screenshots will be added later, 'cause my lappy is compiling right now and i thought i could use the time to write this so just wait a bit
Now, lets begin with the fun, shall we?
General
Fastboot is usually quite easy to use. But if you went searching for a tut on the web, you might have noticed that it doesn't work the way it should on your device.
That's because LG messed something up in the bootloader, but let's don't worry about that now, it does work nontheless
Fastboot is "a part" of the bootloader. This means, neither the kernel (boot), nor the recovery gets booted.
That gives you the ability to flash, but also boot kernels/recoveries. And yes, i meant booting, without really flashing it
Now we need to get into fastboot mode:
And this is (one of) the point(s) where LG messed up. The usual command is "adb reboot bootloader". But this command does not work on your device the way it should.
It gets you into a kind of fastboot mode, but you can't flash anything, because it says the bootloader would be locked, even tho it isn't.
The working command is
Code:
adb reboot oem-unlock
i guess this command sounds familliar, doesn't it? and don't worry, it will not lead you to a menu that deletes your data.
It will lead you to the working fastboot mode
now we're in the working fastboot mode. To check if you've set up fastboot correctly, type
Code:
fastboot devices
this should list your phone and its serial number.
It is recognized? good. so now we might want to check the status of our device (BL unlock state, serial number,...).
Therefore type
Code:
fastboot getvar all
now you can check whether it's really unlocked or not.
If everything's fine, you might want to...
Flash something
In order to flash something, you need the appropriate image. For kernels it's mostly "boot.img"
The command to flash something via fastboot is in general
Code:
fastboot flash <partition> <filename>
Example: You want to flash a kernel (named test_boot.img) and you have downloaded the kernel to the folder where your fastboot.exe is.
So you type
Code:
fastboot flash boot test_boot.img
This will copy the kernel to your device and then flash it to the LNX (boot) partition.
Of course you can flash other partitions, too, like system, data, cache, recovery...
After a flash, it is wise to clear the cache, or even your /data partition...
Deleting a partition
You don't need a recovery to wipe a partition, just use fastboot
The general command is
Code:
fastboot erase <partition>
For our example it's enough to wipe the cache. You can do this using this command:
Code:
fastboot erase cache
Also here you can wipe all partitions, like system, data, cache, boot, recovery...
So now we've flashed what we wanted to, wiped the needed partitions, but how do i..
Get out of fastboot
This is as easy as getting in just type
Code:
fastboot reboot
to reboot the device (Here's another thing, where LG messed up.... it reboots, but stays at the LG spash screen.
So press the power button for at least 10 secs. Now your device will reboot into recovery (!?)
then just tap reboot system now and be happy )
or
Code:
fastboot continue
this one will not reboot the device, but continue the boot procedure. I, for one, would suggest you to use the first command
now your device will boot up normally (except your kernel/system.... has a bug of course )
for more help, just type
Code:
fastboot help
and the last point is...
Bricking the device
nah, just kidding
Reserved
Thanks for this usefull post!
Sent from my LG-P880 using xda app-developers app
thanks, it's very useful for me.:good:
Thanks,
it's so easy
fastboot boot <kernel> <ramdisk> -c "androidboot.mode=normal"
Click to expand...
Click to collapse
<kernel> is the kernel zImage
<ramdisk> can be a .img, .cpio, .cpio.gz
-c "androidboot.mode=normal” is needed the get the kernel booted for the p880 with the correct commandline
Gesendet von meinem LG-P880 mit Tapatalk 4 Beta
So, to get into fastboot mode, I have to turn on my phone, plug it to my computer and in cmd I type adb reboot oem-unlock, right? Is there any possibility to access it in case of a bootloop or something?
boot into recovery system by holding power+vol-down till it vibrates, then use either adb to issue the command or when using twrp as recovery system: Reboot --> Fastboot
Gesendet von meinem LG-P880 mit Tapatalk 4 Beta
A little update from LG...
I wrote them that they have messed up our bootloader, and told them the bugs/problems/... well, see yourself:
1) "adb reboot bootloader" doesn't bring me into bootloader. Well it does, but even though i have unlocked the bootloader, it still says it would be locked.
instead i need to use "adb reboot oem-unlock" to get into bootloader.
- P880 does not support "adb reboot bootloader" to go into bootloader. P880 only works "adb reboot oem-unlock" instead of "adb reboot bootloader" to go into bootloader. and then you can use the fastboot command mode after accept unlock bootloader.
2) "fastboot reboot" partly reboots the device, but then it keeps stuck at the first LG splash screen. pressing power button for 10 seconds brings me into recovery then, instead of into the ROM.
- P880 supports "fastboot reboot", before flashing the customize image, "fastboot reboot" reboot normally.
3) "fastboot flash system [path/to/system.img]" gives me "fatal error: unknown partition"
- P880 can only flash boot, recovery. Ex> fastboot flash boot/recovery boot.img/recovery.img
4) "fastboot boot [...]" doesn't work at all.
- P880 does not support "fastboot boot [...]" command
- P880 supports only flash, erase, reboot as you already seen in bootloader unlock warning message.
5) I have found no way to boot into fastboot/bootloader without a booting phone. Maybe you could try to add the possibility to boot directly into fastboot.
- You can only go into fastboot mode using "adb reboot oem-unlock"
Click to expand...
Click to collapse
lg is retarded, but hey atleast they had the decency to answer
Yeh, you need to kdz flash if you mess up both system and recovery.
Keep an suid busybox in /data so you can root and re-flash CWM/TWRP in the backup+restore mode without having to clear data so the stock ROM can boot.
Can't seem to get his wokring properly, think it's the drivers.
I connect my phone to the pc, run cmd and I reboot it to to the bootloader. From there, I can't do anything. I i Write "fastboot devices" I get nothing, can't flash anything either. Have tried the official drivers from lg, but it doesn't work.
That's the same way of using fastboot like it is on Sony devices, you should mention it so more people would use this guide.
The only difference is that on sony devices if you want to unlock your bootloader you need to get the key from this site and then fastboot 0x0fce oem unlock 0xKEY
hi dudes , if phone (4x hd) is in s/w update mode , can I use fastboot command?
ppl, i beg for help:
when I use adb reboot oem-unlock or adb reboot bootloader, my phone only resets itself and boots back into normal working mode. I've tried to boot it into bootloader with holding volume up and power button and it boots into some kind of mode wheres only picture with symbols of mobile with symbols of data cable and power cable being plugged into phone with red symbol over cables that they shouldn't be unplugged. I've also tried eboot oem-unlock and reboot bootloader commands in that mode and it only resets the phone back into normal working mode while command fastboot flash recovery twrp.img only gave me "waiting for the device" and nothing happening...
also I've entered into hidden menu with 3845#*880# command bit there's no "BL status" or "Bootloader Unlock Check" or anything that has any connection to Bootloader
help?
@gesaugen: Works only with firmware 20A and higher.
GoodSoul said:
@gesaugen: Works only with firmware 20A and higher.
Click to expand...
Click to collapse
GoodSoul, thanks for info!
So I only need to upgrade firmware and it should work then...
I tried this method and for fastboot devices
i get no permissions fastboot
pls help
edit: i just did it with sudo fastboot devices
but i have another error:
fastboot flash zimage zImage
sending 'zimage' (4913 KB)...
OKAY [ 1.216s]
writing 'zimage'...
FAILED (remote: Invalid Partition Name.)
InterrtuptoR said:
but i have another error:
fastboot flash zimage zImage
sending 'zimage' (4913 KB)...
OKAY [ 1.216s]
writing 'zimage'...
FAILED (remote: Invalid Partition Name.)
Click to expand...
Click to collapse
Only "boot" and "recovery" are supported for fastboot flash command. Boot is the kernel and takes boot.img. Unfortunately, "system" is not supported, otherwise developing on this phone would have been similar to Nexus devices.
I'm trying to get my phone back to a custom ROM after abandoning it for over a year so I am having trouble remembering what I did...
USB Debugging is definitely off. When I go into a command prompt to flash the boot.img, "adb devices" returns no devices. The drivers all seem to be up to date - so how can I flash the boot.img? I can't get into the OS as I get stuck at the white HTC logo boot - soft bricked.
bfawks said:
I'm trying to get my phone back to a custom ROM after abandoning it for over a year so I am having trouble remembering what I did...
USB Debugging is definitely off. When I go into a command prompt to flash the boot.img, "adb devices" returns no devices. The drivers all seem to be up to date - so how can I flash the boot.img? I can't get into the OS as I get stuck at the white HTC logo boot - soft bricked.
Click to expand...
Click to collapse
I would normally recommend RUU (http://forum.xda-developers.com/showthread.php?t=1562890) to revert to stock firmware and then turn on USB debugging like normal, but I'm worried that your device may still be unlocked (then RUU won't work).
Hold the phone, when you boot into the bootloader, and select "fastboot", can you flash the boot.img that way? (command prompt: "fastboot flash boot boot.img", assuming your command prompt is opened in the same folder as fastboot.exe and your boot.img)
projectisaac said:
I would normally recommend RUU (http://forum.xda-developers.com/showthread.php?t=1562890) to revert to stock firmware and then turn on USB debugging like normal, but I'm worried that your device may still be unlocked (then RUU won't work).
Hold the phone, when you boot into the bootloader, and select "fastboot", can you flash the boot.img that way? (command prompt: "fastboot flash boot boot.img", assuming your command prompt is opened in the same folder as fastboot.exe and your boot.img)
Click to expand...
Click to collapse
Seems like after I updated the drivers and mounted the device, I was able to get my PC to recognize the phone through ADB devices. I went back into the fastboot and flashed the .img and it worked. Thanks for your help.
I have a Dev Edition Moto X. I have recently unlocked the Bootloader. I have tried flashing TWRP recovery. Here are the commands I have used:
adb reboot bootloader
fastboot flash recovery twrp.img
It says it is successful, but when I when I try to go into recovery it loads into Stock recovery.
My guess is the write lock is still enabled, but I have not been able to find a way to disable the write lock when on 5.1
Any help would be awesome!
"fastboot reboot recovery" should be your last step
After I flash TWRP, I unplug the USB cable, and power it off. Then I boot back into bootloader mode and try to boot into Recovery and the phone powers off. If I boot back up into Android and run 'adb reboot recovery' it boots into stock recovery.
Thoughts?
adb reboot-bootloader
fastboot flash recovery twrp.img
fastboot reboot-bootloader
Then reboot into recovery.
Smeagol1375 said:
After I flash TWRP, I unplug the USB cable, and power it off. Then I boot back into bootloader mode and try to boot into Recovery and the phone powers off. If I boot back up into Android and run 'adb reboot recovery' it boots into stock recovery.
Thoughts?
Click to expand...
Click to collapse
You're doing it wrong is my thought. Use the fastboot (not adb) reboot recovery command immediately after flashing twrp. No one said anything about powering off and rebooting first.
Thanks, I was missing 'fastboot reboot-bootloader' then it worked! I know it must be something stupid simple I wasn't doing!
Thanks again!
Smeagol1375 said:
Thanks, I was missing 'fastboot reboot-bootloader' then it worked! I know it must be something stupid simple I wasn't doing!
Thanks again!
Click to expand...
Click to collapse
Stock Recovery is reflashed when booting directly.
reboot-bootloader allows TWRP to patch the system not to do so.
Hey,
My phone is stuck in the fastboot mode, without any OS, nothing works... no Recovery ,...
S-ON, no-debugging usb, Bootloader locked and can't unlock him... I already tried with htc-dev, everything works but nothing appair on my screen to confirm the unlocking.
I'm really stuck, searched lot of things on google, ....
I used fastboot, and ADB, the first one recognize my device, but the last one not. I can't boot on RUU mode neither.
Any ideas?
AzweL said:
My phone is stuck in the fastboot mode, without any OS, nothing works... no Recovery ,...
Click to expand...
Click to collapse
The very first thing I recommend you to do, is to download the right recovery and install it via command
Code:
fastboot flash recovery recovery.zip
Let me know if you run into any further troubles.
AzweL said:
Hey,
My phone is stuck in the fastboot mode, without any OS, nothing works... no Recovery ,...
S-ON, no-debugging usb, Bootloader locked and can't unlock him... I already tried with htc-dev, everything works but nothing appair on my screen to confirm the unlocking.
I'm really stuck, searched lot of things on google, ....
I used fastboot, and ADB, the first one recognize my device, but the last one not. I can't boot on RUU mode neither.
Any ideas?
Click to expand...
Click to collapse
Hi,
Frist in boot loader check your OS version it should be something like 2.19.401.2 or lower than this.
NB: ALWAYS TRY WITH MORE THAN 75% BATTERY, AND THAT FOR ANY CODE TO WORK PROPERLY, MAKE SURE TO SELECT FASTBOOT BY POWER KEY IN BOOTLOADER
Anyway, if you can enter fastboot, then you have some chance of recovering your device and because you have S-Off it is going to be a bit difficult.
First download this stock boot file : https://mega.nz/#!lEAVwRSL!wrP2hi6GEYLeJaPf2ssZo9wCtSi7E4yfyUHgh3Q3XSs
Then place this file in the ADB folder, then run command :
To flash boot file command is:
Code:
- Fastboot Devices (this command is important to know if the device is connected and accepting and responding commands)
- fastboot flash boot boot_signed.mg (assuming this is the name you saved the file with)
- fastboot reboot bootloader
Also download Stock Recovery: https://mega.nz/#!gVJE1Bxa!6SwXStAD8p-XlnQiPkRcdNo_ITFD1ykn-tN6wIBVi1I
Place this in ADB folder and run command:
Code:
fastboot flash recovery stockrec.img // (assuming that is the name you have saved the file with), only after flashing this you will know if the device has any OS, if OS exists it will boot up.
fastboot erase cache
Attempt and let us know how it went...Good Luck
Hi guys,
I know there are others threads about this thing but none of them helped me, I would like to install TWRP and root my phone.
I'm on a p9 Plus VIE-l09C432B386 and I want to install TWRP recovery from fastboot.
I've installed all drivers and 'adb devices' detects my phone. I unlock bootloader and FRP.
From cmd I run 'adb reboot bootloader' and 'fastboot flash recovery twrp.img'.
I try with twrp-3.2.2-0-vienna.img and twrp-3.2.1-0-vienna.img and both were successfully flashed.
I type 'fastboot reboot' and hold Volume Up and Power but I can't enter on TWRP Recovery, only eRecovery. I tried with phone connected via USB at pc and with the phone disconnected.
The phone boot up and work flawlessly so I really don't know how to do.
What's wrong? I have to install an older version of TWRP? I have to run other commands or hold different combo of keys to access to recovery?
Please help me, thanx in advance
Flv97 said:
Hi guys,
I know there are others threads about this thing but none of them helped me, I would like to install TWRP and root my phone.
I'm on a p9 Plus VIE-l09C432B386 and I want to install TWRP recovery from fastboot.
I've installed all drivers and 'adb devices' detects my phone. I unlock bootloader and FRP.
From cmd I run 'adb reboot bootloader' and 'fastboot flash recovery twrp.img'.
I try with twrp-3.2.2-0-vienna.img and twrp-3.2.1-0-vienna.img and both were successfully flashed.
I type 'fastboot reboot' and hold Volume Up and Power but I can't enter on TWRP Recovery, only eRecovery. I tried with phone connected via USB at pc and with the phone disconnected.
The phone boot up and work flawlessly so I really don't know how to do.
What's wrong? I have to install an older version of TWRP? I have to run other commands or hold different combo of keys to access to recovery?
Please help me, thanx in advance
Click to expand...
Click to collapse
Flash twrp-3.1.1-1-vie.img.I advise you to flash it to recovery2 (not recovery) then just reboot and press vol up more then 3 secs
-fastboot flash recovery2 twrp-3.1.1-1-vie.img
-fastboot reboot
mrleja said:
Flash twrp-3.1.1-1-vie.img.I advise you to flash it to recovery2 (not recovery) then just reboot and press vol up more then 3 secs
-fastboot flash recovery2 twrp-3.1.1-1-vie.img
-fastboot reboot
Click to expand...
Click to collapse
Hi, thanx for the help!
I try with your method but when the phone reboot it stuck on "your device has been unlocked and can't be touched" screen and doesn't boot up..what could be the problem?
Flv97 said:
Hi, thanx for the help!
I try with your method but when the phone reboot it stuck on "your device has been unlocked and can't be touched" screen and doesn't boot up..what could be the problem?
Click to expand...
Click to collapse
I don't know.Try the factory reset or flash boot.img
UPDATE:
Finally I was able to install TWRP Recovery and now the phone boot up normally!
For everyone that has my same problem I install the twrp-3.1.1-1-vie.img as mrleja suggested me and I follow this guide. Maybe I was doing something wrong during the process, I don't know.
Huge thanx to @mrleja, you make my day man! Cheers!