• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mods Does flash mean what it use to?

My first smartphone, and I'm still on my months-long exploration of how to backup up the original OS before installing CyanogenMod. I want a backup of what's on the phone, before rooting or unlocking the boot loader, not a downloaded stock from the internet.

I've ran across this question a few times, and I find that the documentation on fastboot is a bit terse. For example, I've seen exmples of "fastboot [re]boot" online, but the actual help for fastboot doesn't even show that an argument (img file) is needed. So I know that there are lots of meanings that are implied rather than explicit.

I have had electrical engineering training, and flashing a ROM meant something very specific: You actually write the read-only memory. However, from the threads I found online, I'm really unsure whether that is always what is meant with fastboot. For example, threads I've read indicate that if you want to backup without root, you need to fastboot CWM without installing. So that implies to me that you don't actually write it to the smartphone, you just boot from the img file. It's still called flashing, just not flashing to ROM. It seems very unlike the meaning of flashing from the old electrical engineering schooling days. Is this actually the meaning?

I haven't yet cleared up in my head whether the implied meaning is that img file is somehow transferred to the smartphone, nor whether the bootloader needs unlocking. These details are distributed over many, many threads that I surfed, and the connection between them is not entirely clear just yet (though I've reread them lots). Hoping to clear that up with some more googling.
 
Welcome to our AndroidForums, my1stSmartPhone :).

There's two lines referencing the "flash" command in fastboot (I've colored the one you want in red):
Code:
C:\Users\Scary Alien>fastboot
usage: fastboot [ <option> ] <command>

commands:
  update <filename>                        reflash device from update.zip
  flashall                                 flash boot, system, vendor and if found,
                                           recovery
  [COLOR="Red"]flash <partition> [ [B]<filename>[/B] ]         write a file to a flash partition[/COLOR]
  erase <partition>                        erase a flash partition
  format[:[<fs type>][:[<size>]] <partition> format a flash partition.
                                           Can override the fs type and/or
                                           size the bootloader reports.
  getvar <variable>                        display a bootloader variable
  boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
  [COLOR="Blue"]flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and
                                           flash it[/COLOR]
  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.
                                           default: 0x10000000
  -n <page size>                           specify the nand page size.
                                           default: 2048
  -S <size>[K|M|G]                         automatically sparse files greater
                                           than size.  0 to disable

C:\Users\Scary Alien>
The non-flashing (what I call "soft booting") of a ROM is done with a fastboot boot <img> command. This will not write the <img> file to the device (to it's NAND memory), but loads it up instead in/to RAM. Use this to boot-up a custom recovery without modifying your device with that fastboot command.

The fastboot flash <partition> <img> will indeed write the given image to the specified partition.

You will need an unlocked bootloader to use the fastboot command as discussed above.

Can't help you with the EE stuff, though ;) :p, but I hope that helps.

Cheers!
 
Thanks, Scary Alien. I apologize for the long delay in responding, but I only have slivers of some weekends to dig into this in earnest, though I was perusing your response earlier.

Just to help me browsing the online info, is it somewhat customary for veterans to sometimes refer to a operation as flashing even when they only mean booting?
 
Thanks, Scary Alien. I apologize for the long delay in responding, but I only have slivers of some weekends to dig into this in earnest, though I was perusing your response earlier.

Just to help me browsing the online info, is it somewhat customary for veterans to sometimes refer to a operation as flashing even when they only mean booting?

No worries! :) :thumbup:

I actually don't see too many references to the "fastboot boot <image>" soft-booting option since most folks just use the actual fastboot flash.

For example, I usually keep the stock recovery installed on my devices and just soft-boot a custom one when I need to do something like a Nandroid backup or installing (lol, "flashing" a .zip file inside custom recovery--yet another use/reference to "flashing", although it's usually more relevant/applicable when flashing a ROM in a custom recovery).

Cheers!
 
Thanks again, Scary Alien. I know that custom recoveries are like CWM (which I intend to use), but the rest of your bracketed sentence went over my head. But no need to elaborate, I think I can proceed with what I've come to understand.

I also understand what you said about running the stock OS, but I have my reasons for not wanting to do that.
 
Back
Top Bottom