Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,817 Members 53,757 Now Online
XDA Developers Android and Mobile Development Forum

[TUT] How to use fastboot on our device

Tip us?
 
laufersteppenwolf
Old
#1  
laufersteppenwolf's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4901
Posts: 2,392
Join Date: Jul 2012
Location: Baden-Württemberg

 
DONATE TO ME
Post [TUT] How to use fastboot on our device

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
Sony Ericsson Xperia X8: GingerDX v31b ; alfs CM7 v09c
LG Optimus 4x HD: my own version of CM 10.1 , CWM recovery, UNlocked BL

Crying that it's an application bug is like crying over the speed of light: you should deal with reality, not what you wish reality was. - Linus Torvalds
The Following 25 Users Say Thank You to laufersteppenwolf For This Useful Post: [ Click to Expand ]
 
laufersteppenwolf
Old
#2  
laufersteppenwolf's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4901
Posts: 2,392
Join Date: Jul 2012
Location: Baden-Württemberg

 
DONATE TO ME
Reserved
Sony Ericsson Xperia X8: GingerDX v31b ; alfs CM7 v09c
LG Optimus 4x HD: my own version of CM 10.1 , CWM recovery, UNlocked BL

Crying that it's an application bug is like crying over the speed of light: you should deal with reality, not what you wish reality was. - Linus Torvalds
 
noppoer2
Old
#3  
Senior Member
Thanks Meter 44
Posts: 280
Join Date: Jan 2012
Location: langerak

 
DONATE TO ME
Thanks for this usefull post!

Sent from my LG-P880 using xda app-developers app
LG G2 (international) : Rooted HELL YEA
LG Optimus 4x HD: Rooted/Unlocked
Sony Ericsson Xperia Play: Rooted/Unlocked

Bad in english
16 years old
 
eric1116
Old
#4  
Member
Thanks Meter 11
Posts: 51
Join Date: Apr 2013
thanks, it's very useful for me.
 
Bruckiii
Old
#5  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Jul 2013
Thanks,
it's so easy
 
gordon0001
Old
#6  
gordon0001's Avatar
Senior Member
Thanks Meter 293
Posts: 139
Join Date: Jan 2013
Location: Vienna
Quote:
fastboot boot <kernel> <ramdisk> -c "androidboot.mode=normal"
<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
The Following User Says Thank You to gordon0001 For This Useful Post: [ Click to Expand ]
 
Cheetah1024
Old
(Last edited by Cheetah1024; 5th August 2013 at 09:40 PM.)
#7  
Cheetah1024's Avatar
Senior Member
Thanks Meter 56
Posts: 311
Join Date: Jun 2012
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?
You are reading my signature...
Suff, whith which I already helped some people:
WinXp Boot- + Shutdownanimation for 720x1280 pixels screens and Music Widget Theme for LG Optimus 4X HD

...I'm hungry!
 
gordon0001
Old
#8  
gordon0001's Avatar
Senior Member
Thanks Meter 293
Posts: 139
Join Date: Jan 2013
Location: Vienna
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
 
laufersteppenwolf
Old
#9  
laufersteppenwolf's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4901
Posts: 2,392
Join Date: Jul 2012
Location: Baden-Württemberg

 
DONATE TO ME
A little update from LG...

I wrote them that they have messed up our bootloader, and told them the bugs/problems/... well, see yourself:

Quote:
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"
Sony Ericsson Xperia X8: GingerDX v31b ; alfs CM7 v09c
LG Optimus 4x HD: my own version of CM 10.1 , CWM recovery, UNlocked BL

Crying that it's an application bug is like crying over the speed of light: you should deal with reality, not what you wish reality was. - Linus Torvalds
The Following User Says Thank You to laufersteppenwolf For This Useful Post: [ Click to Expand ]
 
Flying_Bear
Old
#10  
Flying_Bear's Avatar
Senior Member
Thanks Meter 725
Posts: 1,723
Join Date: Jan 2011
lg is retarded, but hey atleast they had the decency to answer
To install custom roms on O4x:

1. upgrade to jb
2. root
3. unlock bootloader
4. flash custom recovery (cwm)
5. flash roms
6. if you encounter any issues, search, they've been answered already.

Got issues with RIL/IMEI/BASEBAND on custom 4.2, 4.3 or 4.4 ROMs on p880? Click me for possible solution!

Tags
fastboot, p880
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Cell Phone SIM Unlock Bill Just Steps Away from President’s Desk

For all those who believe that Cinderella stories don’t actually … more

Get Your Cargo to its Destination in 4×4 Military Operations Reborn

Racing games have evolved quite a bit since the days of Pole … more

Automate Your Device with Sfen

Changing the profile of yourdevice manually is now long forgotten. Since the advent of Android automation … more