Diferencia entre revisiones de «Usuario:Juanda/android/fastboot»

De WikiEducator
Saltar a: navegación, buscar
(¿Qué es FastBoot?)
(Opciones del comando fastboot)
Línea 37: Línea 37:
  
 
options:
 
options:
   -w                                      erase userdata and cache (and format
+
   -w                                      erase userdata and cache (and format if supported by partition type)
                                          if supported by partition type)
+
   -u                                      do not first erase partition before formatting
   -u                                      do not first erase partition before
+
   -s <specific device>                    specify device serial number or path to device port
                                          formatting
+
   -s <specific device>                    specify device serial number
+
                                          or path to device port
+
 
   -l                                      with "devices", lists device paths
 
   -l                                      with "devices", lists device paths
 
   -p <product>                            specify product name
 
   -p <product>                            specify product name
Línea 49: Línea 46:
 
   -b <base_addr>                          specify a custom kernel base address
 
   -b <base_addr>                          specify a custom kernel base address
 
   -n <page size>                          specify the nand page size. default: 2048
 
   -n <page size>                          specify the nand page size. default: 2048
   -S <size>[K|M|G]                        automatically sparse files greater than
+
   -S <size>[K|M|G]                        automatically sparse files greater than size.  0 to disable
                                          size.  0 to disable
+
  
 
</source>
 
</source>

Revisión de 04:24 23 abr 2013


¿Qué es FastBoot?

  • fastboot es una pequeña herramienta que viene con el Android SDK y puede ser usada para flashear particiones del dispositivo.
  • Es un modo de recuperación alternativo al de recovery.
  • El modo FastBoot arranca antes de cargar el SO Android (arrance incluso si Android no está instalado).
  • Es útil para hacer un update del firmware sin tener que usar el modo recovery.
  • Es el modo preferido para instalar la imagen de recovery en muchos dispositivos.
  • Fastboot también se usa para desbloquear el bootloader de los dispositovos Google Nexus.
  • No todos los dispositivos soportan fastboot.
  • El comando fastboot se debe ejecutar siempre con privilegios de root.
  • Los comandos de fastboot solo funcionan si el dispositivo está en modo fastboot.

Opciones del comando fastboot

juanda@juanda-PC:~$ fastboot
usage: fastboot [ <option> ] <command>
 
commands:
  update <filename>                        reflash device from update.zip
  flashall                                 flash boot + recovery + system
  flash <partition> [ <filename> ]         write a file to a flash partition
  erase <partition>                        erase a flash partition
  format <partition>                       format a flash partition 
  getvar <variable>                        display a bootloader variable
  boot <kernel> [ <ramdisk> ]              download and boot kernel
  flash:raw boot <kernel> [ <ramdisk> ]    create bootimage and flash it
  devices                                  list all connected devices
  continue                                 continue with autoboot
  reboot                                   reboot device normally
  reboot-bootloader                        reboot device into bootloader
  help                                     show this help message
 
options:
  -w                                       erase userdata and cache (and format if supported by partition type)
  -u                                       do not first erase partition before formatting
  -s <specific device>                     specify device serial number or path to device port
  -l                                       with "devices", lists device paths
  -p <product>                             specify product name
  -c <cmdline>                             override kernel commandline
  -i <vendor id>                           specify a custom USB vendor id
  -b <base_addr>                           specify a custom kernel base address
  -n <page size>                           specify the nand page size. default: 2048
  -S <size>[K|M|G]                         automatically sparse files greater than size.  0 to disable

Tutorial sobre FastBoot.

juanda@juanda-PC:~/Android/sdk/platform-tools$ sudo ./fastboot devices
01a927828f90ccde	fastboot
juanda@juanda-PC:~/Android/sdk/platform-tools$ sudo ./fastboot oem unlock
...
FAILED (remote: Already Unlocked)
finished. total time: 0.001s
juanda@juanda-PC:~/Android/sdk/platform-tools$