Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: cli_mfg.c

Issue 6611015: Support -i partition:file feature for both read and write. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flashrom.git@master
Patch Set: fixed according to code review and security check. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | flash.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the flashrom project. 2 * This file is part of the flashrom project.
3 * 3 *
4 * Copyright (C) 2000 Silicon Integrated System Corporation 4 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp <yhlu@tyan.com> 5 * Copyright (C) 2004 Tyan Corp <yhlu@tyan.com>
6 * Copyright (C) 2005-2008 coresystems GmbH 6 * Copyright (C) 2005-2008 coresystems GmbH
7 * Copyright (C) 2008,2009,2010 Carl-Daniel Hailfinger 7 * Copyright (C) 2008,2009,2010 Carl-Daniel Hailfinger
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
(...skipping 30 matching lines...) Expand all
41 { 41 {
42 const char *pname; 42 const char *pname;
43 int pnamelen; 43 int pnamelen;
44 int remaining = 0; 44 int remaining = 0;
45 enum programmer p; 45 enum programmer p;
46 46
47 printf("Usage: %s [-n] [-V] [-f] [-h|-R|-L|" 47 printf("Usage: %s [-n] [-V] [-f] [-h|-R|-L|"
48 #if CONFIG_PRINT_WIKI == 1 48 #if CONFIG_PRINT_WIKI == 1
49 "-z|" 49 "-z|"
50 #endif 50 #endif
51 » "-E|-r <file>|-w <file>|-v <file>]\n" 51 » "-E|-r <file>|-w <file>|-v <file>] [-i <image>[:<file>]]\n"
52 " [-c <chipname>] [-m [<vendor>:]<part>] [-l <file>]\n" 52 " [-c <chipname>] [-m [<vendor>:]<part>] [-l <file>]\n"
53 » " [-i <image>] [-p <programmername>[:<parameters>]]\n", 53 » " [-p <programmername>[:<parameters>]]\n",
54 name); 54 name);
55 55
56 printf("Please note that the command line interface for flashrom has " 56 printf("Please note that the command line interface for flashrom has "
57 "changed between\n" 57 "changed between\n"
58 "0.9.1 and 0.9.2 and will change again before flashrom 1.0.\n" 58 "0.9.1 and 0.9.2 and will change again before flashrom 1.0.\n"
59 "Do not use flashrom in scripts or other automated tools " 59 "Do not use flashrom in scripts or other automated tools "
60 "without checking\n" 60 "without checking\n"
61 "that your flashrom version won't interpret options in a " 61 "that your flashrom version won't interpret options in a "
62 "different way.\n\n"); 62 "different way.\n\n");
63 63
(...skipping 11 matching lines...) Expand all
75 #if CONFIG_INTERNAL == 1 75 #if CONFIG_INTERNAL == 1
76 /* FIXME: --mainboard should be a programmer parameter */ 76 /* FIXME: --mainboard should be a programmer parameter */
77 " -m | --mainboard <[vendor:]part> override mainboard " 77 " -m | --mainboard <[vendor:]part> override mainboard "
78 "detection\n" 78 "detection\n"
79 #endif 79 #endif
80 " -f | --force force specific operations " 80 " -f | --force force specific operations "
81 "(see man page)\n" 81 "(see man page)\n"
82 " -n | --noverify don't auto-verify\n" 82 " -n | --noverify don't auto-verify\n"
83 " -l | --layout <file> read ROM layout from " 83 " -l | --layout <file> read ROM layout from "
84 "<file>\n" 84 "<file>\n"
85 » " -i | --image <name> only flash image <name> " 85 » " -i | --image <name>[:<file>] only access image <name> "
86 » "from flash layout\n" 86 » "from flash layout.\n"
87 » " the content are included "
88 » "in <file> if specified.\n"
87 " -L | --list-supported print supported devices\n" 89 " -L | --list-supported print supported devices\n"
88 #if CONFIG_PRINT_WIKI == 1 90 #if CONFIG_PRINT_WIKI == 1
89 " -z | --list-supported-wiki print supported devices " 91 " -z | --list-supported-wiki print supported devices "
90 "in wiki syntax\n" 92 "in wiki syntax\n"
91 #endif 93 #endif
92 " -p | --programmer <name>[:<param>] specify the programmer " 94 " -p | --programmer <name>[:<param>] specify the programmer "
93 "device" 95 "device"
94 ); 96 );
95 97
96 for (p = 0; p < PROGRAMMER_INVALID; p++) { 98 for (p = 0; p < PROGRAMMER_INVALID; p++) {
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 597
596 msg_ginfo("%s\n", rc ? "FAILED" : "SUCCESS"); 598 msg_ginfo("%s\n", rc ? "FAILED" : "SUCCESS");
597 cli_mfg_silent_exit: 599 cli_mfg_silent_exit:
598 programmer_shutdown(); /* must be done after chip_restore() */ 600 programmer_shutdown(); /* must be done after chip_restore() */
599 cli_mfg_release_lock_exit: 601 cli_mfg_release_lock_exit:
600 #if USE_BIG_LOCK == 1 602 #if USE_BIG_LOCK == 1
601 release_big_lock(); 603 release_big_lock();
602 #endif 604 #endif
603 return rc; 605 return rc;
604 } 606 }
OLDNEW
« no previous file with comments | « no previous file | flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698