diff options
Diffstat (limited to 'fastboot/fastboot.c')
| -rw-r--r-- | fastboot/fastboot.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 95be0ac..2d28d59 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c @@ -225,6 +225,7 @@ void usage(void)              "  flashall                                 flash boot + recovery + system\n"              "  flash <partition> [ <filename> ]         write a file to a flash partition\n"              "  erase <partition>                        erase a flash partition\n" +            "  format <partition>                       format a flash partition \n"              "  getvar <variable>                        display a bootloader variable\n"              "  boot <kernel> [ <ramdisk> ]              download and boot kernel\n"              "  flash:raw boot <kernel> [ <ramdisk> ]    create bootimage and flash it\n" @@ -636,6 +637,10 @@ int main(int argc, char **argv)              require(2);              fb_queue_erase(argv[1]);              skip(2); +        } else if(!strcmp(*argv, "format")) { +            require(2); +            fb_queue_format(argv[1]); +            skip(2);          } else if(!strcmp(*argv, "signature")) {              require(2);              data = load_file(argv[1], &sz); | 
